/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #0059ff, #4360e2, #0059ff, #0066ff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    padding: 20px;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.logo i {
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.nav-btn.primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 考试导航栏样式 */
.exam-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.exam-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: white;
}

.exam-timer i {
    color: #fbbf24;
}

#timer-display {
    font-size: 16px;
    min-width: 50px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: white;
    font-size: 14px;
}

.status-indicator i {
    color: #ff6b6b;
    animation: pulse 2s infinite;
}

.status-indicator.connected i {
    color: #51cf66;
    animation: none;
}

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

/* 主内容区样式 */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 欢迎页面样式 */
.welcome-section {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.welcome-section h1 {
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.welcome-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.welcome-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    width: 300px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.welcome-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.2);
}

.welcome-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-card ul {
    list-style-type: none;
}

.welcome-card ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    line-height: 1.5;
}

.welcome-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: bold;
}

/* 统计信息样式 */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-width: 150px;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-item i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 题型选择区样式 */
.question-type-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.type-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.type-btn {
    padding: 20px 25px;
    border-radius: 15px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

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

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

.type-btn:enabled {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.type-btn:enabled:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.type-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.type-btn.mock-exam:enabled {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.type-btn.mock-exam:enabled:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.type-btn i {
    font-size: 24px;
}

.type-btn span {
    font-weight: 600;
}

.type-btn small {
    font-size: 12px;
    opacity: 0.8;
}

/* 重置记录按钮样式 */
.reset-btn {
    padding: 20px 25px;
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    position: relative;
    overflow: hidden;
    margin-right: 15px;
}

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

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

.reset-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.reset-btn i {
    font-size: 24px;
}

.reset-btn span {
    font-weight: 600;
}

/* 重置记录确认对话框样式 */
#reset-confirm-modal .modal-content {
    max-width: 500px;
}

#reset-confirm-modal .modal-header {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

#reset-confirm-modal .modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#reset-confirm-modal .modal-header i {
    color: #fbbf24;
}

.reset-confirm-info {
    text-align: center;
}

.warning-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.reset-confirm-info h4 {
    color: #333;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.reset-details {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.warning-text {
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: left;
}

.reset-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.reset-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #555;
    font-size: 15px;
}

.reset-list li i {
    color: #dc2626;
    width: 20px;
}

.keep-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    color: #16a34a;
    font-weight: 500;
}

.keep-info i {
    color: #16a34a;
}

.danger-text {
    color: #dc2626;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.danger-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.danger-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* 重置成功提示对话框样式 */
#reset-success-modal .modal-content {
    max-width: 400px;
}

#reset-success-modal .modal-header {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

#reset-success-modal .modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reset-success-info {
    text-align: center;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.reset-success-info h4 {
    color: #333;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.success-text {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.refresh-text {
    color: #16a34a;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
}

.refresh-text i {
    animation: spin 2s linear infinite;
}

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

/* 题目显示区样式 */
.question-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.question-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.question-info span {
    font-size: 18px;
    font-weight: 500;
}

#question-type-label {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.question-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.action-btn.favorited {
    color: #facc15;
}

.question-content {
    margin-bottom: 30px;
}

