/* CSS Variables for easy color theme customization */
:root {
    /* 默认主题 (蓝绿色系) */
    --primary-color: #3a506b;
    --primary-light: #5bc0de;
    --secondary-color: #5bc0de;
    --accent-color: #1cb495;
    --light-color: #f8f9fa;
    --dark-color: #1c2541;
    --success-color: #63cc7e;
    --info-color: #5bc0de;
    --warning-color: #f3b14c;
    --danger-color: #e76f51;
    --gradient-primary: linear-gradient(135deg, #3a506b, #5bc0de);
    --gradient-accent: linear-gradient(135deg, #1cb495, #5bc0de);
    --background-color: #f5f7fa;
    --card-background: #ffffff;
    --text-color: #34495e;
    --text-secondary: #7f8c8d;
    --subtle-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); 
    --hover-glow-color: rgba(58, 80, 107, 0.2);
    --border-color: #e8e8e8;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --chart-color-1: #3a506b;
    --chart-color-2: #1cb495;
    --chart-color-3: #f3b14c;
    --chart-color-4: #9b59b6;
    --bookmark-color: #e74c3c;
    --primary-color-rgb: 58, 80, 107;
}

/* 紫粉色系主题 */
body.theme-purple {
    --primary-color: #6a1b9a;
    --primary-light: #ec407a;
    --secondary-color: #ec407a;
    --accent-color: #ab47bc;
    --light-color: #f8f9fa;
    --dark-color: #4a148c;
    --success-color: #66bb6a;
    --info-color: #26c6da;
    --warning-color: #ffca28;
    --danger-color: #ef5350;
    --gradient-primary: linear-gradient(135deg, #6a1b9a, #ec407a);
    --gradient-accent: linear-gradient(135deg, #ab47bc, #ec407a);
    --background-color: #f5f7fa;
    --card-background: #ffffff;
    --text-color: #34495e;
    --text-secondary: #7f8c8d;
    --subtle-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --hover-glow-color: rgba(106, 27, 154, 0.2);
    --border-color: #e8e8e8;
    --chart-color-1: #6a1b9a;
    --chart-color-2: #ab47bc;
    --chart-color-3: #ec407a;
    --chart-color-4: #f48fb1;
    --bookmark-color: #e91e63;
    --primary-color-rgb: 106, 27, 154;
}

/* 橙棕色系主题 */
body.theme-orange {
    --primary-color: #e65100;
    --primary-light: #ffb74d;
    --secondary-color: #ffb74d;
    --accent-color: #ff8a65;
    --light-color: #fff8e1;
    --dark-color: #bf360c;
    --success-color: #8bc34a;
    --info-color: #4dd0e1;
    --warning-color: #ffd54f;
    --danger-color: #ff5252;
    --gradient-primary: linear-gradient(135deg, #e65100, #ffb74d);
    --gradient-accent: linear-gradient(135deg, #ff8a65, #ffb74d);
    --background-color: #fffdf7;
    --card-background: #ffffff;
    --text-color: #4e342e;
    --text-secondary: #8d6e63;
    --subtle-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --hover-glow-color: rgba(230, 81, 0, 0.2);
    --border-color: #ffe0b2;
    --chart-color-1: #e65100;
    --chart-color-2: #ff8a65;
    --chart-color-3: #ffb74d;
    --chart-color-4: #ffe0b2;
    --bookmark-color: #ff5722;
    --primary-color-rgb: 230, 81, 0;
}

/* 夜间模式主题 */
body.theme-dark {
    --primary-color: #80deea;
    --primary-light: #4f5b62;
    --secondary-color: #4f5b62;
    --accent-color: #80deea;
    --light-color: #eceff1;
    --dark-color: #000a12;
    --success-color: #69f0ae;
    --info-color: #82b1ff;
    --warning-color: #ffcc80;
    --danger-color: #ff8a80;
    --gradient-primary: linear-gradient(135deg, #263238, #4f5b62);
    --gradient-accent: linear-gradient(135deg, #80deea, #4f5b62);
    --background-color: #121212;
    --card-background: #1e1e1e;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --subtle-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    --hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    --hover-glow-color: rgba(128, 222, 234, 0.2);
    --border-color: #2d4263;
    --chart-color-1: #80deea;
    --chart-color-2: #4dd0e1;
    --chart-color-3: #00bcd4;
    --chart-color-4: #00acc1;
    --bookmark-color: #00e5ff;
    --primary-color-rgb: 128, 222, 234;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 7px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    border-radius: 7px;
    border: 3px solid #f5f5f5;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--primary-light), var(--secondary-color));
}

/* Print-friendly styles */
@media print {
    body {
        background-color: white !important;
        color: black !important;
        font-size: 12pt !important;
        width: 100% !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        box-shadow: none !important;
    }
    
    .content-wrapper {
        display: block !important;
    }
    
    .main-content {
        width: 100% !important;
    }
    
    .toc {
        display: none !important;
    }
    
    .module, .sub-module, .micro-module {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin-bottom: 15px !important;
    }
    
    header {
        background: white !important;
        color: black !important;
        text-align: center !important;
        padding: 10px 0 !important;
        margin-bottom: 20px !important;
        box-shadow: none !important;
        break-after: avoid !important;
        page-break-after: avoid !important;
    }
    
    header h1 {
        color: black !important;
        text-shadow: none !important;
        font-size: 24pt !important;
    }
    
    .back-to-top, .print-button {
        display: none !important;
    }
    
    /* 对表格的特殊处理 */
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        page-break-inside: avoid !important;
    }
    
    th {
        background-color: #f0f0f0 !important;
        color: black !important;
    }
    
    tr, td, th {
        page-break-inside: avoid !important;
    }

    /* 确保页面内容存在 */
    body::after {
        content: "英语教师朗读及经验分享教研方案"; 
        display: block; 
        text-align: center;
        font-size: 8pt;
        margin-top: 20px;
        color: #999;
    }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 45px;
    padding: 40px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.3);
}

header:before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15));
    z-index: 0;
    transition: opacity 0.5s ease;
    opacity: 0.7;
}

header:hover:before {
    opacity: 1;
}

header:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(255,255,255,0.15) 0%, transparent 25%),
        radial-gradient(circle at 85% 85%, rgba(255,255,255,0.1) 0%, transparent 20%);
    z-index: 0;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

header:hover:after {
    opacity: 1;
}

header h1 {
    font-size: 2.8em;
    margin: 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: -0.5px;
}

header:hover h1 {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 2px 2px 5px rgba(0, 0, 0, 0.3);
    transform: scale(1.03);
}

/* Section and Module Styling */
.module {
    background-color: var(--card-background);
    padding: 40px;
    margin-bottom: 35px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 0 20px var(--hover-glow-color);
}

/* Animated Corner Accent */
.module:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 25px 25px 0 0;
    border-color: var(--primary-light) transparent transparent transparent;
    border-top-left-radius: var(--border-radius);
    transition: all 0.5s ease;
    z-index: 1;
}

