/* 学练岛 · 特色功能深度页 黏土皮肤（仅手机端 ≤640px，桌面冻结）
   覆盖：拼音 / 汉字 / 诗词 / 作文点评 / 听力练习 / 背单词 / 单词本 / 音标 / 自然拼读 / 课本教材
   设计语言与首页一致：奶油底 #F7F2E9、白卡、橙 #F4913A、描边 #F1E5D3 */

@media (max-width: 640px) {
  :root {
    --clay-bg: #F7F2E9;
    --clay-card: #FFFFFF;
    --clay-line: #F1E5D3;
    --clay-ink: #3A3026;
    --clay-sub: #8C7B65;
    --clay-orange: #F4913A;
    --clay-orange-2: #FFB25C;
    --clay-soft: #FFF3E4;
  }

  /* ===================== 通用骨架 ===================== */
  #pinyin-view, #hanzi-view, #poetry-view, #writing-view, #listening-view,
  #phonetic-view, #nature-phonics-view, #recite-view, #textbooks-view {
    background:
      radial-gradient(120% 60% at 100% 0%, #FDEBD3 0%, rgba(253, 235, 211, 0) 58%),
      radial-gradient(90% 50% at 0% 100%, #F3EBDB 0%, rgba(243, 235, 219, 0) 60%),
      var(--clay-bg);
    color: var(--clay-ink);
    -webkit-tap-highlight-color: transparent;
  }

  /* 统一返回：白圆角 + CSS 箭头，不依赖图片（深色反色下仍可见） */
  #pinyin-view .pn-icon-btn,
  #phonetic-view .ph-back,
  #hanzi-view .hz-back,
  #poetry-view .poem-back-btn,
  #writing-view .wr-header [data-wr="back"],
  #listening-view .ls-header [data-ls="back"],
  #nature-phonics-view .np-header [data-np="back"],
  #recite-view .rw-back {
    width: 40px !important; height: 40px !important;
    flex: 0 0 auto;
    border: 1.5px solid var(--clay-line) !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: transparent !important;
    display: grid; place-items: center;
    padding: 0 !important;
    box-shadow: 0 6px 16px -10px rgba(120, 88, 46, .75), inset 0 -2px 0 rgba(237, 222, 200, .9);
    font-size: 0 !important;
    overflow: hidden;
  }
  #pinyin-view .pn-icon-btn svg, #pinyin-view .pn-icon-btn i,
  #phonetic-view .ph-back svg, #phonetic-view .ph-back i,
  #hanzi-view .hz-back svg, #hanzi-view .hz-back i,
  #poetry-view .poem-back-btn svg, #poetry-view .poem-back-btn i,
  #writing-view .wr-header [data-wr="back"] svg, #writing-view .wr-header [data-wr="back"] i,
  #listening-view .ls-header [data-ls="back"] svg, #listening-view .ls-header [data-ls="back"] i,
  #recite-view .rw-back svg, #recite-view .rw-back i { display: none !important; }
  #pinyin-view .pn-icon-btn::before,
  #phonetic-view .ph-back::before,
  #hanzi-view .hz-back::before,
  #poetry-view .poem-back-btn::before,
  #writing-view .wr-header [data-wr="back"]::before,
  #listening-view .ls-header [data-ls="back"]::before,
  #recite-view .rw-back::before {
    content: ""; width: 9px; height: 9px; margin-left: 3px;
    border-left: 2.2px solid #3A3026; border-bottom: 2.2px solid #3A3026;
    transform: rotate(45deg); border-radius: 1px;
  }
  #nature-phonics-view .np-header [data-np="back"] {
    width: 40px; height: 40px; border: 1.5px solid var(--clay-line); border-radius: 14px;
    background: #fff; display: grid; place-items: center; padding: 0; overflow: hidden;
    box-shadow: 0 6px 16px -10px rgba(120, 88, 46, .75);
  }
  #nature-phonics-view .np-header [data-np="back"] img { display: none; }
  #nature-phonics-view .np-header [data-np="back"]::before {
    content: ""; width: 9px; height: 9px; margin-left: 3px;
    border-left: 2.2px solid #3A3026; border-bottom: 2.2px solid #3A3026;
    transform: rotate(45deg); border-radius: 1px;
  }

  /* 通用输入 / 主按钮 */
  #pinyin-view input, #hanzi-view input, #poetry-view input, #writing-view input,
  #listening-view input, #recite-view input, #textbooks-view select {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 14px; color: var(--clay-ink);
  }
  #listening-view .ls-primary, #writing-view .wr-primary, #recite-view .rw-primary,
  #poetry-view .poem-read-btn, #hanzi-view .hz-primary {
    background: linear-gradient(180deg, var(--clay-orange-2), var(--clay-orange)) !important;
    border: 0 !important; color: #fff !important; border-radius: 14px !important;
    box-shadow: 0 8px 18px -10px rgba(244, 145, 58, .9);
  }

  /* ===================== 拼音 ===================== */
  #pinyin-view { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
  #pinyin-view .pinyin-ambient { display: none; }
  #pinyin-view .pinyin-topbar { padding: 10px 16px 6px; }
  #pinyin-view .pinyin-content { padding: 2px 16px 28px; overflow-y: auto; flex: 1; }
  #pinyin-view .pn-hero { display: none; }            /* 去掉“轻松学拼音”抬头 */
  #pinyin-view .pn-subhead h2 { font-size: 20px; font-weight: 800; color: var(--clay-ink); margin: 6px 0 4px; }
  #pinyin-view .pn-subhead p { font-size: 12px; color: var(--clay-sub); margin: 0 0 14px; }
  #pinyin-view .pn-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  #pinyin-view .pn-cat-card {
    display: flex; align-items: center; gap: 10px; padding: 10px;
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 18px;
    box-shadow: 0 12px 24px -20px rgba(140, 100, 50, .9), inset 0 -3px 0 rgba(240, 228, 210, .7);
    text-align: left;
  }
  #pinyin-view .pn-cat-glyph {
    width: 44px; height: 44px; flex: none; border-radius: 14px;
    display: grid; place-items: center; font-size: 20px; font-weight: 800; color: #fff;
    background: linear-gradient(160deg, #FFB25C, #F4913A);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08);
  }
  #pinyin-view .pn-cat-card.accent-initial .pn-cat-glyph { background: linear-gradient(160deg, #A9C6FF, #7C9CF0); }
  #pinyin-view .pn-cat-card.accent-compound .pn-cat-glyph { background: linear-gradient(160deg, #9FD8B8, #6FBE91); }
  #pinyin-view .pn-cat-card.accent-whole .pn-cat-glyph { background: linear-gradient(160deg, #F7C1A8, #EE9B78); }
  #pinyin-view .pn-cat-card.accent-front .pn-cat-glyph,
  #pinyin-view .pn-cat-card.accent-back .pn-cat-glyph { background: linear-gradient(160deg, #C9BDF5, #A18BE8); }
  #pinyin-view .pn-cat-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  #pinyin-view .pn-cat-meta strong { font-size: 14.5px; font-weight: 800; color: var(--clay-ink); }
  #pinyin-view .pn-cat-meta small { font-size: 11px; color: var(--clay-sub); }
  #pinyin-view .pn-cat-go { margin-left: auto; color: #DDCEB6; }
  #pinyin-view .pn-letter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  #pinyin-view .pinyin-letter {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 18px;
    padding: 12px; box-shadow: 0 12px 24px -20px rgba(140, 100, 50, .9);
    display: flex; flex-direction: column; gap: 8px;
  }
  #pinyin-view .pl-main {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--clay-soft); border: 0; border-radius: 14px; padding: 12px 6px;
    color: var(--clay-ink);
  }
  #pinyin-view .pl-glyph { font-size: 30px; font-weight: 800; line-height: 1; }
  #pinyin-view .pl-sound { color: var(--clay-orange); }
  #pinyin-view .pl-tech {
    display: flex; align-items: center; justify-content: center; gap: 2px;
    background: transparent; border: 0; color: var(--clay-sub); font-size: 11.5px;
  }
  #pinyin-view .pd-studio {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 22px;
    padding: 16px; box-shadow: 0 16px 30px -24px rgba(140, 100, 50, .9);
  }
  #pinyin-view .pd-big {
    background: var(--clay-soft); border-radius: 18px; padding: 18px;
    display: flex; align-items: center; justify-content: center; gap: 14px;
  }
  #pinyin-view .pd-big-glyph { font-size: 64px; font-weight: 800; color: var(--clay-orange); line-height: 1; }
  #pinyin-view .pd-big-play { background: #fff; border: 1.5px solid var(--clay-line); border-radius: 999px; width: 44px; height: 44px; color: var(--clay-orange); }
  #pinyin-view .pd-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px dashed var(--clay-line);
  }
  #pinyin-view .pd-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--clay-ink); }
  #pinyin-view .pd-play { background: var(--clay-soft); border: 0; border-radius: 999px; padding: 7px 12px; color: #C96E15; font-size: 12.5px; }
  #pinyin-view .pd-technique { font-size: 13px; line-height: 1.75; color: #5D5245; margin: 12px 0 0; white-space: pre-line; }

  /* ===================== 汉字 ===================== */
  #hanzi-view { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
  #hanzi-view .hz-ambient { display: block; opacity: .5; }
  #hanzi-view .hz-topbar { padding: 10px 16px 4px; min-height: 0; display: flex; align-items: center; gap: 10px; }
  #hanzi-view .hz-step-btn:disabled { display: none; }
  #hanzi-view .hz-topbar h1 { display: none; }        /* 去掉“轻松学汉字”抬头 */
  #hanzi-view .hz-step-btn {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 999px;
    color: var(--clay-sub); font-size: 12px; padding: 6px 12px; min-height: 0;
    box-shadow: 0 6px 16px -12px rgba(120, 88, 46, .8);
  }
  #hanzi-view .hz-body { padding: 6px 16px 30px; overflow-y: auto; flex: 1; }
  #hanzi-view .hz-hero { display: none; }             /* 去掉“汉字学习馆”抬头 */
  #hanzi-view .hz-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  #hanzi-view .hz-quick-card {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 20px;
    padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px;
    box-shadow: 0 14px 26px -22px rgba(140, 100, 50, .95), inset 0 -3px 0 rgba(240, 228, 210, .7);
  }
  #hanzi-view .hz-q-ic {
    width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
    background: var(--clay-soft); color: var(--clay-orange);
  }
  #hanzi-view .hz-quick-card.q-book .hz-q-ic { background: #FCE8E4; color: #E0705A; }
  #hanzi-view .hz-q-ic svg { width: 26px; height: 26px; }
  #hanzi-view .hz-quick-card strong { font-size: 15px; font-weight: 800; color: var(--clay-ink); }
  #hanzi-view .hz-quick-card small { font-size: 11px; color: var(--clay-sub); text-align: center; }
  #hanzi-view .hz-section-title { font-size: 13px; color: var(--clay-sub); margin: 18px 0 10px; font-weight: 700; }
  #hanzi-view .hz-grade-grid { display: flex; flex-direction: column; gap: 8px; }
  #hanzi-view .hz-grade-card {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 16px;
    padding: 9px 12px; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 22px -20px rgba(140, 100, 50, .9);
  }
  #hanzi-view .hz-grade-ic {
    width: 38px; height: 38px; border-radius: 12px; background: var(--clay-soft);
    display: grid; place-items: center; color: var(--clay-orange); position: relative;
  }
  #hanzi-view .hz-grade-ic svg { width: 20px; height: 20px; }
  #hanzi-view .hz-grade-badge {
    position: absolute; top: -5px; right: -5px; width: 17px; height: 17px; border-radius: 50%;
    background: linear-gradient(180deg, #FFB25C, #F4913A); color: #fff; font-size: 10px; font-style: normal;
    display: grid; place-items: center; box-shadow: 0 3px 6px rgba(244, 145, 58, .5);
  }
  #hanzi-view .hz-grade-name { font-size: 15px; font-weight: 700; color: var(--clay-ink); }
  #hanzi-view .hz-quick-card { min-height: 128px; justify-content: center; }
  #pinyin-view .pn-cat-card { min-height: 64px; }
  #pinyin-view .pn-cat-meta strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #hanzi-view .hz-grade-card > i[data-lucide] { margin-left: auto; color: #DDCEB6; width: 18px; height: 18px; }
  #hanzi-view .hz-search-form { display: flex; gap: 8px; background: #fff; border: 1.5px solid var(--clay-line); border-radius: 16px; padding: 8px 10px; }
  #hanzi-view .hz-search-form input { border: 0; background: transparent; flex: 1; font-size: 15px; }
  #hanzi-view .hz-search-form button { background: var(--clay-soft); border: 0; border-radius: 12px; width: 36px; height: 36px; color: var(--clay-orange); }
  #hanzi-view .hz-search-heading h2 { font-size: 14px; color: var(--clay-ink); }
  #hanzi-view .hz-history button { background: #fff; border: 1.5px solid var(--clay-line); border-radius: 12px; color: var(--clay-ink); }
  #hanzi-view .hz-word {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 14px; color: var(--clay-ink);
  }
  #hanzi-view .hz-word small { color: var(--clay-sub); }
  #hanzi-view .hz-notebook-tools { background: #fff; border: 1.5px solid var(--clay-line); border-radius: 16px; padding: 8px 10px; }
  #hanzi-view .hz-notebook-tools select { border: 1px solid var(--clay-line); border-radius: 10px; padding: 4px 6px; color: var(--clay-ink); background: #fff; }

  /* ===================== 诗词 ===================== */
  #poetry-view { background: var(--clay-bg); }
  #poetry-view .poem-hero { background: transparent; padding: 12px 16px 8px; }
  #poetry-view .poem-hero-glow { display: none; }
  #poetry-view .poem-hero-title { font-size: 24px; font-weight: 800; color: var(--clay-ink); }
  #poetry-view .poem-hero-sub { font-size: 12px; color: var(--clay-sub); }
  #poetry-view .poem-search {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 22px -20px rgba(140, 100, 50, .9);
  }
  #poetry-view .poem-search input { background: transparent; color: var(--clay-ink); font-size: 14px; }
  #poetry-view .poem-search button { color: var(--clay-orange); background: transparent; }
  #poetry-view .poem-source-switch { background: #F3EADB; border-radius: 14px; padding: 4px; }
  #poetry-view .poem-source-switch button { border-radius: 11px; color: var(--clay-sub); font-size: 13px; font-weight: 700; }
  #poetry-view .poem-source-switch .is-active {
    background: linear-gradient(180deg, #FFB25C, #F4913A); color: #fff;
    box-shadow: 0 6px 12px -8px rgba(244, 145, 58, .9);
  }
  #poetry-view .poem-content { padding: 4px 16px 28px; }
  #poetry-view .poem-card {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 18px; padding: 14px;
    box-shadow: 0 12px 24px -22px rgba(140, 100, 50, .9), inset 0 -3px 0 rgba(240, 228, 210, .55);
  }
  #poetry-view .poem-card-title { color: var(--clay-ink); font-size: 16px; font-weight: 800; }
  #poetry-view .poem-card-meta, #poetry-view .poem-card-tags { color: var(--clay-sub); }
  #poetry-view .poem-tag, #poetry-view .poem-chip {
    background: var(--clay-soft); color: #B06A21; border: 0; border-radius: 999px;
  }
  #poetry-view .poem-paper { background: #fff; border: 1.5px solid var(--clay-line); border-radius: 18px; }
  #poetry-view .poem-detail-scroll { background: transparent; }
  #poetry-view .poem-read-bar { background: #fff; border-top: 1px solid var(--clay-line); }
  #poetry-view .poem-grade, #poetry-view .poem-must-item, #poetry-view .poem-poet {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 16px;
  }

  /* ===================== 作文点评 ===================== */
  #writing-view { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
  #writing-view .wr-header {
    padding: 10px 16px 6px; min-height: 0; display: flex; align-items: center; gap: 10px;
    background: transparent; border: 0;
  }
  #writing-view .wr-header h1 { font-size: 20px; font-weight: 800; color: var(--clay-ink); margin: 0; }
  #writing-view .wr-actions button {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 12px; color: var(--clay-ink);
    width: 38px; height: 38px;
  }
  #writing-view .wr-content { padding: 4px 16px 30px; overflow-y: auto; flex: 1; }
  #writing-view .wr-list-bar, #writing-view .wr-record, #writing-view .wr-source, #writing-view .wr-text,
  #writing-view .wr-evaluation, #writing-view .wr-paragraph, #writing-view .wr-polished {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 18px; color: var(--clay-ink);
  }
  #writing-view .wr-record { margin-bottom: 10px; }
  #writing-view .wr-record strong { color: var(--clay-ink); }
  #writing-view .wr-record span { color: var(--clay-sub); }
  #writing-view .wr-grade { background: var(--clay-soft); color: #C96E15; }
  #writing-view .wr-add {
    background: #fff; border: 1.5px dashed #E6D6BE; border-radius: 18px; color: var(--clay-sub);
  }
  #writing-view .wr-tabs { background: #F3EADB; border-radius: 14px; padding: 4px; }
  #writing-view .wr-tabs button[aria-selected="true"] { background: #fff; color: var(--clay-ink); border-radius: 11px; }
  #writing-view .wr-tabs button { color: var(--clay-sub); }

  /* ===================== 听力练习 ===================== */
  #listening-view { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; background: var(--clay-bg); }
  #listening-view .ls-header {
    padding: 10px 16px 6px; min-height: 0; display: flex; align-items: center; gap: 10px;
    background: transparent; border: 0;
  }
  #listening-view .ls-header-title { font-size: 20px; font-weight: 800; color: var(--clay-ink); }
  #listening-view .ls-header > button:last-child {
    margin-left: auto; background: #fff; border: 1.5px solid var(--clay-line); border-radius: 12px;
    color: var(--clay-sub); font-size: 12px; padding: 6px 10px;
  }
  #listening-view .ls-content { padding: 4px 16px 30px; overflow-y: auto; flex: 1; }
  #listening-view .ls-toolbar, #listening-view .ls-chapters, #listening-view .ls-question-head,
  #listening-view .ls-paper, #listening-view .ls-result, #listening-view .ls-analysis,
  #listening-view .ls-history, #listening-view .ls-report {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 18px;
    box-shadow: 0 14px 26px -24px rgba(140, 100, 50, .95);
    color: var(--clay-ink);
  }
  #listening-view .ls-toolbar { padding: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  #listening-view .ls-toolbar .ls-subject, #listening-view .ls-toolbar button {
    background: var(--clay-soft); border: 0; border-radius: 12px; color: #B06A21; font-size: 12.5px; padding: 6px 10px;
  }
  #listening-view .ls-book-name { font-size: 12px; color: var(--clay-sub); }
  #listening-view .ls-chapters { margin-top: 10px; padding: 12px; }
  #listening-view .ls-section-head h2 { font-size: 16px; font-weight: 800; color: var(--clay-ink); }
  #listening-view .ls-section-head span { font-size: 11px; color: var(--clay-sub); }
  #listening-view .ls-step-card {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 16px; padding: 10px;
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  }
  #listening-view .ls-step-card:has(input:checked) { border-color: var(--clay-orange); background: var(--clay-soft); }
  #listening-view .ls-step-no {
    width: 28px; height: 28px; border-radius: 9px; background: #F3EADB; color: var(--clay-sub);
    display: grid; place-items: center; font-size: 12px; font-weight: 800;
  }
  #listening-view .ls-step-card:has(input:checked) .ls-step-no { background: linear-gradient(180deg, #FFB25C, #F4913A); color: #fff; }
  #listening-view .ls-chapter-body span { font-size: 14px; color: var(--clay-ink); }
  #listening-view .ls-start { margin-top: 12px; }
  #listening-view .ls-start .ls-primary { width: 100%; padding: 12px; font-size: 15px; font-weight: 800; }
  #listening-view .ls-question-head { border: 0; box-shadow: none; border-bottom: 1px dashed var(--clay-line); border-radius: 0; padding-bottom: 8px; }
  #listening-view .ls-question-head h2 { font-size: 17px; font-weight: 800; color: var(--clay-ink); }
  #listening-view .ls-question-head span { color: var(--clay-sub); font-size: 12px; }
  #listening-view .ls-paper { padding: 12px; }
  #listening-view .ls-counter { color: var(--clay-sub); font-size: 12px; }
  #listening-view .ls-option, #listening-view .ls-question select {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 14px; padding: 10px 12px;
    color: var(--clay-ink); font-size: 14px;
  }
  #listening-view .ls-option:has(input:checked) { border-color: var(--clay-orange); background: var(--clay-soft); }
  #listening-view .ls-options { display: flex; flex-direction: column; gap: 8px; }
  #listening-view .ls-paper-nav { display: flex; gap: 8px; margin-top: 14px; }
  #listening-view .ls-paper-nav button { flex: 1; border-radius: 14px; padding: 10px; border: 1.5px solid var(--clay-line); background: #fff; color: var(--clay-ink); font-size: 14px; }
  #listening-view .ls-result { padding: 16px; }
  #listening-view .ls-score { background: var(--clay-soft); border-radius: 18px; padding: 16px; text-align: center; }
  #listening-view .ls-score strong { color: var(--clay-orange); font-size: 44px; }
  #listening-view .ls-answer-card button {
    border: 1.5px solid var(--clay-line); border-radius: 12px; background: #fff; color: var(--clay-ink);
    min-width: 36px; height: 36px;
  }
  #listening-view .ls-answer-card button[data-state="correct"] { background: #EDF6E9; border-color: #BFDDB4; color: #4C8A57; }
  #listening-view .ls-answer-card button[data-state="incorrect"] { background: #FCEFE9; border-color: #EFC7B9; color: #B4593F; }
  #listening-view .ls-result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  #listening-view .ls-result-actions button { border-radius: 14px; border: 1.5px solid var(--clay-line); background: #fff; color: var(--clay-ink); padding: 10px; font-size: 13.5px; }
  #listening-view .ls-analysis-card { background: #fff; border: 1.5px solid var(--clay-line); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
  #listening-view .ls-dialog { border: 0; border-radius: 20px; background: #fff; color: var(--clay-ink); padding: 18px; }
  #listening-view .ls-dialog footer button { border-radius: 12px; padding: 8px 14px; }

  /* ===================== 音标 ===================== */
  #phonetic-view { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; background: var(--clay-bg); }
  #phonetic-view .ph-header {
    display: flex; align-items: center; gap: 10px; padding: 10px 16px 6px; min-height: 0;
    justify-content: flex-start;
  }
  #phonetic-view .ph-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
  #phonetic-view .ph-brand img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(120, 100, 70, .2)); }
  #phonetic-view .ph-brand b { display: block; font-size: 19px; font-weight: 800; color: var(--clay-ink); line-height: 1.2; }
  #phonetic-view .ph-brand span { display: block; font-size: 11px; color: var(--clay-sub); }
  #phonetic-view .ph-content { margin: 0; padding: 4px 16px 26px; background: transparent; overflow-y: auto; flex: 1; }
  #phonetic-view .ph-categories { grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 0 14px; max-width: none; }
  #phonetic-view .ph-category {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 16px; padding: 9px 10px;
    display: flex; align-items: center; gap: 8px; max-width: none; aspect-ratio: auto;
    box-shadow: 0 10px 22px -20px rgba(140, 100, 50, .9);
  }
  #phonetic-view .ph-category.ph-active { border-color: var(--clay-orange); background: var(--clay-soft); }
  #phonetic-view .ph-avatar {
    width: 34px; height: 34px; border-radius: 11px; font-size: 15px; flex: none;
    display: grid; place-items: center; color: #fff; font-weight: 800;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08);
  }
  #phonetic-view .ph-avatar[data-tone="long"] { background: linear-gradient(160deg, #FFB25C, #F4913A); }
  #phonetic-view .ph-avatar[data-tone="short"] { background: linear-gradient(160deg, #F7C08C, #E79A55); }
  #phonetic-view .ph-avatar[data-tone="diphthong"] { background: linear-gradient(160deg, #9FD8B8, #6FBE91); }
  #phonetic-view .ph-avatar[data-tone="voiceless"] { background: linear-gradient(160deg, #A9C6FF, #7C9CF0); }
  #phonetic-view .ph-avatar[data-tone="voiced"] { background: linear-gradient(160deg, #F5B0C4, #E77F9E); }
  #phonetic-view .ph-avatar[data-tone="nasal"] { background: linear-gradient(160deg, #C9BDF5, #A18BE8); }
  #phonetic-view .ph-avatar[data-tone="similar"] { background: linear-gradient(160deg, #D9C3A8, #B99A78); }
  #phonetic-view .ph-avatar[data-tone="semi"] { background: linear-gradient(160deg, #A8E0D6, #6CC7B6); }
  #phonetic-view .ph-cat-name { font-size: 13px; font-weight: 700; color: var(--clay-ink); }
  #phonetic-view .ph-cat-count { margin-left: auto; font-size: 10.5px; color: var(--clay-sub); background: #F7F2E9; border-radius: 999px; padding: 2px 8px; }
  #phonetic-view .ph-items { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  #phonetic-view .ph-item {
    min-height: 74px; border: 1.5px solid var(--clay-line); border-radius: 16px; background: #fff;
    background-image: none; color: var(--clay-ink); font-size: 20px !important; gap: 4px;
    box-shadow: 0 10px 20px -20px rgba(140, 100, 50, .9);
    padding: 8px 4px;
  }
  #phonetic-view .ph-item-glyph { font-size: 20px; font-weight: 700; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-style: normal; }
  #phonetic-view .ph-item-play { color: var(--clay-orange); }
  #phonetic-view .ph-item.ph-selected { background: var(--clay-soft); border-color: var(--clay-orange); color: #C96E15; }
  #phonetic-view .ph-detail-layout { display: flex; flex-direction: column; gap: 12px; margin: 0; }
  #phonetic-view .ph-symbol-card {
    width: 100%; min-height: 170px; aspect-ratio: auto; border-radius: 22px;
    background: linear-gradient(160deg, #FFD9AE, #F7B478); color: #fff;
    box-shadow: 0 16px 30px -22px rgba(244, 145, 58, .95), inset 0 -5px 0 rgba(0, 0, 0, .06);
  }
  #phonetic-view .ph-symbol-card span { font-size: 54px; color: #fff; text-shadow: 0 3px 0 rgba(190, 110, 40, .25); }
  #phonetic-view .ph-symbol-card svg { color: #fff; }
  #phonetic-view .ph-instruction { background: #fff; border: 1.5px solid var(--clay-line); border-radius: 20px; padding: 14px; }
  #phonetic-view .ph-technique { background: var(--clay-soft); border-radius: 12px; padding: 8px 12px; color: #B06A21; font-size: 14px !important; min-height: 0; }
  #phonetic-view .ph-technique-text { font-size: 13.5px; line-height: 1.8; color: #5D5245; margin: 12px 0; }
  #phonetic-view .ph-diagrams { grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px dashed var(--clay-line); padding-top: 12px; }
  #phonetic-view .ph-diagram { background: #FBF6EC; border-radius: 14px; padding: 8px; }
  #phonetic-view .ph-diagram figcaption { font-size: 12px; color: var(--clay-sub); margin-bottom: 6px; }
  #phonetic-view .ph-image { background: #fff; border-radius: 10px; max-width: none; }
  #phonetic-view .ph-status { border-radius: 12px; background: #C0492F; font-size: 12.5px; }

  /* ===================== 自然拼读 ===================== */
  #nature-phonics-view { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; background: var(--clay-bg); padding: 0; }
  #nature-phonics-view .np-header { display: flex; align-items: center; gap: 10px; padding: 10px 16px 6px; min-height: 0; margin: 0; }
  #nature-phonics-view .np-header .np-brand { display: flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; }
  #nature-phonics-view .np-brand img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(120, 100, 70, .2)); }
  #nature-phonics-view .np-brand b { display: block; font-size: 19px; font-weight: 800; color: var(--clay-ink); line-height: 1.2; }
  #nature-phonics-view .np-brand span { display: block; font-size: 11px; color: var(--clay-sub); }
  #nature-phonics-view .np-header > button[data-np="refresh"] {
    width: 40px; height: 40px; border-radius: 14px; border: 1.5px solid var(--clay-line); background: #fff; color: var(--clay-sub);
  }
  #nature-phonics-view .np-content { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 2px 16px 26px; overflow-y: auto; background: transparent; border-radius: 0; }
  #nature-phonics-view .np-video-region {
    flex: none; background: #fff; border: 1.5px solid var(--clay-line); border-radius: 20px; padding: 12px;
    box-shadow: 0 14px 26px -24px rgba(140, 100, 50, .95);
  }
  #nature-phonics-view .np-title { font-size: 17px; font-weight: 800; color: var(--clay-ink); margin: 0 0 10px; min-height: 0; }
  #nature-phonics-view .np-player { border-radius: 16px; background: linear-gradient(160deg, #FFE2BF, #FFC98E); }
  #nature-phonics-view .np-play { color: #fff; font-size: 13px; }
  #nature-phonics-view .np-play > span { background: linear-gradient(180deg, #FFB25C, #F4913A); width: 54px; height: 54px; box-shadow: 0 10px 20px -10px rgba(244, 145, 58, .9); }
  #nature-phonics-view .np-directory {
    height: auto; max-height: none; display: flex; flex-direction: column; gap: 8px; padding: 0;
    overflow: visible; background: transparent;
  }
  #nature-phonics-view .np-directory > button {
    display: flex; flex-direction: row; align-items: center; gap: 10px;
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 16px; padding: 8px 12px;
    box-shadow: 0 10px 22px -20px rgba(140, 100, 50, .9);
  }
  #nature-phonics-view .np-directory > button[aria-current="true"] { border-color: var(--clay-orange); background: var(--clay-soft); }
  #nature-phonics-view .np-thumbnail {
    width: 46px; height: 46px; aspect-ratio: auto; flex: none; border-radius: 13px;
    background: linear-gradient(160deg, #FFE2BF, #FFCB93); display: grid; place-items: center; position: static;
  }
  #nature-phonics-view .np-letter-badge { padding: 0; font-size: 13px; color: #B06A21; }
  #nature-phonics-view .np-learn { display: none; }
  #nature-phonics-view .np-lesson-name { font-size: 14px; font-weight: 700; color: var(--clay-ink); }
  #nature-phonics-view .np-lesson-sub { font-size: 11px; color: var(--clay-sub); margin-left: auto; }
  #nature-phonics-view .np-status { border-radius: 12px; background: #C0492F; color: #fff; font-size: 12.5px; margin: 0 0 8px; }
  #nature-phonics-view .np-empty { background: #fff; border-radius: 16px; border: 1.5px solid var(--clay-line); color: var(--clay-sub); }

  /* ===================== 背单词 / 单词本 ===================== */
  #recite-view { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; background: var(--clay-bg); }
  #recite-view .rw-header { padding: 10px 16px 6px; min-height: 0; display: flex; align-items: center; gap: 10px; background: transparent; border: 0; }
  #recite-view .rw-header h1 { font-size: 20px; font-weight: 800; color: var(--clay-ink); margin: 0; }
  #recite-view .rw-header-tools { margin-left: auto; display: flex; gap: 8px; }
  #recite-view .rw-header-tools button {
    width: 38px; height: 38px; border-radius: 12px; background: #fff; border: 1.5px solid var(--clay-line); color: var(--clay-sub);
  }
  #recite-view .rw-content { padding: 4px 16px 28px; overflow-y: auto; flex: 1; }
  #recite-view .rw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  #recite-view .rw-chip {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 999px; color: var(--clay-sub);
    font-size: 12.5px; padding: 6px 12px;
  }
  #recite-view .rw-chip.is-active, #recite-view .rw-chip[aria-pressed="true"] {
    background: linear-gradient(180deg, #FFB25C, #F4913A); border-color: transparent; color: #fff;
  }
  #recite-view .rw-dict-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
  #recite-view .rw-dict-card {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 16px; padding: 10px 12px;
    display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 22px -20px rgba(140, 100, 50, .9);
  }
  #recite-view .rw-dict-glyph { background: var(--clay-soft); color: #B06A21; border-radius: 12px; }
  #recite-view .rw-dict-card h2, #recite-view .rw-book-name { color: var(--clay-ink); font-size: 14.5px; font-weight: 800; }
  #recite-view .rw-dict-meta, #recite-view .rw-dict-desc { color: var(--clay-sub); font-size: 11.5px; }
  #recite-view .rw-chapter { background: #fff; border: 1.5px solid var(--clay-line); border-radius: 16px; }
  #recite-view .rw-word-card { background: #fff; border: 1.5px solid var(--clay-line); border-radius: 20px; }
  #recite-view .rw-search input { background: #fff; border: 1.5px solid var(--clay-line); border-radius: 14px; color: var(--clay-ink); }

  /* ===================== 课本教材选择 ===================== */
  #textbooks-view { height: 100dvh; overflow-y: auto; display: block; padding: 10px 16px 26px; }
  #textbooks-view .tp-header { display: flex; align-items: center; gap: 10px; padding: 0 0 8px; }
  #textbooks-view .tp-header h1 { display: none; }     /* 去掉“课本教材”抬头 */
  #textbooks-view .tp-back {
    width: 40px; height: 40px; border: 1.5px solid var(--clay-line); border-radius: 14px; background: #fff;
    display: grid; place-items: center; padding: 0; overflow: hidden;
    box-shadow: 0 6px 16px -10px rgba(120, 88, 46, .75);
  }
  #textbooks-view .tp-back img { display: none; }
  #textbooks-view .tp-back::before {
    content: ""; width: 9px; height: 9px; margin-left: 3px;
    border-left: 2.2px solid #3A3026; border-bottom: 2.2px solid #3A3026;
    transform: rotate(45deg); border-radius: 1px;
  }
  #textbooks-view .tp-filters {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 18px; padding: 10px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    box-shadow: 0 12px 24px -22px rgba(140, 100, 50, .9);
  }
  #textbooks-view .tp-filters label { font-size: 11px; color: var(--clay-sub); display: flex; flex-direction: column; gap: 4px; }
  #textbooks-view .tp-filters select { font-size: 13.5px; padding: 8px; color: var(--clay-ink); }
  #textbooks-view .tp-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 12px; }
  #textbooks-view .tp-book {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 16px; padding: 8px;
    box-shadow: 0 12px 24px -22px rgba(140, 100, 50, .9); color: var(--clay-ink); text-align: left;
  }
  #textbooks-view .tp-book[aria-pressed="true"] { border-color: var(--clay-orange); background: var(--clay-soft); }
  #textbooks-view .tp-cover { border-radius: 10px; overflow: hidden; background: #FBF6EC; }
  #textbooks-view .tp-caption { font-size: 11.5px; color: var(--clay-ink); line-height: 1.35; }
  #textbooks-view .tp-bound { background: var(--clay-orange); color: #fff; border-radius: 999px; font-size: 9.5px; }
  #textbooks-view .tp-confirm { border: 0; border-radius: 20px; background: #fff; color: var(--clay-ink); padding: 18px; }
  #textbooks-view .tp-confirm-actions button { border-radius: 12px; padding: 8px 14px; }
  #textbooks-view .tp-confirm-actions .tp-save { background: linear-gradient(180deg, #FFB25C, #F4913A); color: #fff; border: 0; }
}

