@charset "UTF-8";
/* ==========================================================================
   背词计划 · 全新印刷风（2026-11-23 从零重写）
   语言：深墨蓝 #0E1A31 + 香槟金 #D8B26A + 暖纸底 + 双线印刷框
   与首页 v6 Hero 同源；plan.js 的 DOM 契约全部保留，纯 CSS + 静态骨架改版
   ========================================================================== */

:root {
    --ink: #0E1A31;          /* 深墨蓝（品牌锚点） */
    --ink-2: #1D2B4A;
    --ink-3: #5B6478;        /* 次级文字 */
    --gold: #D8B26A;         /* 香槟金（数据/装饰） */
    --gold-deep: #A98344;
    --gold-wash: #F7F0DF;    /* 金色浅底 */
    --paper: #F5F2E9;        /* 页面纸底 */
    --card: #FFFDF8;         /* 卡片纸面 */
    --line: #E3DCC8;         /* 发线 */
    --line-2: #EFE9D8;
    --red: #C0492B;          /* 朱砂（警示专用） */
    --mint: #3E9B6C;         /* 完成态 */
    --serif: "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
    --sans: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    --r: 14px;
    --shadow: 0 1px 2px rgba(14, 26, 49, 0.05), 0 14px 30px -22px rgba(14, 26, 49, 0.35);
}

/* 全局：英文小字 kicker 一律隐藏（中文标题自足） */
.plan-kicker { display: none !important; }

