/* 本站专属样式。通用组件的样式在 assets/engine/style.css，不要改那份。
   这一份把 kit 的外观调回现行 Japanese 站（藍 × 柿 × 和纸）的样子；颜色和字体变量在 theme.css。
   每一节标了对应旧站 assets/style.css 的哪一部分。第 3 批再做首页的便当格、七块踏石等结构性差异。 */

body{ font-family:var(--f-body); line-height:1.85; }
.ruby-rt,rt{ font-family:var(--f-round); }
.note-body rt,.pv-jp rt{ font-size:.5em; color:var(--ink-2); font-weight:500; }

/* ---------- 顶栏（旧：顶栏 / 品牌 / 导航） ---------- */
.brand-name{ font-family:var(--f-round); font-weight:700; font-size:1.12rem; letter-spacing:.02em; color:var(--accent); }
.brand-sub{ font-size:.75rem; letter-spacing:0; color:var(--ink-2); margin-top:1px; }
.topnav-link{ padding:6px 14px; font-size:.94rem; color:var(--ink); }
.topnav-link:hover{ color:var(--accent); }

/* ---------- 按钮（旧：.btn）：主按钮是柿色，带一条下沿 ---------- */
.btn,.quiz-submit,.quiz-retry{ min-height:46px; padding:0 26px; font-size:1rem; border-width:2px; }
.btn-primary{ background:#B5572B; border-color:#B5572B; color:#fff; box-shadow:0 4px 0 #8F4220; }
.btn-primary:hover{ background:#8F4220; border-color:#8F4220; color:#fff; }
.btn-ghost{ color:var(--accent); border-color:var(--accent); }
.btn-ghost:hover{ background:var(--accent); color:var(--on-accent); }
.quiz-submit{ background:#B5572B; border-color:#B5572B; color:#fff; }
.quiz-submit:hover:not(:disabled){ background:#8F4220; border-color:#8F4220; }

/* ---------- 首页 hero：居中 + 富士山照片（规则在文件末尾「首页背景」）+ 课文预览卡 ---------- */
.hero-inner{ position:relative; z-index:2; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:40px; padding-top:56px; padding-bottom:60px; }
.eyebrow{ padding:0; background:none; color:var(--chili); font-weight:700; letter-spacing:.08em; font-size:.9rem; margin:0 0 8px; }
.hero h1{ font-family:var(--f-head); font-weight:700; font-size:clamp(28px,3.6vw,40px); line-height:1.45; letter-spacing:0; color:var(--accent-ink); }
.hero h1 em{ font-style:normal; font-family:var(--f-ms); color:var(--chili); }
.hero-lead{ font-size:1.0625rem; color:var(--ink); max-width:34em; line-height:1.85; }

.hero-visual{ position:relative; min-height:340px; display:flex; align-items:center; justify-content:center; padding-right:70px; }
.preview-card{ position:relative; z-index:3; width:min(100%,430px); margin-right:auto; background:var(--card); border:1px solid var(--line); border-radius:18px; padding:20px 24px 22px; box-shadow:0 2px 3px rgba(39,50,63,.08),0 18px 40px rgba(39,50,63,.16); transform:rotate(-1.5deg); }
.pv-top{ display:flex; align-items:center; gap:10px; margin-bottom:12px; font-size:.8rem; color:var(--ink-2); }
.lesson-no{ display:inline-block; background:#B5572B; color:#fff; font-weight:700; font-size:.8rem; padding:1px 12px; border-radius:6px; line-height:1.7; }
.pv-jp{ font-family:var(--f-ms); font-size:24px; line-height:2.1; font-weight:600; margin:0; }
.pv-cn{ margin:0 0 14px; color:var(--ink-2); font-size:.94rem; }
.pv-quiz{ border-top:1.5px dashed var(--line); padding-top:12px; font-size:.9rem; }
.pv-quiz b{ display:block; margin-bottom:8px; }
.pv-opt{ display:flex; gap:8px; margin-top:6px; }
.pv-opt span{ flex:1; padding:6px 12px; border:2px solid var(--line); border-radius:10px; font-family:var(--f-ms); font-size:.94rem; }
.pv-opt span.ok{ border-color:var(--go); background:var(--go-soft); font-weight:700; }
.hanko{ position:absolute; z-index:4; right:-14px; top:-16px; width:62px; height:62px; display:grid; place-items:center; background:#B5572B; color:#fff; font-family:var(--f-ms); font-weight:600; font-size:34px; border-radius:8px; transform:rotate(7deg); box-shadow:0 3px 0 #8F4220; }
.hanko::after{ content:''; position:absolute; inset:4px; border:2px solid rgba(255,255,255,.55); border-radius:5px; }

/* ---------- 版块标题（旧：.section-title）：左边一条柿色竖条 ---------- */
.section-head h2{ display:flex; align-items:center; gap:12px; font-size:1.5rem; color:var(--accent-ink); line-height:1.4; }
.section-head h2::before{ content:''; flex:none; width:10px; height:26px; border-radius:3px; background:#B5572B; }

/* ---------- 等级卡（旧：便当格 .tile） ---------- */
.level-card{ border-width:1px; border-radius:18px; box-shadow:var(--shadow); }
.level-card:hover{ border-color:var(--chili); }
.level-name{ color:var(--accent-ink); }
.level-code{ background:var(--accent-soft); color:var(--accent-ink); }
.level-who{ color:var(--chili); }

/* ---------- FAQ（旧：.faq）：左上「問」印 ---------- */
.faq{ grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; }
.faq details{ border-width:1px; }
.faq summary{ padding-left:56px; font-size:1rem; }
.faq summary::before{ content:'問'; position:absolute; left:14px; top:50%; margin-top:-15px; width:30px; height:30px; display:grid; place-items:center; background:#B5572B; color:#fff; font-family:var(--f-ms); font-weight:600; font-size:16px; border-radius:6px; transform:rotate(-5deg); }
.faq summary::after{ color:var(--chili); }
.faq details p{ padding-left:56px; color:var(--ink); font-size:.97rem; }

/* ---------- 笔记页（旧：.note-main / .note-h1 / .note-body） ---------- */
.note-main{ border-width:1px; border-radius:12px; padding:28px 40px 36px; box-shadow:var(--shadow); }
.note-h1{ font-family:var(--f-ms); font-weight:600; font-size:clamp(24px,3vw,30px); line-height:1.6; letter-spacing:0; color:var(--accent); word-break:break-word; }
.note-h1 rt{ font-size:.42em; }
.note-pos{ background:#B5572B; color:#fff; border-radius:6px; padding:1px 12px; font-size:.8rem; letter-spacing:0; }
.chip{ border:0; background:var(--chili-soft); color:var(--chili); font-weight:600; font-size:.8rem; }
.note-head{ border-bottom-width:1px; }

.note-body{ font-size:1.0625rem; line-height:1.9; }
.note-body h2{ display:block; margin:2.7rem 0 .75rem; padding-left:12px; border-left:5px solid #B5572B; font-size:1.3rem; line-height:1.45; color:var(--accent); }
.note-body h2::before{ display:none; }
.note-body h3{ font-size:1.125rem; color:var(--ink); }
.note-body ul li::marker,.note-body ol li::marker{ color:var(--chili); }
.note-body strong,.note-body p > strong:first-child,.note-body li > strong:first-child{ color:var(--accent-ink); font-weight:700; background:linear-gradient(transparent 62%,var(--gold) 62%); }

/* 「这课学什么」（旧：.lead-card） */
.overview{ margin:1.4rem 0 1.6rem; padding:14px 20px 8px; background:var(--accent-soft); border-radius:0 12px 12px 0; border-left:5px solid var(--accent); }
.overview .label{ position:static; display:block; background:none; color:var(--accent-ink); padding:0; margin:0 0 2px; font-size:.94rem; font-weight:700; letter-spacing:0; }
.overview li{ font-size:1rem; line-height:1.8; margin:.2em 0; }

/* 词汇表（旧：table.vocab）：表头藍底白字 */
.vocab th{ background:var(--accent); color:var(--on-accent); font-size:.85rem; letter-spacing:0; padding:9px 14px; }
.vocab td{ padding:9px 14px; }
.vocab .c-word{ color:var(--accent); }
.table-scroll{ border-width:1px; border-radius:12px; }

/* 提示框、例句卡、引用（旧：.callout / .example-card）：左边 5px 色条 */
.callout{ border-radius:0 12px 12px 0; border-left:5px solid; padding:12px 16px; }
.callout-tip{ border-color:var(--go); background:var(--go-soft); }
.callout-tip::before{ background:var(--go); color:#fff; }
.callout-note{ border-color:var(--accent); }
.callout-warn{ border-color:var(--bad); background:var(--bad-soft); }
.callout-warn::before{ background:var(--bad); }
.example-card{ border-width:1px; border-left-width:5px; border-left-color:var(--chili); background:var(--paper); }
.example-card .jp{ font-weight:400; font-size:1.125rem; line-height:2.1; color:var(--ink); }
.note-body blockquote{ background:var(--accent-soft); border-left-color:var(--accent); border-radius:0 10px 10px 0; }

/* 术语（旧：.gl）：点状下划线用柿色 */
.gl{ border-bottom-color:var(--chili); }

/* 测验（旧：.quiz-box）：藍色标题条、展开后白底 */
.quiz-box{ border-width:2px; border-radius:12px; }
.quiz-heading{ border-top:0; padding:0 0 0 12px; border-left:5px solid #B5572B; font-size:1.3rem; line-height:1.45; color:var(--accent); }
.quiz-box-score{ background:#B5572B; color:#fff; }
.quiz-option{ font-family:var(--f-ms); border-width:2px; border-radius:10px; }

/* 页尾、进度条 */
.site-foot,footer{ background:var(--paper-2); }

@media (max-width:1180px){
  .hero-inner{ grid-template-columns:minmax(0,1fr); }
  .hero-visual{ padding-right:0; min-height:0; }
  .faq{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .note-main{ padding:18px 16px 24px; }
  .pv-jp{ font-size:21px; }
  .hanko{ right:-6px; }
}

/* =====================================================================
   首页三个区块（旧：便当格 .bento / 学习之路 .road / 专题四格 .topic-row），HTML 在 config/pages.php 的 $jpHomeBlocks
   ===================================================================== */
#main:not(.page) #hubs,#main:not(.page) #route{ display:none; }   /* 只在首页（<main> 没有 .page）藏引擎默认的等级卡和路线格；学习路线页的 #route 要显示 */
.jp-block{ margin-top:52px; }
.sh-row{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:8px 24px; }
.sh-row h2{ margin:0; }
.sh-more{ font-weight:600; color:var(--accent); padding:7px 0; display:inline-block; }
.facts{ display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; list-style:none; }
.facts li{ padding:2px 14px; border-radius:999px; background:var(--accent-soft); color:var(--accent-ink); font-size:.875rem; font-weight:700; }
.facts b{ color:var(--chili); font-family:'Nunito',sans-serif; font-size:1rem; }

.road{ list-style:none; margin:0; padding:6px 0 0; display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.road li{ position:relative; text-align:center; padding-inline:6px; }
.road li:not(:last-child)::after{ content:''; position:absolute; top:34px; left:calc(50% + 40px); right:calc(-50% + 40px); border-top:3px dotted var(--line); }
.stone{ display:flex; flex-direction:column; align-items:center; gap:2px; text-decoration:none; color:var(--ink); }
.stone-dot{ width:68px; height:68px; border-radius:50%; display:grid; place-items:center; background:var(--card); border:3px solid var(--accent); color:var(--accent-ink); font-weight:800; font-size:1.5rem; font-family:'Nunito',sans-serif; box-shadow:var(--shadow); transition:transform .15s,background .15s,color .15s; }
.stone:hover .stone-dot{ background:var(--chili); border-color:var(--chili); color:#fff; transform:translateY(-3px); }
.stone-tag{ margin-top:10px; font-size:.8rem; font-weight:700; color:var(--chili); letter-spacing:.06em; }
.stone-name{ font-weight:700; font-size:.97rem; line-height:1.4; }
.stone-count{ font-size:.8rem; color:var(--ink-2); }
.rd-bar{ display:block; width:96px; height:8px; margin:8px auto 0; background:var(--paper-2); border:1px solid var(--line); border-radius:999px; overflow:hidden; }
.rd-bar i{ display:block; height:100%; width:0; background:var(--chili); border-radius:999px; transition:width .4s; }

.bento{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:minmax(150px,auto); gap:14px; }
.tile{ position:relative; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end; padding:22px 24px; border-radius:18px; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); text-decoration:none; color:var(--ink); transition:transform .15s,border-color .15s; }
.tile:hover{ transform:translateY(-3px); border-color:var(--chili); color:var(--ink); }
.tile-lg{ grid-column:span 2; grid-row:span 2; min-height:320px; background:var(--accent-soft); }
.tile-wide{ grid-column:span 2; }
.tile-kana{ position:absolute; z-index:1; right:14px; top:-6px; font-family:var(--f-ms); font-weight:600; font-size:120px; line-height:1; color:var(--accent); opacity:.1; user-select:none; pointer-events:none; }
.tile-lg .tile-kana{ font-size:220px; right:20px; top:-14px; }
.tile-who{ position:relative; z-index:2; font-size:1.3rem; font-weight:700; color:var(--accent-ink); line-height:1.35; }
.tile-lg .tile-who{ font-size:1.75rem; }
.tile-what{ position:relative; z-index:2; color:var(--ink-2); font-size:.94rem; margin-top:2px; }
.tile-go{ position:relative; z-index:2; margin-top:10px; font-weight:700; color:var(--chili); font-size:.94rem; }
.topic-row{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.topic-row .tile{ min-height:230px; }

@media (max-width:1180px){
  .bento,.topic-row{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:900px){
  .road{ grid-auto-flow:column; grid-template-columns:none; grid-auto-columns:128px; overflow-x:auto; padding-bottom:12px; scroll-snap-type:x proximity; }
  .road li{ scroll-snap-align:start; }
}
@media (max-width:640px){
  .bento,.topic-row{ grid-template-columns:1fr; }
  .tile-lg,.tile-wide{ grid-column:auto; grid-row:auto; min-height:220px; }
}

/* =====================================================================
   图标（assets/site/icons.svg：Lucide ISC + 自绘 torii / fuji）和图解卡（笔记里写 ::: figure 文件名 说明）
   图解文件放 content/figures/文件名.html，样式用 [data-fig="文件名"] 限定写在文件自己的 <style> 里
   ===================================================================== */
.ic{ width:1.2em; height:1.2em; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; vertical-align:-.2em; flex:none; }
.note-body .fig{ margin:1.8rem 0; border:1px solid var(--line); border-radius:14px; background:var(--paper); overflow:hidden; }
.note-body .fig figcaption{ display:flex; align-items:center; gap:10px; padding:9px 16px; border-top:1px dashed var(--line); background:var(--card); font-size:.85rem; line-height:1.5; color:var(--ink-2); }
.note-body .fig figcaption::before{ content:'图解'; flex:none; padding:0 10px; border-radius:6px; background:#B5572B; color:#fff; font-weight:700; font-size:.76rem; line-height:1.8; }
.note-body .fig-missing{ padding:10px 14px; border:1px dashed var(--line); border-radius:10px; color:var(--ink-2); }
.note-body .fig ruby rt{ color:inherit; opacity:.7; }

/* =====================================================================
   播放器（笔记里的场景动画）：深藍舞台 + 字幕条 + 进度段 + 控制 + 章节。HTML 在各图解文件里，逻辑在 site.js 的 initPlayers
   ===================================================================== */
.pl{ container-type:inline-size; background:#1B3347; color:#F1EFEA; }
.pl-stage{ position:relative; aspect-ratio:16/9; overflow:hidden; cursor:pointer;
  background:
    radial-gradient(circle at 78% 12%,rgba(240,160,122,.16),transparent 46%),
    linear-gradient(160deg,#25465F,#1B3347); font-size:clamp(13px,2.3cqw,20px); }
.pl-stage::before{ content:''; position:absolute; inset:0; pointer-events:none; opacity:.16;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%23F1EFEA' stroke-width='1'%3E%3Ccircle cx='0' cy='24' r='12'/%3E%3Ccircle cx='0' cy='24' r='8'/%3E%3Ccircle cx='24' cy='12' r='12'/%3E%3Ccircle cx='24' cy='12' r='8'/%3E%3Ccircle cx='48' cy='24' r='12'/%3E%3Ccircle cx='48' cy='24' r='8'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 70%); mask-image:linear-gradient(to bottom,transparent,#000 70%); }
.pl-scene{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:1.4em 1.8em; opacity:0; visibility:hidden; transition:opacity .35s ease,visibility .35s; }
.pl-scene.on{ opacity:1; visibility:visible; }
.pl .pop{ opacity:0; }
.pl .on .pop{ animation:pl-pop .5s cubic-bezier(.2,.8,.2,1) var(--d,0s) both; }
.pl .tagp{ opacity:0; }
.pl .on .tagp{ animation:pl-pop .5s cubic-bezier(.2,.8,.2,1) var(--d,0s) both; }
@keyframes pl-pop{ from{ opacity:0; transform:translateY(.5em); } to{ opacity:1; transform:none; } }
.pl-cap{ padding:12px 20px 10px; text-align:center; background:#142736; min-height:4.6em; }
.pl-cap b{ display:block; font-size:1.02rem; line-height:1.55; color:#fff; }
.pl-cap small{ display:block; margin-top:2px; font-family:var(--f-ms); font-size:.86rem; color:#B8C7D4; }
.pl-bar{ display:flex; gap:4px; padding:4px 16px 0; background:#142736; }
.pl-seg{ position:relative; flex:1; height:4px; border-radius:2px; background:rgba(241,239,234,.18); overflow:hidden; }
.pl-seg i{ position:absolute; inset:0 auto 0 0; width:0; background:#F0A07A; }
.pl-ctl{ display:flex; align-items:center; gap:6px; padding:8px 12px 12px; background:#142736; }
.pl-btn{ display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:50%; background:transparent; color:#F1EFEA; cursor:pointer; }
.pl-btn:hover{ background:rgba(241,239,234,.12); }
.pl-btn .ic{ width:22px; height:22px; }
.pl-btn.is-main{ width:52px; height:52px; background:#F1EFEA; color:#1B3347; }
.pl-btn.is-main:hover{ background:#fff; }
.pl-btn:focus-visible{ outline:2px solid #F5E2A1; outline-offset:2px; }
.pl-time{ margin-left:6px; font-size:.85rem; color:#B8C7D4; font-variant-numeric:tabular-nums; }
.pl-now{ margin-left:auto; font-size:.85rem; color:#B8C7D4; text-align:right; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.note-body .pl-chap,.home-fig .pl-chap{ list-style:none; margin:0; padding:10px 12px 14px; display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:8px; background:var(--card); }
.note-body .pl-chap li,.home-fig .pl-chap li{ margin:0; padding:0; }
.pl-chap button{ width:100%; display:flex; gap:10px; align-items:center; text-align:left; min-height:48px; padding:8px 12px; border:1px solid var(--line); border-radius:10px; background:var(--paper); color:var(--ink); font:inherit; font-size:.9rem; line-height:1.4; cursor:pointer; }
.pl-chap button:hover{ border-color:var(--chili); }
.pl-chap button.is-on{ border-color:var(--accent); background:var(--accent-soft); }
.pl-chap .n{ flex:none; width:26px; height:26px; display:grid; place-items:center; border-radius:50%; background:var(--accent); color:var(--on-accent); font-size:.8rem; font-weight:700; }
.pl-chap .d{ margin-left:auto; flex:none; font-size:.78rem; color:var(--ink-2); }
@container (max-width:560px){
  .pl-stage{ aspect-ratio:4/5; font-size:clamp(13px,4.1cqw,17px); }
  .pl-scene{ padding:1em .9em; }
  .pl-now{ display:none; }
  .note-body .pl-chap,.home-fig .pl-chap{ grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce){
  .pl .pop,.pl .tagp{ opacity:1; animation:none !important; }
  .pl-scene{ transition:none; }
}

/* 播放器场景通用组件 .pb-*（て形、敬语的播放器共用；は と が 那个播放器有自己的一套写在图解文件里）
   舞台是深藍底，所以颜色固定：字 #F1EFEA、强调 山吹 #F5E2A1 / 柿 #F0A07A */
.pb{ display:grid; gap:1em; justify-items:center; text-align:center; width:min(100%,48em); }
.pb-row{ display:flex; flex-wrap:wrap; gap:.8em; justify-content:center; width:100%; }
.pb-box{ flex:1 1 9em; max-width:15em; padding:.8em 1em 1em; border-radius:1em; background:rgba(241,239,234,.1); border:1px solid rgba(241,239,234,.24); }
.pb-box .k{ display:block; font-family:var(--f-ms); font-size:1.35em; font-weight:600; line-height:1.4; color:#F5E2A1; }
.pb-box .t{ display:block; margin-top:.2em; font-size:.78em; color:#C8D4DE; }
.pb-box.is-new{ border-color:#F0A07A; background:rgba(240,160,122,.16); }
.pb-box.is-new .k{ color:#F0A07A; }
.pb-box .n{ display:block; margin-top:.4em; font-family:var(--f-ms); font-size:1.05em; line-height:1.7; }
.pb-sent{ margin:0; font-family:var(--f-ms); font-size:1.7em; font-weight:600; line-height:1.8; color:#F1EFEA; }
.pb-sent.is-sm{ font-size:1.3em; }
.pb-hl{ padding:0 .18em; border-radius:.3em; background:#F5E2A1; color:#27323F; font-style:normal; }
.pb-hl.is-warm{ background:#F0A07A; }
.pb-tag{ display:inline-block; padding:.1em .8em; border-radius:999px; background:rgba(245,226,161,.2); color:#F5E2A1; font-size:.8em; font-weight:700; }
.pb-tag.is-warm{ background:rgba(240,160,122,.22); color:#F0A07A; }
.pb-tag.is-ok{ background:rgba(143,208,160,.22); color:#B6EBC4; }
.pb-tag.is-bad{ background:rgba(240,144,127,.22); color:#FFB4A6; }
.pb-arrow{ width:1.6em; height:1.6em; color:#F5E2A1; }
.pb-two{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.1em; width:100%; }
.pb-two .pb-box{ max-width:none; text-align:center; }
.pb-rule{ display:grid; grid-template-columns:minmax(5em,auto) 1.6em minmax(4em,auto) minmax(0,1fr); align-items:center; gap:.7em; width:min(100%,40em); text-align:left; padding:.25em 0; }
.pb-rule .e{ padding:.15em .6em; border-radius:.5em; background:rgba(241,239,234,.14); font-family:var(--f-ms); font-weight:600; text-align:center; }
.pb-rule .r{ padding:.15em .6em; border-radius:.5em; background:#F5E2A1; color:#27323F; font-family:var(--f-ms); font-weight:600; text-align:center; }
.pb-rule .x{ font-family:var(--f-ms); }
.pb-rule .ic{ width:1.2em; height:1.2em; color:#F0A07A; }
.pb-cut{ position:relative; display:inline-block; }
.pb-cut::after{ content:''; position:absolute; left:0; right:0; top:52%; height:.11em; background:#F0A07A; transform:scaleX(0); transform-origin:left; }
.pl .on .pb-cut::after{ animation:pb-cut .5s ease var(--d,0s) both; }
@keyframes pb-cut{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }
.pb .verdict{ display:flex; gap:1.2em; flex-wrap:wrap; justify-content:center; font-family:var(--f-ms); font-size:1.2em; }
.pb .no,.pb .yes{ display:inline-flex; align-items:center; gap:.4em; padding:.3em .9em; border-radius:.8em; }
.pb .no{ background:rgba(240,144,127,.18); color:#FFB4A6; }
.pb .yes{ background:rgba(143,208,160,.2); color:#B6EBC4; }
.pb .verdict .ic{ width:1.2em; height:1.2em; }
@container (max-width:560px){
  .pb-two{ grid-template-columns:1fr; gap:.7em; }
  .pb-rule{ grid-template-columns:minmax(4em,auto) 1.2em minmax(3em,auto); }
  .pb-rule .x{ grid-column:1 / -1; text-align:center; }
  .pb-sent{ font-size:1.35em; }
  .pb-box .k{ font-size:1.15em; }
}
@media (prefers-reduced-motion:reduce){ .pb-cut::after{ transform:scaleX(1); animation:none !important; } }

/* =====================================================================
   首页第 4 批：漂浮假名、演示卡、统计条、点假名听发音、播放器展示、收尾号召条、区块淡入
   HTML 在 config/pages.php，脚本在 site.js（initDemo / initCount / initKana / initReveal）
   ===================================================================== */
/* 漂浮的假名（装饰，很淡） */
@keyframes kf{ from{ transform:translateY(0) rotate(-5deg); } to{ transform:translateY(-16px) rotate(5deg); } }

/* 统计条 */

/* 演示卡：3 道小测验轮流出现，选项自己被「选中」 */
.preview-card .demo-slide{ display:none; min-height:176px; }
.preview-card .demo-slide.is-on{ display:block; animation:demo-in .5s ease both; }
@keyframes demo-in{ from{ opacity:0; } to{ opacity:1; } }
.jp-demo-on .pv-opt span.ok::after{ content:' ✓'; }
.jp-demo-on .pv-opt span.hold{ opacity:.85; }
.jp-demo-on .pv-opt span.ok{ animation:pick .45s ease both; }
@keyframes pick{ 0%{ transform:scale(.96); } 60%{ transform:scale(1.05); } 100%{ transform:scale(1); } }
.demo-dots{ display:flex; gap:8px; justify-content:center; margin-top:14px; }
.demo-dots i{ width:8px; height:8px; border-radius:50%; background:var(--line); transition:background .3s,width .3s; }
.demo-dots i.is-on{ width:22px; border-radius:4px; background:var(--chili); }

/* 点假名听发音 */
.kana-box{ display:grid; grid-template-columns:250px minmax(0,1fr); gap:26px; padding:24px; background:var(--card); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); }
.kana-tabs{ display:inline-flex; padding:4px; border-radius:999px; background:var(--paper-2); border:1px solid var(--line); }
.kana-tabs button{ min-height:40px; padding:0 18px; border:0; border-radius:999px; background:transparent; color:var(--ink-2); font:inherit; font-weight:700; cursor:pointer; }
.kana-tabs button.is-on{ background:var(--accent); color:var(--on-accent); }
.kana-show{ display:flex; flex-direction:column; align-items:center; justify-content:center; margin:18px 0 10px; padding:18px 10px; border-radius:16px; background:var(--accent-soft); }
.kana-big{ font-family:var(--f-ms); font-size:5.6rem; font-weight:600; line-height:1.1; color:var(--accent); }
.kana-big.bump{ animation:kbump .4s ease; }
@keyframes kbump{ 0%{ transform:scale(.8); opacity:.4; } 60%{ transform:scale(1.08); } 100%{ transform:scale(1); opacity:1; } }
.kana-ro{ font-family:'Nunito',sans-serif; font-size:1.35rem; font-weight:700; letter-spacing:.12em; color:var(--chili); }
.kana-hint{ margin:0; font-size:.85rem; line-height:1.6; color:var(--ink-2); }
.kana-grid{ display:grid; grid-auto-flow:column; grid-template-rows:repeat(5,minmax(0,1fr)); grid-template-columns:repeat(11,minmax(0,1fr)); gap:6px; align-content:start; }
.kana-cell{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; min-height:56px; padding:4px 2px; border:1px solid var(--line); border-radius:10px; background:var(--paper); color:var(--ink); cursor:pointer; font:inherit; transition:border-color .15s,background .15s,transform .1s; }
.kana-cell b{ font-family:var(--f-ms); font-size:1.4rem; font-weight:600; line-height:1.2; }
.kana-cell small{ font-size:.66rem; color:var(--ink-2); letter-spacing:.04em; }
.kana-cell:hover{ border-color:var(--chili); background:var(--chili-soft); }
.kana-cell:active{ transform:scale(.94); }
.kana-cell.is-now{ background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
.kana-cell.is-now small{ color:inherit; opacity:.85; }
.kana-gap{ visibility:hidden; }
@media (max-width:900px){
  .kana-box{ grid-template-columns:1fr; gap:18px; padding:18px; }
  .kana-grid{ grid-auto-flow:row; grid-template-rows:none; grid-template-columns:repeat(5,minmax(0,1fr)); }
  .kana-big{ font-size:4.4rem; }
}

/* 播放器展示（首页） */
.home-fig{ max-width:980px; margin:0 auto; border:1px solid var(--line); border-radius:18px; overflow:hidden; box-shadow:var(--shadow); background:var(--paper); }

/* 收尾号召条 */
.jp-cta{ position:relative; margin-top:68px; padding:68px 0 72px; overflow:hidden; text-align:center; color:#F1EFEA; background:linear-gradient(135deg,#1F4562,#27323F); }
.jp-cta::before{ content:''; position:absolute; inset:0; pointer-events:none; opacity:.10;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%23F1EFEA' stroke-width='1.2'%3E%3Ccircle cx='0' cy='24' r='12'/%3E%3Ccircle cx='0' cy='24' r='8'/%3E%3Ccircle cx='24' cy='12' r='12'/%3E%3Ccircle cx='24' cy='12' r='8'/%3E%3Ccircle cx='48' cy='24' r='12'/%3E%3Ccircle cx='48' cy='24' r='8'/%3E%3C/g%3E%3C/svg%3E"); }
.jp-cta-in{ position:relative; }
.jp-cta-k{ margin:0; font-weight:700; letter-spacing:.16em; color:#F0A07A; }
.jp-cta h2{ margin:8px 0 14px; font-family:var(--f-head); font-size:clamp(1.6rem,4vw,2.5rem); line-height:1.35; color:#fff; }
.jp-cta h2 em{ font-style:normal; font-family:var(--f-ms); color:#F5E2A1; }
.jp-cta-p{ max-width:34em; margin:0 auto 26px; color:#D5DEE6; }
.jp-cta-link{ display:inline-block; margin:18px 0 0 18px; padding:8px 4px; color:#C8D4DE; }
.jp-cta-link:hover{ color:#fff; }
@media (max-width:640px){ .jp-cta-link{ display:block; margin:12px 0 0; } }

/* =====================================================================
   图解通用组件 .fg-*（N5 入门 18 张图共用；单张图只写自己特有的少量样式，放在图解文件的 <style> 里）
   进场动画：引擎给 .fig 加 .fig-armed（等待）→ .is-in（播放）；.pop 的 --d 是延迟；没有 JS 或「减少动态效果」时直接是完成状态。
   不在 SVG 内部做动画（见 STRUCTURE.md 的踩坑记录）。
   ===================================================================== */
.fg{ padding:24px 24px 26px; container-type:inline-size; }
.fg-title{ margin:0 0 16px; display:flex; align-items:center; gap:10px; font-weight:700; font-size:1.02rem; line-height:1.5; color:var(--accent-ink); }
.fg-title .ic{ width:1.35em; height:1.35em; color:var(--chili); }
.fg-jp{ font-family:var(--f-ms); font-weight:600; color:var(--accent-ink); line-height:1.65; font-size:1.05rem; }
.fg-cn{ color:var(--ink-2); font-size:.88rem; line-height:1.55; }
.fg-hl{ padding:0 .22em; border-radius:.3em; background:var(--gold); color:#27323F; font-style:normal; }
.fg-hl.is-warm{ background:var(--chili-soft); color:var(--chili); }
.fg-hl.is-blue{ background:var(--accent-soft); color:var(--accent-ink); }
/* 暗色：山吹底在暗色里是暗金色，字要用亮金色，否则看不清 */
.fg-card{ background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px 16px; box-shadow:var(--shadow); min-width:0; }
.fg-card.is-soft{ background:var(--accent-soft); box-shadow:none; }
.fg-head{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.fg-ic{ flex:none; width:40px; height:40px; display:grid; place-items:center; border-radius:50%; background:var(--accent-soft); color:var(--accent); }
.fg-ic .ic{ width:22px; height:22px; }
.fg-ic.is-warm{ background:var(--chili-soft); color:var(--chili); }
.fg-ic.is-gold{ background:var(--gold); color:#7A4B00; }
.fg-ic.is-dark{ background:var(--accent); color:#fff; }
.fg-ic.is-go{ background:var(--go-soft); color:var(--go); }
.fg-ic.is-bad{ background:var(--bad-soft); color:var(--bad); }
.fg-tag{ display:inline-block; padding:0 10px; border-radius:999px; background:var(--accent-soft); color:var(--accent-ink); font-size:.74rem; font-weight:700; line-height:1.85; }
.fg-tag.is-warm{ background:var(--chili-soft); color:var(--chili); }
.fg-tag.is-ok{ background:var(--go-soft); color:var(--go); }
.fg-tag.is-bad{ background:var(--bad-soft); color:var(--bad); }
.fg-tag.is-gold{ background:var(--gold); color:#5C3A00; }
.fg-grid{ display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(var(--min,150px),1fr)); }
.fg-flow{ display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(var(--min,220px),1fr)); }
.fg-arrow{ display:none; }   /* 步骤的先后靠卡片上的序号表达；箭头在宽度不够时对不齐，所以不画 */
.fg-vs{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.fg-note{ margin:16px 0 0; padding:10px 14px; border-radius:10px; background:var(--chili-soft); color:var(--ink); font-size:.92rem; line-height:1.6; display:flex; gap:10px; align-items:flex-start; }
.fg-note .ic{ flex:none; margin-top:.2em; color:var(--chili); }
.fg-note.is-ok{ background:var(--go-soft); }
.fg-note.is-ok .ic{ color:var(--go); }
.fg-row{ display:grid; grid-template-columns:minmax(86px,.35fr) minmax(0,1fr) minmax(70px,.3fr); align-items:center; gap:12px; padding:7px 0; }
.fg-bar{ height:16px; border-radius:8px; background:var(--paper-2); overflow:hidden; border:1px solid var(--line); }
.fg-bar i{ display:block; height:100%; width:var(--w,50%); border-radius:8px; background:linear-gradient(90deg,var(--accent),var(--chili)); transition:width 1.1s ease var(--d,0s); }
.fig-armed:not(.is-in) .fg-bar i{ width:0; }
.fig-armed:not(.is-in) .fg .pop{ opacity:0; }
.is-in .fg .pop{ animation:fg-pop .5s cubic-bezier(.2,.8,.2,1) var(--d,0s) both; }
@keyframes fg-pop{ from{ opacity:0; transform:translateY(.7em) scale(.97); } to{ opacity:1; transform:none; } }
@container (max-width:620px){
  .fg{ padding:18px 14px 20px; }
  .fg-vs{ grid-template-columns:1fr; }
  .fg-row{ grid-template-columns:minmax(70px,.4fr) minmax(0,1fr); }
  .fg-row > :last-child{ grid-column:1 / -1; }
}
@media (prefers-reduced-motion:reduce){
  .fg .pop{ animation:none !important; opacity:1; }
  .fg-bar i{ transition:none; }
}

/* =====================================================================
   页脚（引擎的「正式页脚」footer，配置在 site.json 的 footer）：深藍底 + 青海波 + 顶上一条彩色细线 + 大号水印「日本語」+ 回到顶部
   ===================================================================== */
.site-foot-full{ position:relative; margin-top:0; padding:0; border-top:0; overflow:hidden; color:#C8D4DE; font-size:.95rem;
  background:linear-gradient(165deg,#16293A 0%,#0F1A25 100%); }
.site-foot-full::before{ content:''; position:absolute; inset:0; pointer-events:none; opacity:.07;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%23F1EFEA' stroke-width='1.2'%3E%3Ccircle cx='0' cy='24' r='12'/%3E%3Ccircle cx='0' cy='24' r='8'/%3E%3Ccircle cx='24' cy='12' r='12'/%3E%3Ccircle cx='24' cy='12' r='8'/%3E%3Ccircle cx='48' cy='24' r='12'/%3E%3Ccircle cx='48' cy='24' r='8'/%3E%3C/g%3E%3C/svg%3E"); }
.site-foot-full::after{ content:''; position:absolute; left:0; right:0; top:0; height:4px; background:linear-gradient(90deg,#B5572B,#F0A07A,#F5E2A1,#8FB8DB,#2F5D80); }
.site-foot-full .wrap{ position:relative; display:block; }
.site-foot-full .wrap::after{ content:'日本語'; position:absolute; right:-10px; bottom:48px; writing-mode:vertical-rl; font-family:var(--f-ms); font-weight:600; font-size:9rem; letter-spacing:.2em; line-height:1; color:rgba(241,239,234,.05); pointer-events:none; user-select:none; }
.site-foot-full .foot-top{ display:grid; grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr)); gap:36px 40px; padding:60px 0 42px; }
.site-foot-full .foot-brand strong{ display:flex; align-items:center; gap:14px; font-family:var(--f-round); font-size:1.65rem; font-weight:700; letter-spacing:.02em; color:#fff; }
.site-foot-full .foot-brand strong::before{ content:''; flex:none; width:44px; height:44px; background:url("/assets/site/icon.svg") center/contain no-repeat; }
.site-foot-full .foot-brand p{ margin:16px 0 0; max-width:30em; line-height:1.85; color:#AEBFCD; }
.site-foot-full .foot-brand::after{ content:'また明日。'; display:block; margin-top:20px; font-family:var(--f-ms); font-size:1.45rem; font-weight:600; color:#F5E2A1; }
.site-foot-full .foot-col h2{ margin:0 0 14px; font-size:.78rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:#F0A07A; }
.site-foot-full .foot-col ul{ list-style:none; margin:0; padding:0; }
.site-foot-full .foot-col li{ margin:0; }
.site-foot-full .foot-col a{ position:relative; display:inline-block; padding:7px 0; color:#E2EAF0; text-decoration:none; }
.site-foot-full .foot-col a::after{ content:''; position:absolute; left:0; right:0; bottom:4px; height:2px; background:#F0A07A; transform:scaleX(0); transform-origin:left; transition:transform .25s ease; }
.site-foot-full .foot-col a:hover{ color:#fff; }
.site-foot-full .foot-col a:hover::after{ transform:scaleX(1); }
.site-foot-full .foot-bottom{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 24px; padding:20px 0 30px; border-top:1px solid rgba(241,239,234,.14); font-size:.86rem; color:#A9B9C6; }
.site-foot-full .foot-bottom span{ display:block !important; }
.site-foot-full .foot-credit{ color:#F5E2A1; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.site-foot-full .foot-credit:hover{ color:#fff; }
.foot-up{ display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 16px; border:1px solid rgba(241,239,234,.28); border-radius:999px; background:transparent; color:#E2EAF0; font:inherit; font-size:.86rem; font-weight:700; cursor:pointer; transition:background .15s,color .15s; }
.foot-up:hover{ background:#F1EFEA; color:#16293A; }
.foot-up .ic{ width:18px; height:18px; }
@media (max-width:900px){
  .site-foot-full .foot-top{ grid-template-columns:repeat(2,minmax(0,1fr)); padding:44px 0 28px; }
  .site-foot-full .foot-brand{ grid-column:1 / -1; }
  .site-foot-full .wrap::after{ font-size:6rem; bottom:90px; }
  .site-foot-full .foot-bottom{ padding-bottom:calc(var(--bar-h,64px) + 28px + var(--safe-b,0px)); }
}

/* 区块滚到眼前时淡入（只改透明度） */
.jp-rv-wait{ opacity:0; transition:opacity .7s ease; }
.jp-rv-wait.jp-rv-seen{ opacity:1; }

@media (prefers-reduced-motion:reduce){
  .jp-rv-wait{ opacity:1; transition:none; }
}

/* 2026-11-11：图解卡片里的特制插画（_design/art/mkart_2026-11-11.py 换进去的）；「重播」按钮本站本来就没有 */
.fg-art{ flex:none; width:60px; height:60px; display:block; }
.fg-head:has(.fg-art){ gap:12px; }
[data-fig="clinic-flow"] .steps .st .fg-art{ width:40px; height:40px; order:2; margin-left:auto; flex:none; }
[data-fig="clock-times"] .ck .fg-art{ width:52px; height:52px; margin:0 auto 4px; }
.fg-art.fg-map{ width:100%; max-width:420px; height:auto; margin:0 0 12px; border:1px solid var(--line); border-radius:12px; background:var(--card); }
.fg-flow .fg-head .fg-art{ width:48px; height:48px; }
/* 第二批插画：拜访、家人、楼层 */
[data-fig="visit-home"] .mid .fg-art{ display:block; width:52px; height:52px; margin:0 auto 4px; }
[data-fig="family-words"] .fam-top{ display:flex; align-items:center; gap:8px; margin-bottom:4px; }
[data-fig="family-words"] .fam-top .fg-art{ width:48px; height:48px; flex:none; }
[data-fig="family-words"] .fam-top .fam-rel{ margin:0; }
.fg-art.fl-bld{ width:100%; height:auto; max-width:360px; }
[data-fig="floors"] .fl.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
@container (max-width:620px){ [data-fig="floors"] .fg-art.fl-bld{ margin:0 auto; } }

/* =====================================================================
   装饰图（2026-11-23 接入；图在 assets/site/img/，HTML 由 config/pages.php 的 jp_art() 和 site.js 的 art() 输出）
   全部是装饰（空 alt、aria-hidden），不参与交互。
   ===================================================================== */
.art{ display:block; max-width:100%; height:auto; pointer-events:none; user-select:none; }


/* 「你现在在哪一步」三张卡：右下角一张插画，文字在左 */
.tile-art{ position:absolute; z-index:1; right:8px; bottom:6px; width:46%; max-width:250px; }
.tile-lg .tile-art{ width:50%; max-width:360px; right:12px; bottom:auto; top:8px; }
.tile-lg .tile-what{ max-width:52%; }
.tile-wide .tile-art{ width:34%; max-width:200px; bottom:auto; top:50%; transform:translateY(-50%); }
.tile-wide .tile-who,.tile-wide .tile-what,.tile-wide .tile-go{ max-width:64%; }
@media (max-width:640px){
  .tile-lg .tile-art{ position:static; width:64%; max-width:none; margin:0 auto 6px; }
  .tile-lg .tile-what{ max-width:none; }
  .tile-wide .tile-art{ width:36%; }
}
/* 专题四格：插画在上，文字在下 */
.tile-topic .tile-art{ position:static; width:100%; max-width:none; transform:none; margin:-8px 0 6px; aspect-ratio:4/3; object-fit:contain; }
.topic-row .tile-topic{ min-height:0; justify-content:flex-start; }
@media (max-width:640px){
  .topic-row .tile-topic{ display:grid; grid-template-columns:96px minmax(0,1fr); align-content:center; column-gap:12px; padding:12px 16px; }
  .tile-topic .tile-art{ grid-row:1 / 3; grid-column:1; align-self:center; width:96px; margin:0; }
  .tile-topic .tile-who{ grid-column:2; align-self:end; }
  .tile-topic .tile-what{ grid-column:2; align-self:start; }
}

/* 学习之路：章节签代替数字圆点；读完的一站盖上印章 */
.stone-dot{ position:relative; width:100px; height:100px; border:0; border-radius:0; background:none; box-shadow:none; }
.stone-dot .art{ width:100%; }
.stone:hover .stone-dot{ background:none; border-color:transparent; transform:translateY(-3px); }
.road li:not(:last-child)::after{ top:50px; left:calc(50% + 54px); right:calc(-50% + 54px); }
.stone-tag{ margin-top:4px; }
.stamp{ position:absolute; z-index:2; right:-6px; bottom:-8px; width:46px; height:46px; transform:rotate(-8deg); }
@media (max-width:900px){ .road{ grid-auto-columns:132px; } }

/* 五十音区：发音卡小图，放在左栏空白处 */
.kana-art{ width:140px; margin:14px auto 0; opacity:.95; }
@media (max-width:900px){ .kana-art{ display:none; } }

/* 收尾号召条：笔记本小景 */
.cta-art{ width:min(220px,50%); margin:0 auto 6px; filter:drop-shadow(0 6px 10px rgba(0,0,0,.3)); }
@media (max-width:640px){ .cta-art{ width:150px; } }

/* 等级页页头：短幅插画 */
.level-banner{ margin:6px 0 0; border-radius:18px; overflow:hidden; background:#F1EFEA; }   /* 底色和图自带的纸色一致，图靠右、不裁切 */

/* 学习路线页：章节签放在每一天的卡片里 */
.cal .day{ position:relative; }
.cal .day .chap-art{ display:block; width:64px; height:64px; margin:0 auto 4px; position:relative; }
.cal .day .chap-art .art{ width:100%; }
.cal .day .chap-art .stamp{ right:-12px; bottom:-6px; width:34px; height:34px; }

/* 状态图：收藏为空、搜索无结果、404、读完整个等级 */
.state-art{ width:min(260px,70%); margin:6px auto 10px; }
.search-empty .state-art{ width:min(200px,60%); }
.page-404-art{ width:min(320px,80%); margin:0 auto 12px; }

.sr-only{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.group-head .stamp{ position:static; flex:none; width:54px; height:54px; margin-right:12px; align-self:center; }
.group-head:has(.stamp){ display:flex; align-items:center; flex-wrap:wrap; }
.state-art-wrap{ display:block; }
.group-art{ flex:none; display:block; width:150px; margin-right:14px; }
.group-art .art{ width:100%; }
.group-head:has(.group-art){ display:flex; align-items:center; flex-wrap:wrap; }
@media (max-width:640px){ .group-art{ width:84px; margin-right:10px; } }

@media (prefers-reduced-motion:reduce){ .art{ transition:none; animation:none; } }

/* 本站只有一种配色：设置面板里的「亮/暗色」一行藏起来（引擎里的开关保留，别的站还在用） */
.set-row:has([data-seg="mode"]){ display:none; }

/* =====================================================================
   首页改版（2026-11-24）：「从哪里开始」四张等宽卡 / 「每一课都是同一个节奏」三步 / 学习之路每站的「学完能…」/ 搜索框
   ===================================================================== */
.bento-start{ grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:auto; }
.tile-start{ justify-content:flex-start; min-height:0; }
.tile-start .tile-art{ position:static; width:100%; max-width:none; transform:none; margin:-8px 0 8px; aspect-ratio:4/3; object-fit:contain; }
.tile-start .tile-what{ flex:1 1 auto; }
.tile-start .tile-who{ font-size:1.2rem; }
.tile-start.is-first{ background:var(--accent-soft); border-color:var(--accent); }
.tile-tag{ position:relative; z-index:2; align-self:flex-start; margin-bottom:8px; padding:1px 10px; border-radius:999px; background:var(--chili-soft); color:var(--chili); font-size:.8rem; font-weight:700; }
.tile-noart{ background:var(--paper-2); }
.tile-mark{ display:block; width:100%; aspect-ratio:4/3; margin:-8px 0 8px; display:grid; place-items:center; font-family:'Nunito',sans-serif; font-weight:800; font-size:4.5rem; line-height:1; color:var(--accent); opacity:.22; user-select:none; }
@media (max-width:1180px){ .bento-start{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px){
  .bento-start{ grid-template-columns:1fr; }
  .tile-start{ display:grid; grid-template-columns:96px minmax(0,1fr); align-content:center; column-gap:14px; padding:14px 16px; min-height:0; }
  .tile-start .tile-art,.tile-start .tile-mark{ grid-row:1 / 5; grid-column:1; align-self:center; width:96px; margin:0; font-size:2rem; }
  .tile-start > :not(.tile-art):not(.tile-mark){ grid-column:2; }
  .tile-tag{ margin-bottom:4px; }
}

.lesson-steps{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.lesson-step{ padding:22px 24px; border-radius:18px; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); }
.lesson-step h3{ margin:10px 0 6px; font-size:1.1rem; line-height:1.4; color:var(--accent-ink); }
.lesson-step p{ margin:0; color:var(--ink-2); font-size:.94rem; }
.step-no{ display:inline-grid; place-items:center; width:34px; height:34px; border-radius:50%; background:var(--chili); color:#fff; font-family:'Nunito',sans-serif; font-weight:800; }
@media (max-width:760px){ .lesson-steps{ grid-template-columns:1fr; } }

.stone-goal{ margin-top:8px; font-size:.8rem; line-height:1.55; color:var(--ink-2); }
.home-search{ margin-top:28px; }
.home-search-box{ max-width:none; width:100%; }
.road li{ display:flex; } .road .stone{ width:100%; } .road .stone .rd-bar{ margin-top:auto; } .stone-goal{ margin-bottom:10px; }

/* =====================================================================
   首页背景（2026-11-24）：首屏居中 + 富士山照片 + 整页和纸纹理 + 两块贴纸（七宝、麻の葉）+ 收尾区花瓣
   图在 assets/site/img/background-*.svg，一律很淡，只做底；文字颜色和对比度不变。
   ===================================================================== */
body{ background-image:url("/assets/site/img/bg/background-washi-grain.svg"); }
.hero{ position:relative; padding-top:0; padding-bottom:130px; overflow:hidden; border-bottom:0; background:transparent; }
/* 首屏底部的富士山照片（Unsplash，见 CLAUDE.md 第 9 节）：上缘渐隐进和纸色，山偏右，避开居中的预览卡 */
.hero::before{ content:''; position:absolute; left:0; right:0; bottom:0; height:clamp(360px,46vw,720px); z-index:0; pointer-events:none; background:url("/assets/site/img/photos/hero/photo-hero-fuji.webp") 72% bottom / cover no-repeat; -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 16%,#000 62%,rgba(0,0,0,.88) 70%,rgba(0,0,0,.66) 79%,rgba(0,0,0,.38) 88%,rgba(0,0,0,.14) 95%,transparent 100%); mask-image:linear-gradient(180deg,transparent 0,#000 16%,#000 62%,rgba(0,0,0,.88) 70%,rgba(0,0,0,.66) 79%,rgba(0,0,0,.38) 88%,rgba(0,0,0,.14) 95%,transparent 100%); }
.hero-inner{ grid-template-columns:1fr; justify-items:center; text-align:center; gap:26px; padding-top:34px; padding-bottom:0; }
.hero-copy{ display:flex; flex-direction:column; align-items:center; }
.hero-lead{ margin-inline:auto; }
.hero-actions{ justify-content:center; }
.hero-logo{ display:block; width:76px; height:76px; margin:0 auto 10px; }
.hero-visual{ width:100%; min-height:0; padding-right:0; }
.preview-card{ margin-inline:auto; transform:none; width:min(100%,520px); }
.home-search{ position:relative; z-index:5; margin-top:-62px; }
.home-search-box{ max-width:640px; margin-inline:auto; box-shadow:var(--shadow),0 10px 30px rgba(31,69,98,.12); }
@media (max-width:640px){ .hero{ padding-bottom:330px; } .hero::before{ height:430px; background-position:76% bottom; } .hero-logo{ width:64px; height:64px; } .home-search{ margin-top:-96px; } }

/* 「从哪里开始」贴七宝，「学习之路」贴麻の葉：圆角 18px 的一张纸 */
#where,#road{ padding:28px 28px 30px; border-radius:18px; border:1px solid var(--line); background-color:#F1EFEA; }
#where{ background-image:url("/assets/site/img/bg/background-shippo.svg"); }
#road{ background-image:url("/assets/site/img/bg/background-asanoha.svg"); }
@media (max-width:640px){ #where,#road{ padding:18px 14px 20px; margin-inline:8px; } }
#lesson .lesson-step{ background:rgba(255,255,255,.92); }

/* 收尾深蓝区：花瓣叠在原来的渐变上（不用 background-image 覆盖，否则深蓝底会消失、白字看不见） */
.jp-cta{ isolation:isolate; }
.jp-cta::after{ content:''; position:absolute; inset:0; z-index:0; pointer-events:none; background:url("/assets/site/img/bg/background-sakura-drift-dark.svg") right top / min(1200px,100%) auto no-repeat; }
.jp-cta-in{ z-index:1; }

/* FAQ 四问：两列，避免第 4 张单独掉到第二行 */
.faq{ grid-template-columns:repeat(2,minmax(0,1fr)); }
@media (max-width:760px){ .faq{ grid-template-columns:1fr; } }

/* =====================================================================
   首页明暗节奏（2026-11-24）：浅 → 深（每一课的节奏）→ 浅 → 浅 → 深（は 和 が 演示）→ 浅 → 深（收尾号召条）
   深色带是固定的深藍（不是深色模式）：整屏宽的底 + 麻の葉暗纹；卡片仍是白的，标题和小字用浅色。
   ===================================================================== */
body{ overflow-x:clip; }
#lesson,#demo{ position:relative; z-index:0; margin-top:64px; padding-top:52px; padding-bottom:58px; }
#lesson::before,#demo::before{ content:''; position:absolute; z-index:-1; top:0; bottom:0; left:50%; width:100vw; transform:translateX(-50%);
  background:url("/assets/site/img/bg/background-asanoha-dark.svg"),linear-gradient(135deg,#1F4562,#27323F); }
#lesson .section-head h2,#demo .section-head h2{ color:#fff; }
#lesson .section-head h2::before,#demo .section-head h2::before{ background:#F0A07A; }
#lesson .section-head p,#demo .section-head p{ color:#D5DEE6; }
#demo .sh-more{ color:#F5E2A1; }
#demo .sh-more:hover{ color:#fff; }
#lesson .lesson-step{ background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.22); border-color:transparent; }
#demo .home-fig{ box-shadow:0 14px 40px rgba(0,0,0,.35); }
@media (max-width:640px){ #lesson,#demo{ margin-top:48px; padding-top:40px; padding-bottom:44px; } }

/* =====================================================================
   浅色区块的点缀 + 深浅交界（2026-11-24，全部是本站自己画的 SVG，不依赖外部素材）
   图：assets/site/img/deco-*.svg（road-path 小路 / torii 鸟居 / fuji 富士山 / sakura-branch 樱枝 / bamboo 竹子）。
   原则：每块一个主角图形，放角落或侧边，文字区保持干净。
   ===================================================================== */

/* 深浅交界：深色带上下缘做成青海波的圆弧（用 mask 裁出，渐变底色照常显示） */
#lesson::before,#demo::before{ top:-17px; bottom:-17px;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Cpath d='M0 18A24 18 0 0 1 48 18Z'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Cpath d='M0 0A24 18 0 0 0 48 0Z'/%3E%3C/svg%3E"),linear-gradient(#000,#000);
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Cpath d='M0 18A24 18 0 0 1 48 18Z'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Cpath d='M0 0A24 18 0 0 0 48 0Z'/%3E%3C/svg%3E"),linear-gradient(#000,#000);
  -webkit-mask-size:48px 18px,48px 18px,100% calc(100% - 34px);
  mask-size:48px 18px,48px 18px,100% calc(100% - 34px);
  -webkit-mask-position:left top,left bottom,0 17px;
  mask-position:left top,left bottom,0 17px;
  -webkit-mask-repeat:repeat-x,repeat-x,no-repeat;
  mask-repeat:repeat-x,repeat-x,no-repeat; }
.jp-cta{ -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Cpath d='M0 18A24 18 0 0 1 48 18Z'/%3E%3C/svg%3E"),linear-gradient(#000,#000); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Cpath d='M0 18A24 18 0 0 1 48 18Z'/%3E%3C/svg%3E"),linear-gradient(#000,#000);
  -webkit-mask-size:48px 18px,100% calc(100% - 17px); mask-size:48px 18px,100% calc(100% - 17px);
  -webkit-mask-position:left top,0 17px; mask-position:left top,0 17px;
  -webkit-mask-repeat:repeat-x,no-repeat; mask-repeat:repeat-x,no-repeat; }

/* 纹样加深：同一张图叠两层，透明度翻倍（原图太淡） */
#where{ background-image:url("/assets/site/img/bg/background-shippo.svg"),url("/assets/site/img/bg/background-shippo.svg"); }
#road{ background-image:url("/assets/site/img/bg/background-asanoha.svg"),url("/assets/site/img/bg/background-asanoha.svg"); }
.kana-box{ background-image:url("/assets/site/img/bg/background-genkou-note.svg"),url("/assets/site/img/bg/background-genkou-note.svg"); }

/* 「今天」看板：右侧一枝樱 */
.dash{ position:relative; }
.dash::after{ content:''; position:absolute; z-index:-1; right:0; top:-6px; width:min(460px,34%); aspect-ratio:2/1; pointer-events:none; background:url("/assets/site/img/deco/deco-sakura-branch.svg") right top / contain no-repeat; }
@media (max-width:1100px){ .dash::after{ display:none; } }

/* 学习之路：七站落在一条蜿蜒的小路上，起点鸟居、终点富士山 */
@media (min-width:901px){
  .road{ position:relative; }
  .road::before{ content:''; position:absolute; left:0; right:0; top:2px; height:120px; pointer-events:none; background:url("/assets/site/img/deco/deco-road-path.svg") 0 0 / 100% 120px no-repeat; }
  .road::after{ content:''; position:absolute; left:-30px; right:-30px; top:6px; height:100px; pointer-events:none;
    background:url("/assets/site/img/deco/deco-torii.svg") left bottom / 54px auto no-repeat,url("/assets/site/img/deco/deco-fuji.svg") right bottom / 82px auto no-repeat; }
  .road li:not(:last-child)::after{ display:none; }
  .stone-dot{ position:relative; z-index:1; }
}

/* 专题四卡：右下角的大字调深一点 */
.tile-topic .tile-kana{ opacity:.15; }

/* FAQ：标题右侧一丛竹子 */
section:has(> .faq){ position:relative; z-index:0; }
section:has(> .faq)::before{ content:''; position:absolute; z-index:-1; right:0; top:-40px; width:min(360px,48%); height:124px; pointer-events:none; background:url("/assets/site/img/deco/deco-bamboo.svg") right top / auto 124px no-repeat; }
@media (max-width:640px){ section:has(> .faq)::before{ display:none; } }

/* =====================================================================
   首页浅色色带（2026-11-24）：不再是一整片灰白和纸，而是整屏宽的柔和色带，冷（淡天空藍）暖（奶油山吹）交替，
   中间夹三条深藍带。顺序：看板（冷）→ 从哪里开始（暖）→ 深 → 五十音（冷）→ 学习之路（暖）→ 深 → 专题（冷）→ FAQ（暖）→ 深。
   只作用在首页（body[data-active="home"]）；笔记页等仍是和纸。想调色：改下面两个变量 --wash-cool / --wash-warm。
   ===================================================================== */
body[data-active="home"]{
  /* 浅色色带 = 白底 + 左右两侧中部各一团柔和色晕；上下边缘是纯白，所以和首屏照片、深色带、相邻色带都衔接得上。想调色改这几行 */
  --g-sky:radial-gradient(ellipse 46% 50% at 3% 52%,#CFE6F7 0%,transparent 100%),radial-gradient(ellipse 46% 50% at 97% 48%,#E1DAF6 0%,transparent 100%),linear-gradient(180deg,#FFFFFF 0%,#F5F9FD 50%,#FFFFFF 100%);
  --g-sky2:radial-gradient(ellipse 46% 50% at 3% 52%,#CFE6F7 0%,transparent 100%),radial-gradient(ellipse 46% 50% at 97% 48%,#CFEBDD 0%,transparent 100%),linear-gradient(180deg,#FFFFFF 0%,#F4FAFB 50%,#FFFFFF 100%);
  --g-sky3:radial-gradient(ellipse 46% 50% at 3% 52%,#E1DAF6 0%,transparent 100%),radial-gradient(ellipse 46% 50% at 97% 48%,#CFE6F7 0%,transparent 100%),linear-gradient(180deg,#FFFFFF 0%,#F6F8FD 50%,#FFFFFF 100%);
  --g-peach:radial-gradient(ellipse 46% 50% at 3% 52%,#FFD9C2 0%,transparent 100%),radial-gradient(ellipse 46% 50% at 97% 48%,#FFEAA8 0%,transparent 100%),linear-gradient(180deg,#FFFFFF 0%,#FFF9F2 50%,#FFFFFF 100%);
  --g-pink:radial-gradient(ellipse 46% 50% at 3% 52%,#FBD0DD 0%,transparent 100%),radial-gradient(ellipse 46% 50% at 97% 48%,#FFE6A6 0%,transparent 100%),linear-gradient(180deg,#FFFFFF 0%,#FFF8F6 50%,#FFFFFF 100%);
  --g-gold:radial-gradient(ellipse 46% 50% at 3% 52%,#FFE6A6 0%,transparent 100%),radial-gradient(ellipse 46% 50% at 97% 48%,#FBD0DD 0%,transparent 100%),linear-gradient(180deg,#FFFFFF 0%,#FFFAF1 50%,#FFFFFF 100%);
  background-color:#FFFFFF; background-image:none;
}
body[data-active="home"] .dash,
body[data-active="home"] #where,
body[data-active="home"] #kana,
body[data-active="home"] #road,
body[data-active="home"] #topics-row,
body[data-active="home"] main section:has(> .faq){ position:relative; z-index:0; margin-top:0; padding:52px var(--gutter) 56px; border:0; border-radius:0; background:none; }
body[data-active="home"] .dash{ padding:32px var(--gutter) 44px; }
body[data-active="home"] .dash::before,
body[data-active="home"] #where::before,
body[data-active="home"] #kana::before,
body[data-active="home"] #road::before,
body[data-active="home"] #topics-row::before,
body[data-active="home"] main section:has(> .faq)::after{ content:''; position:absolute; z-index:-2; top:0; bottom:0; left:50%; width:100vw; transform:translateX(-50%); pointer-events:none; }
body[data-active="home"] .dash::before{ background:var(--g-sky); }
body[data-active="home"] #where::before{ background:url("/assets/site/img/bg/background-shippo.svg"),url("/assets/site/img/bg/background-shippo.svg"),var(--g-pink); }
body[data-active="home"] #kana::before{ background:var(--g-sky2); }
body[data-active="home"] #road::before{ background:url("/assets/site/img/bg/background-asanoha.svg"),var(--g-peach); }
body[data-active="home"] #topics-row::before{ background:url("/assets/site/img/bg/background-kikko.svg"),url("/assets/site/img/bg/background-kikko.svg"),var(--g-sky3); }
body[data-active="home"] main section:has(> .faq)::after{ background:var(--g-gold); }
/* 深色带贴着相邻色带：去掉间隔，并盖在相邻色带之上（它们的青海波圆弧才不会被邻居的底色盖住） */
body[data-active="home"] #lesson,
body[data-active="home"] #demo{ margin-top:0; z-index:1; }
body[data-active="home"] .jp-cta{ margin-top:0; }
/* 灰色的 N4 占位卡改成山吹奶油色 */
body[data-active="home"] .tile-noart{ background:#FBF1CF; }
body[data-active="home"] .tile-mark{ color:#AD5328; opacity:.28; }
@media (max-width:640px){
  body[data-active="home"] #where,
  body[data-active="home"] #road{ margin-inline:0; padding-left:var(--gutter); padding-right:var(--gutter); }
  body[data-active="home"] #lesson,
  body[data-active="home"] #demo{ margin-top:0; }
}
/* 渐变色带上的小字加深（粉、桃色晕处 #5A6775 只有约 4.1:1，加深到 #46525F ≈ 5.5:1） */
body[data-active="home"] .section-head p,
body[data-active="home"] .stone-goal,
body[data-active="home"] .stone-count{ color:#46525F; }

/* =====================================================================
   顶栏（2026-11-24）：不再是灰白的和纸色，改成带天空藍的半透明玻璃，底边一条彩线（和页脚顶部那条同一组颜色）
   全站通用。吸顶时盖在深色带上，模糊后会透出一点深色，反而有层次。
   ===================================================================== */
.topbar{ background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(221,237,249,.86)); border-bottom:0; box-shadow:0 6px 22px rgba(31,69,98,.08); -webkit-backdrop-filter:saturate(1.6) blur(14px); backdrop-filter:saturate(1.6) blur(14px); }
.topbar::after{ content:''; position:absolute; left:0; right:0; bottom:0; height:3px; pointer-events:none; background:linear-gradient(90deg,#B5572B,#F0A07A,#F5E2A1,#8FB8DB,#2F5D80); }
.topnav-link:hover{ background:rgba(255,255,255,.75); }

/* 首屏上半部：天空渐变（从顶栏的淡藍一路过渡到富士山照片的天空，不再是一片白） */
.hero{ background:linear-gradient(180deg,#C9E3F6 0%,#DDEEFA 38%,#EEF6FC 70%,#FFFFFF 100%); }

/* =====================================================================
   等级页 / 专题页（body[data-active="hubs"]，2026-11-24）：和首页同一套手法
   顶部：天空渐变 + 右侧霞と山 + 透明底的插画横幅；课文区：带色晕的整屏宽色带；标题下一条青海波花纹；页脚顶部青海波圆弧。
   ===================================================================== */
body[data-active="hubs"]{ background:#FFFFFF; overflow-x:clip; }
body[data-active="hubs"] main.page{ position:relative; z-index:0; }
/* 首屏带：天空渐变，下缘融进白色 */
body[data-active="hubs"] main.page::before{ content:''; position:absolute; z-index:-2; top:0; left:50%; width:100vw; height:560px; transform:translateX(-50%); pointer-events:none;
  background:linear-gradient(180deg,#BFDDF3 0%,#D8EBF8 38%,#EDF6FC 74%,rgba(255,255,255,0) 100%); }
/* 右侧霞と山：左边渐隐，不压标题和大字 N5 */
/* 等级页 / 专题页的照片横幅：满屏宽，四周雾化渐隐融进天空背景；放在面包屑之下、标题之上，专属一块区域，不叠在任何文字上 */
body[data-active="hubs"] .level-banner{ position:relative; left:50%; width:100vw; transform:translateX(-50%); height:clamp(200px,23vw,340px); margin:0 0 4px; border-radius:0; box-shadow:none; background-color:transparent; background-position:center; background-size:cover; background-repeat:no-repeat;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 22%,#000 78%,transparent 100%),linear-gradient(180deg,transparent 0,#000 24%,#000 52%,transparent 100%); -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent 0,#000 22%,#000 78%,transparent 100%),linear-gradient(180deg,transparent 0,#000 24%,#000 52%,transparent 100%); mask-composite:intersect; }
body[data-active="hubs"] .level-banner[data-hub="n5"]{ background-image:url("/assets/site/img/photos/hero/photo-level-n5.webp"); }
body[data-active="hubs"] .level-banner[data-hub="n4"]{ background-image:url("/assets/site/img/photos/hero/photo-level-n4.webp"); }
body[data-active="hubs"] .level-banner[data-hub="n3"]{ background-image:url("/assets/site/img/photos/hero/photo-level-n3.webp"); }
body[data-active="hubs"] .level-banner[data-hub="n2"]{ background-image:url("/assets/site/img/photos/hero/photo-level-n2.webp"); }
body[data-active="hubs"] .level-banner[data-hub="n1"]{ background-image:url("/assets/site/img/photos/hero/photo-level-n1.webp"); }
body[data-active="hubs"] .level-banner[data-hub="topics"]{ background-image:url("/assets/site/img/photos/hero/photo-hero-fuji.webp"); background-position:72% 40%; background-size:cover; }
body[data-active="hubs"] @media (max-width:760px){ body[data-active="hubs"] .level-banner{ height:200px; -webkit-mask-image:linear-gradient(180deg,#000 0,#000 50%,transparent 100%); mask-image:linear-gradient(180deg,#000 0,#000 50%,transparent 100%); } }
/* 插画横幅：去掉灰色底，插画直接坐在天空上 */


body[data-active="hubs"] .page-head .page-code{ color:#2F5D80; text-shadow:0 2px 0 rgba(255,255,255,.7); }
body[data-active="hubs"] .page-head > aside,
body[data-active="hubs"] .page-head aside{ box-shadow:0 10px 28px rgba(31,69,98,.12); border-color:transparent; }
body[data-active="hubs"] .jump a:not(.is-on){ background:rgba(255,255,255,.92); }

/* 课文区：整屏宽色带，白底 + 左右两侧各一团色晕，上下纯白，叠一层很淡的麻の葉 */
body[data-active="hubs"] .group{ position:relative; z-index:0; padding:34px 0 60px; }
body[data-active="hubs"] .group::before{ content:''; position:absolute; z-index:-1; top:0; bottom:0; left:50%; width:100vw; transform:translateX(-50%); pointer-events:none;
  background:url("/assets/site/img/bg/background-asanoha.svg"),radial-gradient(ellipse 46% 40% at 3% 40%,#FBD0DD 0%,transparent 100%),radial-gradient(ellipse 46% 40% at 97% 62%,#FFE6A6 0%,transparent 100%),linear-gradient(180deg,#FFFFFF 0%,#FFF8F4 50%,#FFFFFF 100%); -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 16%,#000 84%,transparent 100%); mask-image:linear-gradient(180deg,transparent 0,#000 16%,#000 84%,transparent 100%); }
body[data-active="hubs"] .group-head{ border-bottom:0; padding-bottom:0; }
body[data-active="hubs"] .group-head::after{ content:''; flex:0 0 100%; height:24px; margin-top:12px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%232F5D80' stroke-opacity='.42' stroke-width='1.3'%3E%3Ccircle cx='0' cy='24' r='12'/%3E%3Ccircle cx='0' cy='24' r='8'/%3E%3Ccircle cx='0' cy='24' r='4'/%3E%3Ccircle cx='24' cy='12' r='12'/%3E%3Ccircle cx='24' cy='12' r='8'/%3E%3Ccircle cx='24' cy='12' r='4'/%3E%3Ccircle cx='48' cy='24' r='12'/%3E%3Ccircle cx='48' cy='24' r='8'/%3E%3Ccircle cx='48' cy='24' r='4'/%3E%3C/g%3E%3C/svg%3E") repeat-x left top; -webkit-mask-image:linear-gradient(90deg,#000 55%,transparent 100%); mask-image:linear-gradient(90deg,#000 55%,transparent 100%); }
body[data-active="hubs"] .toc-row{ border-color:transparent; box-shadow:0 4px 16px rgba(31,69,98,.09); }
body[data-active="hubs"] .toc-row:hover{ border-color:var(--chili); box-shadow:0 8px 22px rgba(31,69,98,.14); }

/* 页脚顶部：青海波圆弧（首页除外：首页页脚紧贴收尾号召条） */
body:not([data-active="home"]) .site-foot-full{ margin-top:0;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Cpath d='M0 18A24 18 0 0 1 48 18Z'/%3E%3C/svg%3E"),linear-gradient(#000,#000);
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='18' viewBox='0 0 48 18'%3E%3Cpath d='M0 18A24 18 0 0 1 48 18Z'/%3E%3C/svg%3E"),linear-gradient(#000,#000);
  -webkit-mask-size:48px 18px,100% calc(100% - 17px); mask-size:48px 18px,100% calc(100% - 17px);
  -webkit-mask-position:left top,0 17px; mask-position:left top,0 17px;
  -webkit-mask-repeat:repeat-x,no-repeat; mask-repeat:repeat-x,no-repeat; }
body:not([data-active="home"]) .site-foot-full::after{ top:17px; }
body:not([data-active="home"]) .site-foot-full .foot-top{ padding-top:78px; }

@media (max-width:760px){
  body[data-active="hubs"] main.page::before{ height:420px; }
  body[data-active="hubs"] .group{ padding:22px 0 44px; }
}
body[data-active="hubs"] .pbar{ background:rgba(255,255,255,.9); box-shadow:inset 0 0 0 1px rgba(47,93,128,.18); }
@media (max-width:760px){ body[data-active="hubs"] .jump{ background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(236,246,252,.9)); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); } }

/* =====================================================================
   笔记正文页（body.note-page，2026-11-24）：正文所在的文章卡保持纯白（最利于阅读），周围的页面底色换成有色彩的渐变
   - 页面底：顶部天空渐变；宽屏时左右两侧每隔 1700px 一组粉 / 山吹 / 天空藍色晕（中间的文章卡盖住，只在两侧露出）
   - 文章卡：顶部一条彩线、右上角半露一枝樱、投影加深；正文里的分隔线改成青海波花纹条
   - 侧栏（课文目录、页内目录）垫半透明白底，色晕再浓也不影响对比度
   ===================================================================== */
body.note-page{ background-color:#FFFFFF;
  background-image:linear-gradient(180deg,#BFDDF3 0,#DCEDF9 200px,rgba(255,255,255,0) 520px);
  background-size:100% 520px; background-repeat:no-repeat; background-position:0 0; overflow-x:clip; }
@media (min-width:901px){
  body.note-page{
    background-image:linear-gradient(180deg,#BFDDF3 0,#DCEDF9 200px,rgba(255,255,255,0) 520px),
      radial-gradient(ellipse 20% 12% at 0% 24%,#FBD0DD 0%,transparent 100%),
      radial-gradient(ellipse 20% 12% at 100% 54%,#FFE6A6 0%,transparent 100%),
      radial-gradient(ellipse 20% 12% at 0% 84%,#CFE6F7 0%,transparent 100%);
    background-size:100% 520px,100% 1700px,100% 1700px,100% 1700px;
    background-repeat:no-repeat,repeat-y,repeat-y,repeat-y;
    background-position:0 0,0 0,0 0,0 0; }
  body.note-page .note-main{ position:relative; border-color:transparent; border-radius:18px; box-shadow:0 22px 60px rgba(31,69,98,.13),0 2px 6px rgba(31,69,98,.06);
    background:linear-gradient(90deg,#B5572B,#F0A07A,#F5E2A1,#8FB8DB,#2F5D80) top left / 100% 5px no-repeat,var(--sheet); }
  body.note-page .note-main::after{ content:''; position:absolute; z-index:0; top:-30px; right:20px; width:210px; height:105px; pointer-events:none; background:url("/assets/site/img/deco/deco-sakura-branch.svg") right top / contain no-repeat; }
  body.note-page .note-side-inner,body.note-page .note-toc-inner{ background:rgba(255,255,255,.78); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); border-radius:18px; padding:16px 12px; box-shadow:0 8px 26px rgba(31,69,98,.08); }
}
/* 分隔线：三角形换成青海波花纹条 */
body.note-page .note-body hr{ height:22px; margin:2.2rem 0; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%232F5D80' stroke-opacity='.38' stroke-width='1.3'%3E%3Ccircle cx='0' cy='24' r='12'/%3E%3Ccircle cx='0' cy='24' r='8'/%3E%3Ccircle cx='0' cy='24' r='4'/%3E%3Ccircle cx='24' cy='12' r='12'/%3E%3Ccircle cx='24' cy='12' r='8'/%3E%3Ccircle cx='24' cy='12' r='4'/%3E%3Ccircle cx='48' cy='24' r='12'/%3E%3Ccircle cx='48' cy='24' r='8'/%3E%3Ccircle cx='48' cy='24' r='4'/%3E%3C/g%3E%3C/svg%3E") repeat-x center / 48px 24px; opacity:1; -webkit-mask:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); mask:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); }

/* ---- 页头照片背景（桌面）：照片靠右、满铺到右边和顶栏下沿；只淡出左边和下边，文字坐在淡出后的天空上 ---- */
@media (min-width:761px){
  body[data-active="hubs"] main.page > .level-banner{ position:absolute; z-index:-1; top:0; left:auto; right:calc(50% - 50vw); transform:none; width:min(66vw,1040px); height:440px; margin:0;
    background-color:#CFE5F6; background-blend-mode:multiply; background-size:cover; background-position:right top;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,transparent 8%,rgba(0,0,0,.5) 38%,#000 66%),linear-gradient(180deg,#000 0,#000 50%,rgba(0,0,0,.5) 74%,transparent 100%); -webkit-mask-composite:source-in;
    mask-image:linear-gradient(90deg,transparent 0,transparent 8%,rgba(0,0,0,.5) 38%,#000 66%),linear-gradient(180deg,#000 0,#000 50%,rgba(0,0,0,.5) 74%,transparent 100%); mask-composite:intersect; }
  body[data-active="hubs"] .level-banner[data-hub="n5"],body[data-active="hubs"] .level-banner[data-hub="topics"]{ height:520px; width:min(70vw,1100px); }
  body[data-active="hubs"] .level-banner[data-hub="n5"]{ background-image:url("/assets/site/img/photos/hero/photo-level-n5-hero.webp"); background-color:#C9E2F5; }
  body[data-active="hubs"] .level-banner[data-hub="n4"]{ background-image:url("/assets/site/img/photos/hero/photo-level-n4-hero.webp"); background-color:#DCEBF7; }
  body[data-active="hubs"] .level-banner[data-hub="n3"]{ background-image:url("/assets/site/img/photos/hero/photo-level-n3-hero.webp"); background-color:#DCEBF7; }
  body[data-active="hubs"] .level-banner[data-hub="n2"]{ background-image:url("/assets/site/img/photos/hero/photo-level-n2-hero.webp"); background-color:#D6E8F6; }
  body[data-active="hubs"] .level-banner[data-hub="n1"]{ background-image:url("/assets/site/img/photos/hero/photo-level-n1-hero.webp"); background-color:#DCEBF7; }
  body[data-active="hubs"] .level-banner[data-hub="topics"]{ background-image:url("/assets/site/img/photos/hero/photo-hero-fuji.webp"); background-color:#E3EFF9; background-position:72% top; }
}

/* =====================================================================
   学习路线页（body[data-active="start"]，2026-11-24）：和等级页同一套——天空渐变 + 富士山照片做页头背景（只淡出左边和下边），
   两个区块是整屏宽色带（冷：这个站怎么用；暖：七站路线，叠麻の葉），白色卡片去边框加阴影。
   ===================================================================== */
body[data-active="start"]{ background:#FFFFFF; overflow-x:clip; }
body[data-active="start"] main.page{ position:relative; z-index:0; }
body[data-active="start"] main.page::before{ content:''; position:absolute; z-index:-2; top:0; left:50%; width:100vw; height:560px; transform:translateX(-50%); pointer-events:none;
  background:linear-gradient(180deg,#BFDDF3 0%,#D8EBF8 38%,#EDF6FC 74%,rgba(255,255,255,0) 100%); }
@media (min-width:761px){
  body[data-active="start"] main.page::after{ content:''; position:absolute; z-index:-1; top:0; right:calc(50% - 50vw); width:min(66vw,1040px); height:440px; pointer-events:none;
    background:#E3EFF9 url("/assets/site/img/photos/hero/photo-hero-fuji.webp") 72% top / cover no-repeat; background-blend-mode:multiply;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,transparent 8%,rgba(0,0,0,.5) 38%,#000 66%),linear-gradient(180deg,#000 0,#000 50%,rgba(0,0,0,.5) 74%,transparent 100%); -webkit-mask-composite:source-in;
    mask-image:linear-gradient(90deg,transparent 0,transparent 8%,rgba(0,0,0,.5) 38%,#000 66%),linear-gradient(180deg,#000 0,#000 50%,rgba(0,0,0,.5) 74%,transparent 100%); mask-composite:intersect; }
}
body[data-active="start"] .page-head .page-code{ color:#2F5D80; text-shadow:0 2px 0 rgba(255,255,255,.7); }
body[data-active="start"] main.page > .section{ position:relative; z-index:0; margin-top:0; padding:44px 0 52px; }
body[data-active="start"] main.page > .section::before{ content:''; position:absolute; z-index:-1; top:0; bottom:0; left:50%; width:100vw; transform:translateX(-50%); pointer-events:none; }
body[data-active="start"] main.page > .section:not(#route)::before{ background:radial-gradient(ellipse 46% 50% at 3% 52%,#CFE6F7 0%,transparent 100%),radial-gradient(ellipse 46% 50% at 97% 48%,#E1DAF6 0%,transparent 100%),linear-gradient(180deg,rgba(255,255,255,0) 0%,#F5F9FD 50%,#FFFFFF 100%);
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 18%,#000 100%); mask-image:linear-gradient(180deg,transparent 0,#000 18%,#000 100%); }
body[data-active="start"] #route::before{ background:url("/assets/site/img/bg/background-asanoha.svg"),radial-gradient(ellipse 46% 40% at 3% 40%,#FFD9C2 0%,transparent 100%),radial-gradient(ellipse 46% 40% at 97% 62%,#FFEAA8 0%,transparent 100%),linear-gradient(180deg,#FFFFFF 0%,#FFF9F2 50%,#FFFFFF 100%);
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 16%,#000 84%,transparent 100%); mask-image:linear-gradient(180deg,transparent 0,#000 16%,#000 84%,transparent 100%); }
body[data-active="start"] .steps > li{ border-color:transparent; box-shadow:0 6px 20px rgba(31,69,98,.1); }
body[data-active="start"] .cal .day{ border-color:transparent; box-shadow:0 6px 20px rgba(31,69,98,.1); background:#fff; }
body[data-active="start"] .section-head p,body[data-active="start"] .cal-legend{ color:#46525F; }
@media (max-width:760px){ body[data-active="start"] main.page::before{ height:420px; } body[data-active="start"] main.page > .section{ padding:32px 0 40px; } }
body[data-active="start"] .cal{ align-items:stretch; }
body[data-active="start"] .cal li{ display:flex; } body[data-active="start"] .cal li .day{ width:100%; }

/* =====================================================================
   收藏页（body[data-active="saved"]，2026-11-24）：天空渐变页头 + 右侧一枝樱（书签的主题），内容区是暖色带 + 七宝，收藏行和空状态卡去边框加阴影
   ===================================================================== */
body[data-active="saved"]{ background:#FFFFFF; overflow-x:clip; }
body[data-active="saved"] main.page{ position:relative; z-index:0; padding-bottom:72px; }
body[data-active="saved"] main.page::before{ content:''; position:absolute; z-index:-3; top:0; bottom:-72px; left:50%; width:100vw; transform:translateX(-50%); pointer-events:none;
  background:linear-gradient(180deg,#BFDDF3 0,#D8EBF8 220px,#EDF6FC 420px,rgba(255,255,255,0) 560px),radial-gradient(ellipse 40% 26% at 3% 72%,#FBD0DD 0%,transparent 100%),radial-gradient(ellipse 40% 26% at 97% 84%,#FFE6A6 0%,transparent 100%),#FFFFFF; }
body[data-active="saved"] main.page::after{ content:''; position:absolute; z-index:-1; top:128px; right:0; width:min(440px,34%); aspect-ratio:2/1; pointer-events:none; background:url("/assets/site/img/deco/deco-sakura-branch.svg") right top / contain no-repeat; }
@media (max-width:760px){ body[data-active="saved"] main.page::after{ display:none; } }
body[data-active="saved"] .page-head .page-code{ color:#2F5D80; text-shadow:0 2px 0 rgba(255,255,255,.7); }
body[data-active="saved"] .saved-row,body[data-active="saved"] .saved-empty{ border-color:transparent; box-shadow:0 8px 26px rgba(31,69,98,.11); }
body[data-active="saved"] .saved-empty{ border-radius:20px; padding:30px 24px 34px; }

/* ---- 平板检查后的修正（2026-11-24）---- */
/* 引擎在 ≤820px 才让标签行吸顶并垫和纸底，所以玻璃底要同样覆盖到 820px */
@media (max-width:820px){ body[data-active="hubs"] .jump{ background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(236,246,252,.9)); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); } }
/* 平板和窄桌面（761–1180px）：页头照片放窄，并把左边多淡出一点，不压「等级」标签和说明文字 */
@media (min-width:761px) and (max-width:1180px){
  body[data-active="hubs"] main.page > .level-banner,
  body[data-active="hubs"] .level-banner[data-hub="n5"],
  body[data-active="hubs"] .level-banner[data-hub="topics"]{ width:52vw; -webkit-mask-image:linear-gradient(90deg,transparent 0,transparent 20%,rgba(0,0,0,.5) 50%,#000 80%),linear-gradient(180deg,#000 0,#000 50%,rgba(0,0,0,.5) 74%,transparent 100%); mask-image:linear-gradient(90deg,transparent 0,transparent 20%,rgba(0,0,0,.5) 50%,#000 80%),linear-gradient(180deg,#000 0,#000 50%,rgba(0,0,0,.5) 74%,transparent 100%); }
  body[data-active="start"] main.page::after{ width:46vw; -webkit-mask-image:linear-gradient(90deg,transparent 0,transparent 20%,rgba(0,0,0,.5) 50%,#000 80%),linear-gradient(180deg,#000 0,#000 50%,rgba(0,0,0,.5) 74%,transparent 100%); mask-image:linear-gradient(90deg,transparent 0,transparent 20%,rgba(0,0,0,.5) 50%,#000 80%),linear-gradient(180deg,#000 0,#000 50%,rgba(0,0,0,.5) 74%,transparent 100%); }
  body[data-active="start"] .page-head p,body[data-active="start"] .page-lead{ max-width:52%; }
}
/* 761–900px 的平板：页头照片会压住右上角的标签和「学完这一部分」卡，只留天空渐变 */
@media (min-width:761px) and (max-width:900px){
  body[data-active="hubs"] main.page > .level-banner{ display:none; }
  body[data-active="start"] main.page::after{ display:none; }
}

/* =====================================================================
   练习页（body[data-active="practice"]，2026-11-24）：页面外观同等级页的天空渐变 + 暖色晕；作答卡用引擎的 .quiz-* 样式
   界面在 assets/site/practice.js，类名都以 pr- 开头
   ===================================================================== */
body[data-active="practice"]{ background:#FFFFFF; overflow-x:clip; }
body[data-active="practice"] main.page{ position:relative; z-index:0; padding-bottom:72px; }
body[data-active="practice"] main.page::before{ content:''; position:absolute; z-index:-3; top:0; bottom:-72px; left:50%; width:100vw; transform:translateX(-50%); pointer-events:none;
  background:linear-gradient(180deg,#BFDDF3 0,#D8EBF8 220px,#EDF6FC 420px,rgba(255,255,255,0) 560px),radial-gradient(ellipse 40% 22% at 3% 62%,#FBD0DD 0%,transparent 100%),radial-gradient(ellipse 40% 22% at 97% 80%,#FFE6A6 0%,transparent 100%),#FFFFFF; }
body[data-active="practice"] .page-head .page-code{ color:#2F5D80; text-shadow:0 2px 0 rgba(255,255,255,.7); }
.pr-app{ margin-top:8px; }
.pr-loading{ padding:40px 0; text-align:center; color:var(--ink-2); }

.pr-stats{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.pr-stat{ display:flex; flex-direction:column; gap:2px; padding:16px 20px; border:0; border-radius:18px; background:#fff; box-shadow:0 8px 26px rgba(31,69,98,.11); text-align:left; font:inherit; color:var(--ink); }
.pr-stat b{ font-family:'Nunito',sans-serif; font-size:1.9rem; line-height:1.15; color:var(--accent-ink); }
.pr-stat span{ font-size:.88rem; color:#46525F; }
.pr-stat-wrong{ cursor:pointer; }
.pr-stat-wrong:not(:disabled){ background:#FFF4EA; }
.pr-stat-wrong:not(:disabled) b{ color:#AD5328; }
.pr-stat-wrong:not(:disabled):hover{ box-shadow:0 10px 30px rgba(173,83,40,.2); }
.pr-stat-wrong:disabled{ cursor:default; }

.pr-modes{ display:flex; gap:8px; margin:22px 0 14px; }
.pr-mode{ padding:8px 20px; border-radius:999px; font-weight:700; background:rgba(255,255,255,.8); border:1.5px solid var(--line); color:#46525F; }
.pr-mode.is-on{ background:var(--accent); border-color:var(--accent); color:#fff; }
.pr-mode.is-soon{ opacity:.7; border-style:dashed; }

.pr-panel{ padding:26px 28px 28px; border-radius:20px; background:rgba(255,255,255,.94); box-shadow:0 14px 40px rgba(31,69,98,.12); }
.pr-panel + .pr-panel{ margin-top:18px; }
.pr-step + .pr-step{ margin-top:22px; padding-top:20px; border-top:1px dashed var(--line); }
.pr-step h2{ display:flex; align-items:center; gap:10px; margin:0 0 12px; font-size:1.15rem; color:var(--accent-ink); }
.pr-step h2 i{ display:inline-grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#B5572B; color:#fff; font-family:'Nunito',sans-serif; font-style:normal; font-weight:800; font-size:.9rem; }
.pr-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.pr-chips-sub{ margin-top:10px; padding-left:4px; }
.pr-chip{ display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 18px; border:1.5px solid var(--line); border-radius:999px; background:#fff; color:var(--ink-2); font:inherit; font-weight:600; cursor:pointer; }
.pr-chip small{ font-weight:500; color:var(--ink-3); font-family:'Nunito',sans-serif; }
.pr-chip:hover{ border-color:var(--accent); color:var(--accent); }
.pr-chip.is-on{ background:var(--accent); border-color:var(--accent); color:#fff; }
.pr-chip.is-on small{ color:#fff; opacity:.85; }
.pr-chip-sm{ min-height:38px; padding:0 14px; font-size:.92rem; }
.pr-row{ display:flex; flex-wrap:wrap; gap:16px 28px; align-items:flex-end; }
.pr-field{ display:flex; flex-direction:column; gap:6px; font-size:.9rem; color:#46525F; font-weight:600; }
.pr-field select{ min-height:44px; max-width:100%; padding:0 14px; border:1.5px solid var(--line); border-radius:12px; background:#fff; font:inherit; color:var(--ink); }
.pr-check{ display:inline-flex; align-items:center; gap:8px; min-height:44px; color:var(--ink); font-weight:600; }
.pr-check input{ width:20px; height:20px; accent-color:var(--accent); }
.pr-hint{ margin:0; font-size:.88rem; color:#46525F; }
.pr-go{ display:flex; flex-wrap:wrap; align-items:center; gap:14px 20px; margin-top:26px; }
.pr-start{ min-width:200px; }
.pr-bycat{ margin-top:18px; }
.pr-bycat h2{ margin:0 0 14px; font-size:1.1rem; color:var(--accent-ink); }
.pr-bars{ display:grid; gap:10px; }
.pr-bar{ display:grid; grid-template-columns:96px minmax(0,1fr) 48px 56px; align-items:center; gap:12px; font-size:.92rem; }
.pr-track{ height:10px; border-radius:999px; background:#E3EDF4; overflow:hidden; }
.pr-track i{ display:block; height:100%; background:linear-gradient(90deg,#2F5D80,#8FB8DB); border-radius:999px; }
.pr-bar b{ font-family:'Nunito',sans-serif; text-align:right; }
.pr-bar small{ color:#46525F; }
.pr-foot-note{ margin:22px 0 0; font-size:.85rem; color:#46525F; text-align:center; }

/* 作答 */
.pr-run{ max-width:820px; margin:0 auto; }
.pr-run-top{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:10px; }
.pr-back{ border:0; background:none; color:var(--accent); font:inherit; font-weight:700; cursor:pointer; padding:8px 0; }
.pr-run-title{ flex:1; text-align:center; color:#46525F; font-weight:600; }
.pr-run-n{ font-family:'Nunito',sans-serif; font-weight:800; color:var(--accent-ink); }
.pr-prog{ height:8px; border-radius:999px; background:rgba(255,255,255,.9); box-shadow:inset 0 0 0 1px rgba(47,93,128,.18); overflow:hidden; margin-bottom:16px; }
.pr-prog i{ display:block; height:100%; background:linear-gradient(90deg,#B5572B,#F0A07A); border-radius:999px; transition:width .3s; }
.pr-card{ padding:26px 28px 24px; border-radius:20px; background:#fff; box-shadow:0 14px 40px rgba(31,69,98,.14); }
.pr-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.pr-tags span{ padding:2px 12px; border-radius:999px; background:var(--accent-soft); color:var(--accent-ink); font-size:.82rem; font-weight:700; }
.pr-card .quiz-question-text{ font-size:1.15rem; }
.pr-actions{ margin-top:20px; display:flex; justify-content:flex-end; }
.pr-verdict{ margin-top:16px; padding:10px 16px; border-radius:12px; font-weight:800; }
.pr-verdict.is-ok{ background:var(--go-soft); color:var(--go); }
.pr-verdict.is-bad{ background:var(--bad-soft); color:var(--bad); }
.pr-src{ margin:12px 0 0; font-size:.88rem; color:#46525F; }
.pr-src a{ margin-left:8px; font-weight:700; }
.pr-end{ max-width:820px; margin:0 auto; padding:30px 28px; border-radius:20px; background:#fff; box-shadow:0 14px 40px rgba(31,69,98,.14); }
.pr-end-top{ display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
.pr-end h2{ margin:0 0 4px; font-size:1.4rem; color:var(--accent-ink); }
.pr-end p{ margin:0; color:#46525F; }
.pr-ring{ --p:0; position:relative; width:120px; height:120px; border-radius:50%; display:grid; place-items:center; background:conic-gradient(#38704B calc(var(--p) * 1%),#E3EDF4 0); }
.pr-ring::before{ content:''; position:absolute; inset:10px; border-radius:50%; background:#fff; }
.pr-ring b,.pr-ring span{ position:relative; font-family:'Nunito',sans-serif; }
.pr-ring b{ font-size:1.7rem; margin-top:-8px; }
.pr-ring small{ font-size:.9rem; color:#46525F; }
.pr-ring span{ position:absolute; bottom:22px; font-size:.82rem; color:#46525F; }
.pr-sub{ margin:26px 0 10px; font-size:1.05rem; color:var(--accent-ink); }
.pr-wrong{ display:grid; gap:12px; }
.pr-wrong-item{ padding:14px 16px; border-radius:14px; background:#FFF8F4; border:1px solid #F3D9C8; }
.pr-wrong-q{ font-weight:700; }
.pr-wrong-a{ margin-top:6px; color:var(--go); font-weight:700; }
.pr-wrong-link{ display:inline-block; margin-top:6px; font-weight:700; }
.pr-end-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }

@media (max-width:760px){
  .pr-stats{ grid-template-columns:1fr 1fr; }
  .pr-stat-wrong{ grid-column:1 / -1; }
  .pr-panel,.pr-card,.pr-end{ padding:20px 16px; border-radius:16px; }
  .pr-bar{ grid-template-columns:76px minmax(0,1fr) 44px; }
  .pr-bar small{ display:none; }
  .pr-run-title{ order:3; flex-basis:100%; text-align:left; }
  .pr-start{ width:100%; }
  .pr-card .quiz-options{ grid-template-columns:1fr; }
}

.quiz-more{ margin:18px 0 0; padding:12px 16px; border-radius:14px; background:#FFF4EA; font-weight:600; }
.quiz-more a{ color:#AD5328; }

/* 笔记里的照片（图解机制 ::: figure photo-名字 图注；图在 assets/site/img/notes/，来源写在图注里） */
.fig[data-fig^="photo-"]{ margin:1.4rem 0; padding:0; background:none; border:0; box-shadow:none; }
.fig[data-fig^="photo-"] .ph-img{ display:block; width:100%; max-height:420px; object-fit:cover; border-radius:16px; box-shadow:0 10px 28px rgba(31,69,98,.18); }
.fig[data-fig^="photo-"] figcaption{ margin-top:10px; font-size:.88rem; color:#46525F; text-align:center; }
.note-body .fig[data-fig^="photo-"] figcaption::before{ display:none; }
.note-body .fig[data-fig^="photo-"]{ border:0; background:none; overflow:visible; margin:1.6rem 0; }
.note-body .fig[data-fig^="photo-"] figcaption{ display:block; border:0; background:none; padding:10px 8px 0; text-align:center; }

/* =====================================================================
   模拟考试（沉浸式，2026-11-25）：全屏覆盖层 .mk，类名 mk-；设置页部分是 pr-mock / pr-plan / pr-hist
   ===================================================================== */
.pr-mode{ cursor:pointer; font:inherit; font-weight:700; }
.pr-mode:not(.is-on):hover{ border-color:var(--accent); color:var(--accent); }
.pr-mock-h{ margin:0 0 6px; font-size:1.3rem; color:var(--accent-ink); }
.pr-resume{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 16px; margin:16px 0 6px; padding:14px 18px; border-radius:14px; background:#FFF4EA; border:1px solid #F3D9C8; }
.pr-resume span{ display:flex; gap:8px; }
.btn-sm{ min-height:38px; padding:0 18px; font-size:.92rem; }
.pr-plan{ width:100%; max-width:520px; border-collapse:collapse; margin:4px 0 10px; font-size:.95rem; }
.pr-plan th,.pr-plan td{ padding:9px 14px; text-align:left; border-bottom:1px solid var(--line-soft); }
.pr-plan th{ color:#46525F; font-weight:700; font-size:.85rem; }
.pr-plan-sum td{ font-weight:800; color:var(--accent-ink); border-bottom:0; }
.pr-hist{ display:grid; gap:8px; }
.pr-hist-row{ display:flex; flex-wrap:wrap; gap:6px 20px; align-items:center; padding:10px 16px; border-radius:12px; background:#F3F8FC; font-size:.92rem; color:#46525F; }
.pr-hist-row b{ margin-left:auto; font-family:'Nunito',sans-serif; font-size:1.1rem; color:var(--accent-ink); }

body.mk-on{ overflow:hidden; }
.mk{ position:fixed; inset:0; z-index:300; overflow-y:auto; background:linear-gradient(180deg,#DCEBF7 0,#F2F8FC 260px,#fff 520px); color:var(--ink); }
.mk-inner{ max-width:1080px; margin:0 auto; padding:28px 24px 64px; }
.mk-center{ min-height:100%; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; max-width:720px; }
.mk-eyebrow{ margin:0 0 6px; font-weight:700; letter-spacing:.08em; color:#AD5328; }
.mk-center h1{ margin:0 0 18px; font-size:clamp(1.7rem,4vw,2.3rem); color:var(--accent-ink); }
.mk-card{ width:100%; padding:26px 28px; border-radius:20px; background:#fff; box-shadow:0 14px 40px rgba(31,69,98,.14); text-align:left; }
.mk-card h2{ margin:0 0 8px; font-size:1.25rem; color:var(--accent-ink); }
.mk-rules{ margin:14px 0 0; padding-left:1.2em; color:#46525F; line-height:1.9; }
.mk-actions{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; margin-top:22px; }
.mk-center .mk-actions{ justify-content:space-between; }

.mk-bar{ position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:16px; padding:12px 24px; background:rgba(255,255,255,.94); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border-bottom:3px solid transparent; border-image:linear-gradient(90deg,#B5572B,#F0A07A,#F5E2A1,#8FB8DB,#2F5D80) 1; box-shadow:0 6px 20px rgba(31,69,98,.08); }
.mk-bar-l{ display:flex; flex-direction:column; line-height:1.35; min-width:0; flex:1; }
.mk-bar-l b{ color:var(--accent-ink); } .mk-bar-l span{ font-size:.85rem; color:#46525F; }
.mk-time{ font-family:'Nunito',sans-serif; font-weight:800; font-size:1.7rem; letter-spacing:.04em; color:var(--accent-ink); font-variant-numeric:tabular-nums; }
.mk-time.is-low{ color:#B8402C; animation:mk-blink 1s steps(2,jump-none) infinite; }
@keyframes mk-blink{ 50%{ opacity:.55; } }
.mk-body{ max-width:1080px; margin:0 auto; padding:22px 24px 64px; display:grid; grid-template-columns:minmax(0,1fr) 250px; gap:24px; align-items:start; }
.mk-main{ min-width:0; }
.mk-qhead{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; font-family:'Nunito',sans-serif; font-weight:800; color:var(--accent-ink); }
.mk-flag{ min-height:38px; padding:0 16px; border:1.5px solid var(--line); border-radius:999px; background:#fff; color:#46525F; font:inherit; font-weight:700; cursor:pointer; }
.mk-flag.is-on{ background:#FBF1CF; border-color:#E2C45B; color:#7A5C00; }
.mk-q{ padding:26px 28px; border-radius:20px; background:#fff; box-shadow:0 14px 40px rgba(31,69,98,.14); }
.mk-q .quiz-question-text{ font-size:1.2rem; }
.mk-nav{ display:flex; justify-content:space-between; gap:10px; margin-top:18px; }
.mk-side{ position:sticky; top:86px; padding:18px; border-radius:18px; background:#fff; box-shadow:0 10px 30px rgba(31,69,98,.12); }
.mk-side h3{ margin:0 0 10px; font-size:1rem; color:var(--accent-ink); }
.mk-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:6px; }
.mk-cell{ min-height:40px; border:1.5px solid var(--line); border-radius:10px; background:#fff; color:#46525F; font-family:'Nunito',sans-serif; font-weight:800; cursor:pointer; }
.mk-cell.is-ans{ background:var(--accent-soft); border-color:#9DB6C9; color:var(--accent-ink); }
.mk-cell.is-flag{ box-shadow:inset 0 -4px 0 #F0B429; }
.mk-cell.is-cur{ background:var(--accent); border-color:var(--accent); color:#fff; }
.mk-legend{ display:flex; flex-wrap:wrap; gap:4px 12px; margin:12px 0 0; font-size:.8rem; color:#46525F; }
.mk-legend i{ display:inline-block; width:12px; height:12px; margin-right:4px; border-radius:4px; border:1.5px solid var(--line); vertical-align:-1px; }
.mk-legend i.is-ans{ background:var(--accent-soft); border-color:#9DB6C9; } .mk-legend i.is-flag{ box-shadow:inset 0 -3px 0 #F0B429; }
.mk-count{ margin:8px 0 0; font-size:.88rem; font-weight:700; color:var(--accent-ink); }

.mk-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.mk-score{ display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
.mk-score h2{ margin:0 0 4px; } .mk-score p{ margin:0 0 6px; color:#46525F; }
.mk-secs{ display:grid; gap:10px; margin:20px 0 6px; padding:18px 22px; border-radius:18px; background:#fff; box-shadow:0 8px 26px rgba(31,69,98,.1); }
.mk-sec{ display:grid; grid-template-columns:110px minmax(0,1fr) 70px; align-items:center; gap:14px; }
.mk-sec b{ font-family:'Nunito',sans-serif; text-align:right; }
.mk-cats{ display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 0; } .mk-cats span{ padding:2px 12px; border-radius:999px; background:var(--accent-soft); color:var(--accent-ink); font-size:.85rem; font-weight:700; }
.mk-filter{ margin-left:12px; display:inline-flex; gap:6px; vertical-align:middle; }
.mk-filter button{ min-height:32px; padding:0 14px; border:1.5px solid var(--line); border-radius:999px; background:#fff; font:inherit; font-size:.85rem; font-weight:700; color:#46525F; cursor:pointer; }
.mk-filter button.is-on{ background:var(--accent); border-color:var(--accent); color:#fff; }
.mk-review{ display:grid; gap:14px; }
.mk-rv{ padding:20px 22px; border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(31,69,98,.1); border-left:6px solid var(--go); }
.mk-rv.is-bad{ border-left-color:var(--bad); }
.mk-ok{ background:var(--go-soft) !important; color:var(--go) !important; } .mk-bad{ background:var(--bad-soft) !important; color:var(--bad) !important; }

@media (max-width:860px){
  .mk-body{ grid-template-columns:1fr; padding:16px 14px 56px; }
  .mk-side{ position:static; }
  .mk-grid{ grid-template-columns:repeat(8,1fr); }
  .mk-bar{ padding:10px 14px; gap:10px; } .mk-time{ font-size:1.4rem; }
  .mk-inner{ padding:20px 14px 56px; }
  .mk-q,.mk-card{ padding:20px 16px; border-radius:16px; }
  .mk-q .quiz-options{ grid-template-columns:1fr; }
  .mk-sec{ grid-template-columns:84px minmax(0,1fr) 60px; }
}
@media (prefers-reduced-motion:reduce){ .mk-time.is-low{ animation:none; } }

/* 模拟考试：读解短文、听力播放、对话原文 */
.mk-passage{ margin:0 0 18px; padding:16px 20px; border-radius:14px; background:#FAF7F0; border:1px solid #EADFC8; font-family:var(--f-ms); line-height:2; }
.mk-passage h3{ margin:0 0 8px; font-size:1rem; color:#AD5328; font-family:var(--f-body); }
.mk-passage p{ margin:0 0 .5em; }
.mk-audio{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin:0 0 18px; padding:16px 20px; border-radius:14px; background:#EEF5FB; border:1px solid #CFE0EE; }
.mk-audio p{ flex:1 1 100%; margin:0; color:#46525F; font-weight:700; }
.mk-plays{ font-size:.9rem; color:#46525F; font-weight:600; }
.pr-voice{ margin-top:8px; }
.pr-voice.is-bad{ color:#B8402C; }
.mk-passage-d{ margin:0 0 12px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.mk-passage-d summary{ cursor:pointer; padding:10px 16px; font-weight:700; color:var(--accent-ink); }
.mk-passage-d .mk-passage,.mk-passage-d .mk-script{ margin:0; border:0; border-top:1px dashed var(--line); border-radius:0 0 12px 12px; }
.mk-script{ padding:12px 20px 14px; font-family:var(--f-ms); line-height:2; }
.mk-script p{ margin:0 0 .3em; }
.mk-script b{ display:inline-block; min-width:2em; margin-right:.5em; color:#AD5328; font-family:var(--f-body); }
.mk-script .mk-zh{ margin-top:10px; padding-top:8px; border-top:1px dashed var(--line); font-family:var(--f-body); color:#46525F; font-size:.92rem; line-height:1.8; }