@media (max-width: 640px) {
  /* 音标返回键取消旧绝对定位，避免压住品牌头 */
  #phonetic-view .ph-back { position: static !important; left: auto !important; top: auto !important; }

  /* 听力：收紧间距与标题 */
  #listening-view .ls-header { display: flex !important; align-items: center; gap: 10px; }
  #listening-view .ls-header-title { flex: 1; font-size: 20px; font-weight: 800; color: var(--clay-ink); }
  #listening-view .ls-header > button:last-child { margin-left: 0; }
  #listening-view .ls-selection { display: block; gap: 0; max-width: none; margin: 0; }
  #listening-view .ls-toolbar { margin: 0 0 10px; padding: 10px; border-radius: 16px; background: #fff; }
  #listening-view .ls-chapters { margin-top: 0; }
  #listening-view .ls-step-card { border-radius: 14px; padding: 9px 10px; margin-bottom: 0; box-shadow: 0 8px 18px -18px rgba(140, 100, 50, .9); }
  #listening-view .ls-step-card input { accent-color: #F4913A; width: 18px; height: 18px; }
  #listening-view .ls-section-head { border-bottom: 1px dashed var(--clay-line); padding-bottom: 10px; gap: 10px; }
  #listening-view .ls-start { padding-top: 14px; }
  #listening-view .ls-chapters fieldset { gap: 8px; }
  #listening-view .ls-question-head h2 { color: var(--clay-ink); }
  #listening-view .ls-option { font-size: 15px; margin: 0; }
  #listening-view .ls-option input { accent-color: #F4913A; }

  /* 作文：头部按钮不再挤出容器 */
  #writing-view .wr-header { flex-wrap: nowrap; }
  #writing-view .wr-header h1 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #writing-view .wr-actions { display: flex; gap: 6px; flex: none; }
  #writing-view .wr-actions button {
    width: auto !important; min-width: 36px; height: 36px !important; padding: 0 10px !important;
    display: inline-flex; align-items: center; gap: 4px; font-size: 12px; border-radius: 12px !important;
    background: #fff; border: 1.5px solid var(--clay-line); color: var(--clay-ink);
  }
  #writing-view .wr-actions button svg { width: 16px; height: 16px; }
  #writing-view .wr-list-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 10px; }
  #writing-view .wr-list-bar strong { font-size: 15px; font-weight: 800; }
  #writing-view .wr-list-bar span { font-size: 11.5px; color: var(--clay-sub); }
  #writing-view .wr-list-bar button { margin-left: auto; font-size: 11.5px; padding: 6px 10px; border-radius: 10px; background: var(--clay-soft); border: 0; color: #B06A21; }
  #writing-view .wr-record { display: flex; align-items: center; gap: 10px; padding: 10px; }
  #writing-view .wr-record-open { display: flex; flex-direction: column; gap: 2px; text-align: left; background: transparent; border: 0; }
  #writing-view .wr-record-open strong { font-size: 14.5px; font-weight: 800; }
  #writing-view .wr-record-open span { font-size: 11.5px; }
  #writing-view .wr-empty { padding: 40px 10px; color: var(--clay-sub); }
  #writing-view .wr-empty img { width: 110px; height: 110px; opacity: .9; }

  /* 背单词：版本筛选、词库卡 */
  #recite-view .rw-editions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
  #recite-view .rw-ed {
    background: #fff !important; border: 1.5px solid var(--clay-line) !important; border-radius: 999px !important;
    color: var(--clay-sub) !important; font-size: 12px !important; padding: 5px 11px !important; min-height: 0 !important;
  }
  #recite-view .rw-ed.is-active {
    background: linear-gradient(180deg, #FFB25C, #F4913A) !important; border-color: transparent !important; color: #fff !important;
  }
  #recite-view .rw-chip { border-color: var(--clay-line) !important; color: var(--clay-sub) !important; }
  #recite-view .rw-chip.is-active {
    background: linear-gradient(180deg, #FFB25C, #F4913A) !important; border-color: transparent !important; color: #fff !important;
  }
  #recite-view .rw-filter-bar { background: transparent; border: 0; box-shadow: none; padding: 0; }
  #recite-view .rw-dict-card { border: 0 !important; box-shadow: none !important; padding: 0 !important; background: transparent !important; }
  #recite-view .rw-dict-main {
    width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-align: left;
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 16px;
    box-shadow: 0 12px 24px -22px rgba(140, 100, 50, .95);
  }
  #recite-view .rw-dict-glyph {
    width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px;
    background: var(--clay-soft); color: #B06A21; font-size: 18px; font-weight: 800;
  }
  #recite-view .rw-dict-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  #recite-view .rw-dict-body strong { font-size: 14.5px; font-weight: 800; color: var(--clay-ink); }
  #recite-view .rw-dict-desc { font-size: 11px; color: var(--clay-sub); }
  #recite-view .rw-dict-meta { font-size: 11px; color: #A3927C; }
  #recite-view .rw-dict-go { margin-left: auto; color: #DDCEB6; }
  #recite-view .rw-search { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border: 1.5px solid var(--clay-line); border-radius: 14px; margin-top: 10px; }
  #recite-view .rw-search input { border: 0 !important; background: transparent !important; padding: 0; font-size: 14px; flex: 1; }

  /* 诗词：筛选区横向滑动，缩短首屏 */
  #poetry-view .poem-class-panel { background: #fff; border: 1.5px solid var(--clay-line); border-radius: 18px; padding: 10px 0; }
  #poetry-view .poem-class-row { display: flex; align-items: center; gap: 8px; padding: 4px 12px; }
  #poetry-view .poem-class-label { flex: none; font-size: 12px; color: var(--clay-sub); font-weight: 700; width: 34px; }
  #poetry-view .poem-class-chips {
    display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding: 4px 0;
  }
  #poetry-view .poem-class-chips::-webkit-scrollbar { display: none; }
  #poetry-view .poem-chip { flex: none; font-size: 12px; padding: 5px 10px; }
  #poetry-view .poem-chip.is-active, #poetry-view .poem-chip[aria-pressed="true"] {
    background: linear-gradient(180deg, #FFB25C, #F4913A); color: #fff;
  }
  #poetry-view .poem-class-chips button { white-space: nowrap; }

  /* 教材页：顶部留白 */
  #textbooks-view .tp-filters { margin-top: 4px; }
  #textbooks-view .tp-filters label { font-size: 10.5px; }
  #textbooks-view .tp-filters select { padding: 7px 8px; font-size: 13px; }
}