.module:hover:before {
    border-width: 35px 35px 0 0;
    border-color: var(--primary-color) transparent transparent transparent;
}

/* 添加微妙的卡片内部光影效果 */
.module:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(0,0,0,0.02) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.module:hover:after {
    opacity: 1;
}

/* Sub-modules */
.sub-module {
    background-color: #fefefe;
    padding: 30px;
    margin: 25px 0;
    border-radius: calc(var(--border-radius) - 2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--primary-light);
}

.sub-module:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1), 0 0 15px rgba(52, 152, 219, 0.15);
    border-left-color: var(--primary-color);
}

/* 子模块hover效果增强 */
.sub-module:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(0,0,0,0.02) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sub-module:hover:after {
    opacity: 1;
}

/* Micro-modules */
.micro-module {
    padding: 18px 22px;
    margin-bottom: 15px;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.micro-module:hover {
    background-color: rgba(93, 173, 226, 0.04);
    border-color: var(--primary-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}

/* 微模块悬停指示器 */
.micro-module:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background-color: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 0 0 0 10px;
}

.micro-module:hover:after {
    width: 100%;
}

/* Typography */
h2 {
    font-size: 2em;
    color: var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    letter-spacing: -0.5px;
}

h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 120px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.module:hover h2:after {
    width: 180px;
}

h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

h4 {
    font-size: 1.25em;
    color: var(--text-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

p {
    margin-bottom: 18px;
    line-height: 1.9;
    color: var(--text-color);
    font-size: 16px;
}

/* Introduction and Conclusion special styling */
.introduction p, .conclusion p {
    font-size: 1.1em;
    line-height: 2;
    color: var(--text-color);
}

.introduction, .conclusion {
    background-color: #f8fdff;
    border-left: 5px solid var(--tertiary-color);
}

/* List Styling */
ul, ol {
    padding-left: 0;
    list-style-position: inside;
}

/* Custom counters for ordered lists */
ol {
    counter-reset: item;
    list-style-type: none;
}

ol > li {
    counter-increment: item;
    position: relative;
    padding-left: 5px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

ol > li:before {
    content: counter(item) ". ";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 8px;
    transition: all 0.3s ease;
}

ol > li:hover:before {
    color: var(--secondary-color);
}

/* Unordered lists */
ul {
    list-style-type: none;
}

ul > li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

ul > li:before {
    content: "•";
    color: var(--secondary-color);
    font-size: 1.6em;
    position: absolute;
    left: 5px;
    top: -5px;
    transition: all 0.3s ease;
}

ul > li:hover:before {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Interactive list items */
.micro-module li:hover {
    color: var(--primary-color);
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
}

table:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

th, td {
    text-align: left;
    padding: 18px 24px;
    word-wrap: break-word;
}

/* 表格列宽度设置 - 更合理的分配 */
th:nth-child(1), td:nth-child(1) {
    width: 20%;
}

th:nth-child(2), td:nth-child(2) {
    width: 65%;
}

th:nth-child(3), td:nth-child(3) {
    width: 15%;
}

th {
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
}

tr:nth-child(even) {
    background-color: rgba(245, 247, 250, 0.8);
}

[data-theme="dark"] tr:nth-child(even) {
    background-color: rgba(40, 50, 70, 0.4);
}

tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background-color: rgba(93, 173, 226, 0.08);
}

[data-theme="dark"] tr:hover {
    background-color: rgba(93, 173, 226, 0.15);
}

td {
    border-bottom: 1px solid var(--border-color);
}

tr:last-child td {
    border-bottom: none;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px 0;
    color: var(--text-secondary);
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
}

/* Copyright information at bottom */
.copyright {
    text-align: center;
    padding: 10px 0;
    background-color: #f5f7fa;
    font-size: 0.9em;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

[data-theme="dark"] .copyright {
    background-color: #121212;
}

/* Footer content reorganization */
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Call to action button in footer */
footer .cta-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1;
}

footer .cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--tertiary-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

footer .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3), 0 0 10px rgba(243, 156, 18, 0.5);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

footer .cta-button:hover:before {
    opacity: 1;
}

footer .cta-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.module {
    animation: fadeIn 0.5s ease backwards;
}

/* Staggered animations for modules */
.module:nth-child(1) { animation-delay: 0.1s; }
.module:nth-child(2) { animation-delay: 0.2s; }
.module:nth-child(3) { animation-delay: 0.3s; }
.module:nth-child(4) { animation-delay: 0.4s; }
.module:nth-child(5) { animation-delay: 0.5s; }
.module:nth-child(6) { animation-delay: 0.6s; }

/* Print button */
.print-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.print-button:hover {
    background-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 90px; /* Position above print button */
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #27ae60;
    transform: translateY(-5px);
}

/* Table of Contents */
.toc {
    background-color: var(--card-background);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 10;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 280px;
    flex-shrink: 0;
}

.toc:hover {
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.15);
    transform: translateY(-5px);
}

.toc h3 {
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

.toc h3:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--tertiary-color));
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toc:hover h3:after {
    width: 80%;
}

.toc ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 15px;
}

