/* ====================================================
   简约版虚拟卡管理样式 - 适配WordPress主题
   ==================================================== */

/* 模态框样式 */
.vcm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: none;
}

.vcm-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    width: 95%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.vcm-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.vcm-modal-header h3 {
    margin: 0;
    color: #343a40;
    font-size: 16px;
    font-weight: 600;
}

.vcm-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.vcm-modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.vcm-modal-body {
    padding: 20px;
}

/* 卡片信息表格 */
.vcm-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px 0;
    font-size: 13px;
}

.vcm-info-table th,
.vcm-info-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.vcm-info-table th {
    width: 120px;
    color: #495057;
    font-weight: 500;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.vcm-info-table td {
    color: #212529;
    font-weight: 400;
}

/* 卡片操作按钮 */
.vcm-card-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.vcm-action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 80px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.vcm-action-btn i {
    font-size: 14px;
}

.vcm-action-btn.recharge-btn {
    background: #28a745;
    color: white;
}

.vcm-action-btn.freeze-btn {
    background: #ffc107;
    color: #212529;
}

.vcm-action-btn.report-btn {
    background: #dc3545;
    color: white;
}

.vcm-action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.vcm-action-btn:active {
    transform: translateY(0);
}

/* 状态徽章 */
.vcm-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.vcm-status-badge.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.vcm-status-badge.active {
    background: #d4edda;
    color: #155724;
}

.vcm-status-badge.frozen {
    background: #fff3cd;
    color: #856404;
}

.vcm-status-badge.expired {
    background: #f8d7da;
    color: #721c24;
}

/* 旋转动画 */
@keyframes vcm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 640px) {
    .vcm-modal-content {
        width: 95%;
        max-width: 380px;
        border-radius: 6px;
    }
    
    .vcm-modal-header {
        padding: 12px 15px;
    }
    
    .vcm-modal-body {
        padding: 15px;
    }
    
    .vcm-info-table th,
    .vcm-info-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .vcm-info-table th {
        width: 100px;
    }
    
    .vcm-card-actions {
        flex-direction: column;
    }
    
    .vcm-action-btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* ====================================================
   申请表单样式
   ==================================================== */
.vcm-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

/* 卡片选择样式 */
.vcm-card-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.vcm-card-type-select {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    width: 240px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.vcm-card-type-select:hover {
    border-color: #4361ee;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.1);
}

.vcm-card-type-select.active {
    border-color: #4361ee;
    background: #f8f9ff;
}

.vcm-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: #4361ee;
}

.vcm-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #212529;
}

.vcm-card-desc {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.vcm-select-btn {
    background: #4361ee;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
}

.vcm-select-btn:hover {
    background: #3a56d4;
}

/* 表单样式 */
#vcm-application-form {
    max-width: 500px;
    margin: 20px auto 0 auto;
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: none;
}

.vcm-form-group {
    margin-bottom: 18px;
    position: relative;
}

.vcm-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 13px;
}

.vcm-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
    color: #212529;
    box-sizing: border-box;
}

.vcm-form-control:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

.vcm-form-control::placeholder {
    color: #adb5bd;
    font-size: 13px;
}

.vcm-form-group.error .vcm-form-control {
    border-color: #e63946;
    background: #fff5f5;
}

.vcm-error-message {
    color: #e63946;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    font-weight: 400;
}

.vcm-submit-btn {
    background: #4361ee;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.vcm-submit-btn:hover:not(:disabled) {
    background: #3a56d4;
}

.vcm-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vcm-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====================================================
   我的卡片页面样式
   ==================================================== */
