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

/* 根变量定义 */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

.floating-motivation {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
}

.motivation-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.motivation-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.motivation-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.motivation-modal.is-open {
    display: flex;
}

.motivation-modal-content {
    width: min(720px, 100%);
    background: var(--bg-primary);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 22px 22px 18px;
}

.motivation-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.motivation-modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.motivation-modal-close {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-secondary);
    padding: 6px 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.motivation-modal-close:hover {
    background: var(--bg-accent);
    color: var(--text-primary);
}

.motivation-modal-body {
    color: var(--text-primary);
    line-height: 1.8;
}

.motivation-modal-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-inline {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-accent);
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-inline:hover {
    background: var(--bg-secondary);
}

/* 导航栏样式 */
.navbar {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    position: relative;
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--bg-accent);
}

.nav-link i {
    margin-left: 5px;
    font-size: 0.8rem;
}

.nav-link .nav-ico {
    margin-left: 0;
    margin-right: 8px;
    font-size: 0.92rem;
    opacity: 0.92;
}


.nav-link.active .nav-ico {
    opacity: 1;
}
.nav-link .fa-chevron-down {
    margin-left: 6px;
    margin-right: 0;
    font-size: 0.76rem;
}

.menu-ico {
    width: 1rem;
    margin-right: 8px;
    text-align: center;
    opacity: 0.88;
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.55;
}

.dropdown-menu .menu-ico {
    margin-right: 6px;
}

.dropdown-menu a:hover {
    background-color: var(--bg-accent);
    color: var(--primary-color);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* 主要内容区域 */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
    padding: 4rem 0;
    display: flex;
    align-items: center;
    min-height: 600px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.quick-jump {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border-left: 4px solid #60a5fa;
}

.quick-jump-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.quick-jump .btn {
    margin: 0;
}

.quick-jump .btn-secondary {
    background: #ffffff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.quick-jump .btn-secondary:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

@media (max-width: 768px) {
    .quick-jump-actions {
        flex-direction: column;
    }

    .quick-jump-actions .btn {
        justify-content: center;
    }
}

/* 区块样式 */
.overview,
.features,
.learning-path,
.quick-nav {
    padding: 4rem 0;
}

.overview {
    background-color: var(--bg-primary);
}

.features {
    background-color: var(--bg-secondary);
}

.learning-path {
    background-color: var(--bg-primary);
}

.quick-nav {
    background-color: var(--bg-secondary);
}

/* 标题样式 */
h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* 网格布局 */
.overview-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* 卡片样式 */
.overview-card,
.feature-item,
.nav-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.overview-card:hover,
.feature-item:hover,
.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon,
.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.nav-card {
    cursor: pointer;
    border: 2px solid transparent;
}

.nav-card:hover {
    border-color: var(--primary-color);
}

.nav-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 时间轴样式 */
.path-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.path-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-content {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 页脚样式 */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--secondary-color);
    color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: left;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 0.9rem 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0.25rem 0;
    }

    .nav-link {
        padding: 0.65rem 1rem;
        justify-content: flex-start;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-accent);
        margin-top: 0.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    h2 {
        font-size: 2rem;
    }

    .overview-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .path-timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        left: 0;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .overview,
    .features,
    .learning-path,
    .quick-nav {
        padding: 2rem 0;
    }

    .overview-card,
    .feature-item,
    .nav-card {
        padding: 1.5rem;
    }

    .nav-grid {
        grid-template-columns: 1fr;
    }
}

/* 滚动行为 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* 内容页面样式 */
.content-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.content-page h1 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.content-page h2 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: left;
}

.content-page h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.content-page p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-page ul,
.content-page ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content-page li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-page img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin: 1rem 0;
}

.content-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.content-page th,
.content-page td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.content-page th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.content-page tr:hover {
    background-color: var(--bg-accent);
}

