/* ============================================================
   animal.css — EngFlow 动森风设计系统（还原自 animal-island-ui）
   关键特征：绿色草地背景、羊皮纸波点卡片（无阴影）、
   米色 3D 堆叠胶囊按钮、薄荷主色、Nunito 圆体、仅亮色
   ============================================================ */

:root {
    /* 主色 */
    --animal-primary: #19c8b9;
    --animal-primary-hover: #3dd4c6;
    --animal-primary-active: #50b9ab;
    --animal-primary-bg: #e6f9f6;

    /* 文本（暖棕，绝无纯黑） */
    --animal-text: #794f27;
    --animal-text-body: #725d42;
    --animal-text-secondary: #9f927d;
    --animal-text-muted: #8a7b66;
    --animal-text-disabled: #c4b89e;

    /* 背景 */
    --animal-bg: #f8f8f0;
    --animal-bg-content: rgb(247, 243, 223);
    --animal-bg-secondary: #f0e8d8;
    --animal-bg-panel: rgb(250, 248, 242);

    /* 边框 */
    --animal-border: #aaa69d;
    --animal-border-hover: #827157;
    --animal-border-light: #e8e2d6;
    --animal-border-pattern: #d4c4a8;

    /* 圆角 */
    --animal-radius-sm: 16px;
    --animal-radius: 18px;
    --animal-radius-lg: 24px;
    --animal-radius-pill: 50px;

    /* 3D 阴影 */
    --animal-shadow-btn: #bdaea0;
    --animal-shadow-input: #d4c9b4;
    --animal-shadow-sm: 0 2px 4px 0 rgba(61, 52, 40, 0.06);
    --animal-shadow-base: 0 3px 10px 0 rgba(61, 52, 40, 0.1);

    /* 状态 */
    --animal-success: #6fba2c;
    --animal-warning: #f5c31c;
    --animal-error: #e05a5a;
    --animal-focus-yellow: #ffcc00;

    /* 动效 */
    --animal-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --animal-fast: 0.15s;
    --animal-base: 0.25s;
    --animal-slow: 0.35s;

    /* 兼容旧变量（JS 内联样式仍引用） */
    --bg-primary: var(--animal-bg);
    --glass: var(--animal-bg-panel);
    --glass-solid: var(--animal-bg-content);
    --glass-border: var(--animal-border-pattern);
    --text-primary: var(--animal-text);
    --text-secondary: var(--animal-text-secondary);
    --text-muted: var(--animal-text-muted);
    --accent-blue: #889df0;
    --accent-purple: #b77dee;
    --accent-green: #8ac68a;
    --accent-amber: var(--animal-warning);
    --accent-rose: #fc736d;
    --accent-cyan: #82d5bb;
    --accent-pink: #f8a6b2;
    --accent-orange: #e59266;
    --accent-yellow: #f7cd67;
    --navbar-bg: rgba(255, 252, 244, 0.92);
    --track: rgba(114, 93, 66, 0.1);
    --orb-opacity: 0;
    --shadow-card: none;
    --shadow-hover: none;
    --nav-shadow: none;
    --card-pad: 0;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: url('assets/img/content_bg_pc.jpg') 0 0 / auto repeat, #f8f8f0;
    background-attachment: fixed;
    color: var(--animal-text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: ac-bg-scroll 90s linear infinite;
}
@keyframes ac-bg-scroll {
    from { background-position: 0 0, 0 0; }
    to { background-position: 1000px 0, 0 0; }
}

button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--animal-focus-yellow);
    outline-offset: 2px;
}

/* ── 隐藏旧的装饰层 ── */
.bg-mesh, .star-field, .noise-overlay { display: none; }

/* ── 布局 ── */
.content-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── 滚动显现 ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s var(--animal-ease), transform 0.35s var(--animal-ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════
   顶部导航（动森手机顶栏）
   ════════════════════════════════════════ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navbar-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--animal-border-light);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    max-width: 720px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.nav-brand-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #19c8b9, #50b9ab);
    border: 2px solid #fff;
    box-shadow: 0 2px 0 0 rgba(61, 52, 40, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    font-weight: 900;
}
.nav-brand-text {
    font-size: 17px;
    font-weight: 800;
    color: var(--animal-text);
    letter-spacing: 0.02em;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--animal-text-body);
}
.nav-stat .val {
    color: var(--animal-primary-active);
    font-weight: 900;
}
.nav-stat-icon {
    font-size: 14px;
}