.toc li {
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.toc li:last-child {
    border-bottom: none;
}

.toc a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 10px 12px;
    border-left: 3px solid transparent;
    border-radius: 4px;
    font-weight: 500;
}

.toc a:hover, .toc a.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.08);
    transform: translateX(5px);
}

[data-theme="dark"] .toc a:hover, 
[data-theme="dark"] .toc a.active {
    background-color: rgba(93, 173, 226, 0.12);
}

.toc a.active {
    font-weight: 600;
}

/* 优化目录导航下划线效果 */
.toc a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.3s ease;
    opacity: 0;
}

.toc a:hover::after,
.toc a.active::after {
    width: 100%;
    opacity: 1;
}

.toc a.active::after {
    box-shadow: 0 0 8px var(--primary-color);
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: transparent;
    z-index: 1000;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--primary-color), var(--tertiary-color));
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.progress-bar:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(to right, 
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    animation: progressShimmer 2s infinite linear;
    transform: translateX(-100%);
}

@keyframes progressShimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px 50px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.6em;
    }
    
    h3 {
        font-size: 1.3em;
    }
    
    .module {
        padding: 25px;
    }
    
    .sub-module {
        padding: 25px 20px;
    }
    
    table, th, td {
        font-size: 0.9em;
    }
    
    th, td {
        padding: 12px 15px;
    }
    
    .print-button, .back-to-top {
        width: 40px;
        height: 40px;
        right: 20px;
    }
    
    .back-to-top {
        bottom: 70px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6em;
    }
    
    h2 {
        font-size: 1.4em;
    }
    
    h3 {
        font-size: 1.2em;
    }
    
    .module, .sub-module {
        padding: 15px;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    th, td {
         padding: 10px;
        font-size: 0.85em;
    }
    
    .print-button, .back-to-top {
        bottom: 15px;
        right: 15px;
    }
    
    .back-to-top {
        bottom: 65px;
    }
}

