/* ================================================
   VIP会员中心专用样式 - 超级现代化炫酷版
   ================================================ */

/* VIP容器样式 - 只影响背景，不影响子元素 */
.tools-container.vip-container {
    min-height: 100vh;
    background: linear-gradient(135deg, 
        rgba(74, 156, 1, 0.05) 0%, 
        rgba(74, 156, 1, 0.02) 25%, 
        rgba(255, 255, 255, 0.03) 50%, 
        rgba(74, 156, 1, 0.02) 75%, 
        rgba(74, 156, 1, 0.05) 100%);
    position: relative;
    overflow-x: hidden;
}

/* 动态背景效果 */
.tools-container.vip-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(74, 156, 1, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(74, 156, 1, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(74, 156, 1, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundFlow 20s ease-in-out infinite;
}

@keyframes backgroundFlow {
    0%, 100% { opacity: 0.8; transform: scale(1) rotate(0deg); }
    33% { opacity: 1; transform: scale(1.05) rotate(1deg); }
    66% { opacity: 0.9; transform: scale(0.98) rotate(-1deg); }
}

/* VIP内容区域 */
.vip-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* VIP头部区域 */
.vip-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.vip-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light), #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-shadow: 0 2px 10px rgba(74, 156, 1, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.vip-title i {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #ffd700;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.4));
    animation: crownFloat 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1) saturate(1); }
    100% { filter: brightness(1.2) saturate(1.3); }
}

@keyframes crownFloat {
    0% { transform: translateY(0px) rotate(-2deg); }
    100% { transform: translateY(-5px) rotate(2deg); }
}

.vip-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    opacity: 0.9;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
}

/* 表格容器 - 超级现代化玻璃效果 */
.table-container {
    position: relative;
    margin-bottom: 2.5rem;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(74, 156, 1, 0.12),
        0 4px 16px rgba(74, 156, 1, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: containerFloat 6s ease-in-out infinite;
}

@keyframes containerFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* 表格本体 */
.membership-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    overflow: hidden;
    position: relative;
}

/* 表头样式 */
.membership-table thead {
    background: linear-gradient(135deg, 
        rgba(74, 156, 1, 0.95) 0%, 
        rgba(74, 156, 1, 0.9) 50%, 
        rgba(74, 156, 1, 0.95) 100%);
    backdrop-filter: blur(10px);
    position: relative;
}

.membership-table thead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    animation: headerShine 3s ease-in-out infinite;
}