.question-text {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.option:hover .option-marker {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 为选中状态添加闪烁动画提示 */
.option.selected {
    animation: selection-highlight 1s ease-out;
}

@keyframes selection-highlight {
    0% {
        background: rgba(59, 130, 246, 0.6);
        transform: translateX(12px) scale(1.05);
    }
    100% {
        background: rgba(59, 130, 246, 0.4);
        transform: translateX(8px);
    }
}

.option.selected {
    background: rgba(59, 130, 246, 0.4);
    border-color: #3b82f6;
    border-width: 2px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transform: translateX(8px);
    position: relative;
}

.option.selected::before {
    content: '';
    position: absolute;
    left: -3px;
    top: -2px;
    bottom: -2px;
    width: 4px;
    background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.option.correct {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.option.wrong {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.option-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    min-width: 30px;
    transition: all 0.3s ease;
}

/* 多选题使用方形标记 */
.question-section[data-type="multiple_choice"] .option-marker {
    border-radius: 8px;
}

.question-section[data-type="multiple_choice"] .option.selected .option-marker::after {
    content: '✓';
    font-size: 16px;
    font-weight: bold;
}

/* 判断题特殊样式 */
.question-section[data-type="true_false"] .option {
    font-size: 18px;
    font-weight: 500;
}

.question-section[data-type="true_false"] .option-text {
    font-size: 20px;
    font-weight: 600;
}

.question-section[data-type="true_false"] .option.selected {
    background: rgba(59, 130, 246, 0.5);
    transform: translateX(10px) scale(1.02);
}

.question-section[data-type="true_false"] .option-marker {
    width: 35px;
    height: 35px;
    font-size: 18px;
    font-weight: bold;
}

/* 为判断题的正确/错误选项添加特殊图标 */
.question-section[data-type="true_false"] .option:first-child .option-marker::after {
    content: '✓';
    color: #22c55e;
}

.question-section[data-type="true_false"] .option:last-child .option-marker::after {
    content: '✗';
    color: #ef4444;
}

.question-section[data-type="true_false"] .option.selected:first-child .option-marker::after {
    content: '✓';
    color: white;
}

.question-section[data-type="true_false"] .option.selected:last-child .option-marker::after {
    content: '✗';
    color: white;
}

.option.selected .option-marker {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
    animation: pulse-selected 2s infinite;
}

@keyframes pulse-selected {
    0% {
        box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 2px 15px rgba(59, 130, 246, 0.6);
    }
    100% {
        box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
    }
}

.option.correct .option-marker {
    background: #22c55e;
    color: white;
}

.option.wrong .option-marker {
    background: #ef4444;
    color: white;
}

.option-text {
    flex: 1;
}

.answer-input-container {
    margin-top: 20px;
}

#answer-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

#answer-input:focus {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 4px 20px rgba(59, 130, 246, 0.3);
    transform: scale(1.02);
}

/* 输入框有内容时的样式 */
#answer-input:not(:placeholder-shown) {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.7);
    color: #60a5fa;
    font-weight: 500;
}

/* 填空题特殊样式 */
.question-section[data-type="fill_blank"] #answer-input {
    border-width: 2px;
    font-size: 18px;
    padding: 20px 25px;
    position: relative;
}

.question-section[data-type="fill_blank"] #answer-input:focus {
    animation: input-glow 2s infinite;
}

@keyframes input-glow {
    0% {
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 4px 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.3), 0 4px 25px rgba(59, 130, 246, 0.4);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 4px 20px rgba(59, 130, 246, 0.3);
    }
}

.question-section[data-type="fill_blank"] .answer-input-container::before {
    content: '💡 请输入您的答案';
    position: absolute;
    top: -25px;
    left: 5px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.question-section[data-type="fill_blank"] .answer-input-container {
    position: relative;
    margin-top: 40px;
}

#answer-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#answer-input.correct-answer {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

#answer-input.wrong-answer {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.question-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.answer-feedback {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.feedback-header {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.feedback-correct {
    color: #4ade80;
}

.feedback-wrong {
    color: #f87171;
}

.feedback-unanswered {
    color: #fbbf24;
}

.correct-answer {
    background: rgba(74, 222, 128, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-left: 4px solid #4ade80;
}

.explanation {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    line-height: 1.6;
}

/* 按钮样式 */
.nav-btn {
    padding: 12px 25px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.primary-btn {
    padding: 12px 25px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 底部状态栏样式 */
.footer {
    margin-top: 20px;
}

.status-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Loading组件样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeInLoading 0.3s ease;
}

.loading-spinner {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 40px 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    animation: slideInLoading 0.4s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    position: relative;
}

.spinner-rotate {
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
}

.loading-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: inline-block;
}

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

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

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

/* 消息提示区域 */
#message-area {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}

.message {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: messageSlideIn 0.3s ease;
    border-left: 4px solid #3b82f6;
}

.message.success {
    border-left-color: #4ade80;
}

.message.error {
    border-left-color: #f87171;
}

.message.warning {
    border-left-color: #facc15;
}

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

@keyframes highlightAnalysis {
    0% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 40px rgba(255, 193, 7, 0.4);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        transform: scale(1);
    }
}

