/* 个人中心页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B0000;
    --secondary-color: #DAA520;
    --text-color: #5A3E36;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --nav-height: 60px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-gradient: linear-gradient(135deg, #F4F1DE 0%, #E7D7C1 100%);
    --font-family: "华文楷体", "Microsoft YaHei", sans-serif;
}

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    color: var(--text-color);
    margin: 0;
    padding: 60px 0 80px 0;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== 顶部导航栏 ===== */
.top-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(135deg, var(--primary-color) 0%, #A52A2A 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.top-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 100%;
}

.nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.nav-title i {
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.nav-spacer {
    width: 40px;
}

/* ===== 主容器 ===== */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* ===== 用户信息卡片 ===== */
.user-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.user-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.user-avatar i {
    font-size: 2.5rem;
    color: white;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.user-level {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 16px;
}

.user-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

/* ===== 菜单区域 ===== */
.menu-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    padding-left: 4px;
}

.menu-grid {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: rgba(139, 0, 0, 0.05);
    transform: translateX(4px);
}

.menu-item:active {
    background: rgba(139, 0, 0, 0.1);
    transform: translateX(2px);
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.menu-icon i {
    font-size: 1.2rem;
    color: white;
}

.menu-content {
    flex: 1;
}

.menu-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.menu-content p {
    font-size: 0.85rem;
    color: #666;
}

.menu-arrow {
    color: #ccc;
    font-size: 0.9rem;
}

/* ===== 成就系统 ===== */
.achievement-section {
    margin-bottom: 24px;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.achievement-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.achievement-item.locked {
    opacity: 0.6;
    background: #f5f5f5;
}

.achievement-item.unlocked {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(218, 165, 32, 0.1));
    border: 2px solid var(--secondary-color);
}

.achievement-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.achievement-item.locked .achievement-icon {
    background: #ccc;
}

.achievement-icon i {
    font-size: 1rem;
    color: white;
}

.achievement-info {
    flex: 1;
}

.achievement-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.achievement-info p {
    font-size: 0.75rem;
    color: #666;
}

.achievement-status {
    color: #ccc;
    font-size: 0.8rem;
}

.achievement-item.unlocked .achievement-status {
    color: var(--secondary-color);
}

/* ===== 底部导航栏 ===== */
.nav-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1002;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 0;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--secondary-color);
}

.nav-item {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 60px;
    background: linear-gradient(135deg, var(--primary-color), #A52A2A);
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

.nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--secondary-color), #FFD700);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4);
}

.nav-item i {
    font-size: 1.1rem;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
}