@media (max-width: 640px) {
  /* 听力头部左对齐、卡片阴影统一为暖色 */
  #listening-view .ls-header { width: 100%; justify-content: flex-start; margin: 0; }
  #listening-view .ls-header-title { text-align: left; }
  #listening-view .ls-step-card { box-shadow: 0 10px 20px -18px rgba(140, 100, 50, .85) !important; }
  #listening-view .ls-step-card:hover { transform: none; }
  #listening-view .ls-empty img { content: url("/assets/clay/mascot-owl.webp"); width: 96px; height: 96px; }

  /* 作文：字号收敛 */
  #writing-view .wr-list-bar strong { font-size: 15px !important; font-weight: 800 !important; }
  #writing-view .wr-list-bar button { font-size: 11.5px !important; min-height: 0 !important; }
  #writing-view .wr-list-bar > span { font-size: 11.5px !important; }
  #writing-view .wr-empty img { content: url("/assets/clay/mascot-owl.webp"); width: 96px; height: 96px; }

  /* 背单词：卡片阴影、图标暖色 */
  #recite-view .rw-dict-main { box-shadow: 0 12px 24px -20px rgba(140, 100, 50, .85) !important; }
  #recite-view .rw-dict-glyph { box-shadow: inset 0 -3px 0 rgba(240, 228, 210, .9); }
  #recite-view .rw-chapter { box-shadow: 0 10px 20px -20px rgba(140, 100, 50, .85); color: var(--clay-ink); }
  #recite-view .rw-chapter-no { background: var(--clay-soft); color: #B06A21; }

  /* 汉字年级行右侧箭头 */
  #hanzi-view .hz-grade-card > i[data-lucide] { display: none; }
  #hanzi-view .hz-grade-card::after {
    content: ""; margin-left: auto; width: 8px; height: 8px;
    border-top: 2px solid #DDCEB6; border-right: 2px solid #DDCEB6;
    transform: rotate(45deg); border-radius: 1px;
  }
}