/* 返回按钮 */
.back-button {
    display: inline-flex;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-button:hover {
    color: var(--primary-dark);
}

.back-button i {
    margin-right: 0.5rem;
}

/* 错误管理系统样式 */
.error-management {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.error-log-format {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.error-log-format h4 {
    color: #fff;
    margin-bottom: 15px;
}

.log-template {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

.error-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.error-type {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.error-type h4 {
    color: #fff;
    margin-bottom: 10px;
}

.error-type ul {
    list-style: none;
    padding: 0;
}

.error-type li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* 系统性解题思路训练样式 */
.problem-solving-training {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.training-method {
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
}

.four-step-method {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.step {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.step h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.step ul {
    list-style: none;
    padding: 0;
}

.step li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.topic-archive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.topic-type {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
}

.topic-features p {
    font-weight: bold;
    color: #ffd700;
    margin: 15px 0 10px 0;
}

.understanding-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.method-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
}

.method-item h4 {
    color: #ffd700;
    margin-bottom: 15px;
}

.feynman-steps ol, .five-questions ol {
    padding-left: 20px;
}

.feynman-steps li, .five-questions li {
    padding: 5px 0;
    line-height: 1.5;
}

.example {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-style: italic;
}

.variation-training {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.variations p {
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.variations p:last-child {
    border-bottom: none;
}

.formula-chants {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.chant-category {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
}

.chant-category h4 {
    color: #ffd700;
    margin-bottom: 15px;
}

.chant-category ul {
    list-style: none;
    padding: 0;
}

.chant-category li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* 科学记忆系统样式 */
.memory-system {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.memory-method {
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
}

.review-timeline-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.review-stage {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.review-stage h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.review-stage ul {
    list-style: none;
    padding: 0;
}

.review-stage li {
    padding: 5px 0;
    line-height: 1.5;
}

.recall-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 20px 0;
}

.method-wrong, .method-right {
    padding: 20px;
    border-radius: 10px;
}

.method-wrong {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff6b6b;
}

.method-right {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #51cf66;
}

.method-wrong h4, .method-right h4 {
    margin-bottom: 15px;
}

.template {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

/* 分层刷题策略样式 */
.layered-practice {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.level-system {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.level {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.level h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.level ul {
    list-style: none;
    padding: 0;
}

.level li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.progression-plan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.phase {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.phase h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.phase ul {
    list-style: none;
    padding: 0;
}

.phase li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* 新添加的详细学习方法样式 */
.method-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.skill-card {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.3);
}

.grammar-card {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

.practice-card {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.3);
}

.daily-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.flow-step {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffd700;
    transition: transform 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-2px);
}

/* 数学详细学习方法样式 */
.math-strategy {
    background: linear-gradient(135deg, #fa709a, #fee140);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(250, 112, 154, 0.3);
}

.problem-solving-card {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #333;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(168, 237, 234, 0.3);
}

.time-management-card {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    color: #333;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(255, 236, 210, 0.3);
}

/* 物理详细学习方法样式 */
.physics-method {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.experiment-card {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.3);
}

.memory-technique {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .method-card, .skill-card, .grammar-card, .practice-card,
    .math-strategy, .problem-solving-card, .time-management-card,
    .physics-method, .experiment-card, .memory-technique {
        padding: 20px;
        margin: 15px 0;
    }

    .daily-flow {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .flow-step {
        padding: 12px;
    }
}

/* 更小屏幕的额外优化 */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .sidebar {
        width: 100%;
        position: fixed;
        top: 60px;
        left: -100%;
        height: calc(100vh - 60px);
        z-index: 1000;
        transition: left 0.3s ease;
        background: var(--bg-primary);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 10px;
    }

    .content-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .method-card, .skill-card, .grammar-card, .practice-card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .phase-card {
        padding: 12px;
    }

    .resource-card {
        padding: 12px;
    }

    /* 移动端导航按钮 */
    .mobile-nav-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 14px;
    }

    .mobile-nav-toggle:hover {
        background: var(--primary-dark);
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 15px;
    }

    .method-card h4, .skill-card h4 {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }

    .content-section h3 {
        font-size: 1.1rem;
    }
}

/* 诊断页面专用样式 */
.info-box {
    background: #e0f2fe;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--border-radius);
}

.success-box {
    background: #d1fae5;
    border-left: 4px solid var(--success-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--border-radius);
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--border-radius);
}

.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

.diagnosis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    box-shadow: var(--shadow-sm);
}

.diagnosis-table thead {
    background: var(--bg-accent);
}

.diagnosis-table th,
.diagnosis-table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.diagnosis-table th {
    font-weight: 600;
    color: var(--text-primary);
}

.diagnosis-table tbody tr:nth-child(even) {
    background: var(--bg-secondary);
}

.diagnosis-table tbody tr:hover {
    background: var(--bg-accent);
}

/* 搜索框样式 - 全局可用 */
.search-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 8px 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.search-box:focus-within {
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.search-input {
    border: none;
    outline: none;
    padding: 5px 10px;
    font-size: 14px;
    width: 200px;
    background: transparent;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1001;
    margin-top: 5px;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--bg-accent);
}

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

.search-highlight {
    background: #fef3c7;
    padding: 2px 4px;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .search-container {
        top: 80px;
        right: 10px;
    }

    .search-input {
        width: 150px;
    }
}

/* 可打印文档模板样式 */
.print-template {
    background: white;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.print-template h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.download-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin: 0.5rem 0.5rem 0.5rem 0;
    font-weight: 500;
}

.download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-btn i {
    margin-right: 0.5rem;
}

@media print {
    .search-container,
    .navbar,
    .nav-container,
    .sidebar,
    .download-btn {
        display: none !important;
    }

    .print-template {
        border: none;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* 诊断测试样式 */
.diagnosis-test {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.test-question {
    margin: 1.5rem 0;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.test-question label {
    display: block;
    margin: 0.5rem 0;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.test-question label:hover {
    background: var(--bg-accent);
    border-radius: 4px;
}

.test-question input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.answer-hint {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #d1fae5;
    border-radius: 4px;
}

.intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* 作业策略页面专用样式 */
.danger {
    background: #fee2e2;
    border-left: 4px solid var(--danger-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
}

.danger h2, .danger h3, .danger h4 {
    color: var(--danger-color);
    margin-top: 0;
}

.danger-text {
    color: var(--danger-color);
    font-weight: 600;
}

.warning {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
}

.warning h2, .warning h3, .warning h4 {
    color: var(--warning-color);
    margin-top: 0;
}

.warning-text {
    color: var(--warning-color);
    font-weight: 600;
}

.success {
    background: #d1fae5;
    border-left: 4px solid var(--success-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
}

.success h2, .success h3, .success h4 {
    color: var(--success-color);
    margin-top: 0;
}

.success-text {
    color: var(--success-color);
    font-weight: 600;
}

.info {
    background: #e0f2fe;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
}

.info h2, .info h3, .info h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.info-card {
    background: #e0f2fe;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
}

.info-card h2, .info-card h3, .info-card h4 {
    color: var(--primary-color);
    margin-top: 0;
}

/* 卡片样式变体 */
.card.danger {
    border-left: 4px solid var(--danger-color);
}

.card.warning {
    border-left: 4px solid var(--warning-color);
}

.card.success {
    border-left: 4px solid var(--success-color);
}

/* ==== 2026 Confidence-first UI polish ==== */
:root {
    --calm-surface: #f8fbff;
    --calm-border: #dbe7f5;
    --calm-text: #0f172a;
    --calm-muted: #475569;
}

body {
    color: var(--calm-text);
}

p,
li {
    color: var(--calm-muted);
}

a {
    color: #1d4ed8;
}

a:hover {
    color: #1e40af;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.btn-inline:focus-visible,
.btn-soft:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.nav-link:focus-visible,
.sidebar-nav a:focus-visible,
.dropdown-menu a:focus-visible,
.checkin-day:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 2px;
    border-radius: 10px;
}

.btn,
.btn-inline,
.btn-soft,
.nav-link,
.dropdown-menu a,
.sidebar-nav a,
.overview-card,
.feature-item,
.nav-card,
.card,
.tool-card,
.resource-item,
.platform-card,
.app-card,
.warning-item,
.principle-item,
.tool-item {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card,
.overview-card,
.feature-item,
.nav-card,
.tool-card,
.resource-item,
.platform-card,
.app-card,
.warning-item,
.principle-item,
.tool-item {
    border: 1px solid var(--calm-border);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    background: #ffffff;
}

.card:hover,
.overview-card:hover,
.feature-item:hover,
.nav-card:hover,
.resource-item:hover,
.platform-card:hover,
.app-card:hover,
.warning-item:hover,
.principle-item:hover,
.tool-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.btn-primary {
    background-color: #2563eb;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.btn-secondary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.quick-jump {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
    border: 1px solid #bfdbfe;
    border-left: 4px solid #60a5fa;
    border-radius: 14px;
}

.quick-jump p,
.info p,
.success p,
.warning p,
.danger p {
    color: #334155;
}

.warning {
    background: #fff7ed;
    border-left: 4px solid #fb923c;
}

.danger {
    background: #fff1f2;
    border-left: 4px solid #fb7185;
}

.success {
    background: #ecfdf5;
    border-left: 4px solid #34d399;
}

.info {
    background: #eff6ff;
    border-left: 4px solid #60a5fa;
}

.sidebar {
    background: #f8fafc;
    border-right: 1px solid #dbe7f5;
}

.sidebar-nav a {
    color: #334155;
    border-bottom: 1px solid #e5edf7;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #e0ecff;
    color: #1d4ed8;
}

.toggle-sidebar {
    background: #2563eb;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