/* 考试结果样式 */
.exam-result-content {
    text-align: center;
    padding: 20px;
}

.score-display {
    margin-bottom: 30px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.score-circle span {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
}

.score-circle small {
    font-size: 14px;
    opacity: 0.8;
}

.exam-statistics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.stat-label {
    font-weight: 500;
    color: #333;
}

.correct-text {
    color: #10b981;
    font-weight: bold;
}

.wrong-text {
    color: #ef4444;
    font-weight: bold;
}

/* 交卷确认样式 */
.confirm-content {
    text-align: center;
    padding: 20px;
}

.warning-icon {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 20px;
}

.confirm-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.exam-progress {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.progress-item span:first-child {
    font-size: 14px;
    color: #666;
}

.progress-item span:last-child {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.warning-text {
    color: #ef4444;
    font-weight: 500;
    font-size: 14px;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease;
}

.modal-content.large {
    max-width: 900px;
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px 30px 30px 30px;
    color: #333;
    max-height: 70vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 0 20px 20px;
}

/* 考试配置样式 */
.config-section h3 {
    color: #667eea;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-desc {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.config-item {
    background: rgba(103, 126, 234, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(103, 126, 234, 0.1);
}

.config-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group input {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(103, 126, 234, 0.1);
}

.available-count {
    font-size: 12px;
    color: #666;
}

.exam-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.summary-item span:first-child {
    font-size: 14px;
    opacity: 0.9;
}

.summary-item span:last-child {
    font-size: 20px;
    font-weight: 700;
}

/* 题目列表样式 */
.questions-list {
    max-height: 400px;
    overflow-y: auto;
}

.question-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.question-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.question-type-badge {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.question-item-actions {
    display: flex;
    gap: 10px;
}

.question-item-text {
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
}

.question-item-answer {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #166534;
}

/* 过滤器样式 */
.wrong-questions-filter,
.favorites-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.wrong-questions-filter select,
.favorites-filter select {
    padding: 8px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.wrong-questions-filter select:focus,
.favorites-filter select:focus {
    border-color: #667eea;
}

/* 按钮样式补充 */
.secondary-btn {
    padding: 12px 25px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.danger-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.danger-btn:hover {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    transform: translateY(-2px);
}

.small-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.small-btn.practice {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.small-btn.remove {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.small-btn:hover {
    transform: translateY(-1px);
}

/* 工具类 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .welcome-content {
        flex-direction: column;
        align-items: center;
    }
    
    .welcome-card {
        width: 100%;
        max-width: 400px;
    }
    
    .stats-section {
        flex-direction: column;
        align-items: center;
    }
    
    .type-buttons {
        flex-direction: column;
    }
    
    .type-btn {
        width: 100%;
    }
    
    .question-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn, .primary-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========== 用户系统样式 ========== */

/* 首页专用元素 */
.home-only {
    display: flex;
}

.home-only.hidden {
    display: none !important;
}

/* 用户认证表单样式 */
.auth-container {
    padding: 10px 0;
    position: relative;
}

.auth-form {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.form-group input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.form-group input::placeholder {
    color: #9ca3af;
    transition: opacity 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.form-group input:focus::placeholder {
    opacity: 0.6;
}

.form-group input:valid {
    border-color: #10b981;
    background: linear-gradient(145deg, #ffffff, #f0fdf4);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    background: linear-gradient(145deg, #ffffff, #fef2f2);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 添加输入框图标 */
.form-group::before {
    content: '';
    position: absolute;
    left: 16px;
    top: calc(50% + 14px);
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.form-group:has(input[type="email"])::before {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%236b7280" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M16 12a4 4 0 10-8 0 4 4 0 008 0zm0 0v1.5a2.5 2.5 0 005 0V12a9 9 0 10-9 9m4.5-1.206a8.959 8.959 0 01-4.5 1.207"/></svg>');
}

.form-group:has(input[type="password"])::before {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%236b7280" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"/></svg>');
}

.form-group:focus-within::before {
    opacity: 0.8;
}

.form-group:focus-within:has(input[type="email"])::before {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%233b82f6" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M16 12a4 4 0 10-8 0 4 4 0 008 0zm0 0v1.5a2.5 2.5 0 005 0V12a9 9 0 10-9 9m4.5-1.206a8.959 8.959 0 01-4.5 1.207"/></svg>');
}

.form-group:focus-within:has(input[type="password"])::before {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%233b82f6" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"/></svg>');
}

/* 登录/注册按钮增强 */
.auth-form .primary-btn {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.auth-form .primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.auth-form .primary-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.auth-form .primary-btn:hover::before {
    left: 100%;
}

.auth-form .primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* 邮箱输入组合样式 */
.email-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 4px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.email-input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

#register-username {
    flex: 1;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 16px;
    color: #1f2937;
    font-size: 16px;
    outline: none;
    min-width: 0;
    border-radius: 8px;
}

#register-username::placeholder {
    color: rgba(31, 41, 55, 0.6);
}

.email-separator {
    color: #3b82f6;
    font-weight: 600;
    font-size: 18px;
    margin: 0 8px;
    user-select: none;
}

#email-domain {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #1f2937;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    font-weight: 500;
}

#email-domain:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

#email-domain option {
    background: #1f2937;
    color: white;
    padding: 8px;
}

/* 响应式邮箱输入 */
@media (max-width: 480px) {
    .email-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    
    .email-separator {
        text-align: center;
        margin: 4px 0;
    }
    
    #register-username,
    #email-domain {
        width: 100%;
        min-width: auto;
    }
}

/* 验证码相关样式 */
.verification-group {
    position: relative;
}

.verification-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.verification-input-group input {
    flex: 1;
    min-width: 0;
}

.send-code-btn {
    padding: 12px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.send-code-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.send-code-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.send-code-btn:hover::before {
    left: 100%;
}

.send-code-btn:active {
    transform: translateY(0);
}

.send-code-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.send-code-btn:disabled:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

.send-code-btn:disabled:hover::before {
    left: -100%;
}

/* 倒计时状态 */
.send-code-btn.countdown {
    background: #6b7280;
    cursor: not-allowed;
    color: #d1d5db;
}

.send-code-btn.countdown:hover {
    background: #6b7280;
    transform: none;
    box-shadow: none;
}

/* 验证码输入框特殊样式 */
#verification-code {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

#verification-code:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

#verification-code::placeholder {
    letter-spacing: normal;
    font-family: inherit;
    font-weight: normal;
    font-size: 14px;
}

/* 联系官方按钮样式 */
.contact-official-section {
    text-align: center;
    margin-bottom: 15px;
}

.contact-official-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(99, 102, 241, 0.3);
    min-width: 200px;
}

.contact-official-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5b5bd6 0%, #7c3aed 50%, #9333ea 100%);
}

.contact-official-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(99, 102, 241, 0.3);
}

.contact-official-btn i:first-child {
    font-size: 18px;
    animation: phone-ring 2s infinite;
}

.contact-official-btn i:last-child {
    font-size: 14px;
    animation: bounce-down 2s infinite;
}

@keyframes phone-ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-official-btn {
        min-width: 180px;
        padding: 10px 20px;
        font-size: 14px;
        gap: 8px;
    }
    
    .contact-official-section {
        margin-bottom: 12px;
    }
}

/* 联系客服高亮效果 */
.contact-section.highlight-contact {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    transition: all 0.6s ease;
    animation: contact-highlight 2s ease-in-out;
}

@keyframes contact-highlight {
    0%, 100% {
        box-shadow: 0 0 0 rgba(59, 130, 246, 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
        transform: scale(1.02);
    }
}

/* CDK激活区域样式 */
.cdk-activation-section {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.cdk-activation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.cdk-activation-section h4 {
    color: #f59e0b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cdk-activation-section h4 i {
    font-size: 20px;
}

.cdk-note {
    color: #92400e;
    font-size: 14px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.cdk-input-container {
    position: relative;
    z-index: 1;
}

.cdk-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 8px;
}

#cdk-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
    transition: all 0.3s ease;
}

#cdk-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

#cdk-input::placeholder {
    color: rgba(31, 41, 55, 0.5);
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
}

.activate-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.activate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.activate-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

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

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

.activate-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cdk-hint {
    color: rgba(146, 64, 14, 0.8);
    font-size: 12px;
    font-style: italic;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .verification-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .send-code-btn {
        min-width: auto;
        width: 100%;
    }
    
    .cdk-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .activate-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 登录提示样式 */
.login-tip {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #3b82f6;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

/* 当注册表单显示时隐藏登录提示（通过JS控制） */
.login-tip.hidden {
    display: none;
}

.login-tip i {
    font-size: 16px;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: #6b7280;
    font-size: 14px;
    position: relative;
}

.auth-switch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
    transform: translateY(-50%);
}

.auth-switch span {
    background: #fff;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.auth-switch a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-switch a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
}

.auth-switch a:hover {
    color: #1d4ed8;
}

.auth-switch a:hover::after {
    width: 100%;
}

/* 个人中心样式 */
.user-center-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: slideInUp 0.6s ease-out;
}

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

.user-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-info-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.user-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
}

.user-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 0;
}

.user-info-card > * {
    position: relative;
    z-index: 1;
}

.user-avatar {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.95);
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-info-card:hover .user-avatar {
    transform: scale(1.05) rotate(5deg);
}

.user-details {
    flex: 1;
}

.user-details h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.user-details p {
    margin: 0 0 12px 0;
    opacity: 1;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.membership-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.membership-badge::before {
    content: '☆';
    font-size: 14px;
}

.membership-badge.vip {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    border-color: #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.membership-badge.vip::before {
    content: '★';
    color: #f59e0b;
}

.membership-badge.svip {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border-color: #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.membership-badge.svip::before {
    content: '★';
    color: #fbbf24;
}

.membership-badge.sssvip {
    background: linear-gradient(45deg, #8e44ad, #3742fa);
    color: white;
    border-color: #8e44ad;
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

.membership-badge.sssvip::before {
    content: '★';
    color: #facc15;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-actions .primary-btn,
.user-actions .secondary-btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    white-space: nowrap;
}

.user-actions .primary-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.user-actions .primary-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.user-actions .secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.user-actions .secondary-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

/* 数据管理样式 */
.data-management,
.learning-stats {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.data-management:hover,
.learning-stats:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.data-management h3,
.learning-stats h3 {
    margin: 0 0 16px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.data-management h3::after,
.learning-stats h3::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #3b82f6, transparent);
    margin-left: 16px;
}

.data-management h3 i,
.learning-stats h3 i {
    color: #3b82f6;
    font-size: 18px;
    padding: 6px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
}

.data-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.action-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 72px;
    width: 100%;
}

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

.action-btn:not(:disabled):hover {
    border-color: #3b82f6;
    background: linear-gradient(145deg, #f8faff, #e0f2fe);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.action-btn:not(:disabled):hover::before {
    left: 100%;
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(145deg, #f9fafb, #f3f4f6);
    border-color: #d1d5db;
}

.action-btn:disabled::before {
    display: none;
}

.action-btn i {
    font-size: 24px;
    color: #3b82f6;
    padding: 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:not(:disabled):hover i {
    color: #1d4ed8;
    background: rgba(29, 78, 216, 0.15);
    transform: scale(1.05);
}

.action-btn-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.action-btn span {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.2;
}

.action-btn small {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 400;
}

/* 学习统计样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 20px 16px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-item:hover {
    border-color: #3b82f6;
    background: linear-gradient(145deg, #f8faff, #e0f2fe);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
    transform: translateY(-6px) scale(1.02);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    line-height: 1;
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover .stat-number::after {
    opacity: 1;
}

.stat-label {
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
    color: #1f2937;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-info-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .user-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .data-actions {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .user-details h3 {
        font-size: 20px;
    }
    
    .auth-form {
        padding: 0 10px;
    }
}

/* ========== 会员系统样式 ========== */

/* 会员按钮样式 */
.membership-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    border: 2px solid #f59e0b;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

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

.membership-btn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

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

/* 会员弹窗样式 */
#membership-modal .modal-content {
    width: 90% !important;
    max-height: 85vh;
    overflow-y: auto;
}

/* 确保large类在会员弹窗中生效 */
#membership-modal .modal-content.large {
    max-width: 900px !important;
}

#membership-modal .modal-header h3 {
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

#membership-modal .modal-header i {
    color: #f59e0b;
    font-size: 26px;
}

/* 会员套餐表格 */
.membership-table-container {
    margin-bottom: 24px;
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.membership-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    font-size: 13px;
}

.membership-table thead {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.membership-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.membership-table th:first-child {
    min-width: 140px;
}

.membership-table th:nth-child(2) {
    min-width: 80px;
    text-align: center;
}

.membership-table th:nth-child(3) {
    min-width: 200px;
}

.membership-table th:nth-child(4) {
    min-width: 100px;
    text-align: center;
}

.membership-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e5e7eb;
}

.membership-table tbody tr:hover {
    background: linear-gradient(135deg, #f8faff 0%, #e0f2fe 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.membership-table tbody tr.recommended {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
}

.membership-table tbody tr.recommended:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2);
}

.membership-table td {
    padding: 16px 12px;
    vertical-align: top;
    border-right: 1px solid #f3f4f6;
}

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

.plan-type {
    position: relative;
}

.type-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    margin-bottom: 6px;
}

.type-badge.vip {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.type-badge.svip {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.type-badge.sssvip {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.recommended-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 3px;
    animation: pulse 2s infinite;
}

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

.plan-days {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #1f2937;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0 auto;
    width: fit-content;
}

.plan-benefits ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.plan-benefits li {
    padding: 4px 0;
    color: #374151;
    font-weight: 500;
    position: relative;
    padding-left: 16px;
    font-size: 12px;
}

.plan-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 12px;
}

.plan-price {
    text-align: center;
}

.price-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 3px;
}

.price-unit {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* 联系方式样式 */
.contact-section {
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.contact-section h4 {
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-section h4 i {
    color: #3b82f6;
    font-size: 18px;
}

.contact-note {
    color: #6b7280;
    font-size: 13px;
    margin: 0 0 20px 0;
    text-align: center;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.contact-method {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-method:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.12);
    transform: translateY(-4px);
}

.contact-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-header i {
    font-size: 20px;
    padding: 10px;
    border-radius: 10px;
}

.contact-header .fa-qq {
    color: #12b7f5;
    background: rgba(18, 183, 245, 0.1);
}

.contact-header .fa-weixin {
    color: #07c160;
    background: rgba(7, 193, 96, 0.1);
}

.contact-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 3px 0;
}

.contact-id {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    background: rgba(59, 130, 246, 0.1);
    padding: 3px 6px;
    border-radius: 4px;
}

.qr-code {
    margin-top: 12px;
}

.qr-code img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    object-fit: cover;
}

.qr-code:hover img {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.qr-code p {
    margin: 8px 0 0 0;
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

/* 会员弹窗响应式设计 */
@media (max-width: 768px) {
    .membership-table-container {
        margin: 0 -10px 32px -10px;
        border-radius: 0;
    }
    
    .membership-table {
        font-size: 12px;
        border-radius: 0;
    }
    
    .membership-table th {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .membership-table td {
        padding: 15px 8px;
    }
    
    .type-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .plan-days {
        font-size: 16px;
        padding: 8px;
    }
    
    .plan-benefits li {
        font-size: 12px;
        padding: 4px 0;
    }
    
    .price-value {
        font-size: 24px;
    }
    
    .price-unit {
        font-size: 12px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #membership-modal .modal-content {
        width: 95% !important;
        margin: 20px auto;
        max-height: 85vh;
    }
    
    #membership-modal .modal-content.large {
        max-width: 95% !important;
    }
    
    .contact-method {
        padding: 16px;
    }
    
    .qr-code img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .membership-table th,
    .membership-table td {
        padding: 10px 6px;
    }
    
    .membership-table th:nth-child(3),
    .membership-table td:nth-child(3) {
        display: none;
    }
    
    .plan-benefits {
        display: none;
    }
    
    .type-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .plan-days {
        font-size: 14px;
        padding: 6px;
    }
    
    .price-value {
        font-size: 20px;
    }
}

/* ========== 登录提示模态框样式 ========== */
.modal .modal-content h4 {
    color: #1f2937;
    font-weight: 700;
    margin: 0 0 12px 0;
    font-size: 18px;
}

.modal .modal-content p {
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.modal .modal-content .primary-btn i {
    margin-right: 8px;
}

.modal .modal-content > div[style*="text-align: center"] {
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    padding: 30px 20px;
    margin: 10px 0;
}

.modal .modal-content > div[style*="text-align: center"] > div[style*="font-size: 48px"] {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3);
    animation: bounce 2s infinite;
}

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

/* ========== 会员提示模态框样式 ========== */
.modal .modal-content > div[style*="text-align: center"] > div[style*="font-size: 48px"]:has-text("💎") {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3);
    animation: diamondSpin 3s infinite ease-in-out;
}

@keyframes diamondSpin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.1);
    }
}

.modal .modal-content .membership-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    border: 2px solid #f59e0b;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

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

.modal .modal-content .membership-btn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

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

.modal .modal-content .membership-btn i {
    margin-right: 8px;
    font-size: 14px;
}

/* ========== 免费版弹窗样式 ========== */
#free-version-modal .modal-content {
    max-width: 480px;
    width: 90%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#free-version-modal .modal-header {
    background: linear-gradient(135deg, #0e34ca 0%, #68108b 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
}

#free-version-modal .modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

#free-version-modal .modal-header i {
    font-size: 24px;
    color: #fbbf24;
}

#free-version-modal .modal-header .close-btn {
    color: white;
    font-size: 24px;
    opacity: 0.8;
}

#free-version-modal .modal-header .close-btn:hover {
    opacity: 1;
}

.free-version-info {
    text-align: center;
    padding: 24px;
    color: #1f2937;
}

.free-version-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 2s ease-in-out infinite;
}

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