/* ════════════════════════════════════════
   燕尾飘带标题
   ════════════════════════════════════════ */
.ac-ribbon {
    --rf: var(--animal-primary);
    --rb: var(--animal-primary-active);
    position: relative;
    display: inline-block;
    height: 2em;
    padding: 0 1.5em;
    line-height: 2em;
    font-weight: 900;
    font-size: 30px;
    color: #fff;
    background: var(--rf);
    border-radius: 0.3em;
    letter-spacing: 0.04em;
    filter: drop-shadow(0 4px 10px rgba(61, 52, 40, 0.16));
    transform: perspective(320px) rotateX(2deg);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    font-family: 'Nunito', 'Noto Sans SC', sans-serif;
}
.ac-ribbon::before,
.ac-ribbon::after {
    content: '';
    position: absolute;
    bottom: -0.42em;
    width: 1.1em;
    height: 1.1em;
    background: var(--rb);
    z-index: 0;
}
.ac-ribbon::before {
    left: 0.05em;
    clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 30% 50%, 0% 0%);
}
.ac-ribbon::after {
    right: 0.05em;
    clip-path: polygon(0% 0%, 100% 0%, 70% 50%, 100% 100%, 0% 100%);
}
.ac-ribbon-sm { font-size: 21px; height: 2.2em; line-height: 2.2em; }
.ac-ribbon-lg { font-size: 32px; }
.ac-ribbon-blue  { --rf: #889df0;  --rb: #5068d8; }
.ac-ribbon-orange{ --rf: #e59266;   --rb: #c06a30; }
.ac-ribbon-pink  { --rf: #f8a6b2;   --rb: #e06880; }
.ac-ribbon-green { --rf: #8ac68a;   --rb: #509050; }
.ac-ribbon-purple{ --rf: #b77dee;   --rb: #9050d0; }
.ac-ribbon-yellow{ --rf: #f7cd67;   --rb: #d4a030; }

/* ════════════════════════════════════════
   打卡横幅（黄色波点卡片）
   ════════════════════════════════════════ */
.streak-banner {
    max-width: 100%;
    margin: 12px 0 30px;
    padding: 16px 20px;
    border-radius: 20px;
    border: 1.5px solid #d4a030;
    background:
        radial-gradient(circle, rgba(247, 205, 103, 0.2) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 230, 160, 0.14) 1px, transparent 1px),
        #fff8e0;
    background-size: 28px 28px, 14px 14px;
    background-position: 0 0, 7px 7px;
    color: #7a6528;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 3px 0 0 rgba(212, 160, 48, 0.3);
}
.streak-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.streak-fire {
    font-size: 32px;
    line-height: 1;
}
.streak-info h3 {
    font-size: 15px;
    font-weight: 800;
    color: #7a6528;
}
.streak-info p {
    font-size: 12px;
    color: #8a7b66;
    margin-top: 2px;
}
.streak-dots {
    display: flex;
    gap: 6px;
}
.streak-dot {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(154, 131, 90, 0.35);
    color: var(--animal-text-muted);
    transition: all 0.25s var(--animal-ease);
}
.streak-dot.active {
    background: var(--animal-warning);
    border-color: #e0a800;
    color: #6a4a10;
    box-shadow: 0 3px 0 0 rgba(212, 160, 48, 0.4);
    transform: translateY(-2px);
}
.streak-dot.today {
    border-color: var(--animal-primary);
    color: var(--animal-primary-active);
    box-shadow: 0 0 0 2px rgba(25, 200, 185, 0.2);
}

/* ════════════════════════════════════════
   生词提醒（虚线羊皮纸卡）
   ════════════════════════════════════════ */
.vocab-due {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--animal-bg-panel);
    border: 2px dashed #e8dcc8;
    border-radius: 18px;
    padding: 14px 18px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    transition: all var(--animal-base) var(--animal-ease);
}
.vocab-due:hover { border-color: #d4c4a8; }
.vocab-due-icon { font-size: 22px; }
.vocab-due-text { flex: 1; font-size: 14px; font-weight: 700; color: var(--animal-text); }
.vocab-due-arrow { font-size: 13px; font-weight: 800; color: var(--animal-primary-active); }

/* ════════════════════════════════════════
   路径卡片（2×2 纯色 NookPhone 应用卡，无渐变）
   ════════════════════════════════════════ */
.path-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}
.path-action {
    border-radius: 20px;
    padding: 20px 20px;
    text-align: left;
    cursor: pointer;
    transition: all var(--animal-base) var(--animal-ease);
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.path-action:nth-child(1) { background: #b77dee; }
.path-action:nth-child(2) { background: #889df0; }
.path-action:nth-child(3) { background: #e59266; }
.path-action:nth-child(4) { background: #8ac68a; }
.path-action:hover { transform: translateY(-2px); }
.path-action:active { transform: translateY(0); }
.path-action-icon {
    font-size: 26px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
}
.path-action-label {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}
.path-action-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}
.path-action-arrow {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}

/* ════════════════════════════════════════
   快捷操作（3 个胶囊纯色卡）
   ════════════════════════════════════════ */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 36px;
}
.quick-action {
    border-radius: 20px;
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: all var(--animal-base) var(--animal-ease);
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.quick-action:nth-child(1) { background: #82d5bb; }
.quick-action:nth-child(2) { background: #f7cd67; color: #725d42; }
.quick-action:nth-child(3) { background: #f8a6b2; }
.quick-action:hover { transform: translateY(-2px); }
.quick-action:active { transform: translateY(0); }
.quick-action-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}
.quick-action-label {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.quick-action-desc {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 3px;
    font-weight: 500;
}

/* ════════════════════════════════════════
   区块标题
   ════════════════════════════════════════ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}
.section-title {
    font-weight: 900;
    font-size: 21px;
    color: #fff;
    margin: 0;
}
.section-link {
    font-size: 13px;
    font-weight: 800;
    color: var(--animal-text);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: var(--animal-radius-pill);
    background: rgb(247, 243, 223);
    border: 1.5px solid var(--animal-border-pattern);
    box-shadow: var(--animal-shadow-sm);
    transition: all 0.2s var(--animal-ease);
    white-space: nowrap;
}
.section-link:hover {
    border-color: var(--animal-primary);
    color: var(--animal-primary-active);
}

/* ════════════════════════════════════════
   继续学习卡片（薄荷波点羊皮纸）
   ════════════════════════════════════════ */
.continue-card {
    display: none;
    margin-bottom: 36px;
    padding: 20px 24px;
    border-radius: 20px;
    background:
        radial-gradient(circle, rgba(130, 213, 187, 0.2) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(170, 235, 210, 0.14) 1px, transparent 1px),
        #e8faf5;
    background-size: 28px 28px, 14px 14px;
    background-position: 0 0, 7px 7px;
    border: 1.5px solid #82d5bb;
    color: #2a6b5a;
    position: relative;
    cursor: pointer;
    transition: all var(--animal-base) var(--animal-ease);
}
.continue-card.show { display: block; }
.continue-card:hover { transform: translateY(-2px); }
.continue-card:active { transform: translateY(0); }
.continue-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.continue-label {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2a6b5a;
    margin-bottom: 6px;
}
.continue-course-name {
    font-size: 18px;
    font-weight: 800;
    color: #2a6b5a;
}
.continue-lesson {
    font-size: 13px;
    color: #4a8a78;
    margin-top: 3px;
    font-weight: 500;
}
.continue-btn {
    padding: 11px 24px;
    border-radius: var(--animal-radius-pill);
    background: #f8f8f0;
    border: 2px solid #f8f8f0;
    box-shadow: 0 5px 0 0 var(--animal-shadow-btn);
    color: var(--animal-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--animal-base) var(--animal-ease);
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.continue-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 0 0 var(--animal-shadow-btn);
    border-color: var(--animal-primary);
    color: var(--animal-primary-active);
}
.continue-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 0 var(--animal-shadow-btn);
}
.continue-progress { margin-top: 16px; }
.continue-progress-bar {
    height: 14px;
    background: rgba(42, 107, 90, 0.15);
    border-radius: var(--animal-radius-pill);
    overflow: hidden;
    border: 1.5px solid rgba(42, 107, 90, 0.2);
}
.continue-progress-fill {
    height: 100%;
    border-radius: var(--animal-radius-pill);
    background: repeating-linear-gradient(-45deg, #19c8b9, #19c8b9 10px, #50b9ab 10px, #50b9ab 20px);
    background-size: 28.28px 28.28px;
    animation: progressScroll 1s linear infinite;
    transition: width 0.35s var(--animal-ease);
}
@keyframes progressScroll {
    0% { background-position: 0 0; }
    100% { background-position: -28.28px 0; }
}
.continue-progress-text {
    font-size: 12px;
    color: #4a8a78;
    margin-top: 6px;
    font-weight: 600;
}

/* ════════════════════════════════════════
   课程网格（羊皮纸波点卡片，无阴影）
   ════════════════════════════════════════ */
.course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}
.course-card {
    background: rgb(247, 243, 223);
    border: 1.5px solid #d4c4a8;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--animal-base) var(--animal-ease);
    position: relative;
}
.course-card:hover {
    transform: translateY(-2px);
    border-color: var(--animal-primary);
}
.course-card:active { transform: translateY(0); }
.course-cover {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    border-bottom: 1.5px solid #d4c4a8;
    background: var(--animal-bg-secondary);
}
.course-cover-placeholder {
    width: 100%;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    border-bottom: 1.5px solid #d4c4a8;
    background: var(--animal-bg-secondary);
}
.course-body {
    padding: 16px 18px 18px;
}
.course-name {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 3px;
    letter-spacing: 0.01em;
    color: var(--animal-text);
}
.course-subtitle {
    font-size: 12px;
    color: var(--animal-text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}
.course-desc {
    font-size: 12px;
    color: var(--animal-text-body);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}
.course-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--animal-text-muted);
    margin-bottom: 14px;
    font-weight: 600;
}
.course-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.course-progress {
    border-top: 1.5px dashed #d4c4a8;
    padding-top: 12px;
}
.course-progress-bar {
    height: 12px;
    background: rgba(114, 93, 66, 0.1);
    border-radius: var(--animal-radius-pill);
    overflow: hidden;
    margin-bottom: 8px;
    border: 1.5px solid rgba(114, 93, 66, 0.12);
}
.course-progress-fill {
    height: 100%;
    border-radius: var(--animal-radius-pill);
    transition: width 0.35s var(--animal-ease);
}
.course-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--animal-text-muted);
    font-weight: 600;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 60px 0;
    background: rgb(247, 243, 223);
    border: 1.5px solid #d4c4a8;
    border-radius: 20px;
}
.loading-spinner {
    width: 38px;
    height: 38px;
    border: 4px solid rgba(114, 93, 66, 0.15);
    border-top-color: var(--animal-primary);
    border-right-color: #f8a6b2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
    font-size: 13px;
    color: var(--animal-text-muted);
    font-weight: 600;
}

/* ════════════════════════════════════════
   学习方法（羊皮纸编号卡片）
   ════════════════════════════════════════ */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 36px;
}
.tip-card {
    background: rgb(247, 243, 223);
    border: 1.5px solid #d4c4a8;
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: all var(--animal-base) var(--animal-ease);
}
.tip-card:hover {
    transform: translateY(-2px);
    border-color: var(--animal-primary);
}
.tip-card:active { transform: translateY(0); }
.tip-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
    color: #fff;
    border: 1.5px solid #fff;
    box-shadow: 0 3px 0 0 rgba(189, 174, 160, 0.5);
}
.tip-card:nth-child(1) .tip-number { background: #19c8b9; }
.tip-card:nth-child(2) .tip-number { background: #b77dee; }
.tip-card:nth-child(3) .tip-number { background: #889df0; }
.tip-card:nth-child(4) .tip-number { background: #82d5bb; }
.tip-card:nth-child(5) .tip-number { background: #e59266; }
.tip-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--animal-text);
    margin-bottom: 6px;
}
.tip-desc {
    font-size: 12px;
    color: var(--animal-text-body);
    line-height: 1.65;
    font-weight: 500;
}

/* ════════════════════════════════════════
   页脚（小岛海景）
   ════════════════════════════════════════ */
.footer {
    padding: 26px 0 0;
    text-align: center;
    position: relative;
    background: rgba(255, 252, 244, 0.85);
    border-top: 1.5px solid #d4c4a8;
    border-radius: 20px 20px 0 0;
    margin-top: 10px;
}
.footer-text {
    font-size: 12px;
    color: var(--animal-text-muted);
    font-weight: 600;
}
.footer-brand {
    color: var(--animal-text-body);
    font-weight: 800;
}
.footer-version {
    font-size: 11px;
    color: var(--animal-text-muted);
    opacity: 0.7;
}
.footer-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.footer-link {
    font-size: 12px;
    color: var(--animal-text-body);
    text-decoration: none;
    padding: 7px 16px;
    border-radius: var(--animal-radius-pill);
    border: 2px solid var(--animal-border);
    background: var(--animal-bg-panel);
    transition: all 0.2s var(--animal-ease);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}
.footer-link:hover {
    color: var(--animal-primary-active);
    border-color: var(--animal-primary);
    transform: translateY(-2px);
}
.footer-sea {
    width: 100%;
    height: 56px;
    background: url('assets/img/footer-sea.svg') center / 720px 56px repeat-x;
    margin-top: 16px;
    border-radius: 0 0 20px 20px;
}

/* ════════════════════════════════════════
   弹窗（SVG 有机形状裁切）
   ════════════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: ac-fade-in 0.25s var(--animal-ease);
}
.modal-overlay.active {
    display: flex;
}
.modal {
    clip-path: url(#animal-modal-clip);
    background: rgb(247, 243, 223);
    color: var(--animal-text-body);
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    position: relative;
    padding: 44px 46px 32px;
    animation: ac-zoom-in 0.3s var(--animal-ease);
}
@keyframes ac-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes ac-zoom-in {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
}
.modal-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--animal-text);
    letter-spacing: 0.02em;
}
.modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(114, 93, 66, 0.6);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--animal-ease);
    font-family: inherit;
}
.modal-close:hover {
    background: rgba(114, 93, 66, 0.1);
    color: var(--animal-text);
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.stat-card {
    background: var(--animal-bg-panel);
    border: 1.5px solid var(--animal-border-pattern);
    border-radius: var(--animal-radius);
    padding: 20px;
    text-align: center;
}
.stat-card-icon {
    font-size: 24px;
    margin-bottom: 8px;
}
.stat-card-value {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0;
    color: var(--animal-text);
}
.stat-card-label {
    font-size: 12px;
    color: var(--animal-text-muted);
    margin-top: 4px;
    font-weight: 600;
}
.stat-card:nth-child(1) .stat-card-value { color: #f5a623; }
.stat-card:nth-child(2) .stat-card-value { color: #5f7ae6; }
.stat-card:nth-child(3) .stat-card-value { color: #fc736d; }
.stat-card:nth-child(4) .stat-card-value { color: #19c8b9; }

/* 数据管理 */
.data-desc {
    font-size: 13px;
    color: var(--animal-text-body);
    line-height: 1.7;
    margin-bottom: 18px;
    font-weight: 500;
}
.data-desc strong { color: var(--animal-primary-active); }
.data-btns {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}
.data-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--animal-bg-panel);
    border: 2px solid var(--animal-border-pattern);
    border-radius: var(--animal-radius);
    cursor: pointer;
    transition: all 0.2s var(--animal-ease);
    text-align: left;
    font-family: inherit;
    color: var(--animal-text);
    width: 100%;
}
.data-btn:hover {
    border-color: var(--animal-primary);
    transform: translateY(-2px);
}
.data-btn-icon { font-size: 20px; flex-shrink: 0; }
.data-btn-title { font-size: 14px; font-weight: 800; }
.data-btn-sub {
    font-size: 11px;
    color: var(--animal-text-muted);
    margin-top: 2px;
    font-weight: 500;
}
.data-import-hint {
    font-size: 11px;
    color: var(--animal-text-muted);
    text-align: center;
    margin-top: 6px;
    font-weight: 500;
}
.data-preview {
    margin-top: 4px;
    border: 1.5px solid var(--animal-border-pattern);
    border-radius: var(--animal-radius);
    overflow: hidden;
    background: var(--animal-bg-panel);
}
.data-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--animal-bg-secondary);
    border-bottom: 1.5px solid var(--animal-border-pattern);
}
.data-preview-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--animal-text);
}
.data-preview-body {
    padding: 10px 14px;
    max-height: 180px;
    overflow-y: auto;
}
.data-preview-row {
    font-size: 12px;
    color: var(--animal-text-body);
    padding: 5px 0;
    border-bottom: 1.5px dashed var(--animal-border-pattern);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-weight: 500;
}
.data-preview-row:last-child { border-bottom: none; }
.data-preview-row .ok { color: var(--animal-success); flex-shrink: 0; }
.data-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}
.data-mode-btn {
    padding: 12px;
    border-radius: var(--animal-radius-pill);
    border: 2px solid var(--animal-border-pattern);
    background: var(--animal-bg-panel);
    color: var(--animal-text-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--animal-ease);
    font-family: inherit;
}
.data-mode-btn.active {
    border-color: var(--animal-primary);
    color: var(--animal-primary-active);
    background: rgba(25, 200, 185, 0.1);
}
.data-import-actions {
    display: grid;
    gap: 10px;
}
.data-primary-btn {
    padding: 14px;
    border-radius: var(--animal-radius-pill);
    border: 2px solid #f8f8f0;
    background: #f8f8f0;
    box-shadow: 0 5px 0 0 var(--animal-shadow-btn);
    color: var(--animal-text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--animal-base) var(--animal-ease);
    font-family: inherit;
    letter-spacing: 0.02em;
}
.data-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 0 0 var(--animal-shadow-btn);
    background: #fffdf6;
}
.data-primary-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 0 var(--animal-shadow-btn);
}
.data-primary-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.data-ghost-btn {
    padding: 12px;
    border-radius: var(--animal-radius-pill);
    border: 2px solid var(--animal-border-pattern);
    background: transparent;
    color: var(--animal-text-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--animal-ease);
    font-family: inherit;
}
.data-ghost-btn:hover { color: var(--animal-primary-active); border-color: var(--animal-primary); }
.data-file-input { display: none; }