@media (max-width: 640px) {
  /* 单词本：按钮与书签改暖色 */
  #recite-view .rw-book-list { background: transparent; border: 0; padding: 0; }
  #recite-view .rw-book-item, #recite-view .rw-book-list > button, #recite-view .rw-book-list > article {
    background: #fff !important; border: 1.5px solid var(--clay-line) !important; border-radius: 16px !important;
    color: var(--clay-ink) !important; box-shadow: 0 10px 20px -20px rgba(140, 100, 50, .85);
  }
  #recite-view .rw-book-item.is-active, #recite-view .rw-book-list > button.is-active, #recite-view .rw-book-item[aria-current="true"] {
    border-color: var(--clay-orange) !important; background: var(--clay-soft) !important;
  }
  #recite-view .rw-mini, #recite-view .rw-book-tools button, #recite-view .rw-word-actions button {
    background: #fff !important; border: 1.5px solid var(--clay-line) !important; border-radius: 12px !important;
    color: #B06A21 !important; box-shadow: none !important; min-height: 0 !important;
  }
  #recite-view .rw-mini.primary { background: var(--clay-soft) !important; border-color: #F3D3AC !important; color: #B06A21 !important; }
  #recite-view .rw-word-card, #recite-view .rw-review-card, #recite-view .rw-book-words, #recite-view .rw-book-words-head {
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 18px; box-shadow: 0 14px 26px -24px rgba(140, 100, 50, .95);
  }
  #recite-view .rw-book-words { padding: 12px; }
  #recite-view .rw-book-words-head { border: 0; box-shadow: none; padding: 0 0 10px; }
  #recite-view .rw-book-words-head h2 { font-size: 17px; font-weight: 800; color: var(--clay-ink); }
  #recite-view .rw-word-name, #recite-view .rw-word-phon { color: var(--clay-ink); }
  #recite-view .rw-word-meaning { color: var(--clay-sub); }
  #recite-view .rw-word-actions button + button { margin-left: 6px; }
}