.free-version-info h4 {
    font-size: 24px;
    color: #059669;
    margin-bottom: 12px;
    font-weight: 700;
}

.main-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #4b5563;
}

.highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
    font-size: 17px;
}

.features-comparison {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-item:last-child {
    border-bottom: none;
}

.feature-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.feature-status {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.feature-status.available {
    color: #059669;
    background: #d1fae5;
}

.feature-status.limited {
    color: #d97706;
    background: #fef3c7;
}

.contact-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.contact-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 12px;
}

.contact-options {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1e40af;
    background: rgba(59, 130, 246, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
}

.contact-option i {
    font-size: 16px;
    color: #3b82f6;
}

.disclaimer {
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #free-version-modal .modal-content {
        max-width: 95%;
        margin: 20px auto;
    }
    
    .free-version-info {
        padding: 20px 16px;
    }
    
    .free-version-icon {
        font-size: 48px;
    }
    
    .free-version-info h4 {
        font-size: 20px;
    }
    
    .main-text {
        font-size: 15px;
    }
    
    .contact-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-option {
        justify-content: center;
    }
}

/* ========== 登录提示弹窗样式 ========== */
#login-required-modal .modal-content {
    max-width: 480px;
    width: 90%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#login-required-modal .modal-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: none;
}

#login-required-modal .modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