/* Content Wrapper for TOC and main content */
.content-wrapper {
    display: flex;
    gap: 30px;
    position: relative;
}

.main-content {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .toc {
        position: relative !important;
        top: 0 !important;
        max-height: none !important;
        margin-bottom: 30px;
        width: 100%;
    }
    
    .main-content {
        width: 100%;
    }
}

/* Timeline Styling */
.timeline {
    position: relative;
    margin: 30px 0;
    padding-left: 35px;
}

.timeline:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, var(--primary-light), var(--secondary-color));
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(93, 173, 226, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -43px;
    top: 15px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.3), 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item:hover:before {
    transform: scale(1.3);
    background-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.3), 0 0 15px rgba(0, 0, 0, 0.2);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-date {
    transform: translateX(5px);
}

.timeline-date i {
    font-size: 1.2em;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-date i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

/* Resource Cards */
.resources-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.resource-card {
    display: flex;
    align-items: flex-start;
    padding: 30px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border-radius: 15px !important;
    background-color: #f9f9f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-theme="dark"] .resource-card {
    background-color: #1a2234 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.resource-icon {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-right: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
}

[data-theme="dark"] .resource-icon {
    background-color: rgba(93, 173, 226, 0.15);
}

.resource-card:hover .resource-icon {
    color: var(--tertiary-color);
    transform: scale(1.1) rotate(10deg);
    background-color: rgba(243, 156, 18, 0.1);
}

[data-theme="dark"] .resource-card:hover .resource-icon {
    background-color: rgba(243, 156, 18, 0.2);
}

.resource-content {
    flex: 1;
}

.resource-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.resource-card:hover .resource-content h3 {
    color: var(--tertiary-color);
}

/* 动画效果优化 */
@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse-animation 2s infinite cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 优化可折叠内容 */
.expandable-content {
    margin: 25px 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.expand-btn {
    padding: 16px;
    background-color: #f8f9fa;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .expand-btn {
    background-color: #1e293b;
}

.expand-btn:hover {
    background-color: #edf2f7;
    color: var(--primary-color);
}

[data-theme="dark"] .expand-btn:hover {
    background-color: #243047;
}

.expand-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.expand-btn:hover:after {
    transform: scaleX(1);
}

.expand-btn i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.expanded-content {
    padding: 25px;
    background-color: white;
    border-top: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

[data-theme="dark"] .expanded-content {
    background-color: #1a2234;
}

.expand-btn:hover i.fa-chevron-down {
    transform: translateY(5px);
}

.expand-btn:hover i.fa-chevron-up {
    transform: translateY(-5px);
}

/* 响应式布局优化 */
@media (max-width: 768px) {
    .module {
        padding: 30px 20px;
    }
    
    .sub-module {
        padding: 25px 20px;
    }
    
    .micro-module {
    padding: 15px 20px;
    }
    
    .bookmark-panel {
        width: 280px;
        top: 70px;
        max-height: calc(100vh - 100px);
    }
    
    .bookmark-toggle {
        width: 35px;
        height: 70px;
        left: -35px;
    }
    
    .resources-container {
        grid-template-columns: 1fr;
    }
    
    .bar-label {
        min-width: 100px;
    }
    
    .pie-chart {
        width: 220px;
        height: 220px;
    }
    
    .pie-chart::before {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 480px) {
    .bookmark-panel {
        width: 260px;
    }
    
    .bookmark-toggle {
        width: 30px;
        left: -30px;
    }
    
    .bookmark-header {
        padding: 15px;
    }
    
    .bookmark-item {
        padding: 12px 15px;
    }
    
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-item:before {
        left: -33px;
    }
    
    .chart-container {
        padding: 20px 15px;
    }
    
    .pie-chart {
        width: 180px;
        height: 180px;
    }
    
    .pie-chart::before {
        width: 90px;
        height: 90px;
    }
}

/* 消息气泡样式增强 - 改为双层卡片结构 */
.message-bubble {
    background-color: transparent; /* 主容器背景透明 */
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

/* 卡片头部 */
.message-bubble h3 {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); /* 使用主题变量替代固定颜色 */
    color: white;
    margin: 0;
    padding: 20px 25px;
    border-radius: 15px 15px 0 0; /* 只有顶部两个角是圆角 */
    position: relative;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1;
}

/* 添加暗黑模式下卡片头部阴影优化 */
[data-theme="dark"] .message-bubble h3 {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* 卡片主体 */
.message-bubble p {
    background-color: #fff; /* 白色主体背景 */
    margin: 0;
    padding: 25px;
    border-radius: 15px; /* 主体四个角都是圆角 */
    position: relative;
    margin-top: -15px; /* 负边距创建层叠效果 */
    z-index: 2; /* 确保主体在头部之上 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* 暗黑模式适配 */
[data-theme="dark"] .message-bubble p {
    background-color: #1a2234;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 交互效果 */
.message-bubble:hover h3 {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb, 52, 152, 219), 0.3);
}

.message-bubble:hover p {
    transform: translateY(3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* 修改action按钮样式以适应新的卡片结构 */
.message-action {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
}

.message-action:hover {
    transform: scale(1.2) rotate(15deg);
    background-color: rgba(255, 255, 255, 0.3);
}

/* 系统背景效果 1 - 动态渐变波浪 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.05) 0%, 
        rgba(46, 204, 113, 0.03) 35%, 
        rgba(155, 89, 182, 0.05) 70%,
        rgba(52, 152, 219, 0.04) 100%);
    background-size: 400% 400%;
    z-index: -2;
    animation: gradientWave 20s ease infinite;
    pointer-events: none;
}

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

/* 系统背景效果 2 - 几何图形装饰 */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 5% 10%, rgba(52, 152, 219, 0.07) 0%, transparent 12%),
        radial-gradient(circle at 90% 5%, rgba(46, 204, 113, 0.05) 0%, transparent 12%),
        radial-gradient(circle at 95% 90%, rgba(155, 89, 182, 0.07) 0%, transparent 15%),
        radial-gradient(circle at 15% 85%, rgba(243, 156, 18, 0.03) 0%, transparent 10%),
        linear-gradient(45deg, transparent 48%, rgba(52, 152, 219, 0.02) 49%, rgba(52, 152, 219, 0.02) 51%, transparent 52%),
        linear-gradient(135deg, transparent 48%, rgba(46, 204, 113, 0.02) 49%, rgba(46, 204, 113, 0.02) 51%, transparent 52%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 60px 60px, 60px 60px;
    z-index: -1;
    opacity: 0.8;
    pointer-events: none;
}

/* 暗色主题下的系统背景调整 */
[data-theme="dark"] body::before {
    background: linear-gradient(135deg, 
        rgba(93, 173, 226, 0.07) 0%, 
        rgba(46, 204, 113, 0.05) 35%, 
        rgba(155, 89, 182, 0.07) 70%,
        rgba(93, 173, 226, 0.06) 100%);
}

[data-theme="dark"] body::after {
    background-image: 
        radial-gradient(circle at 5% 10%, rgba(93, 173, 226, 0.1) 0%, transparent 12%),
        radial-gradient(circle at 90% 5%, rgba(46, 204, 113, 0.08) 0%, transparent 12%),
        radial-gradient(circle at 95% 90%, rgba(172, 101, 214, 0.1) 0%, transparent 15%),
        radial-gradient(circle at 15% 85%, rgba(241, 196, 15, 0.05) 0%, transparent 10%),
        linear-gradient(45deg, transparent 48%, rgba(93, 173, 226, 0.03) 49%, rgba(93, 173, 226, 0.03) 51%, transparent 52%),
        linear-gradient(135deg, transparent 48%, rgba(46, 204, 113, 0.03) 49%, rgba(46, 204, 113, 0.03) 51%, transparent 52%);
    opacity: 0.7;
}

/* 背景效果的类 */
body.bg-none::before,
body.bg-none::after {
    display: none;
}

body.bg-minimal::before {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.02) 0%, 
        rgba(46, 204, 113, 0.01) 35%, 
        rgba(155, 89, 182, 0.02) 70%,
        rgba(52, 152, 219, 0.01) 100%);
    animation: none;
}

body.bg-minimal::after {
    opacity: 0.25;
}

/* 背景切换提示样式 */
.bg-tip {
    display: none;
}

/* 添加主题控制样式 */
.theme-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.theme-toggle, .fullscreen-toggle {
    background-color: var(--card-bg);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.theme-toggle:hover, .fullscreen-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .theme-toggle, [data-theme="dark"] .fullscreen-toggle {
    background-color: var(--card-bg);
    color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.fullscreen-toggle i.fa-expand {
    display: inline-block;
}

.fullscreen-toggle i.fa-compress {
    display: none;
}

body[data-fullscreen="true"] .fullscreen-toggle i.fa-expand {
    display: none;
}

body[data-fullscreen="true"] .fullscreen-toggle i.fa-compress {
    display: inline-block;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--card-background);
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    z-index: 1010;
    padding: 10px 0;
    margin-top: 8px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
}

.dropdown-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content:before {
    content: '';
    position: absolute;
    top: -5px;
    right: 15px;
    width: 10px;
    height: 10px;
    background-color: var(--card-background);
    transform: rotate(45deg);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.dropdown-item {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.08);
    transform: translateX(5px);
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: rgba(93, 173, 226, 0.15);
}

.dropdown-item i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.dropdown-item:hover i {
    transform: scale(1.2);
}

/* 更新主题切换按钮样式 */
.theme-toggle {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.theme-toggle:hover:before {
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.theme-toggle i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: scale(1.2);
}

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

/* 优化书签系统 */
.bookmark-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .bookmark-btn {
    background-color: rgba(30, 41, 59, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.bookmark-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.bookmark-btn i {
    font-size: 1.2em;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bookmark-btn:hover i.far {
    color: var(--bookmark-color);
    transform: scale(1.3) rotate(10deg);
}

.bookmark-btn:hover i.fas {
    color: var(--bookmark-color);
    transform: scale(1.3) rotate(-10deg);
}

.bookmarked .bookmark-btn i {
    color: var(--bookmark-color);
}

/* 优化书签面板 */
.bookmark-panel {
    position: fixed;
    top: 80px;
    right: -320px;
    width: 300px;
    max-height: calc(100vh - 120px);
    background-color: var(--card-background);
    border-radius: 15px 0 0 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-right: none;
}

.bookmark-panel.active {
    right: 0;
}

.bookmark-toggle {
    position: absolute;
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 15px 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.bookmark-toggle:hover {
    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.15);
    width: 45px;
    left: -45px;
}

.bookmark-toggle i {
    color: var(--bookmark-color);
    font-size: 1.3em;
    transition: transform 0.3s ease;
}

.bookmark-toggle:hover i {
    transform: scale(1.2);
}

.bookmark-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bookmark-header h3 {
    margin: 0;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bookmark-header h3 i {
    color: var(--bookmark-color);
}

#clearAllBookmarks {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(231, 76, 60, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

#clearAllBookmarks:hover {
    background-color: rgba(231, 76, 60, 0.2);
    transform: rotate(90deg);
}

#clearAllBookmarks i {
    color: #e74c3c;
    font-size: 1.1em;
}

.bookmark-list {
    padding: 15px 0;
}

.bookmark-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    background-color: var(--card-background);
}

.bookmark-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--bookmark-color);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.7;
}

.bookmark-item:hover:before {
    transform: scaleY(1);
}

.bookmark-item:hover {
    background-color: rgba(93, 173, 226, 0.05);
    padding-left: 25px;
    transform: translateX(-5px);
}

[data-theme="dark"] .bookmark-item:hover {
    background-color: rgba(93, 173, 226, 0.1);
}

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

.bookmark-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.bookmark-item:hover .bookmark-title {
    color: var(--primary-color);
}

.bookmark-desc {
    font-size: 0.9em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.delete-bookmark {
    color: var(--text-secondary);
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-bookmark:hover {
    color: #e74c3c;
    opacity: 1;
    background-color: rgba(231, 76, 60, 0.1);
    transform: rotate(90deg);
}

.no-bookmarks {
    padding: 25px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}

/* 优化高亮动画 */
@keyframes highlightFade {
    0% { background-color: rgba(93, 173, 226, 0.2); }
    100% { background-color: transparent; }
}

.highlight-animation {
    animation: highlightFade 2s ease;
}

/* 时间线样式优化 */
.timeline {
    position: relative;
    margin: 30px 0;
    padding-left: 35px;
}

.timeline:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, var(--primary-light), var(--secondary-color));
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(93, 173, 226, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -43px;
    top: 15px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.3), 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item:hover:before {
    transform: scale(1.3);
    background-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.3), 0 0 15px rgba(0, 0, 0, 0.2);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-date {
    transform: translateX(5px);
}

.timeline-date i {
    font-size: 1.2em;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-date i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

/* 资源卡片样式优化 */
.resources-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.resource-card {
    display: flex;
    align-items: flex-start;
    padding: 30px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border-radius: 15px !important;
    background-color: #f9f9f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-theme="dark"] .resource-card {
    background-color: #1a2234 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.resource-icon {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-right: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
}

[data-theme="dark"] .resource-icon {
    background-color: rgba(93, 173, 226, 0.15);
}

.resource-card:hover .resource-icon {
    color: var(--tertiary-color);
    transform: scale(1.1) rotate(10deg);
    background-color: rgba(243, 156, 18, 0.1);
}

[data-theme="dark"] .resource-card:hover .resource-icon {
    background-color: rgba(243, 156, 18, 0.2);
}

.resource-content {
    flex: 1;
}

.resource-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.resource-card:hover .resource-content h3 {
    color: var(--tertiary-color);
}

/* 动画效果优化 */
@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse-animation 2s infinite cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 优化可折叠内容 */
.expandable-content {
    margin: 25px 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.expand-btn {
    padding: 16px;
    background-color: #f8f9fa;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .expand-btn {
    background-color: #1e293b;
}

.expand-btn:hover {
    background-color: #edf2f7;
    color: var(--primary-color);
}

[data-theme="dark"] .expand-btn:hover {
    background-color: #243047;
}

.expand-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.expand-btn:hover:after {
    transform: scaleX(1);
}

.expand-btn i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.expanded-content {
    padding: 25px;
    background-color: white;
    border-top: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

[data-theme="dark"] .expanded-content {
    background-color: #1a2234;
}

.expand-btn:hover i.fa-chevron-down {
    transform: translateY(5px);
}

.expand-btn:hover i.fa-chevron-up {
    transform: translateY(-5px);
}

/* 响应式布局优化 */
@media (max-width: 768px) {
    .module {
        padding: 30px 20px;
    }
    
    .sub-module {
        padding: 25px 20px;
    }
    
    .micro-module {
        padding: 15px 20px;
    }
    
    .bookmark-panel {
        width: 280px;
        top: 70px;
        max-height: calc(100vh - 100px);
    }
    
    .bookmark-toggle {
        width: 35px;
        height: 70px;
        left: -35px;
    }
    
    .resources-container {
        grid-template-columns: 1fr;
    }
    
    .bar-label {
        min-width: 100px;
    }
    
    .pie-chart {
        width: 220px;
        height: 220px;
    }
    
    .pie-chart::before {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 480px) {
    .bookmark-panel {
        width: 260px;
    }
    
    .bookmark-toggle {
        width: 30px;
        left: -30px;
    }
    
    .bookmark-header {
        padding: 15px;
    }
    
    .bookmark-item {
        padding: 12px 15px;
    }
    
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-item:before {
        left: -33px;
    }
    
    .chart-container {
        padding: 20px 15px;
    }
    
    .pie-chart {
        width: 180px;
        height: 180px;
    }
    
    .pie-chart::before {
        width: 90px;
        height: 90px;
    }
}

/* 图表样式 */
.chart-container {
    margin: 30px 0;
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .chart-container {
    background-color: #1a2234;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.chart-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.chart-container:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-container:hover:after {
    opacity: 1;
}

.chart-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.chart-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

/* 饼图样式 */
.pie-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(
        var(--chart-color-1) 0% 40%,
        var(--chart-color-2) 40% 70%,
        var(--chart-color-3) 70% 90%,
        var(--chart-color-4) 90% 100%
    );
    position: relative;
    margin: 0 auto 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.pie-chart::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: #f9f9f9;
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

[data-theme="dark"] .pie-chart::before {
    background-color: #1a2234;
}

.pie-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 70px;
}

.center-value {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.center-label {
    font-size: 0.75em;
    color: var(--text-secondary);
}

.chart-container:hover .pie-center-text .center-value {
    color: var(--secondary-color);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.chart-container:hover .pie-chart {
    transform: scale(1.05) rotate(5deg);
}

.chart-container:hover .pie-chart::before {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
}

.legend-item:hover {
    transform: translateX(5px);
    background-color: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .legend-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.legend-item:hover .legend-color {
    transform: scale(1.2);
}

.legend-text {
    font-size: 0.9em;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.legend-item:hover .legend-text {
    color: var(--primary-color);
}

/* 柱状图样式 */
.bar-chart {
    margin-top: 30px;
}

.bar-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 10px;
}

.bar-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateX(5px);
}

[data-theme="dark"] .bar-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.bar-label {
    width: 120px;
    font-size: 0.9em;
    font-weight: 500;
    margin-right: 15px;
    color: var(--text-color);
    text-align: right;
    transition: all 0.3s ease;
}

.bar-item:hover .bar-label {
    color: var(--primary-color);
    transform: scale(1.05);
}

.bar-progress {
    flex: 1;
    height: 25px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

[data-theme="dark"] .bar-progress {
    background-color: rgba(255, 255, 255, 0.05);
}

.bar-item:hover .bar-progress {
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.15);
}

.bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 25px;
    width: 0; /* 初始宽度为0，通过JavaScript动态设置 */
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.bar-fill:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
    transform: translateX(-100%);
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.bar-value {
    margin-left: 15px;
    color: var(--primary-color);
    font-weight: 600;
    min-width: 45px;
    text-align: left;
    transition: all 0.3s ease;
}

.bar-item:hover .bar-value {
    transform: scale(1.1);
}

/* 图表颜色变量 */
:root {
    --chart-color-1: #3498db;
    --chart-color-2: #2ecc71;
    --chart-color-3: #f39c12;
    --chart-color-4: #e74c3c;
}

[data-theme="dark"] {
    --chart-color-1: #5dade2;
    --chart-color-2: #58d68d;
    --chart-color-3: #f8c471;
    --chart-color-4: #ec7063;
}

/* 添加图表项目特效 */
.chart-container.animate .pie-chart {
    animation: pieAppear 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pieAppear {
    0% {
        transform: scale(0.5) rotate(-90deg);
        opacity: 0;
    }
    70% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.chart-container.animate .legend-item {
    animation: slideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.chart-container.animate .legend-item:nth-child(1) { animation-delay: 0.6s; }
.chart-container.animate .legend-item:nth-child(2) { animation-delay: 0.7s; }
.chart-container.animate .legend-item:nth-child(3) { animation-delay: 0.8s; }
.chart-container.animate .legend-item:nth-child(4) { animation-delay: 0.9s; }

@keyframes slideIn {
    to {
    opacity: 1;
        transform: translateY(0);
    }
}

.chart-container.animate .bar-item {
    animation: fadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.chart-container.animate .bar-item:nth-child(1) { animation-delay: 0.3s; }
.chart-container.animate .bar-item:nth-child(2) { animation-delay: 0.4s; }
.chart-container.animate .bar-item:nth-child(3) { animation-delay: 0.5s; }
.chart-container.animate .bar-item:nth-child(4) { animation-delay: 0.6s; }

@media (max-width: 768px) {
    .bar-label {
        width: 100px;
        font-size: 0.85em;
    }
    
    .pie-chart {
        width: 180px;
        height: 180px;
    }
    
    .pie-chart::before {
        width: 50px;
        height: 50px;
    }

    .pie-center-text {
        width: 50px;
    }

    .center-value {
        font-size: 1em;
    }

    .center-label {
        font-size: 0.7em;
    }
}

@media (max-width: 480px) {
    .chart-container {
        padding: 15px;
    }
    
    .pie-chart {
        width: 150px;
        height: 150px;
    }
    
    .pie-chart::before {
        width: 40px;
        height: 40px;
    }

    .pie-center-text {
        width: 40px;
    }

    .center-value {
        font-size: 0.9em;
    }

    .center-label {
        font-size: 0.65em;
    }
    
    .bar-label {
        width: 90px;
        font-size: 0.8em;
    }
    
    .bar-progress {
        height: 20px;
    }
    
    .bar-value {
        font-size: 0.85em;
    }
}

.chart-note {
    margin-top: 15px;
    text-align: center;
    font-size: 0.85em;
    color: var(--text-secondary);
    font-style: italic;
}

.chart-note i {
    color: var(--primary-color);
    margin-right: 5px;
}

.bar-label i {
    margin-right: 5px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.bar-item:hover .bar-label i {
    transform: scale(1.2);
}