@media (max-width: 640px) {
  #pinyin-view .pl-sound { background: transparent !important; color: var(--clay-orange); }
  #pinyin-view .pd-technique { color: #5D5245; }
  #poetry-view .poem-back-btn { position: static !important; }
}

@media (max-width: 640px) {
  #listening-view .ls-question-head h2 { display: none; }
  #listening-view .ls-paper { padding-bottom: 84px; }
  #listening-view .ls-paper-nav { background: #fff; padding: 10px 0 6px; box-shadow: 0 -12px 20px -18px rgba(90, 70, 40, .35); border-radius: 0 0 16px 16px; }
  #listening-view .ls-option { align-items: center; }
  #listening-view .ls-option span { display: inline; }
  #listening-view .ls-option p { display: inline; margin: 0; }
  #listening-view .ls-question audio { width: 100% !important; margin: 10px 0; }
}

@media (max-width: 640px) {
  #pinyin-view .pn-letter-card { gap: 4px; padding-bottom: 8px; }
  #pinyin-view .pn-letter-card > span:first-child, #pinyin-view .pn-glyph { color: var(--clay-ink) !important; }
  #pinyin-view .pn-letter-card small, #pinyin-view .pn-technique { color: #B06A21 !important; font-weight: 700; }
  #poetry-view .poem-meta, #poetry-view .poem-meta span, #poetry-view .poem-author, #poetry-view .poem-dynasty { color: var(--clay-sub) !important; }
  #poetry-view .poem-body, #poetry-view .poem-content { font-size: 16px; line-height: 2; color: #3A3026; }
  #poetry-view .poem-detail-card, #poetry-view .poem-paper { padding: 18px 16px; }
}