#login-required-modal .modal-header i {
    font-size: 24px;
    color: #fbbf24;
}

#login-required-modal .modal-header .close-btn {
    color: white;
    font-size: 24px;
    opacity: 0.8;
}

#login-required-modal .modal-header .close-btn:hover {
    opacity: 1;
}

.login-required-info {
    text-align: center;
    padding: 24px;
    color: #1f2937;
}

.login-required-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

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

.login-required-info h4 {
    font-size: 24px;
    color: #dc2626;
    margin-bottom: 12px;
    font-weight: 700;
}

.login-required-info .main-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #4b5563;
}

.features-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

.feature-item i {
    font-size: 16px;
    color: #3b82f6;
    width: 20px;
    text-align: center;
}

.hint-text {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
    margin: 0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #login-required-modal .modal-content {
        max-width: 95%;
        margin: 20px auto;
    }
    
    .login-required-info {
        padding: 20px 16px;
    }
    
    .login-required-icon {
        font-size: 48px;
    }
    
    .login-required-info h4 {
        font-size: 20px;
    }
    
    .login-required-info .main-text {
        font-size: 15px;
    }
    
    .features-info {
        padding: 16px;
    }
}

/* 🔄 云同步确认对话框样式 */
.modal-overlay.sync-confirm-overlay {
    z-index: 1500; /* 高于普通模态框的1000 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.sync-confirm-modal {
    max-width: 480px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1501; /* 确保内容在overlay之上 */
}