@keyframes headerShine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.membership-table th {
    padding: 2rem 1.5rem;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    position: relative;
    z-index: 5;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.membership-table th:last-child {
    border-right: none;
}

/* 等级头部特殊样式 */
.level-header {
    position: relative;
    overflow: hidden;
}

.level-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-shadow: none;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

.level-badge.vip {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.level-badge.svip {
    background: linear-gradient(135deg, #7c4dff, #651fff);
    box-shadow: 0 2px 8px rgba(124, 77, 255, 0.4);
}

.level-badge.annual {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.level-badge.enterprise {
    background: linear-gradient(135deg, #795548, #5d4037);
    box-shadow: 0 2px 8px rgba(121, 85, 72, 0.4);
}

/* 表格行样式 */
.membership-table tbody tr {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.membership-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.08);
}

.membership-table tbody tr:hover {
    background: rgba(74, 156, 1, 0.1);
    transform: scale(1.002);
    box-shadow: 
        0 4px 20px rgba(74, 156, 1, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.membership-table td {
    padding: 1.5rem 1rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    vertical-align: middle;
}

.membership-table td:first-child {
    font-weight: 700;
    color: var(--primary-green);
    background: rgba(74, 156, 1, 0.05);
    font-size: 0.95rem;
    text-align: left;
    padding-left: 1.5rem;
}

.membership-table td:last-child {
    border-right: none;
}

/* 特殊值样式 */
.zero-value {
    color: var(--text-muted);
    font-weight: 500;
    opacity: 0.7;
}

/* 现代化支持/不支持图标样式 */
.support-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

.support-icon.supported {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.support-icon.supported:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.support-icon.not-supported {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.support-icon.not-supported:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.support-icon.neutral {
    background: linear-gradient(135deg, #9e9e9e, #757575);
    color: white;
    box-shadow: 0 2px 8px rgba(158, 158, 158, 0.3);
}

.support-icon.neutral:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(158, 158, 158, 0.4);
}

/* 深色主题适配 */
[data-theme="dark"] .support-icon.supported {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    box-shadow: 0 2px 8px rgba(102, 187, 106, 0.4);
}

[data-theme="dark"] .support-icon.not-supported {
    background: linear-gradient(135deg, #ef5350, #f44336);
    box-shadow: 0 2px 8px rgba(239, 83, 80, 0.4);
}

[data-theme="dark"] .support-icon.neutral {
    background: linear-gradient(135deg, #bdbdbd, #9e9e9e);
    box-shadow: 0 2px 8px rgba(189, 189, 189, 0.4);
}

/* 支持值文本样式 */
.support-value {
    color: #4caf50;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

[data-theme="dark"] .support-value {
    color: #66bb6a;
}

/* 无限制值样式 */
.unlimited {
    color: #ff9800;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

[data-theme="dark"] .unlimited {
    color: #ffb74d;
}

.unlimited-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
}

.unlimited-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.4);
}

[data-theme="dark"] .unlimited-icon {
    background: linear-gradient(135deg, #ffb74d, #ff9800);
    box-shadow: 0 2px 6px rgba(255, 183, 77, 0.4);
}

/* 免费值样式 */
.free-value {
    color: #4caf50;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

[data-theme="dark"] .free-value {
    color: #66bb6a;
}

.free-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.free-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
}

[data-theme="dark"] .free-icon {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    box-shadow: 0 2px 6px rgba(102, 187, 106, 0.4);
}

/* 问号图标样式 */
.help-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 6px;
    cursor: help;
    transition: all 0.3s ease;
    position: relative;
    vertical-align: middle;
}

.help-icon:hover {
    background: var(--primary-green-light);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(74, 156, 1, 0.3);
}

/* 工具提示样式 */
.tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    max-width: 250px;
    white-space: normal;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* 暗色主题下的工具提示 */
[data-theme="dark"] .tooltip {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .tooltip::after {
    border-top-color: rgba(255, 255, 255, 0.95);
}



.unlimited {
    color: var(--primary-green);
    font-weight: 700;
    background: linear-gradient(135deg, rgba(74, 156, 1, 0.1), rgba(74, 156, 1, 0.05));
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
    border: 1px solid rgba(74, 156, 1, 0.2);
    animation: unlimitedGlow 2s ease-in-out infinite alternate;
}

@keyframes unlimitedGlow {
    0% { box-shadow: 0 0 5px rgba(74, 156, 1, 0.3); }
    100% { box-shadow: 0 0 15px rgba(74, 156, 1, 0.5); }
}

.price-cell {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(74, 156, 1, 0.2);
}

/* VIP操作按钮样式 - 只影响VIP内容区域内的按钮 */
.vip-content .action-btn {
    padding: 10px 10px;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    min-width: 108px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

.vip-content .action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.vip-content .action-btn:hover::before {
    left: 100%;
}

.vip-content .action-btn.register {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.vip-content .action-btn.register:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(33, 150, 243, 0.4);
}

.vip-content .action-btn.upgrade {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: white;
    box-shadow: 0 4px 15px rgba(74, 156, 1, 0.3);
}

.vip-content .action-btn.upgrade:hover {
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 156, 1, 0.4);
}

.vip-content .action-btn.renew {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.vip-content .action-btn.renew:hover {
    background: linear-gradient(135deg, #f57c00, #ef6c00);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 152, 0, 0.4);
}

.vip-content .action-btn.disabled {
    background: rgba(158, 158, 158, 0.3);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.vip-content .action-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* VIP提示信息 */
.vip-notice {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.1) 0%, 
        rgba(255, 193, 7, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.1);
    position: relative;
    overflow: hidden;
}

.vip-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    animation: noticeShine 4s ease-in-out infinite;
}

@keyframes noticeShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.vip-notice i {
    color: #ffc107;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}

.vip-notice strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* 活动提醒样式 */
.promotion-notice {
    background: linear-gradient(135deg, 
        rgba(255, 87, 34, 0.1) 0%, 
        rgba(255, 87, 34, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 87, 34, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: 0 4px 20px rgba(255, 87, 34, 0.1);
    position: relative;
    overflow: hidden;
}

.promotion-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 87, 34, 0.1), transparent);
    animation: promotionShine 4s ease-in-out infinite;
}

@keyframes promotionShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.promotion-notice i {
    color: #ff5722;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    filter: drop-shadow(0 2px 4px rgba(255, 87, 34, 0.3));
}

.promotion-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.promotion-content strong {
    color: var(--text-primary);
    font-weight: 700;
}

.copy-invite-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ff5722, #e64a19);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(255, 87, 34, 0.3);
}

.copy-invite-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.copy-invite-btn:hover::before {
    left: 100%;
}

.copy-invite-btn:hover {
    background: linear-gradient(135deg, #e64a19, #d84315);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 87, 34, 0.4);
}

.copy-invite-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 87, 34, 0.3);
}

/* 支付弹窗样式 */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.payment-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(120%);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(74, 156, 1, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.payment-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(74, 156, 1, 0.1);
}

.payment-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.payment-level {
    font-size: 1.1rem;
    color: var(--primary-green);
    font-weight: 600;
}

/* 升级说明样式 */
.upgrade-notice {
    background: linear-gradient(135deg, rgba(74, 156, 1, 0.1), rgba(74, 156, 1, 0.05));
    border: 1px solid rgba(74, 156, 1, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: upgradeNoticeGlow 2s ease-in-out infinite alternate;
}

.upgrade-notice i {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.upgrade-content {
    flex: 1;
}

.upgrade-content span {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
}

@keyframes upgradeNoticeGlow {
    0% { box-shadow: 0 0 0 rgba(74, 156, 1, 0.1); }
    100% { box-shadow: 0 0 20px rgba(74, 156, 1, 0.2); }
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.duration-selector {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.duration-btn {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 80px;
}

.duration-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: rgba(74, 156, 1, 0.05);
}

.duration-btn.active {
    border-color: var(--primary-green);
    background: var(--primary-green);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 156, 1, 0.3);
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(74, 156, 1, 0.1);
}

.payment-methods {
    display: flex;
    gap: 1rem;
}

.payment-method {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-light);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.payment-method:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.payment-method.active {
    border-color: var(--primary-green);
    background: rgba(74, 156, 1, 0.1);
    color: var(--primary-green);
}

/* 价格摘要 */
.price-summary {
    background: rgba(74, 156, 1, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(74, 156, 1, 0.1);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-row.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    padding-top: 0.75rem;
    border-top: 1px solid rgba(74, 156, 1, 0.2);
    text-shadow: 0 1px 3px rgba(74, 156, 1, 0.2);
}

.price-row.total-price span:last-child {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-green);
    text-shadow: 0 2px 6px rgba(74, 156, 1, 0.3);
}

.payment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.payment-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-btn.cancel {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.payment-btn.cancel:hover {
    background: #e8e8e8;
    color: #333;
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-btn.confirm {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: white;
    box-shadow: 0 4px 15px rgba(74, 156, 1, 0.3);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.payment-btn.confirm:hover {
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 156, 1, 0.4);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .vip-content {
        padding: 1.5rem;
    }
    
    .membership-table th,
    .membership-table td {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .vip-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .vip-content {
        padding: 1rem;
    }
    
    .vip-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .vip-subtitle {
        font-size: 1rem;
    }
    
    .table-container {
        border-radius: 16px;
        overflow-x: auto;
    }
    
    .membership-table {
        min-width: 800px;
    }
    
    .membership-table th,
    .membership-table td {
        padding: 0.875rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .membership-table th {
        padding: 1.5rem 0.5rem;
    }
    
    .level-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }
    
    .vip-content .action-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .vip-notice {
        padding: 1rem;
        font-size: 0.85rem;
        flex-direction: column;
        text-align: center;
    }
    
    .promotion-notice {
        padding: 1rem;
        font-size: 0.85rem;
        flex-direction: column;
        text-align: center;
    }
    
    .promotion-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .payment-content {
        padding: 1.5rem 1.5rem 2rem 1.5rem; /* 底部增加额外间距 */
        margin: 1rem;
        border-radius: 20px;
        max-height: calc(100vh - 4rem); /* 确保不超出屏幕 */
        overflow-y: auto;
    }
    
    .duration-selector {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .payment-methods {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .payment-actions {
        flex-direction: column-reverse; /* 移动端按钮顺序反转：确认支付按钮在上，取消按钮在下 */
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding: 0 0.5rem; /* 避免按钮贴边 */
    }
    
    /* 移动端支付弹窗按钮样式优化 */
    .payment-content .payment-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px; /* 触摸友好的按钮高度 */
        border-radius: 12px;
    }
    
    .payment-content .payment-btn.confirm {
        box-shadow: 0 4px 20px rgba(74, 156, 1, 0.4);
        font-weight: 700;
    }
    
    .payment-content .payment-btn.cancel {
        background: rgba(0, 0, 0, 0.05);
        color: var(--text-secondary);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: none;
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    .vip-title {
        font-size: 1.75rem;
    }
    
    .vip-subtitle {
        font-size: 0.9rem;
    }
    
    .membership-table th,
    .membership-table td {
        padding: 0.75rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .membership-table th {
        padding: 1.25rem 0.4rem;
    }
    
    .vip-content .action-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        border-radius: 12px;
    }
    
    .payment-content {
        padding: 1rem 1rem 1.5rem 1rem; /* 小屏幕底部也增加间距 */
        border-radius: 16px;
        max-height: calc(100vh - 2rem); /* 小屏幕适配 */
        overflow-y: auto;
    }
    
    .payment-title {
        font-size: 1.5rem;
    }
    
    .duration-btn,
    .payment-method {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .form-input {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .payment-btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        min-height: 44px; /* 小屏幕设备的触摸友好高度 */
    }
    
    /* 小屏幕移动端支付按钮布局 */
    .payment-actions {
        flex-direction: column-reverse; /* 确认支付按钮在上方，取消按钮在下方 */
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 0 0.25rem;
    }
    
    /* 小屏幕移动端按钮样式优化 */
    .payment-btn.confirm {
        font-weight: 700;
        font-size: 1rem;
        box-shadow: 0 3px 15px rgba(74, 156, 1, 0.5);
    }
    
    .payment-btn.cancel {
        font-size: 0.9rem;
        font-weight: 500;
        background: rgba(0, 0, 0, 0.03);
        color: var(--text-muted);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    /* 小屏幕支付弹窗专用样式 */
    .payment-content .payment-btn {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        min-height: 44px;
        border-radius: 10px;
    }
    
    .payment-content .payment-btn.confirm {
        font-weight: 700;
        font-size: 1rem;
        box-shadow: 0 3px 15px rgba(74, 156, 1, 0.5);
    }
    
    .payment-content .payment-btn.cancel {
        font-size: 0.9rem;
        font-weight: 500;
        background: rgba(0, 0, 0, 0.03);
        color: var(--text-muted);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }
}

/* 深色主题适配 */
[data-theme="dark"] .table-container {
    background: rgba(42, 47, 58, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .membership-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .membership-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .membership-table tbody tr:hover {
    background: rgba(74, 156, 1, 0.15);
}

[data-theme="dark"] .payment-content {
    background: rgba(42, 47, 58, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

/* 深色主题下支付按钮样式优化 */
[data-theme="dark"] .payment-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .payment-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .payment-btn.confirm {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: white;
    box-shadow: 0 4px 15px rgba(74, 156, 1, 0.4);
}

[data-theme="dark"] .payment-btn.confirm:hover {
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 156, 1, 0.5);
}

[data-theme="dark"] .vip-notice {
    background: rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.15);
}

[data-theme="dark"] .promotion-notice {
    background: rgba(255, 87, 34, 0.08);
    border-color: rgba(255, 87, 34, 0.15);
}

/* 高性能动画优化 */
@media (prefers-reduced-motion: reduce) {
    .tools-container.vip-container::before,
    .level-badge,
    .unlimited,
    .vip-content .action-btn::before,
    .vip-notice::before,
    .payment-content {
        animation: none !important;
    }
    
    .vip-content .action-btn:hover,
    .membership-table tbody tr:hover {
        transform: none !important;
    }
}

/* 可访问性增强 */
@media (prefers-contrast: high) {
    .table-container {
        border-width: 2px;
        background: var(--bg-primary);
    }
    
    .membership-table th {
        background: var(--primary-green);
        color: white;
    }
    
    .vip-content .action-btn {
        border-width: 2px;
    }
}

/* 打印样式 */
@media print {
    .tools-container.vip-container::before {
        display: none;
    }
    
    .table-container {
        background: white;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .membership-table th {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
    
    .vip-content .action-btn {
        display: none;
    }
    
    .payment-modal {
        display: none !important;
    }
    
    .promotion-notice {
        display: none !important;
    }
} 

/* 支付状态提示样式 */
.payment-status {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 1px solid #2196f3;
    border-radius: 8px;
    text-align: center;
}

.payment-status .status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #1976d2;
    font-weight: 500;
}

.payment-status .fa-spinner {
    color: #2196f3;
}

/* 支付结果通知样式 */
#payment-result {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 响应式优化 */
@media (max-width: 480px) {
    #payment-result {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* 微信支付未启用提示弹窗样式 */
.wechat-notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    /* 移除蒙版的过渡效果，直接显示/隐藏 */
}

/* .wechat-notice-overlay.fade-out - 蒙版无过渡效果 */

.wechat-notice-box {
    background: var(--bg-primary, #ffffff);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light, #e0e0e0);
    position: relative;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wechat-notice-overlay:not(.fade-out) .wechat-notice-box {
    transform: translateY(0) scale(1);
}

.wechat-notice-box.slide-out,
.wechat-notice-overlay.fade-out .wechat-notice-box {
    transform: translateY(30px) scale(0.9);
    opacity: 0;
}

.wechat-notice-content {
    margin-bottom: 1.5rem;
}

.wechat-notice-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff5722, #e64a19);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.wechat-notice-icon i {
    color: white;
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.wechat-notice-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wechat-notice-box p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.wechat-notice-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.wechat-notice-btn:hover {
    background: linear-gradient(135deg, #45a049, #388e3c);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
}

.wechat-notice-btn:active {
    transform: translateY(0);
}

.wechat-notice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.wechat-notice-btn:hover::before {
    left: 100%;
}

/* 深色主题下的微信支付提示弹窗 */
[data-theme="dark"] .wechat-notice-box {
    background: linear-gradient(135deg, rgba(42, 47, 58, 0.95), rgba(42, 47, 58, 0.9));
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

[data-theme="dark"] .wechat-notice-box h3 {
    color: #fff;
}

[data-theme="dark"] .wechat-notice-box p {
    color: #ccc;
}

/* 微信支付提示弹窗动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes slideOutDown {
    from { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
    to { 
        opacity: 0; 
        transform: translateY(30px) scale(0.9); 
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 移动端优化 */
@media (max-width: 480px) {
    .wechat-notice-box {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 16px;
    }
    
    .wechat-notice-box h3 {
        font-size: 1.2rem;
    }
    
    .wechat-notice-box p {
        font-size: 0.9rem;
    }
    
    .wechat-notice-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
} 

/* ================================================
   新增支付界面优化样式
   ================================================ */

/* 二维码支付容器 */
.qr-payment-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
}

.qr-code-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.qr-code-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
    background: white;
    border-radius: 16px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.qr-code-wrapper::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--primary-green), #4caf50, var(--primary-green-light));
    border-radius: 16px;
    z-index: -1;
    opacity: 0.8;
    animation: qrBorderGlow 2s ease-in-out infinite alternate;
}

@keyframes qrBorderGlow {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.02); }
}

#qr-code-canvas {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-placeholder {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.qr-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
    font-weight: 600;
}

.qr-placeholder small {
    font-size: 0.9rem;
    opacity: 0.7;
}

.qr-instructions {
    text-align: center;
    max-width: 300px;
}

.qr-instructions p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.qr-instructions i {
    color: #1677ff;
    font-size: 1.2rem;
}

.qr-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green) !important;
    background: linear-gradient(135deg, var(--primary-green), #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qr-debug-info {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
}

[data-theme="dark"] .qr-debug-info {
    background-color: #2d3748;
    color: #cbd5e0;
    border-left-color: #f6d55c;
}

/* 支付状态区域 */
.payment-status-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status-indicator i {
    color: var(--primary-green);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.countdown-timer {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    font-family: 'Monaco', 'Consolas', monospace;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

/* 手机支付提示 */
.mobile-payment-tip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.tip-content {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    max-width: 350px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.tip-content i {
    font-size: 4rem;
    color: #1677ff;
    margin-bottom: 1rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.tip-content p {
    margin: 1rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.tip-content small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.web-payment-btn {
    background: linear-gradient(135deg, var(--primary-green), #4caf50);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 156, 1, 0.3);
}

.web-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 156, 1, 0.4);
}

/* 我已支付按钮样式 */
.payment-btn.confirm {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.payment-btn.confirm:hover {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    transform: translateY(-1px);
}

.payment-btn.confirm:disabled {
    background: linear-gradient(135deg, #cccccc, #999999);
    cursor: not-allowed;
    transform: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qr-payment-container {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .qr-code-wrapper {
        width: 200px;
        height: 200px;
    }
    
    #qr-code-canvas {
        width: 160px;
        height: 160px;
    }
    
    .countdown-timer {
        font-size: 1.5rem;
        padding: 0.4rem 0.8rem;
    }
    
    .tip-content {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .tip-content i {
        font-size: 3rem;
    }
    
    /* 移动端支付按钮优化 */
    .payment-actions {
        flex-direction: column-reverse; /* 确认支付按钮在上方，取消按钮在下方 */
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding: 0 0.5rem; /* 添加左右内边距，避免按钮贴边 */
    }
    
    .payment-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 12px;
        min-height: 48px; /* 确保按钮高度适合触摸 */
    }
    
    /* 移动端确认按钮强调样式 */
    .payment-btn.confirm {
        box-shadow: 0 4px 20px rgba(74, 156, 1, 0.4);
        font-weight: 700; /* 加粗字体 */
    }
    
    /* 移动端取消按钮弱化样式 */
    .payment-btn.cancel {
        background: rgba(0, 0, 0, 0.05);
        color: var(--text-secondary);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: none;
    }
}

/* 支付方式选择优化 */
.payment-methods {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 140px;
    justify-content: center;
}

.payment-method:hover {
    border-color: var(--primary-green);
    background: rgba(74, 156, 1, 0.05);
    transform: translateY(-2px);
}

.payment-method.active {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, var(--primary-green), #4caf50);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 156, 1, 0.3);
}

.payment-method i {
    font-size: 1.2rem;
}

.payment-method.active i {
    color: white;
}

/* 支付模式选择样式 */
.payment-modes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.payment-mode {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 120px;
    justify-content: center;
    font-size: 0.9rem;
    color:#57b401;
}

.payment-mode:hover {
    border-color: var(--primary-green);
    background: rgba(74, 156, 1, 0.05);
    transform: translateY(-1px);
}

.payment-mode.active {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, var(--primary-green), #4caf50);
    color: white;
    box-shadow: 0 3px 12px rgba(74, 156, 1, 0.25);
}

.payment-mode i {
    font-size: 1rem;
}

.payment-mode.active i {
    color: white;
}

/* 模式描述样式 */
.mode-description {
    text-align: center;
    margin-top: 0.5rem;
}

.mode-desc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.mode-desc.active {
    color: var(--primary-green);
    opacity: 1;
    font-weight: 500;
}

.mode-desc i {
    font-size: 0.8rem;
}

/* 设备检测信息显示（调试用） */
.device-info {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 1000;
    display: none; /* 默认隐藏，调试时可显示 */
}

/* 暗色主题适配 */
[data-theme="dark"] .qr-code-wrapper {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .payment-status-section {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-color));
    border-color: var(--border-color);
}

[data-theme="dark"] .countdown-timer {
    background: var(--bg-secondary);
    color: var(--primary-green-light);
}

[data-theme="dark"] .tip-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .qr-placeholder p {
    color: var(--primary-green-light);
}

/* 暗色主题移动端按钮优化 */
@media (max-width: 768px) {
    [data-theme="dark"] .payment-btn.cancel {
        background: rgba(255, 255, 255, 0.05);
        color: #999;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    [data-theme="dark"] .payment-btn.cancel:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ccc;
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    /* 暗色主题中等屏幕支付弹窗按钮 */
    [data-theme="dark"] .payment-content .payment-btn.cancel {
        background: rgba(255, 255, 255, 0.05);
        color: #999;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    [data-theme="dark"] .payment-content .payment-btn.cancel:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ccc;
        border-color: rgba(255, 255, 255, 0.15);
    }
}

@media (max-width: 480px) {
    [data-theme="dark"] .payment-btn.cancel {
        background: rgba(255, 255, 255, 0.03);
        color: #888;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    /* 暗色主题小屏幕支付弹窗按钮 */
    [data-theme="dark"] .payment-content .payment-btn.cancel {
        background: rgba(255, 255, 255, 0.03);
        color: #888;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    [data-theme="dark"] .payment-content .payment-btn.cancel:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #aaa;
        border-color: rgba(255, 255, 255, 0.12);
    }
}

/* ================================================
   统一自定义弹窗样式
   ================================================ */

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    /* 移除蒙版的过渡效果，直接显示/隐藏 */
}

/* .custom-modal-overlay.show - 蒙版无过渡效果 */
/* .custom-modal-overlay.fade-out - 蒙版无过渡效果 */

.custom-modal-content {
    background: var(--bg-primary, #ffffff);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    text-align: center;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light, #e0e0e0);
    position: relative;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-modal-overlay.show .custom-modal-content {
    transform: translateY(0) scale(1);
}

.custom-modal-overlay.fade-out .custom-modal-content {
    transform: translateY(30px) scale(0.9);
    opacity: 0;
}

/* 添加闪光效果 */
.custom-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: modalShine 3s ease-in-out infinite;
}

@keyframes modalShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.modal-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    animation: iconFloat 2s ease-in-out infinite alternate;
}

@keyframes iconFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-5px); }
}

.modal-icon-wrapper i {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
}

.modal-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 2.5rem 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.modal-confirm-btn {
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.modal-confirm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.modal-confirm-btn:hover::before {
    left: 100%;
}

.modal-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.modal-confirm-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* 成功类型特殊效果 */
.custom-modal-content:has(.fa-check-circle) {
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 10px 40px rgba(82, 196, 26, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 10px 40px rgba(82, 196, 26, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5); }
}

/* 错误类型特殊效果 */
.custom-modal-content:has(.fa-times-circle) {
    animation: errorShake 1s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateY(0) scale(1); }
    10%, 30%, 50%, 70%, 90% { transform: translateY(-1px) scale(1.001); }
    20%, 40%, 60%, 80% { transform: translateY(1px) scale(0.999); }
}

/* 警告类型特殊效果 */
.custom-modal-content:has(.fa-exclamation-triangle) .modal-icon-wrapper {
    animation: warningBlink 1.5s ease-in-out infinite;
}

@keyframes warningBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 深色主题适配 */
[data-theme="dark"] .custom-modal-content {
    background: rgba(42, 47, 58, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 10px 40px rgba(74, 156, 1, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal-title {
    color: #fff;
}

[data-theme="dark"] .modal-message {
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .custom-modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .modal-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .modal-icon-wrapper i {
        font-size: 2rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-message {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .modal-confirm-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .custom-modal-content {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .modal-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
    }
    
    .modal-icon-wrapper i {
        font-size: 1.75rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .modal-message {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .modal-confirm-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }
}

/* 动画优化 */
@media (prefers-reduced-motion: reduce) {
    .custom-modal-overlay,
    .custom-modal-content,
    .modal-icon-wrapper,
    .modal-confirm-btn {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }
    
    .modal-confirm-btn:hover {
        transform: none !important;
    }
}

/* ================================================
   微信授权确认卡片样式
   ================================================ */

/* 遮罩层 */
.wechat-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 显示状态 */
.wechat-auth-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 授权卡片 */
.wechat-auth-card {
    background: var(--card-background, #ffffff);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    margin: 0 16px 0 16px;
    box-shadow: 
        0 -8px 32px rgba(0, 0, 0, 0.12),
        0 -4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 卡片显示动画 */
.wechat-auth-overlay.show .wechat-auth-card {
    transform: translateY(0);
}

/* 卡片头部 */
.auth-card-header {
    display: flex;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    position: relative;
}

/* 微信图标 */
.auth-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #07c160, #00a856);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.auth-icon i {
    font-size: 24px;
    color: white;
}

/* 标题 */
.auth-title {
    flex: 1;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    margin: 0;
}

/* 关闭按钮 */
.auth-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100, #f3f4f6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary, #6b7280);
    transition: all 0.2s ease;
}

.auth-close-btn:hover {
    background: var(--gray-200, #e5e7eb);
    color: var(--text-primary, #1f2937);
}

/* 卡片主体 */
.auth-card-body {
    padding: 24px;
}

/* 描述文字 */
.auth-description {
    font-size: 16px;
    color: var(--text-primary, #1f2937);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* 权限列表 */
.auth-permissions {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.auth-permissions li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
    color: var(--text-secondary, #6b7280);
}

.auth-permissions li i {
    color: #07c160;
    margin-right: 12px;
    font-size: 16px;
}

/* 隐私说明 */
.auth-note {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--blue-50, #eff6ff);
    border-radius: 12px;
    margin: 0;
    font-size: 14px;
    color: var(--blue-700, #1d4ed8);
    line-height: 1.5;
}

.auth-note i {
    margin-right: 8px;
    color: var(--blue-600, #2563eb);
}

/* 卡片底部 */
.auth-card-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
}

/* 按钮样式 */
.auth-btn {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* 取消按钮 */
.auth-btn-cancel {
    background: var(--gray-100, #f3f4f6);
    color: var(--text-secondary, #6b7280);
    border: 1px solid var(--border-color, #e5e7eb);
}

.auth-btn-cancel:hover {
    background: var(--gray-200, #e5e7eb);
    color: var(--text-primary, #1f2937);
}

/* 确认按钮 */
.auth-btn-confirm {
    background: linear-gradient(135deg, #07c160, #00a856);
    color: white;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.auth-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(7, 193, 96, 0.4);
}

.auth-btn-confirm:active {
    transform: translateY(0);
}

/* 加载状态 */
.auth-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 暗色主题适配 */
[data-theme="dark"] .wechat-auth-card {
    background: var(--card-background-dark, #1f2937);
    color: var(--text-primary-dark, #f9fafb);
}

[data-theme="dark"] .auth-title {
    color: var(--text-primary-dark, #f9fafb);
}

[data-theme="dark"] .auth-description {
    color: var(--text-primary-dark, #f9fafb);
}

[data-theme="dark"] .auth-permissions li {
    color: var(--text-secondary-dark, #d1d5db);
}

[data-theme="dark"] .auth-note {
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
}

[data-theme="dark"] .auth-close-btn {
    background: var(--gray-800, #1f2937);
    color: var(--text-secondary-dark, #d1d5db);
}

[data-theme="dark"] .auth-close-btn:hover {
    background: var(--gray-700, #374151);
    color: var(--text-primary-dark, #f9fafb);
}

[data-theme="dark"] .auth-btn-cancel {
    background: var(--gray-800, #1f2937);
    color: var(--text-secondary-dark, #d1d5db);
    border-color: var(--gray-700, #374151);
}

[data-theme="dark"] .auth-btn-cancel:hover {
    background: var(--gray-700, #374151);
    color: var(--text-primary-dark, #f9fafb);
}

/* 移动端适配 */
@media (max-width: 640px) {
    .wechat-auth-card {
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
    }
    
    .auth-card-header {
        padding: 20px 20px 16px 20px;
    }
    
    .auth-card-body {
        padding: 20px;
    }
    
    .auth-card-footer {
        padding: 16px 20px 20px 20px;
    }
    
    .auth-btn {
        height: 44px;
        font-size: 15px;
    }
    
    .auth-title {
        font-size: 18px;
    }
}

/* PC端适配 */
@media (min-width: 641px) {
    .wechat-auth-overlay {
        align-items: center;
        padding: 20px;
    }
    
    .wechat-auth-card {
        border-radius: 20px;
        transform: scale(0.9) translateY(20px);
        margin: 0;
        max-width: 420px;
    }
    
    .wechat-auth-overlay.show .wechat-auth-card {
        transform: scale(1) translateY(0);
    }
} 