@media (max-width: 640px) {
  #listening-view .ls-question-head { display: flex; justify-content: flex-start; align-items: center; gap: 10px; padding-bottom: 8px; }
  #listening-view .ls-question-head > div, #listening-view .ls-question-tools { margin-left: auto; }
  #listening-view .ls-question-head > span, #listening-view .ls-question-count { color: var(--clay-sub); font-size: 13px; }
  #listening-view .ls-paper-nav {
    position: fixed; left: 14px; right: 14px; bottom: 14px; margin: 0; gap: 8px; z-index: 50;
    background: #fff; border: 1.5px solid var(--clay-line); border-radius: 999px; padding: 8px;
    box-shadow: 0 18px 34px -14px rgba(90, 60, 20, .45);
  }
  #listening-view { padding-bottom: 84px; }
  #listening-view .ls-paper-nav button { border-radius: 999px !important; min-height: 44px; }
  #listening-view .ls-paper { padding-bottom: 16px; }
}

/* ===================== 第二轮返修 ===================== */
@media (max-width: 640px) {
  /* 全站隐藏滚动条（侧边不再出现灰条） */
  html, body, * { scrollbar-width: none !important; -ms-overflow-style: none !important; }
  *::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }

  /* ---- 汉字：回到旧的玻璃白卡风格（保留去抬头） ---- */
  #hanzi-view { background: radial-gradient(1100px 560px at 88% -10%, #FDE68A 0%, transparent 55%), radial-gradient(900px 520px at -12% 108%, #FECACA 0%, transparent 55%), #FBF8F3 !important; }
  #hanzi-view .hz-body { padding: 4px 16px 40px !important; }
  #hanzi-view .hz-quick { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 12px !important; margin-bottom: 18px !important; }
  #hanzi-view .hz-quick-card {
    flex-direction: row !important; align-items: center !important; gap: 12px !important; text-align: left !important;
    padding: 16px 14px !important; min-height: 0 !important; border-radius: 18px !important;
    background: rgba(255, 255, 255, .92) !important; border: 1px solid rgba(15, 23, 42, .07) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .07) !important;
  }
  #hanzi-view .hz-q-ic {
    width: 46px !important; height: 46px !important; border-radius: 15px !important; flex: none !important;
    background: #FEF3DC !important; color: #F59E0B !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 8px 16px -10px #F59E0B !important;
  }
  #hanzi-view .hz-quick-card.q-book .hz-q-ic { background: #FFE4E8 !important; color: #FB5B6C !important; }
  #hanzi-view .hz-q-ic svg { width: 24px !important; height: 24px !important; }
  #hanzi-view .hz-quick-card strong { font-size: 15px !important; color: #1F2937 !important; }
  #hanzi-view .hz-quick-card small { font-size: 11.5px !important; color: #94A3B8 !important; text-align: left !important; }
  #hanzi-view .hz-section-title { font-size: 14px !important; color: #475569 !important; margin: 4px 0 12px !important; font-weight: 800 !important; }
  #hanzi-view .hz-grade-grid { display: flex !important; flex-direction: column !important; gap: 10px !important; }
  #hanzi-view .hz-grade-card {
    padding: 14px 16px !important; border-radius: 16px !important; gap: 14px !important;
    background: rgba(255, 255, 255, .92) !important; border: 1px solid rgba(15, 23, 42, .07) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05) !important;
  }
  #hanzi-view .hz-grade-ic {
    width: 48px !important; height: 48px !important; border-radius: 15px !important;
    background: #FEF3DC !important; color: #F59E0B !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 8px 16px -10px #F59E0B !important;
  }
  #hanzi-view .hz-grade-ic svg { width: 24px !important; height: 24px !important; }
  #hanzi-view .hz-grade-badge { background: #F59E0B !important; color: #fff !important; }
  #hanzi-view .hz-grade-name { font-size: 15.5px !important; color: #1F2937 !important; font-weight: 800 !important; flex: 1 !important; }
  #hanzi-view .hz-grade-card::after { content: none !important; }
  #hanzi-view .hz-grade-card > svg { display: block !important; color: #CBD5E1 !important; width: 18px !important; height: 18px !important; }
  #hanzi-view .hz-grade-card > i[data-lucide] { display: block !important; margin-left: auto !important; color: #CBD5E1 !important; }

  /* ---- 诗词：搜索框单层、筛选去大白卡 ---- */
  #poetry-view .poem-search { background: #fff !important; border: 1.5px solid #F1E5D3 !important; border-radius: 999px !important; box-shadow: 0 10px 22px -18px rgba(140, 100, 50, .8) !important; padding: 6px 8px 6px 14px !important; }
  #poetry-view .poem-search input { border: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0 !important; }
  #poetry-view .poem-search button { background: #FFF3E4 !important; color: #B06A21 !important; border-radius: 50% !important; width: 38px !important; height: 38px !important; }
  #poetry-view .poem-class-panel {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    padding: 0 !important; margin: 10px 0 8px !important; border-radius: 0 !important;
  }
  #poetry-view .poem-class-row {
    display: grid !important; grid-template-columns: 40px minmax(0, 1fr) !important;
    align-items: center !important; gap: 8px !important; padding: 5px 0 !important;
  }
  #poetry-view .poem-class-label { font-size: 12px !important; color: #A08D75 !important; font-weight: 700 !important; }
  #poetry-view .poem-class-chips {
    display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important;
    gap: 7px !important; padding: 2px 0 !important;
  }
  #poetry-view .poem-chip {
    flex: 0 0 auto !important; border-radius: 999px !important; padding: 5px 11px !important;
    font-size: 12.5px !important; background: #fff !important; border: 1.5px solid #F1E5D3 !important;
    color: #8C7B65 !important; box-shadow: none !important;
  }
  #poetry-view .poem-chip.is-active {
    background: linear-gradient(180deg, #FFB25C, #F4913A) !important; border-color: transparent !important;
    color: #fff !important; font-weight: 700 !important;
  }
  #poetry-view .poem-browse { padding-bottom: 24px !important; }
}

@media (max-width: 640px) {
  /* ---- 听力：选择章节去掉外层长条 ---- */
  #listening-view .ls-chapters { background: transparent !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important; }
  #listening-view .ls-chapters fieldset { display: flex !important; flex-direction: column !important; gap: 0 !important; }
  #listening-view .ls-chapter {
    border: 0 !important; border-bottom: 1px solid #F1E5D3 !important; border-radius: 0 !important;
    background: transparent !important; padding: 15px 4px !important; font-size: 15.5px !important;
  }
  #listening-view .ls-chapter:last-child { border-bottom: 0 !important; }
  #listening-view .ls-chapter:has(input:checked) { background: #FFF6EA !important; border-radius: 12px !important; }
  #listening-view .ls-book { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 0 10px !important; }
  #listening-view .ls-start { position: sticky; bottom: 12px; padding: 10px 0 0 !important; }
  #listening-view .ls-start button { width: 100% !important; border-radius: 999px !important; }
}

@media (max-width: 640px) {
  /* ---- 背单词：筛选改单行横滑 ---- */
  #recite-view .rw-filter-bar { gap: 10px !important; margin-bottom: 14px !important; }
  #recite-view .rw-chips, #recite-view .rw-editions {
    display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important;
    gap: 8px !important; padding: 2px 0 6px !important; scroll-snap-type: x proximity;
  }
  #recite-view .rw-chips::-webkit-scrollbar, #recite-view .rw-editions::-webkit-scrollbar { display: none !important; }
  #recite-view .rw-chip, #recite-view .rw-ed {
    flex: 0 0 auto !important; padding: 7px 14px !important; font-size: 13px !important;
    border-radius: 999px !important; background: #fff !important; border: 1.5px solid #F1E5D3 !important;
    color: #8C7B65 !important; box-shadow: none !important;
  }
  #recite-view .rw-chip.is-active, #recite-view .rw-ed.is-active, #recite-view .rw-chip[aria-pressed="true"] {
    background: linear-gradient(180deg, #FFB25C, #F4913A) !important; border-color: transparent !important;
    color: #fff !important; font-weight: 700 !important; box-shadow: 0 6px 14px -10px rgba(244, 145, 58, .9) !important;
  }
  #recite-view .rw-chips::after, #recite-view .rw-editions::after { content: ""; flex: 0 0 4px; }
}

@media (max-width: 640px) {
  /* 汉字快捷卡：图标左、文字两行右，避免竖排 */
  #hanzi-view .hz-quick-card {
    display: grid !important; grid-template-columns: 44px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important; column-gap: 12px !important; row-gap: 1px !important; align-content: center !important;
  }
  #hanzi-view .hz-quick-card .hz-q-ic { grid-column: 1 !important; grid-row: 1 / 3 !important; }
  #hanzi-view .hz-quick-card strong { grid-column: 2 !important; grid-row: 1 !important; white-space: nowrap !important; font-size: 15px !important; line-height: 1.2 !important; }
  #hanzi-view .hz-quick-card small { grid-column: 2 !important; grid-row: 2 !important; font-size: 11px !important; line-height: 1.35 !important; }
  /* 年级行卡补箭头 */
  #hanzi-view .hz-grade-card { position: relative !important; padding-right: 34px !important; }
  #hanzi-view .hz-grade-card::after {
    content: "" !important; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
    border-right: 2px solid #D9CBB4; border-top: 2px solid #D9CBB4;
    transform: translateY(-50%) rotate(45deg); display: block !important;
  }
  /* 诗词：随机一首收成小胶囊、标签回归暖色 */
  #poetry-view .poem-browse > button {
    width: auto !important; align-self: flex-end !important; margin: 0 0 12px auto !important;
    padding: 7px 16px !important; min-height: 0 !important; height: 36px !important;
    border-radius: 999px !important; font-size: 13px !important; font-weight: 700 !important;
    background: #FFF3E4 !important; color: #B06A21 !important; border: 1.5px solid #F3D3AC !important;
    box-shadow: none !important;
  }
  #poetry-view .poem-card-tags > *, #poetry-view .poem-tag {
    background: #FFF3E4 !important; color: #B06A21 !important; border: 0 !important;
    border-radius: 999px !important; font-size: 11.5px !important;
  }
}