/* 基础 */
.plan-page {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    /* 方格暗纹：极淡的印刷方格 */
    background-image:
        linear-gradient(rgba(14, 26, 49, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 26, 49, 0.028) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-font-smoothing: antialiased;
}
.plan-page *::after { box-sizing: border-box; }
.plan-page img { display: block; }
.plan-page button { font-family: inherit; cursor: pointer; }

/* 无障碍跳转 */
.plan-skip {
    position: absolute; left: -9999px; top: 0;
    padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 0 0 8px 0;
    font-size: 13px; text-decoration: none; z-index: 99;
}
.plan-skip:focus { left: 0; }

/* ================================================================ 顶栏 */
.plan-top {
    background: var(--ink);
    border-bottom: 1px solid rgba(216, 178, 106, 0.35);
}
.plan-top-in {
    max-width: 1060px; margin: 0 auto; padding: 10px 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.plan-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: #F5F0E6; min-width: 0;
}
.plan-brand-mark {
    flex: none; width: 30px; height: 30px; display: grid; place-items: center;
    border: 1px solid rgba(216, 178, 106, 0.65); border-radius: 8px;
    background: linear-gradient(150deg, rgba(216, 178, 106, 0.16), rgba(216, 178, 106, 0.05));
    color: var(--gold); font-family: var(--serif); font-size: 15px; font-weight: 700;
}
.plan-brand-t { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.plan-brand-t, .plan-brand-t span { color: #F5F0E6; }
.plan-brand-t span { color: rgba(216, 178, 106, 0.85); font-size: 10.5px; letter-spacing: 1px; }
.plan-brand:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.plan-top-actions { display: flex; align-items: center; gap: 6px; }
.plan-top-link {
    padding: 7px 12px; border: 1px solid rgba(216, 178, 106, 0.4); border-radius: 999px;
    background: transparent; color: #F5F0E6; font-size: 12.5px; text-decoration: none;
    transition: border-color .16s ease, color .16s ease;
}
.plan-top-link:hover { border-color: var(--gold); color: var(--gold); }

/* ================================================================ 主容器 */
.plan-wrap { max-width: 1060px; margin: 0 auto; padding: 0 18px 46px; }

/* ================================================================ 到期提醒条 */
.plan-due-banner {
    display: flex; align-items: center; gap: 12px;
    margin: 16px 0 0; padding: 12px 14px;
    border: 1px solid var(--gold); border-radius: var(--r);
    background: var(--gold-wash);
    box-shadow: inset 0 0 0 3px rgba(255, 253, 248, 0.75), var(--shadow);
    animation: planBannerIn .4s ease both;
}
.plan-due-icon { flex: none; font-size: 20px; }
.plan-due-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.plan-due-text b { font-size: 13.5px; color: var(--ink); }
.plan-due-text span { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.plan-due-x {
    flex: none; width: 26px; height: 26px; margin-left: auto;
    border: 0; background: transparent; border-radius: 50%;
    color: var(--ink-3); font-size: 16px; line-height: 1;
}
.plan-due-x:hover { color: var(--ink); background: rgba(14, 26, 49, 0.06); }
.plan-due-banner .plan-btn { flex: none; }
@keyframes planBannerIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ================================================================ Hero：深墨蓝印刷封面 */
.plan-hero {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    margin: 16px 0 26px; padding: 26px 28px;
    border-radius: 16px;
    background:
        linear-gradient(rgba(216, 178, 106, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 178, 106, 0.05) 1px, transparent 1px),
        linear-gradient(140deg, #0E1A31 0%, #16264A 88%);
    background-size: 26px 26px, 26px 26px, auto;
    box-shadow: 0 18px 40px -26px rgba(14, 26, 49, 0.85);
    overflow: hidden;
}
/* 双线金框：印刷封面式内框 */
.plan-hero::before {
    content: ""; position: absolute; inset: 7px;
    border: 1px solid rgba(216, 178, 106, 0.4); border-radius: 11px;
    pointer-events: none;
}
.plan-hero::after {
    content: ""; position: absolute; inset: 10px;
    border: 1px solid rgba(216, 178, 106, 0.18); border-radius: 8px;
    pointer-events: none;
}
.plan-hero-main { min-width: 0; position: relative; z-index: 1; }
.plan-title {
    margin: 0 0 8px; color: #F5F0E6;
    font-family: var(--serif); font-size: 25px; font-weight: 700; letter-spacing: 0.5px; line-height: 1.35;
}
.plan-title em { font-style: normal; color: var(--gold); }
.plan-sub { margin: 0; color: rgba(245, 240, 230, 0.66); font-size: 12.5px; line-height: 1.7; max-width: 46ch; }
.plan-hero-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }

.plan-chip-static {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px; border: 1px solid rgba(216, 178, 106, 0.35); border-radius: 999px;
    color: rgba(245, 240, 230, 0.78); font-size: 11px;
}
.plan-chip-static b { color: var(--gold); font-weight: 700; }
.plan-chip-static.is-mint { border-color: rgba(120, 200, 156, 0.45); }
.plan-chip-static.is-mint b { color: #8FD4AC; }

.plan-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.plan-hero-side {
    position: relative; z-index: 1; flex: none;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 14px 20px 12px;
    border: 1px solid rgba(216, 178, 106, 0.45); border-radius: 12px;
    background: rgba(216, 178, 106, 0.07);
}
.plan-date-big {
    font-family: var(--serif); font-size: 44px; font-weight: 700;
    color: var(--gold); line-height: 1; letter-spacing: 1px;
}
.plan-date-meta { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.plan-date-meta b { color: #F5F0E6; font-size: 12.5px; font-weight: 600; }
.plan-date-meta span { color: rgba(245, 240, 230, 0.55); font-size: 10.5px; }
.plan-streak-pill {
    margin-top: 6px; padding: 3px 10px;
    border: 1px solid rgba(216, 178, 106, 0.4); border-radius: 999px;
    color: var(--gold); font-size: 10.5px; white-space: nowrap;
}

/* ================================================================ 栅格 */
.plan-grid {
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
    gap: 22px; align-items: start;
}
.plan-col-side { min-width: 0; }

/* ================================================================ 印刷卡 */
.plan-card {
    position: relative;
    margin: 0 0 22px; padding: 18px 20px 20px;
    border: 1px solid var(--line); border-radius: var(--r);
    background: var(--card);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.85), inset 0 0 0 5px var(--line-2), var(--shadow);
}
.plan-col-side .plan-card:last-child { margin-bottom: 0; }

.plan-card-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding-bottom: 10px; margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.plan-card-head h2 {
    position: relative; margin: 0; padding-left: 15px;
    color: var(--ink); font-family: var(--serif); font-size: 17.5px; font-weight: 700; letter-spacing: 0.5px;
}
.plan-card-head h2::before {
    content: ""; position: absolute; left: 0; top: 50%; margin-top: -4.5px;
    width: 8px; height: 8px; background: var(--gold);
    transform: rotate(45deg);
}
.plan-head-note {
    flex: none; padding: 3px 10px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--paper); color: var(--ink-3); font-size: 10.5px; white-space: nowrap;
}

/* ================================================================ 按钮 */
.plan-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
    font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none;
    transition: transform .15s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.plan-btn:hover { transform: translateY(-1px); }
.plan-btn:active { transform: translateY(0); }
.plan-btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.plan-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.plan-btn-primary { background: var(--ink); color: #F5F0E6; box-shadow: 0 8px 18px -10px rgba(14, 26, 49, 0.55); }
.plan-btn-primary:hover { background: var(--ink-2); }
.plan-btn-ghost { background: transparent; border-color: #C9C2AE; color: var(--ink); }
.plan-btn-ghost:hover { border-color: var(--ink); background: rgba(14, 26, 49, 0.04); }
.plan-btn-yellow { background: var(--gold); color: var(--ink); }
.plan-btn-yellow:hover { background: #E2BF7C; }
.plan-btn-blue { background: #2E5FE8; color: #fff; }
.plan-btn-blue:hover { background: #2750C2; }
.plan-btn-mini { padding: 6px 12px; font-size: 11.5px; border-radius: 8px; }

/* 今日任务 CTA 行 */
.plan-cta-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.plan-cta-row .plan-btn { flex: 1 1 auto; min-width: 120px; }
.plan-cta-row .plan-btn-primary { flex: 1.6 1 auto; }

/* ================================================================ 今日任务卡 */
.plan-today { padding: 22px 22px 20px; }
.plan-loading {
    padding: 22px 4px; color: var(--ink-3); font-size: 12px; line-height: 1.7;
}
.plan-today-top { display: flex; align-items: center; gap: 18px; }
.plan-today-copy { min-width: 0; flex: 1; }
.plan-today-copy h2 {
    margin: 0 0 7px; font-family: var(--serif); font-size: 21px; font-weight: 700;
    color: var(--ink); line-height: 1.4; letter-spacing: 0.3px;
}
.plan-today-copy h2 b { color: var(--gold-deep); }
.plan-today-copy p { margin: 0; color: var(--ink-3); font-size: 12px; line-height: 1.7; }
.plan-today-copy p b { color: var(--ink); }

/* 完成环：香槟金 */
.plan-ring {
    position: relative; flex: none;
    width: 84px; height: 84px; border-radius: 50%;
    background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--line-2) 0);
    display: grid; place-items: center;
}
.plan-ring::before {
    content: ""; position: absolute; inset: 9px;
    border-radius: 50%; background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
}
.plan-ring-num { position: relative; text-align: center; line-height: 1.15; }
.plan-ring-num b { display: block; font-family: var(--serif); font-size: 19px; color: var(--ink); }
.plan-ring-num span { display: block; font-size: 9px; color: var(--ink-3); }

/* 任务药丸 */
.plan-task-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 16px; }
.plan-task-pill {
    padding: 10px 8px 9px; text-align: center;
    border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.plan-task-pill b {
    display: block; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.15;
}
.plan-task-pill span { display: block; margin-top: 2px; font-size: 10px; color: var(--ink-3); }
.plan-task-pill.is-new b { color: var(--gold-deep); }
.plan-task-pill.is-review b { color: var(--red); }
.plan-task-pill.is-done b { color: var(--mint); }

.plan-empty-cta { display: flex; justify-content: flex-end; margin-top: 14px; }
.plan-rest-note {
    margin-top: 14px; padding: 9px 12px;
    border: 1px dashed var(--line); border-radius: 10px;
    color: var(--ink-3); font-size: 11px; line-height: 1.65; background: var(--paper);
}
.plan-next-due { margin-top: 12px; color: var(--gold-deep); font-size: 11.5px; }

/* ================================================================ 记忆台阶 */
.plan-ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px 6px; }
.plan-step {
    display: flex; flex-direction: column; gap: 3px;
    padding: 8px 4px 7px; text-align: center;
    border: 1px solid var(--line); border-radius: 9px; background: var(--card);
}
.plan-step.is-pending { border-style: dashed; background: var(--paper); }
.plan-step.is-mastered { background: var(--ink); border-color: var(--ink); }
.plan-step.is-mastered .plan-step-t { color: var(--gold); }
.plan-step.is-mastered .plan-step-s { color: rgba(245, 240, 230, 0.55); }
.plan-step.is-mastered .plan-step-n { color: #F5F0E6; }
.plan-step-t { font-size: 10px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-step-s { font-size: 9px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-step-n { font-family: var(--serif); font-size: 14px; font-weight: 700; color: var(--ink); }
.plan-step-n small { font-size: 9px; font-weight: 400; color: var(--ink-3); margin-left: 1px; }
.plan-step.is-mastered .plan-step-n small { color: rgba(245, 240, 230, 0.55); }
.plan-step-bar { height: 34px; display: flex; align-items: flex-end; }
.plan-step-bar i {
    display: block; width: 100%; height: calc(var(--h) * 1%); min-height: 2px;
    border-radius: 3px 3px 1px 1px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
}
.plan-step.is-pending .plan-step-bar i { background: repeating-linear-gradient(45deg, var(--line) 0 4px, transparent 4px 8px); }
.plan-step.is-mastered .plan-step-bar i { background: linear-gradient(180deg, #35507E 0%, var(--ink-2) 100%); }

/* ================================================================ 未来 7 天 */
.plan-forecast {
    display: flex; align-items: flex-end; gap: 7px;
    height: 128px; padding-top: 8px;
    border-bottom: 1px solid var(--line);
}
.plan-fc { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.plan-fc-n { font-family: var(--serif); font-size: 12px; font-weight: 700; color: var(--ink-3); }
.plan-fc.is-today .plan-fc-n { color: var(--ink); font-size: 13px; }
.plan-fc-bar {
    width: 100%; max-width: 34px; height: calc(var(--h) * 1%);
    min-height: 3px; border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
}
.plan-fc.is-today .plan-fc-bar { background: linear-gradient(180deg, #35507E 0%, var(--ink) 100%); }
.plan-fc-l { padding: 6px 0 0; font-size: 10px; color: var(--ink-3); white-space: nowrap; }
.plan-fc.is-today .plan-fc-l { color: var(--ink); font-weight: 700; }

/* ================================================================ 学习数据 */
.plan-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.plan-stat {
    padding: 11px 10px 10px; text-align: center;
    border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
    border-top: 2px solid var(--gold);
}
.plan-stat b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.15; }
.plan-stat span { display: block; margin-top: 3px; font-size: 10px; color: var(--ink-3); }
.plan-stat.is-blue b { color: var(--ink); }
.plan-stat.is-coral b { color: var(--red); }
.plan-stat.is-mint b { color: var(--mint); }
.plan-stat.is-yellow b { color: var(--gold-deep); }

/* ================================================================ 词书进度 */
.plan-book-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan-book-name { font-family: var(--serif); font-size: 14px; font-weight: 700; color: var(--ink); }
.plan-book-meta { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.plan-book-bar {
    margin-top: 9px; height: 10px; border-radius: 999px;
    background: var(--line-2); overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--line);
}
.plan-book-bar i {
    display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold));
    transition: width .5s ease;
}
.plan-book-foot {
    display: flex; justify-content: space-between; gap: 8px;
    margin-top: 8px; font-size: 10.5px; color: var(--ink-3);
}
.plan-book-foot b { color: var(--ink); font-family: var(--serif); }

/* ================================================================ 提醒 */
.plan-remind-times { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-time-chip {
    padding: 3px 10px; border: 1px solid var(--gold); border-radius: 999px;
    background: var(--gold-wash); color: var(--ink); font-size: 11px; font-weight: 600;
}
.plan-remind-status {
    display: flex; align-items: flex-start; gap: 7px;
    margin-top: 10px; color: var(--ink-3); font-size: 11px; line-height: 1.6;
}
.plan-remind-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--line); margin-top: 5px; }
.plan-remind-dot.is-on { background: var(--mint); box-shadow: 0 0 0 3px rgba(62, 155, 108, 0.15); }
.plan-remind-dot.is-off { background: var(--line); }
.plan-remind-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }

/* ================================================================ 小工具 */
.plan-tool-btns { display: flex; flex-direction: column; gap: 8px; }
.plan-tool-btn {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 10px 13px; text-align: left;
    border: 1px solid var(--line); border-radius: 10px; background: var(--card);
    transition: border-color .16s ease, background .16s ease;
}
.plan-tool-btn b { font-size: 12.5px; color: var(--ink); }
.plan-tool-btn span { font-size: 10.5px; color: var(--ink-3); }
.plan-tool-btn:hover { border-color: var(--gold); background: var(--gold-wash); }
.plan-tool-btn:hover b { color: var(--ink); }

/* 词汇清单入口 */
.plan-link-btn {
    flex: none; padding: 0; border: 0; background: transparent;
    color: var(--gold-deep); font-size: 11.5px; font-weight: 600;
    border-bottom: 1px solid var(--gold);
}
.plan-link-btn:hover { color: var(--ink); border-color: var(--ink); }

/* 提示/注释文字 */
.plan-note { margin: 12px 0 0; color: var(--ink-3); font-size: 10.5px; line-height: 1.7; }
.plan-cal-tip { margin-top: 10px; color: var(--ink-3); font-size: 10px; line-height: 1.65; }

/* ================================================================ 页脚 */
.plan-foot {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin-top: 30px; padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--ink-3); font-size: 11px;
}
.plan-foot a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--gold); }
.plan-foot a:hover { color: var(--ink); border-color: var(--ink); }

/* ================================================================ 弹层骨架 */
.plan-modal {
    position: fixed; inset: 0; z-index: 80;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgba(10, 18, 36, 0.55);
    animation: planFadeIn .22s ease both;
}
.plan-modal[hidden] { display: none; }
@keyframes planFadeIn { from { opacity: 0; } to { opacity: 1; } }
.plan-sheet {
    position: relative;
    width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
    padding: 20px 20px 24px;
    border-radius: 18px 18px 0 0;
    background: var(--card);
    box-shadow: 0 -20px 50px -20px rgba(14, 26, 49, 0.5);
    animation: planSheetIn .3s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes planSheetIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.plan-sheet::-webkit-scrollbar { width: 6px; }
.plan-sheet::-webkit-scrollbar-track { background: transparent; }
.plan-sheet::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.plan-sheet-x {
    position: absolute; right: 12px; top: 12px;
    width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%;
    background: var(--card); color: var(--ink-3); font-size: 16px; line-height: 1;
}
.plan-sheet-x:hover { color: var(--ink); border-color: var(--ink); }

/* ================================================================ 设置弹层内容 */
.plan-setup-head { margin-bottom: 16px; padding-right: 30px; }
.plan-setup-head h2 {
    margin: 0 0 6px; font-family: var(--serif); font-size: 19px; color: var(--ink); letter-spacing: 0.4px;
}
.plan-setup-head p { margin: 0; color: var(--ink-3); font-size: 11.5px; line-height: 1.7; }
.plan-field { margin-top: 16px; }
.plan-field:first-of-type { margin-top: 0; }
.plan-field-label { margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.plan-field-label small { margin-left: 6px; font-size: 10.5px; font-weight: 400; color: var(--ink-3); }
.plan-field input[type="date"], .plan-field input[type="time"] {
    padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px;
    background: var(--paper); color: var(--ink); font-size: 13px; font-family: inherit;
}
.plan-field input[type="date"] { width: 100%; max-width: 220px; }
.plan-field input[type="date"]:focus { outline: none; border-color: var(--gold-deep); }

.plan-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.plan-seg button {
    padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--paper); color: var(--ink-3); font-size: 12px; font-weight: 600;
}
.plan-seg button:hover { border-color: var(--gold-deep); color: var(--ink); }
.plan-seg button.is-on { background: var(--ink); border-color: var(--ink); color: var(--gold); }

.plan-chip {
    display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px;
    padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--paper); font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.plan-chip small { font-size: 9.5px; font-weight: 400; color: var(--ink-3); }
.plan-chip:hover { border-color: var(--gold-deep); }
.plan-chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.plan-chip.is-on small { color: rgba(245, 240, 230, 0.6); }

.plan-stepper {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 5px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
}
.plan-stepper button {
    width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px;
    background: var(--card); color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1;
}
.plan-stepper button:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.plan-stepper b { font-family: var(--serif); font-size: 20px; color: var(--ink); min-width: 44px; text-align: center; }
.plan-stepper b small { font-size: 10px; font-weight: 400; color: var(--ink-3); margin-left: 2px; }
.plan-stepper-tip { display: block; margin-top: 6px; font-size: 10.5px; color: var(--ink-3); }

.plan-week { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-week button {
    width: 42px; height: 38px; border: 1px solid var(--line); border-radius: 9px;
    background: var(--paper); color: var(--ink-3); font-size: 12px; font-weight: 600;
}
.plan-week button:hover { border-color: var(--gold-deep); color: var(--ink); }
.plan-week button.is-on { background: var(--ink); border-color: var(--ink); color: var(--gold); }

.plan-time-row { display: flex; gap: 8px; }
.plan-time-row input { flex: 1 1 130px; max-width: 150px; }
.plan-time-row input:focus { outline: none; border-color: var(--gold-deep); }
.plan-check {
    display: flex; align-items: center; gap: 7px;
    margin-top: 9px; font-size: 12px; color: var(--ink);
}
.plan-check input { width: 15px; height: 15px; accent-color: var(--gold-deep); }

/* 遗忘曲线预览 */
.plan-curve-wrap { margin-top: 4px; }
.plan-curve {
    display: flex; align-items: flex-end; gap: 3px; height: 52px;
    padding-bottom: 2px; border-bottom: 1px solid var(--line);
}
.plan-curve span {
    flex: 1; border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
}
.plan-curve span:nth-child(1) { height: 96%; opacity: 1; }
.plan-curve span:nth-child(2) { height: 86%; opacity: .93; }
.plan-curve span:nth-child(3) { height: 78%; opacity: .86; }
.plan-curve span:nth-child(4) { height: 70%; opacity: .8; }
.plan-curve span:nth-child(5) { height: 63%; opacity: .74; }
.plan-curve span:nth-child(6) { height: 56%; opacity: .68; }
.plan-curve span:nth-child(7) { height: 50%; opacity: .62; }
.plan-curve span:nth-child(8) { height: 43%; opacity: .56; }
.plan-curve span:nth-child(9) { height: 36%; opacity: .5; }
.plan-curve span:nth-child(10) { height: 28%; opacity: .44; }
.plan-curve-labels { display: flex; gap: 3px; margin-top: 5px; }
.plan-curve-labels span { flex: 1; font-size: 8.5px; color: var(--ink-3); text-align: center; white-space: nowrap; }

.plan-setup-foot {
    display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
    margin-top: 20px; padding-top: 14px;
    border-top: 1px solid var(--line);
}
.plan-setup-foot .plan-btn-primary { flex: 1 1 180px; }
.plan-setup-foot .plan-reset { margin-left: auto; }
.plan-danger-link {
    padding: 0; border: 0; background: transparent;
    color: var(--red); font-size: 11px; text-decoration: underline;
}
.plan-danger-link:hover { color: #9A3620; }

/* ================================================================ 词汇清单弹层 */
.plan-list { max-height: 86vh; }
.plan-list-head h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 19px; color: var(--ink); }
.plan-list-head p { margin: 0; color: var(--ink-3); font-size: 11.5px; }
.plan-list-tools { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.plan-list-search {
    width: 100%; padding: 9px 13px;
    border: 1px solid var(--line); border-radius: 10px;
    background: var(--paper); color: var(--ink); font-size: 13px;
}
.plan-list-search:focus { outline: none; border-color: var(--gold-deep); }
.plan-list-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-list-filters button {
    padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--paper); color: var(--ink-3); font-size: 11.5px; font-weight: 600;
}
.plan-list-filters button:hover { border-color: var(--gold-deep); color: var(--ink); }
.plan-list-filters button.is-on { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.plan-list-rows { margin-top: 10px; }
.plan-list-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 4px; border-bottom: 1px solid var(--line-2);
}
.plan-list-word { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.plan-list-word b { font-size: 13.5px; color: var(--ink); }
.plan-list-word span { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-list-meta { flex: none; font-size: 10.5px; color: var(--ink-3); text-align: right; }
.plan-list-meta b { font-weight: 700; color: var(--ink); }
.plan-list-meta span { display: block; font-size: 9.5px; }
.plan-list-meta.is-due b { color: var(--red); }
.plan-list-meta.is-mastered b { color: var(--mint); }
.plan-list-empty { padding: 26px 0; text-align: center; color: var(--ink-3); font-size: 12px; }
.plan-list-more {
    display: block; width: 100%; margin-top: 12px; padding: 9px;
    border: 1px dashed var(--line); border-radius: 10px;
    background: var(--paper); color: var(--ink-3); font-size: 12px;
}
.plan-list-more:hover { border-color: var(--gold-deep); color: var(--ink); }

/* ================================================================ 学习弹层（沉浸） */
.plan-study { align-items: stretch; background: rgba(10, 18, 36, 0.97); padding: 0; }
.plan-study-shell {
    position: relative; width: 100%; max-width: 620px; margin: 0 auto;
    display: flex; flex-direction: column;
    padding: 14px 16px 18px; overflow-y: auto;
    color: #F5F0E6;
}
.plan-study-top {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
}
.plan-study-progress {
    flex: 1; height: 6px; border-radius: 999px;
    background: rgba(245, 240, 230, 0.16); overflow: hidden;
}
.plan-study-progress i {
    display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold));
    transition: width .35s ease;
}
.plan-study-count { flex: none; font-size: 11.5px; color: rgba(245, 240, 230, 0.7); font-variant-numeric: tabular-nums; }
.plan-study-x {
    flex: none; width: 32px; height: 32px;
    border: 1px solid rgba(216, 178, 106, 0.5); border-radius: 50%;
    background: transparent; color: var(--gold); font-size: 17px; line-height: 1;
}
.plan-study-x:hover { background: rgba(216, 178, 106, 0.12); }

.plan-study-card {
    flex: none; margin: auto 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: 26px 22px 22px;
    border-radius: 16px;
    background: var(--card); color: var(--ink);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.85), inset 0 0 0 5px var(--line-2), 0 24px 50px -24px rgba(0, 0, 0, 0.6);
}
.plan-study-card.is-out { animation: planCardOut .22s ease both; }
.plan-study-card.is-in { animation: planCardIn .26s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes planCardOut { to { opacity: 0; transform: translateY(-14px); } }
@keyframes planCardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.plan-study-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--gold-deep); text-align: center; }
.plan-study-word {
    margin: 10px 0 4px; text-align: center;
    font-size: 34px; font-weight: 700; color: var(--ink); letter-spacing: 0.5px; line-height: 1.2;
    word-break: break-word;
}
.plan-study-phon {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    color: var(--ink-3); font-size: 13px;
}
.plan-audio-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid var(--gold); border-radius: 50%;
    background: var(--gold-wash); color: var(--gold-deep); font-size: 14px;
}
.plan-audio-btn i { font-style: normal; }
.plan-audio-btn:hover { background: var(--gold); color: var(--ink); }
.plan-audio-btn.is-playing { background: var(--gold); color: var(--ink); animation: planPop .3s ease; }
@keyframes planPop { 50% { transform: scale(1.12); } }

.plan-study-hint { margin-top: 14px; text-align: center; color: var(--ink-3); font-size: 11px; }
.plan-study-reveal { margin-top: 14px; animation: planRevealIn .3s ease both; }
@keyframes planRevealIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.plan-study-trans { text-align: center; font-size: 16px; font-weight: 700; color: var(--ink); }
.plan-study-ex {
    margin-top: 14px; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.plan-study-ex-en { font-size: 13px; color: var(--ink); line-height: 1.65; }
.plan-study-ex-en mark { background: var(--gold-wash); color: var(--gold-deep); padding: 0 2px; border-radius: 3px; }
.plan-study-ex-zh { margin-top: 4px; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.plan-study-media { margin-top: 12px; display: flex; justify-content: center; }
.plan-study-media img { max-width: 46%; max-height: 150px; border-radius: 10px; }

.plan-study-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.plan-study-actions .plan-btn { width: 100%; }
.plan-study-tip { margin-top: 10px; text-align: center; color: var(--ink-3); font-size: 10.5px; line-height: 1.6; }

/* 自评按钮组 */
.plan-assess {
    display: flex; gap: 8px; margin-top: 16px;
}
.plan-assess button {
    flex: 1; padding: 11px 6px;
    border-radius: 10px; border: 1px solid var(--line);
    background: var(--paper); font-size: 13px; font-weight: 700;
}
.plan-assess span { display: block; margin-top: 2px; font-size: 9.5px; font-weight: 400; color: var(--ink-3); }
.plan-assess kbd { display: inline-block; margin-left: 4px; padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; font-size: 9px; color: var(--ink-3); background: var(--card); }
.plan-assess b { color: var(--ink); }
.plan-assess button:hover { transform: translateY(-1px); }
.plan-assess .is-known { border-color: var(--mint); color: var(--mint); background: rgba(62, 155, 108, 0.06); }
.plan-assess .is-known b { color: var(--mint); }
.plan-assess .is-fuzzy { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-wash); }
.plan-assess .is-fuzzy b { color: var(--gold-deep); }
.plan-assess .is-forgot { border-color: var(--red); color: var(--red); background: rgba(192, 73, 43, 0.05); }
.plan-assess .is-forgot b { color: var(--red); }

.plan-now-btn {
    width: 100%; margin-top: 12px; padding: 11px;
    border: 1px solid var(--ink); border-radius: 10px;
    background: var(--ink); color: var(--gold); font-size: 13.5px; font-weight: 700;
}
.plan-now-btn:hover { background: var(--ink-2); }

.plan-badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 999px;
    background: var(--gold-wash); border: 1px solid var(--gold);
    color: var(--gold-deep); font-size: 10px; font-weight: 700;
}
.plan-badge.is-review { background: rgba(192, 73, 43, 0.07); border-color: rgba(192, 73, 43, 0.4); color: var(--red); }
.plan-badge.is-retry { background: rgba(14, 26, 49, 0.05); border-color: var(--line); color: var(--ink-3); }

/* 完成页 */
.plan-study-done { text-align: center; padding: 26px 8px 16px; animation: planRevealIn .35s ease both; }
.plan-done-emoji { font-size: 46px; line-height: 1; }
.plan-study-done h2 { margin: 12px 0 6px; font-family: var(--serif); font-size: 21px; color: var(--ink); }
.plan-study-done p { margin: 0; color: var(--ink-3); font-size: 12px; line-height: 1.7; }
.plan-done-stats { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.plan-done-stat {
    flex: 1; max-width: 130px; padding: 11px 8px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.plan-done-stat:first-child { border-top: 2px solid var(--gold); }
.plan-done-stat b { display: block; font-family: var(--serif); font-size: 20px; color: var(--ink); }
.plan-done-stat span { display: block; margin-top: 2px; font-size: 10px; color: var(--ink-3); }
.plan-done-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }

/* 彩带 */
.plan-confetti {
    position: fixed; top: -12px; z-index: 90;
    width: 9px; height: 14px; border-radius: 2px;
    background: var(--gold);
    animation: planConfettiFall 1.9s ease-in forwards;
}
.plan-confetti:nth-child(2n) { background: var(--ink-2); width: 7px; }
.plan-confetti:nth-child(3n) { background: var(--gold-deep); width: 11px; }
@keyframes planConfettiFall {
    to { transform: translateY(105vh) rotate(540deg); opacity: .6; }
}

/* ================================================================ Toast */
.plan-toast-wrap {
    position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
    z-index: 95; display: flex; flex-direction: column; gap: 8px; align-items: center;
    pointer-events: none;
}
.plan-toast {
    padding: 10px 18px; border-radius: 999px;
    background: rgba(14, 26, 49, 0.94); color: #F5F0E6;
    font-size: 12.5px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
    animation: planToastIn .28s cubic-bezier(.2, .8, .3, 1) both;
}
.plan-toast.is-mint { background: rgba(62, 155, 108, 0.96); color: #fff; }
.plan-toast.is-warn { background: rgba(192, 73, 43, 0.96); color: #fff; }
@keyframes planToastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ================================================================ 响应式 */
@media (max-width: 900px) {
    .plan-grid { grid-template-columns: 1fr; gap: 0; }
    .plan-col-side .plan-card { margin-bottom: 22px; }
    .plan-hero { padding: 22px 22px; }
    .plan-title { font-size: 21px; }
}

@media (max-width: 680px) {
    .plan-wrap { padding: 0 13px 40px; }
    .plan-top-in { padding: 9px 13px; }
    .plan-brand-t span { font-size: 9.5px; }
    .plan-top-link { padding: 6px 10px; font-size: 11.5px; }
    .plan-hero {
        flex-direction: row; align-items: stretch; gap: 14px;
        margin: 13px 0 20px; padding: 18px 16px;
    }
    .plan-hero::before { inset: 5px; border-radius: 9px; }
    .plan-hero::after { inset: 8px; }
    .plan-title { font-size: 17.5px; margin-bottom: 6px; }
    .plan-sub { font-size: 11px; }
    .plan-hero-side { flex: none; padding: 10px 13px 9px; gap: 2px; }
    .plan-date-big { font-size: 32px; }
    .plan-date-meta b { font-size: 11px; }
    .plan-date-meta span { font-size: 9.5px; }
    .plan-streak-pill { font-size: 9.5px; margin-top: 4px; }
    .plan-card { margin-bottom: 16px; padding: 15px 14px 16px; }
    .plan-card-head { padding-bottom: 8px; margin-bottom: 12px; }
    .plan-card-head h2 { font-size: 15.5px; }
    .plan-today { padding: 17px 15px 16px; }
    .plan-today-copy h2 { font-size: 17px; }
    .plan-today-top { gap: 12px; }
    .plan-ring { width: 68px; height: 68px; }
    .plan-ring::before { inset: 7px; }
    .plan-ring-num b { font-size: 15px; }
    .plan-task-pill b { font-size: 16px; }
    .plan-btn { padding: 9px 15px; font-size: 12.5px; }
    .plan-cta-row { gap: 7px; margin-top: 12px; }
    .plan-forecast { height: 106px; gap: 5px; }
    .plan-fc-n { font-size: 10.5px; }
    .plan-fc-l { font-size: 9px; padding-top: 4px; }
    .plan-stats-grid { gap: 7px; }
    .plan-stat b { font-size: 17px; }
    .plan-foot { margin-top: 22px; font-size: 10.5px; }
    .plan-sheet { padding: 17px 15px 22px; }
    .plan-study-card { padding: 18px 15px 16px; }
    .plan-study-word { font-size: 28px; }
    .plan-study-shell { padding: 12px 12px 14px; }
}

@media (max-width: 420px) {
    /* 记忆台阶：窄屏 3 列两行 */
    .plan-ladder { grid-template-columns: repeat(3, 1fr); gap: 7px 5px; }
    .plan-step-t { font-size: 9.5px; }
    .plan-step-s { font-size: 8.5px; }
    .plan-step-bar { height: 26px; }
    .plan-due-banner { flex-wrap: wrap; gap: 9px; padding: 11px 12px; }
    .plan-due-banner .plan-btn { margin-left: auto; }
    .plan-task-pills { gap: 6px; }
    .plan-week button { width: 40px; height: 36px; }
}

@media (max-width: 360px) {
    .plan-title { font-size: 16px; }
    .plan-hero-side { padding: 8px 10px 7px; }
    .plan-date-big { font-size: 27px; }
    .plan-btn { padding: 8px 12px; font-size: 12px; }
    .plan-card { padding: 13px 12px 14px; }
    .plan-today { padding: 15px 12px 14px; }
    .plan-assess button { font-size: 12px; padding: 9px 4px; }
}

/* 尊重系统减少动效 */
@media (prefers-reduced-motion: reduce) {
    .plan-page *, .plan-page *::before, .plan-page *::after {
        animation-duration: 0.01ms !important; transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   学习页 · 36new 同源视觉（2026-11-23 v2）
   只覆盖学习弹层，不影响计划首页。
   ========================================================================== */
@font-face {
    font-family: 'Plan Hand';
    src: url('./fonts/patrick-hand-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.plan-study {
    align-items: stretch;
    padding: 0;
    color: #1d2b53;
    background: #f3ead9;
    background-image:
        radial-gradient(rgba(146, 123, 86, 0.16) 1px, transparent 1px),
        linear-gradient(180deg, #f8f1e4 0%, #f2e7d4 100%);
    background-size: 18px 18px, 100% 100%;
}
.plan-study-shell {
    width: 100%;
    max-width: 980px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 0 0 calc(32px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #fffdfa;
    color: #1d2b53;
    box-shadow: 0 0 0 1px rgba(84, 62, 30, 0.04), 0 30px 80px rgba(84, 62, 30, 0.16);
}
.plan-study-nav {
    position: sticky;
    top: 0;
    z-index: 8;
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    padding-top: calc(10px + env(safe-area-inset-top));
    background: rgba(255, 253, 248, 0.94);
    border-bottom: 1px solid #efe3cf;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.plan-study-brand {
    flex: none;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.plan-study-logo {
    flex: none;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 2px solid #f0b429;
    border-radius: 11px;
    background: linear-gradient(180deg, #ffffff, #fff6e0);
    color: #e8483f;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 3px 0 #e2c98f, inset 0 1px 0 #fff;
}
.plan-study-brand b {
    display: block;
    color: #1d2b53;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}
.plan-study-brand > div > span {
    display: block;
    margin-top: 1px;
    color: #93866f;
    font-size: 9px;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.plan-study-mode {
    flex: none;
    padding: 4px 10px;
    border: 1px solid #f0d69a;
    border-radius: 999px;
    background: #fff7e2;
    color: #9a6b00;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 1px 0 #fff;
}
.plan-study-nav-mid {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.plan-study-progress {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: #f2e8d6;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(84, 62, 30, 0.08);
}
.plan-study-progress i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffcf5c, #f0a92e);
    transition: width 0.35s ease;
}
.plan-study-count {
    flex: none;
    color: #7b8598;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.plan-study-x {
    flex: none;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 1px solid #e5ddca;
    border-radius: 50%;
    background: #fff;
    color: #6b7280;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.plan-study-x:hover {
    background: #f7f2e8;
    color: #1d2b53;
}
.plan-study-stage {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 28px 44px;
    background-image: radial-gradient(rgba(146, 123, 86, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
}
.plan-study-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 26px 28px 28px;
    display: flex;
    flex-direction: column;
    border: 1px solid #efe3cf;
    border-radius: 28px;
    background: #fffefb;
    color: #1d2b53;
    box-shadow: 0 28px 60px -34px rgba(84, 62, 30, 0.45), inset 0 2px 0 #fff;
}
.plan-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background: linear-gradient(90deg, #f07b9a, #ffd166, #57c99a, #5b9bd5);
}
.plan-study-label {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
.plan-study-label .plan-badge {
    padding: 3px 11px;
    border-color: #f0d69a;
    background: #fff7e2;
    color: #9a6b00;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    box-shadow: 0 1px 0 #fff;
}
.plan-study-label .plan-badge.is-review {
    border-color: #d8e6ff;
    background: #eef4ff;
    color: #2b4a8b;
}
.plan-study-label .plan-badge.is-retry {
    border-color: #e5ddca;
    background: #faf7f0;
    color: #8a8273;
}
.plan-study-hero {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-top: 4px;
}
.plan-study-hero.is-solo {
    grid-template-columns: 1fr;
}
.plan-study-media-wrap {
    position: relative;
    padding: 10px;
    border: 1px solid #eadfc9;
    border-radius: 22px;
    background: linear-gradient(180deg, #fbf5e8, #f6eedf);
    box-shadow: inset 0 0 0 5px #fff, 0 10px 22px -16px rgba(84, 62, 30, 0.45);
}
.plan-study-media {
    width: 100%;
    margin: 0;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
}
.plan-study-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    border-radius: 14px;
}
.plan-study-media-tag {
    position: absolute;
    left: 50%;
    bottom: -11px;
    z-index: 2;
    transform: translateX(-50%) rotate(-2deg);
    padding: 3px 12px;
    border: 1px solid #d9a520;
    border-radius: 999px;
    background: #ffd166;
    color: #5a3d00;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 2px 0 #d9a520;
}
.plan-study-main {
    min-width: 0;
    text-align: left;
}
.plan-study-word {
    margin: 0;
    color: #e8483f;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", var(--sans);
    font-size: clamp(46px, 6vw, 68px);
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.04;
    word-break: break-word;
    text-shadow: 0 2px 0 #ffe3de;
}
.plan-study-syllable {
    margin-top: 4px;
    color: #7c8aa6;
    font-size: 18px;
    letter-spacing: 3px;
}
.plan-study-phon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 12px;
}
.plan-audio-btn {
    width: auto;
    height: 33px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 10px 4px 4px;
    border: 1px solid #e3e8ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #1d2b53;
    font-size: 12px;
    box-shadow: 0 1px 0 #fff;
}
.plan-audio-btn:hover {
    border-color: #b9d4f6;
    background: #eef4ff;
    color: #1d2b53;
}
.plan-audio-btn.is-playing {
    border-color: #d9a520;
    background: #ffd166;
    color: #3a2a00;
    animation: planPop 0.3s ease;
}
.plan-audio-flag {
    flex: none;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #1d2b53;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}
.plan-audio-ipa {
    color: #334155;
    white-space: nowrap;
}
.plan-audio-wave {
    font-size: 11px;
    opacity: 0.65;
}
.plan-study-trans {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 7px 18px;
    border: 1px solid #d8e6ff;
    border-radius: 999px;
    background: #eef4ff;
    color: #2b4a8b;
    font-size: 17px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 #fff;
}
.plan-study-trans.is-locked {
    border-style: dashed;
    border-color: #d9c9aa;
    background: #faf5e9;
    color: #a39783;
    font-size: 12px;
    font-weight: 600;
}
.plan-study-trans.is-locked span {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffd166;
    color: #6b4a00;
    font-size: 11px;
    font-weight: 800;
}
.plan-letter-board {
    width: 100%;
    max-width: 600px;
    margin: 22px auto 0;
    padding: 12px 16px 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, #2e6e59, #235442);
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.2), 0 5px 0 #1b4438, 0 10px 20px -14px rgba(27, 68, 56, 0.65);
}
.plan-letter-board-t {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffe6a6;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 2px;
}
.plan-letters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 9px;
}
.plan-letter {
    min-width: 34px;
    height: 44px;
    padding: 0 7px;
    display: grid;
    place-items: center;
    border: 1.5px dashed rgba(255, 235, 180, 0.55);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffe08a;
    font-family: "Arial Rounded MT Bold", var(--sans);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}
.plan-letter.is-first {
    color: #ffd166;
    border-color: #ffd166;
    background: rgba(255, 209, 102, 0.14);
    box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.08);
}
.plan-letter-space {
    width: 8px;
}
.plan-letter-punct {
    color: rgba(255, 246, 214, 0.65);
    font-size: 15px;
}
.plan-letter-board.is-long .plan-letter {
    min-width: 28px;
    height: 38px;
    padding: 0 5px;
    font-size: 18px;
}
.plan-study-prompt {
    margin-top: 22px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px dashed #e6d5b4;
    border-radius: 18px;
    background: linear-gradient(180deg, #fdf8ec, #fbf4e4);
}
.plan-study-prompt-q {
    flex: none;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 2px solid #d9a520;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffe08a, #ffd166);
    color: #6b4a00;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 3px 0 #d9a520;
}
.plan-study-prompt b {
    display: block;
    color: #1d2b53;
    font-size: 15px;
}
.plan-study-prompt div > span {
    display: block;
    margin-top: 3px;
    color: #8d8374;
    font-size: 12px;
}
.plan-study-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}
.plan-study-actions .plan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 230px;
    padding: 14px 34px;
    border: 1px solid #d9a520;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe08a, #ffd166);
    color: #4a3400;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 5px 0 #d9a520, 0 16px 26px -16px rgba(217, 165, 32, 0.7);
}
.plan-study-actions .plan-btn kbd {
    padding: 2px 7px;
    border: 1px solid rgba(90, 61, 0, 0.25);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.45);
    color: #6b4a00;
    font-size: 10px;
    font-weight: 700;
}
.plan-study-actions .plan-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #d9a520;
}
.plan-study-reveal {
    margin-top: 20px;
    animation: planRevealIn 0.3s ease both;
}
.plan-study-ex-head {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a39783;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}
.plan-study-ex-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #efe3cf;
}
.plan-study-ex {
    max-width: none;
    margin: 10px 0 0;
    padding: 16px 18px;
    border: 1px solid #efe3cf;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdf7, #fff9ed);
    text-align: center;
    box-shadow: inset 0 1px 0 #fff;
}
.plan-study-ex-en {
    color: #2b3445;
    font-family: 'Plan Hand', 'Comic Sans MS', cursive;
    font-size: 25px;
    line-height: 1.5;
}
.plan-study-ex-en mark {
    padding: 0 2px;
    border-radius: 0;
    background: linear-gradient(transparent 58%, #ffe08a 58%);
    color: #d64536;
}
.plan-study-ex-zh {
    margin-top: 3px;
    color: #8d8374;
    font-size: 12.5px;
    line-height: 1.6;
}
.plan-assess {
    width: 100%;
    max-width: 720px;
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.plan-assess button {
    position: relative;
    overflow: hidden;
    min-height: 82px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 2px solid transparent;
    border-radius: 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.plan-assess button::before {
    content: '';
    position: absolute;
    right: -12px;
    bottom: -18px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}
.plan-assess b {
    position: relative;
    color: inherit;
    font-size: 16px;
}
.plan-assess span {
    position: relative;
    display: block;
    margin-top: 1px;
    color: inherit;
    font-size: 9.5px;
    font-weight: 500;
    opacity: 0.9;
}
.plan-assess kbd {
    position: relative;
    margin-top: 4px;
    padding: 0 5px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 9px;
}
.plan-assess button:hover {
    transform: translateY(-1px);
}
.plan-assess button:active {
    transform: translateY(3px);
    box-shadow: none;
}
.plan-assess .is-forgot {
    border-color: #d95f82;
    background: linear-gradient(180deg, #ff9db5, #f07b9a);
    box-shadow: 0 5px 0 #c94e70, 0 14px 22px -16px rgba(201, 78, 112, 0.7);
    color: #fff;
}
.plan-assess .is-fuzzy {
    border-color: #d9a520;
    background: linear-gradient(180deg, #ffe08a, #ffd166);
    box-shadow: 0 5px 0 #d9a520, 0 14px 22px -16px rgba(217, 165, 32, 0.7);
    color: #4a3400;
}
.plan-assess .is-known {
    border-color: #2f9d74;
    background: linear-gradient(180deg, #7adcae, #57c99a);
    box-shadow: 0 5px 0 #2f9d74, 0 14px 22px -16px rgba(47, 157, 116, 0.7);
    color: #fff;
}
.plan-study .plan-assess .is-forgot b,
.plan-study .plan-assess .is-forgot span,
.plan-study .plan-assess .is-forgot kbd {
    color: #fff;
}
.plan-study .plan-assess .is-fuzzy b,
.plan-study .plan-assess .is-fuzzy span,
.plan-study .plan-assess .is-fuzzy kbd {
    color: #4a3400;
}
.plan-study .plan-assess .is-known b,
.plan-study .plan-assess .is-known span,
.plan-study .plan-assess .is-known kbd {
    color: #fff;
}
.plan-study-tip {
    margin-top: 10px;
    color: #a39783;
    font-size: 10.5px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 760px) {
    .plan-study-shell {
        min-height: 100vh;
        min-height: 100dvh;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
    .plan-study-nav {
        gap: 8px;
        padding: 8px 12px;
        padding-top: calc(8px + env(safe-area-inset-top));
    }
    .plan-study-mode {
        display: none;
    }
    .plan-study-brand > div > span {
        display: none;
    }
    .plan-study-brand b {
        font-size: 13px;
    }
    .plan-study-logo {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 18px;
    }
    .plan-study-count {
        font-size: 10px;
    }
    .plan-study-stage {
        padding: 12px 12px 24px;
    }
    .plan-study-card {
        padding: 16px 14px 18px;
        border-radius: 22px;
    }
    .plan-study-hero {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .plan-study-media-wrap {
        width: min(58%, 200px);
        margin: 0 auto;
    }
    .plan-study-main {
        text-align: center;
    }
    .plan-study-word {
        font-size: 40px;
    }
    .plan-study-syllable {
        font-size: 16px;
    }
    .plan-study-phon {
        justify-content: center;
    }
    .plan-study-trans {
        margin-left: auto;
        margin-right: auto;
    }
    .plan-letter-board {
        margin-top: 16px;
        padding: 8px 12px 11px;
    }
    .plan-letter {
        min-width: 28px;
        height: 36px;
        font-size: 19px;
    }
    .plan-study-prompt {
        padding: 14px;
        gap: 12px;
    }
    .plan-study-prompt-q {
        width: 46px;
        height: 46px;
        font-size: 24px;
    }
    .plan-study-prompt b {
        font-size: 14px;
    }
    .plan-study-reveal {
        margin-top: 14px;
    }
    .plan-study-ex {
        margin-top: 8px;
        padding: 10px 12px;
    }
    .plan-study-ex-en {
        font-size: 21px;
    }
    .plan-assess {
        grid-template-columns: 1fr;
        gap: 7px;
        max-width: 420px;
        margin-top: 14px;
    }
    .plan-assess button {
        min-height: 44px;
        flex-direction: row;
        gap: 8px;
        padding: 9px 12px;
        border-radius: 999px;
    }
    .plan-assess button::before {
        display: none;
    }
    .plan-assess span {
        display: inline;
        margin-top: 0;
        font-size: 10px;
    }
    .plan-assess kbd {
        margin-top: 0;
        margin-left: 2px;
    }
    .plan-study-actions .plan-btn {
        min-width: 200px;
        padding: 13px 28px;
    }
}

@media (max-width: 380px) {
    .plan-study-word {
        font-size: 38px;
    }
    .plan-letter {
        min-width: 26px;
        height: 35px;
        font-size: 18px;
    }
    .plan-audio-btn {
        font-size: 11px;
    }
    .plan-audio-flag {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
}

/* ==========================================================================
   学习页 · 直接复用 36new 单词卡与测试层（2026-11-23 v3）
   ========================================================================== */
.plan-study .plan-study-stage {
    padding: 22px 16px 36px;
}
.plan-study .plan-study-card {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.plan-study .plan-study-card::before {
    display: none;
}
.plan-study .plan-word-card.word-card {
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
}
.plan-study .plan-study-label {
    margin-bottom: 12px;
}
.plan-study .plan-study-label .plan-badge {
    padding: 4px 12px;
    font-size: 11px;
}

.plan-test-result {
    display: flex;
    justify-content: center;
    margin: 0 0 12px;
}
.plan-test-result span {
    padding: 5px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
}
.plan-test-result.is-right span {
    border-color: #7adcae;
    background: #dcf7ea;
    color: #16624a;
}
.plan-test-result.is-wrong span {
    border-color: #f0a3b7;
    background: #ffe9ef;
    color: #8f2440;
}
.plan-test-result.is-skip span {
    border-color: #f0d69a;
    background: #fff7e2;
    color: #9a6b00;
}

.plan-rate-bar {
    width: 100%;
    max-width: 940px;
    margin: 18px auto 0;
}
.plan-rate-caption {
    margin-bottom: 10px;
    color: #8d8374;
    font-size: 12px;
    text-align: center;
}
.plan-rate-bar .wl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}
.plan-rate-bar .wl-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 16px;
}
.plan-rate-bar .wl-btn kbd {
    display: inline-block;
    margin-left: 5px;
    padding: 0 4px;
    border: 1px solid rgba(29, 43, 83, 0.22);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    color: inherit;
    font-size: 9px;
}
.plan-rate-bar .plan-rate-forgot {
    border-color: #c94e70;
    background: #ffe9ef;
    color: #8f2440;
    box-shadow: 0 3px 0 #c94e70;
}
.plan-rate-bar .plan-rate-fuzzy {
    border-color: #c79a1a;
    background: #fff3c4;
    color: #6b4a00;
    box-shadow: 0 3px 0 #c79a1a;
}
.plan-rate-bar .plan-rate-known {
    border-color: #2f9d74;
    background: #d9f7e9;
    color: #16624a;
    box-shadow: 0 3px 0 #2f9d74;
}
.plan-rate-tip {
    margin-top: 9px;
    color: #a39783;
    font-size: 10.5px;
    text-align: center;
}

.plan-test-wrap {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}
.plan-study .plan-test-stage.wl-stage {
    position: relative;
    inset: auto;
    min-height: 600px;
    border-radius: 22px;
    overflow: hidden;
}
.plan-test-stage .wl-sheet {
    max-width: 660px;
}
.plan-test-stage .wl-clue-img {
    width: 220px;
    height: 220px;
}
.plan-test-stage .wl-clue-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.plan-test-stage .wl-clue-cn {
    margin: 0 auto 12px;
    color: var(--nw-ink);
    font-size: 20px;
    font-weight: 800;
    text-align: center;
}
.plan-test-stage .plan-test-skip {
    width: 100%;
    margin-top: 10px;
}

.plan-study .phonetic-pill.is-playing {
    background: #fff8e8;
}
.plan-study .phonetic-pill:focus-visible {
    outline: 2px solid var(--nw-yellow-dk);
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .plan-study .plan-study-stage {
        padding: 14px 10px 28px;
    }
    .plan-study .plan-study-card {
        max-width: none;
    }
    .plan-study .plan-word-card.word-card {
        width: 100%;
        margin: 0 auto;
    }
    .plan-rate-bar {
        margin-top: 14px;
    }
    .plan-rate-bar .wl-actions {
        flex-direction: column;
        gap: 8px;
    }
    .plan-rate-bar .wl-btn {
        width: 100%;
        padding: 11px 14px;
    }
    .plan-study .plan-test-stage.wl-stage {
        min-height: 540px;
        border-radius: 18px;
    }
    .plan-test-stage .wl-sheet {
        max-width: none;
    }
    .plan-test-stage .wl-clue-img {
        width: 170px;
        height: 170px;
    }
    .plan-test-stage .wl-clue-cn {
        font-size: 17px;
    }
}