/* 学习方法详情 */
.tip-detail {
    padding: 18px;
    background: var(--animal-bg-panel);
    border: 1.5px solid var(--animal-border-pattern);
    border-radius: var(--animal-radius);
    margin-bottom: 12px;
}
.tip-detail:last-child { margin-bottom: 0; }
.tip-detail-name {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--animal-text);
}
.tip-detail-desc {
    font-size: 12px;
    color: var(--animal-text-body);
    line-height: 1.7;
    font-weight: 500;
}

/* ── 响应式 ── */
@media (max-width: 768px) {
    .ac-ribbon { font-size: 24px; }
    .streak-banner { flex-direction: column; align-items: stretch; gap: 16px; }
    .streak-dots { justify-content: center; }
    .course-grid { grid-template-columns: 1fr; }
    .nav-stat-icon { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .nav-brand-text { font-size: 16px; }
    .path-actions { grid-template-columns: 1fr; }
    .nav-stats .nav-stat:not(:first-child) { display: none; }
    .ac-ribbon { font-size: 21px; padding: 0 1.2em; }
}
@media (max-width: 480px) {
    .streak-dot { width: 30px; height: 30px; font-size: 10px; }
}

/* ── 卡片阴影增强 ── */
.vocab-due,
.path-action,
.quick-action,
.continue-card,
.course-card,
.tip-card,
.footer,
.loading-state {
    box-shadow: 0 6px 18px 0 rgba(61, 52, 40, 0.12), 0 2px 5px 0 rgba(61, 52, 40, 0.08);
}
.streak-banner {
    box-shadow: 0 3px 0 0 rgba(212, 160, 48, 0.3), 0 8px 20px 0 rgba(61, 52, 40, 0.1);
}