@media (max-width: 640px) {
  #poetry-view .poem-toolbar { display: flex !important; align-items: center !important; gap: 10px !important; justify-content: space-between !important; margin: 6px 0 12px !important; }
  #poetry-view .poem-random {
    width: auto !important; height: 34px !important; min-height: 0 !important; padding: 0 14px !important;
    border-radius: 999px !important; font-size: 12.5px !important; font-weight: 700 !important;
    background: #FFF3E4 !important; color: #B06A21 !important; border: 1.5px solid #F3D3AC !important; box-shadow: none !important;
  }
  #poetry-view .poem-random svg { width: 15px !important; height: 15px !important; }
  #poetry-view .poem-result-label { font-size: 13px !important; color: #8C7B65 !important; margin: 0 !important; }
  #poetry-view .poem-mini-tag { background: #FFF3E4 !important; color: #B06A21 !important; border: 0 !important; border-radius: 999px !important; font-size: 11.5px !important; }
}

@media (max-width: 640px) {
  /* 听力：教材信息不再用白卡，章节改分隔列表 */
  #listening-view .ls-toolbar {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    border-radius: 0 !important; padding: 0 0 6px !important; gap: 10px !important;
  }
  #listening-view .ls-chapters { margin-top: 4px !important; padding: 0 !important; }
  #listening-view .ls-step-card {
    background: transparent !important; border: 0 !important; border-bottom: 1px solid #F1E5D3 !important;
    border-radius: 0 !important; box-shadow: none !important; padding: 13px 4px !important; margin: 0 !important;
  }
  #listening-view .ls-step-card:last-child { border-bottom: 0 !important; }
  #listening-view .ls-step-card:has(input:checked) { background: #FFF6EA !important; border-radius: 12px !important; }
  #listening-view .ls-step-no { background: #FEF3DC !important; color: #B06A21 !important; }

  /* 背单词：容器防溢出、搜索框收窄 */
  #recite-view .rw-content, #recite-view .rw-filter-bar, #recite-view .rw-chips, #recite-view .rw-editions {
    min-width: 0 !important; max-width: 100% !important;
  }
  #recite-view .rw-content { overflow-x: hidden !important; }
  #recite-view .rw-chips, #recite-view .rw-editions { overflow-x: auto !important; }
  #recite-view .rw-search { padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  #recite-view .rw-search input {
    width: 100% !important; min-height: 42px !important; height: 42px !important;
    border-radius: 999px !important; padding: 0 16px 0 40px !important; font-size: 14px !important;
  }
  #recite-view .rw-dict-card, #recite-view .rw-dict-grid, #recite-view .rw-library-list, #recite-view .rw-library-list article { max-width: 100% !important; }
}

@media (max-width: 640px) {
  #recite-view .rw-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  #recite-view .rw-pick {
    position: relative; display: flex; align-items: center; gap: 6px;
    background: #fff; border: 1.5px solid #F1E5D3; border-radius: 14px; padding: 0 10px; height: 42px;
    box-shadow: 0 8px 18px -20px rgba(140, 100, 50, .9);
  }
  #recite-view .rw-pick > svg:first-child { width: 16px; height: 16px; color: #B06A21; flex: none; }
  #recite-view .rw-pick select {
    appearance: none; -webkit-appearance: none; border: 0; background: transparent; outline: 0;
    flex: 1; min-width: 0; height: 40px; font-size: 13.5px; font-weight: 700; color: #3A3026; padding: 0;
  }
  #recite-view .rw-pick-caret { width: 14px !important; height: 14px !important; color: #B9A891; flex: none; }
  #recite-view .rw-chip, #recite-view .rw-ed, #recite-view .rw-chips, #recite-view .rw-editions { display: none !important; }
  #recite-view .rw-search { margin-top: 2px; }
  #recite-view .rw-search svg { position: absolute; margin-left: 14px; width: 16px; height: 16px; color: #A08D75; z-index: 1; }
}

@media (max-width: 640px) {
  #poetry-view .poem-random { background-image: none !important; }
  #listening-view .ls-toolbar { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 8px !important; }
  #listening-view .ls-book-name { order: 3 !important; flex: 1 1 100% !important; font-size: 12px !important; color: #8C7B65 !important; }
  #listening-view .ls-step-no { box-shadow: none !important; }
  #recite-view .rw-search input { background: #fff !important; border: 1.5px solid #F1E5D3 !important; }
}

/* 数据卡仅在手机端出现（桌面端保持原布局不变） */
.hx-hero-data { display: none; }

@media (max-width: 640px) {
  /* ===================== 首页：一屏六块，按屏高自适应，不滚动 ===================== */
  #workbench-view.workbench-screen.is-home {
    position: fixed; inset: 0;
    height: 100vh; height: 100dvh;
    overflow: hidden; overscroll-behavior: none;
  }
  #workbench-view.is-home .hx-shell { height: 100%; min-height: 0; }
  #workbench-view.is-home .hx-scroll {
    display: flex; flex-direction: column; overflow: hidden;
    padding: 2px 16px calc(env(safe-area-inset-bottom, 0px) + 92px);
  }
  #workbench-view.is-home .hx-hero-home { display: none; }
  #workbench-view.is-home .hx-view-home.is-active {
    flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  }
  #workbench-view.is-home .hx-sec-title { flex: 0 0 auto; margin: 2px 2px 8px; }
  #workbench-view.is-home .hx-sec-title h4 { font-size: 16px; gap: 7px; }
  #workbench-view.is-home .hx-sec-title h4::before { height: 15px; border-radius: 2px; }
  #workbench-view.is-home .hx-sec-title span { font-size: 11px; color: #A99882; }

  .hx-home-grid {
    flex: 1 1 auto; min-height: 0; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1.35vh, 13px);
  }
  .hx-home-grid .hx-fcard {
    height: 100%; min-height: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(12px, 1.7vh, 16px);
    border: 1.5px solid #F1E5D3;
    border-radius: clamp(18px, 2.6vh, 24px);
    background: linear-gradient(172deg, #FFFFFF 0%, #FFFDF9 46%, var(--tint) 200%);
    box-shadow: 0 16px 30px -26px rgba(150, 105, 45, .95), inset 0 1px 0 rgba(255, 255, 255, .95);
  }
  .hx-home-grid .hx-fblob {
    width: clamp(72px, 12vh, 112px); height: clamp(72px, 12vh, 112px);
    right: -30px; top: -32px; opacity: .9;
  }
  .hx-home-grid .hx-fico {
    width: clamp(46px, 8.4vh, 78px); height: clamp(46px, 8.4vh, 78px);
    margin: 0 0 clamp(6px, 1vh, 11px) 1px;
    filter: drop-shadow(0 9px 11px rgba(120, 85, 45, .18));
  }
  .hx-home-grid .hx-ft b {
    font-size: clamp(14.5px, 2.15vh, 18px); font-weight: 800;
    color: #33291F; letter-spacing: -.2px;
  }
  .hx-home-grid .hx-ft span {
    margin-top: clamp(3px, .65vh, 6px);
    font-size: clamp(10.5px, 1.5vh, 12px); line-height: 1.48; color: #7E6E5A;
  }
  .hx-home-grid .hx-fgo { display: none; }

  /* ===================== 数据页：承接首页数据卡 ===================== */
  .hx-hero-data {
    display: block; margin: 10px 0 12px;
    padding: 14px 16px 16px; border-radius: 22px;
  }
  .hx-hero-data h3 { font-size: 17px; margin-bottom: 3px; }
  .hx-hero-data p { max-width: none; font-size: 12.5px; line-height: 1.6; }
  .hx-hero-data .hx-hero-owl { width: 78px; height: 78px; top: 10px; right: 14px; }
  .hx-view-data .hx-topnav { padding-top: 6px; }
  .hx-view-data .hx-stat3 { margin-top: 2px; }
}