/* ===== 手机端适配 ===== */
@media (max-width: 768px) {
    .profile-container {
        padding: 16px 12px;
    }

    .user-card {
        padding: 20px;
        margin-bottom: 20px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .user-avatar {
        width: 70px;
        height: 70px;
    }

    .user-avatar i {
        font-size: 2rem;
    }

    .user-name {
        font-size: 1.3rem;
    }

    .user-stats {
        justify-content: center;
        gap: 16px;
    }

    .menu-item {
        padding: 14px 16px;
    }

    .menu-icon {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }

    .menu-icon i {
        font-size: 1.1rem;
    }

    .menu-content h4 {
        font-size: 0.95rem;
    }

    .menu-content p {
        font-size: 0.8rem;
    }

    .achievement-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .achievement-item {
        padding: 14px;
    }

    .achievement-icon {
        width: 32px;
        height: 32px;
    }

    .achievement-icon i {
        font-size: 0.9rem;
    }

    .nav-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        margin: 0;
        flex: 1 1 auto;
        justify-content: center;
        border-radius: 20px;
        height: 50px;
        display: flex;
        align-items: center;
    }

    .nav-item span {
        display: none;
    }

    .nav-item i {
        font-size: 1.2rem;
    }
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-card,
.menu-section,
.achievement-section {
    animation: fadeInUp 0.6s ease-out;
}

.menu-section:nth-child(2) {
    animation-delay: 0.1s;
}

.menu-section:nth-child(3) {
    animation-delay: 0.2s;
}

.achievement-section {
    animation-delay: 0.3s;
}

/* ===== 交互反馈 ===== */
.menu-item:active {
    transform: scale(0.98);
}

.achievement-item:active {
    transform: scale(0.98);
}

/* ===== 模态框增强样式 ===== */
.progress-content {
    max-height: 500px;
    overflow-y: auto;
}

.progress-summary {
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(218, 165, 32, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.summary-item {
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 4px;
}

.summary-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-details {
    margin-bottom: 20px;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.progress-label {
    font-weight: 600;
    color: var(--text-color);
}

.progress-value {
    font-weight: 700;
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-tips {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.progress-tips h4 {
    margin-bottom: 12px;
    color: var(--text-color);
}

.progress-tips ul {
    margin: 0;
    padding-left: 20px;
}

.progress-tips li {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.5;
}

/* ===== 收藏剧目样式 ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    display: block;
    margin-bottom: 16px;
}

.empty-state p {
    margin-bottom: 8px;
    color: #666;
}

.action-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 16px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.clear-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.clear-btn:hover {
    background: #c82333;
}

.favorite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    background: white;
    transition: var(--transition);
}

.favorite-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.favorite-info {
    flex: 1;
}

.favorite-info h5 {
    margin-bottom: 4px;
    color: var(--text-color);
    font-size: 1rem;
}

.favorite-info p {
    margin-bottom: 4px;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.favorite-date {
    font-size: 0.75rem;
    color: #999;
}

.favorite-actions {
    display: flex;
    gap: 8px;
}

.play-btn, .remove-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.play-btn {
    background: var(--secondary-color);
    color: white;
}

.play-btn:hover {
    background: #FFD700;
    transform: scale(1.1);
}

.remove-btn {
    background: #dc3545;
    color: white;
}

.remove-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* ===== 游戏记录样式 ===== */
.game-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(218, 165, 32, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.stat-card h4 {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
    transition: var(--transition);
}

.record-item.high-score {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border-color: var(--secondary-color);
}

.record-item:hover {
    box-shadow: var(--shadow-hover);
}

.record-rank {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rank-number {
    font-weight: 700;
    color: var(--primary-color);
}

.record-info {
    flex: 1;
    text-align: center;
}

.record-score {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.record-date {
    font-size: 0.8rem;
    color: #666;
}

.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.share-btn:hover {
    background: #FFD700;
    transform: scale(1.1);
}

/* ===== 学习笔记样式 ===== */
.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.add-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.add-btn:hover {
    background: #FFD700;
    transform: translateY(-1px);
}

.note-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    background: white;
    transition: var(--transition);
}

.note-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.note-content {
    flex: 1;
}

.note-content h5 {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 1rem;
}

.note-content p {
    margin-bottom: 8px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.note-date {
    font-size: 0.75rem;
    color: #999;
}

.note-actions {
    display: flex;
    gap: 8px;
}

.edit-btn, .delete-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.edit-btn {
    background: var(--secondary-color);
    color: white;
}

.edit-btn:hover {
    background: #FFD700;
    transform: scale(1.1);
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* ===== 表单样式 ===== */
.note-form, .feedback-form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.1);
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.save-btn, .submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.save-btn:hover, .submit-btn:hover {
    background: #A52A2A;
    transform: translateY(-1px);
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-btn:hover {
    background: #5a6268;
}

/* ===== 设置样式 ===== */
.setting-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.setting-section:last-child {
    border-bottom: none;
}

.setting-section h4 {
    margin-bottom: 16px;
    color: var(--text-color);
    font-size: 1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.setting-item label {
    font-weight: 600;
    color: var(--text-color);
}

.setting-item select {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
}

.danger-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.danger-btn:hover {
    background: #c82333;
}

/* ===== 深色模式样式 ===== */
body.dark-theme {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
}

body.dark-theme .user-card {
    background: #2d2d2d;
    border: 1px solid #404040;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-theme .user-card::before {
    background: linear-gradient(90deg, #8B0000, #DAA520);
}

body.dark-theme .user-name {
    color: #e0e0e0;
}

body.dark-theme .user-level {
    color: #DAA520;
}

body.dark-theme .stat-number {
    color: #8B0000;
}

body.dark-theme .stat-label {
    color: #b0b0b0;
}

body.dark-theme .menu-grid {
    background: #2d2d2d;
    border: 1px solid #404040;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-theme .menu-item {
    border-bottom-color: #404040;
}

body.dark-theme .menu-item:hover {
    background: rgba(139, 0, 0, 0.1);
}

body.dark-theme .menu-content h4 {
    color: #e0e0e0;
}

body.dark-theme .menu-content p {
    color: #b0b0b0;
}

body.dark-theme .achievement-item {
    background: #2d2d2d;
    border: 1px solid #404040;
}

body.dark-theme .achievement-item.locked {
    background: #1a1a1a;
    opacity: 0.7;
}

body.dark-theme .achievement-item.unlocked {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(218, 165, 32, 0.2));
    border-color: #DAA520;
}

body.dark-theme .achievement-info h4 {
    color: #e0e0e0;
}

body.dark-theme .achievement-info p {
    color: #b0b0b0;
}

body.dark-theme .achievement-status {
    color: #666;
}

body.dark-theme .achievement-item.unlocked .achievement-status {
    color: #DAA520;
}

body.dark-theme .nav-menu {
    background: rgba(45, 45, 45, 0.95);
    border-top-color: #DAA520;
}

body.dark-theme .nav-item {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.4);
}

body.dark-theme .nav-item.active {
    background: linear-gradient(135deg, #DAA520, #FFD700);
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4);
}

/* 深色模式模态框样式 */
body.dark-theme .modal-content {
    background: #2d2d2d;
    color: #e0e0e0;
}

body.dark-theme .modal-header {
    border-bottom-color: #404040;
}

body.dark-theme .modal-header h3 {
    color: #8B0000;
}

body.dark-theme .modal-close {
    color: #b0b0b0;
}

body.dark-theme .modal-body {
    color: #e0e0e0;
}

/* 深色模式进度统计样式 */
body.dark-theme .progress-summary {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(218, 165, 32, 0.2));
    border-color: rgba(139, 0, 0, 0.3);
}

body.dark-theme .summary-item {
    background: #1a1a1a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-theme .summary-label {
    color: #b0b0b0;
}

body.dark-theme .summary-value {
    color: #8B0000;
}

body.dark-theme .progress-label {
    color: #e0e0e0;
}

body.dark-theme .progress-value {
    color: #8B0000;
}

body.dark-theme .progress-bar {
    background: #404040;
}

body.dark-theme .progress-tips {
    background: #1a1a1a;
    border-left-color: #DAA520;
}

body.dark-theme .progress-tips h4 {
    color: #e0e0e0;
}

body.dark-theme .progress-tips li {
    color: #b0b0b0;
}

/* 深色模式收藏剧目样式 */
body.dark-theme .favorites-header {
    border-bottom-color: #404040;
}

body.dark-theme .favorite-item {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .favorite-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-theme .favorite-info h5 {
    color: #e0e0e0;
}

body.dark-theme .favorite-info p {
    color: #b0b0b0;
}

body.dark-theme .favorite-date {
    color: #888;
}

/* 深色模式游戏记录样式 */
body.dark-theme .stat-card {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(218, 165, 32, 0.2));
    border-color: rgba(139, 0, 0, 0.3);
}

body.dark-theme .stat-card h4 {
    color: #b0b0b0;
}

body.dark-theme .stat-value {
    color: #8B0000;
}

body.dark-theme .records-header {
    border-bottom-color: #404040;
}

body.dark-theme .record-item {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .record-item.high-score {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border-color: #DAA520;
}

body.dark-theme .record-score {
    color: #8B0000;
}

body.dark-theme .record-date {
    color: #b0b0b0;
}

/* 深色模式学习笔记样式 */
body.dark-theme .notes-header {
    border-bottom-color: #404040;
}

body.dark-theme .note-item {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .note-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-theme .note-content h5 {
    color: #e0e0e0;
}

body.dark-theme .note-content p {
    color: #b0b0b0;
}

body.dark-theme .note-date {
    color: #888;
}

/* 深色模式表单样式 */
body.dark-theme .form-group label {
    color: #e0e0e0;
}

body.dark-theme .form-group input,
body.dark-theme .form-group select,
body.dark-theme .form-group textarea {
    background: #1a1a1a;
    border-color: #404040;
    color: #e0e0e0;
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group select:focus,
body.dark-theme .form-group textarea:focus {
    border-color: #8B0000;
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.2);
}

body.dark-theme .char-count {
    color: #b0b0b0;
}

/* 深色模式设置样式 */
body.dark-theme .setting-section {
    border-bottom-color: #404040;
}

body.dark-theme .setting-section h4 {
    color: #e0e0e0;
}

body.dark-theme .setting-item label {
    color: #e0e0e0;
}

body.dark-theme .setting-item select {
    background: #1a1a1a;
    border-color: #404040;
    color: #e0e0e0;
}

/* 深色模式空状态样式 */
body.dark-theme .empty-state i {
    color: #666;
}

body.dark-theme .empty-state p {
    color: #b0b0b0;
}

/* ===== 主题切换动画 ===== */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.user-card,
.menu-grid,
.achievement-item,
.favorite-item,
.note-item,
.record-item,
.modal-content,
.progress-summary,
.summary-item,
.stat-card {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.menu-item,
.nav-item {
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ===== 主题切换按钮样式 ===== */
.theme-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #8B0000, #DAA520);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

/* 深色模式主题切换按钮 */
body.dark-theme .theme-toggle-btn {
    background: linear-gradient(135deg, #DAA520, #FFD700);
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4);
}

body.dark-theme .theme-toggle-btn:hover {
    box-shadow: 0 6px 16px rgba(218, 165, 32, 0.6);
}

/* ===== 手机端适配 ===== */
@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .game-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .favorite-item, .note-item, .record-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .favorite-actions, .note-actions {
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
}