.vcm-my-cards {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.vcm-cards-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vcm-filter-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.vcm-filter-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.vcm-filter-btn.active {
    background: #4361ee;
    color: white;
    border-color: #4361ee;
}

.vcm-cards-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.vcm-card-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.vcm-card-item:hover {
    border-color: #4361ee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.vcm-card-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.vcm-card-item-type {
    font-size: 12px;
    color: #4361ee;
    font-weight: 500;
    background: #f0f4ff;
    padding: 3px 8px;
    border-radius: 10px;
}

.vcm-card-item-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.vcm-card-item-status.active {
    background: #f0fff4;
    color: #28a745;
}

.vcm-card-item-status.frozen {
    background: #fffaf0;
    color: #fd7e14;
}

.vcm-card-item-number {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: #212529;
    font-family: 'SF Mono', monospace;
}

.vcm-card-icon-small {
    font-size: 16px;
    color: #4361ee;
    margin-right: 8px;
}

.vcm-card-item-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 12px;
}

.vcm-card-item-balance span,
.vcm-card-item-expiry span {
    color: #6c757d;
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
}

.vcm-card-item-balance strong {
    color: #212529;
    font-size: 14px;
    font-weight: 600;
}

.vcm-card-item-actions {
    margin-top: 5px;
}

.vcm-detail-btn {
    width: 100%;
    padding: 10px;
    background: #4361ee;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.vcm-detail-btn:hover {
    background: #3a56d4;
}

/* 空状态样式 */
.vcm-no-cards {
    text-align: center;
    padding: 40px 20px;
    max-width: 400px;
    margin: 40px auto;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ced4da;
}

.vcm-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #adb5bd;
}

.vcm-no-cards h3 {
    margin-bottom: 10px;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.vcm-no-cards p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.vcm-apply-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #4361ee;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
}

.vcm-apply-btn:hover {
    background: #3a56d4;
}

/* ====================================================
   消息通知样式
   ==================================================== */
.vcm-message-container {
    max-width: 700px;
    margin: 20px auto;
    min-height: auto;
}

.vcm-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.vcm-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vcm-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.vcm-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.vcm-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 登录提示样式 */
.vcm-login-required {
    text-align: center;
    padding: 40px 20px;
    max-width: 500px;
    margin: 30px auto;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.vcm-login-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #adb5bd;
}

.vcm-login-required h3 {
    margin-bottom: 10px;
    color: #495057;
    font-size: 16px;
}

.vcm-login-required p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
}

.vcm-login-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #4361ee;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 13px;
}

.vcm-login-btn:hover {
    background: #3a56d4;
}

/* ====================================================
   响应式设计
   ==================================================== */
@media (max-width: 768px) {
    .vcm-container,
    .vcm-my-cards {
        margin: 10px;
        padding: 15px;
    }
    
    .vcm-card-options {
        flex-direction: column;
        align-items: center;
    }
    
    .vcm-card-type-select {
        width: 100%;
        max-width: 300px;
    }
    
    .vcm-cards-list {
        grid-template-columns: 1fr;
    }
    
    #vcm-application-form {
        margin: 15px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .vcm-container,
    .vcm-my-cards {
        margin: 5px;
        padding: 12px;
    }
    
    .vcm-card-item {
        padding: 12px;
    }
    
    .vcm-cards-filter {
        justify-content: center;
    }
    
    .vcm-filter-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
}

/* ====================================================
   实用工具类
   ==================================================== */
.vcm-hidden { display: none !important; }
.vcm-text-center { text-align: center !important; }
.vcm-text-success { color: #28a745 !important; }
.vcm-text-error { color: #dc3545 !important; }
.vcm-text-muted { color: #6c757d !important; }
.vcm-mt-15 { margin-top: 15px !important; }
.vcm-mb-15 { margin-bottom: 15px !important; }
.vcm-p-15 { padding: 15px !important; }

/* 移除不必要的复杂动画和渐变 */
.vcm-card-item,
.vcm-card-type-select {
    animation: none;
}

/* 简化阴影效果 */
.vcm-card-item,
.vcm-container,
.vcm-my-cards {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 简化悬停效果 */
.vcm-card-item:hover,
.vcm-card-type-select:hover {
    transform: translateY(-1px);
}