@media (max-width: 640px) {
  /* 首页六块：图标底座 + 底部厚度，提升黏土质感 */
  .hx-home-grid { gap: clamp(9px, 1.5vh, 14px); }
  .hx-home-grid .hx-fcard {
    background: linear-gradient(168deg, #FFFFFF 0%, #FFFDF9 44%, var(--tint) 152%);
    box-shadow:
      0 16px 30px -26px rgba(150, 105, 45, .95),
      inset 0 1.5px 0 rgba(255, 255, 255, .95),
      inset 0 -3px 0 rgba(238, 224, 202, .55);
  }
  .hx-home-grid .hx-fico {
    padding: 6px; border-radius: 24px;
    background: radial-gradient(circle at 50% 62%, #FFFFFF 0%, var(--tint) 118%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 14px -12px rgba(120, 85, 45, .8);
    box-sizing: content-box;
    filter: drop-shadow(0 7px 9px rgba(120, 85, 45, .16));
  }
  .hx-home-grid .hx-ft b { letter-spacing: 0; }
}

@media (max-width: 640px) {
  /* 数据页暖色统一（承接到首页数据后与整体皮肤一致） */
  .hx-view-data .hx-link { color: #B06A21; font-weight: 700; }
  .hx-view-data .hx-stat-s {
    background: #fff; border: 1.5px solid #F1E5D3; border-radius: 18px;
    box-shadow: 0 12px 24px -24px rgba(150, 105, 45, .95), inset 0 1px 0 #fff;
  }
  .hx-view-data .hx-stat-s b { color: #33291F; font-weight: 800; }
  .hx-view-data .hx-stat-s span { color: #8C7B65; }
  .hx-view-data .hx-panel {
    background: #FFFDF9; border: 1.5px solid #F1E5D3; border-radius: 22px;
    box-shadow: 0 16px 30px -28px rgba(150, 105, 45, .95);
  }
  .hx-view-data .hx-rec-if b { color: #33291F; }
  .hx-view-data .hx-rec-if span { color: #A99882; }
  .hx-view-data .hx-wpin { background: #FDEFE2; color: #C97A24; border-radius: 14px; }
  .hx-view-data .hx-wbtn {
    background: linear-gradient(180deg, #F6B368, #E2872C); color: #fff; border: 0;
    border-radius: 12px; font-weight: 800;
    box-shadow: 0 10px 20px -14px rgba(196, 111, 30, .95);
  }
}

@media (max-width: 640px) {
  /* ===================== 我的：联系客服并卡 + 一屏不滚动 ===================== */
  #workbench-view.workbench-screen.is-me {
    position: fixed; inset: 0;
    height: 100vh; height: 100dvh;
    overflow: hidden; overscroll-behavior: none;
  }
  #workbench-view.is-me .hx-shell { height: 100%; min-height: 0; }
  #workbench-view.is-me .hx-scroll {
    display: flex; flex-direction: column; overflow: hidden;
    padding: 2px 16px calc(env(safe-area-inset-bottom, 0px) + 92px);
  }
  #workbench-view.is-me .hx-view-me.is-active {
    flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  }
  #workbench-view.is-me .hx-view-me .hx-topnav { padding: 4px 2px 10px; }
  #workbench-view.is-me .hx-view-me .hx-topnav h2 { font-size: 21px; font-weight: 800; color: #33291F; }

  #workbench-view.is-me .hx-profile {
    background: #fff; border: 1.5px solid #F1E5D3; border-radius: 22px;
    padding: 14px 16px; gap: 12px;
    box-shadow: 0 16px 30px -28px rgba(150, 105, 45, .95), inset 0 1px 0 #fff;
  }
  #workbench-view.is-me .hx-pav { width: clamp(48px, 7vh, 58px); height: clamp(48px, 7vh, 58px); font-size: 20px; }
  #workbench-view.is-me .hx-pinfo b { font-size: 18px; }

  #workbench-view.is-me .hx-menu {
    margin-top: 12px; border-radius: 20px; background: #FFFDF9;
    border: 1.5px solid #F1E5D3;
    box-shadow: 0 16px 30px -28px rgba(150, 105, 45, .95), inset 0 1px 0 #fff;
  }
  #workbench-view.is-me .hx-mrow {
    padding: 0 16px; height: clamp(50px, 7.6vh, 66px);
    border-bottom: 1px solid #F4EADC;
  }
  #workbench-view.is-me .hx-mic {
    width: 34px; height: 34px; border-radius: 11px;
    background: linear-gradient(150deg, #fff, #FBF3E7); color: #8A6A3E;
    box-shadow: inset 0 1px 0 #fff, 0 6px 12px -10px rgba(140, 100, 50, .9);
  }
  #workbench-view.is-me .hx-mt { font-size: 14.5px; color: #3A3026; }
  #workbench-view.is-me .hx-mchev { color: #C4B49C; }
  #workbench-view.is-me .hx-mrow-exit .hx-mt { color: #D9655E; }
  #workbench-view.is-me .hx-mrow-exit .hx-mic { color: #D9655E; background: linear-gradient(150deg, #fff, #FDEFEC); }
}

@media (max-width: 640px) {
  /* 我的：主菜单随屏高拉伸，底部品牌行收口 */
  .hx-me-foot { display: none; }
  #workbench-view.is-me .hx-menu-main {
    flex: 1 1 auto; min-height: 0;
    display: flex; flex-direction: column;
  }
  #workbench-view.is-me .hx-menu-main .hx-mrow { flex: 1 1 0; min-height: 50px; max-height: 72px; }
  #workbench-view.is-me .hx-me-foot {
    display: block; flex: 0 0 auto; margin-top: 10px;
    text-align: center; font-size: 11px; letter-spacing: .3px; color: #BCAD97;
  }
  #workbench-view.is-me .hx-view-me .hx-menu:last-of-type { margin-top: 12px; }
}

@media (max-width: 640px) {
  /* 修正：主菜单卡不拉伸，避免卡内大片空白；页脚沉底 */
  #workbench-view.is-me .hx-menu-main { flex: 0 0 auto; }
  #workbench-view.is-me .hx-menu-main .hx-mrow { flex: 0 0 auto; height: clamp(52px, 8.2vh, 70px); }
  #workbench-view.is-me .hx-me-foot { margin-top: auto; padding-top: 8px; }
}

@media (max-width: 640px) {
  /* 我的页：去掉左上角「我的」标题，页面从资料卡直接开始 */
  #workbench-view.is-me .hx-view-me .hx-topnav { display: none !important; }
  #workbench-view.is-me .hx-scroll { padding-top: calc(env(safe-area-inset-top, 0px) + 14px); }
}

/* 「继续学习」入口卡仅手机端出现 */
.hx-me-cta { display: none; }

@media (max-width: 640px) {
  /* 我的：放大主视觉，菜单填满屏高，底部行动卡收口 */
  #workbench-view.is-me .hx-profile { padding: 16px; gap: 14px; }
  #workbench-view.is-me .hx-pav { width: 64px; height: 64px; font-size: 22px; }
  #workbench-view.is-me .hx-pinfo b { font-size: 19px; }
  #workbench-view.is-me .hx-pinfo span { font-size: 12.5px; }

  #workbench-view.is-me .hx-menu-main {
    flex: 1 1 auto; min-height: 0; max-height: 56vh;
    display: flex; flex-direction: column;
  }
  #workbench-view.is-me .hx-menu-main .hx-mrow {
    flex: 1 1 0; height: auto; min-height: 48px; max-height: none;
    padding: 0 16px;
  }
  #workbench-view.is-me .hx-mic { width: 38px; height: 38px; border-radius: 12px; }
  #workbench-view.is-me .hx-mt { font-size: 15px; font-weight: 700; }
  #workbench-view.is-me .hx-mchev svg { width: 16px; height: 16px; }

  #workbench-view.is-me .hx-me-cta {
    display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
    margin-top: 12px; padding: 10px 14px; border-radius: 20px;
    background: linear-gradient(150deg, #FFF7EA 0%, #FCE7D3 68%, #F9DCC6 100%);
    border: 1.5px solid #F3DFC2;
    box-shadow: 0 16px 30px -26px rgba(150, 105, 45, .9), inset 0 1px 0 rgba(255, 255, 255, .85);
  }
  #workbench-view.is-me .hx-me-cta img {
    width: 52px; height: 52px; flex: none; object-fit: contain;
    filter: drop-shadow(0 7px 9px rgba(150, 100, 50, .22));
  }
  #workbench-view.is-me .hx-me-cta-t { flex: 1; min-width: 0; }
  #workbench-view.is-me .hx-me-cta-t b { display: block; font-size: 14.5px; color: #3A3026; }
  #workbench-view.is-me .hx-me-cta-t span { display: block; margin-top: 2px; font-size: 11.5px; color: #9C7E58; }
  #workbench-view.is-me .hx-me-cta-b {
    flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: 999px;
    font: inherit; font-size: 13px; font-weight: 800; color: #fff;
    background: linear-gradient(180deg, #F6B368, #E2872C);
    box-shadow: 0 8px 16px -10px rgba(196, 111, 30, .95);
  }
  #workbench-view.is-me .hx-me-foot { margin-top: 10px; padding-top: 0; flex: 0 0 auto; }
}

@media (max-width: 640px) {
  /* 我的页最终排版：内容块垂直居中、页脚沉底、行高统一 */
  #workbench-view.is-me .hx-view-me.is-active {
    position: relative; justify-content: center;
    padding-bottom: 26px;
  }
  #workbench-view.is-me .hx-menu-main {
    flex: 0 0 auto; max-height: none;
  }
  #workbench-view.is-me .hx-menu-main .hx-mrow {
    flex: 0 0 auto; height: clamp(52px, 7vh, 68px); min-height: 0;
  }
  #workbench-view.is-me .hx-pav { width: 68px; height: 68px; font-size: 23px; }
  #workbench-view.is-me .hx-profile { padding: 18px 16px; }
  #workbench-view.is-me .hx-me-foot {
    position: absolute; left: 0; right: 0; bottom: 0;
    margin: 0; text-align: center;
  }
}

@media (max-width: 640px) {
  /* 页脚回到内容流尾部，与行动卡一起居中 */
  #workbench-view.is-me .hx-view-me.is-active { padding-bottom: 8px; }
  #workbench-view.is-me .hx-me-foot {
    position: static; margin-top: 10px;
  }
}