.sync-confirm-modal .modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 20px 25px;
    text-align: center;
}

.sync-confirm-modal .modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.sync-confirm-modal .modal-body {
    padding: 25px;
}

.sync-message {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-left: 4px solid #3b82f6;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.sync-message p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #374151;
}

.sync-message p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: #1f2937;
}

.sync-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sync-options .btn {
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.sync-options .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sync-options .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.sync-options .btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.sync-options .btn-secondary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.sync-options .btn-secondary:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.sync-options .btn-light {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.sync-options .btn-light:hover {
    background: #e2e8f0;
    color: #475569;
}

/* 云同步对话框响应式设计 */
@media (max-width: 640px) {
    .sync-confirm-modal {
        max-width: 95%;
        margin: 20px;
    }
    
    .modal-overlay.sync-confirm-overlay {
        padding: 20px;
    }
    
    .sync-confirm-modal .modal-header {
        padding: 16px 20px;
    }
    
    .sync-confirm-modal .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .sync-confirm-modal .modal-body {
        padding: 20px;
    }
    
    .sync-message {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .sync-options .btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}

/* 🔐 修改密码模态框样式 */
#change-password-modal .modal-content {
    max-width: 500px;
    width: 90%;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group input {
    flex: 1;
    padding-right: 45px;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 10;
}

.toggle-password-btn:hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.05);
}

.toggle-password-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.password-hint {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* 密码强度指示器 */
.password-strength-indicator {
    margin: 15px 0;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.strength-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-progress {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, #ef4444 0%, #f97316 25%, #eab308 50%, #22c55e 75%, #16a34a 100%);
}

.strength-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

/* 密码强度等级样式 */
.strength-weak .strength-progress {
    width: 25%;
    background: #ef4444;
}

.strength-fair .strength-progress {
    width: 50%;
    background: #f97316;
}

.strength-good .strength-progress {
    width: 75%;
    background: #eab308;
}

.strength-strong .strength-progress {
    width: 100%;
    background: #16a34a;
}

/* 修改密码按钮样式 */
#change-password-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

#change-password-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

#change-password-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
}

#change-password-btn i {
    font-size: 0.875rem;
}

/* 表单操作按钮样式 */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.form-actions .secondary-btn {
    padding: 10px 20px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.form-actions .secondary-btn:hover {
    background: #e5e7eb;
}

.form-actions .primary-btn {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 响应式设计 */
@media (max-width: 640px) {
    #change-password-modal .modal-content {
        max-width: 95%;
        margin: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .secondary-btn,
    .form-actions .primary-btn {
        width: 100%;
        justify-content: center;
    }
    
    #change-password-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

