/* ============================================================
   Angus Inst. — Design System
   Soft / Warm / Calm / Educational
   低饱和雾蓝 + 暖白米白 + 手绘感点缀
   ============================================================ */

/* ---------- Design Tokens ----------
   颜色取样自 page-references 原参考（v2）：
   深藏青文字 ≈ #182028 系；亮蓝按钮 ≈ #2478f0（已适度降饱和）；
   手写黄 ≈ #fabe46；面板 ≈ #fcfcfd */
:root {
  /* 主色：参考图亮蓝降饱和 */
  --blue: #3d7fca;
  --blue-strong: #2f6fb2;
  --blue-deep: #245685;
  --blue-soft: #e7f0f8;
  --blue-chip: #d9e8f4;
  --blue-ink: #1c2733;

  /* 背景与中性色 */
  --bg: #f7f4ee;
  --bg-warm: #f2ede3;
  --card: #ffffff;
  --line: #e6e1d6;
  --line-soft: #f0eade;
  --ink: #1c2733;
  --ink-soft: #5d6e7f;
  --ink-faint: #8b9aab;

  /* 点缀色 */
  --teal: #478d87;       --teal-soft: #e2f0ee;
  --yellow: #fbc24a;     --yellow-soft: #fdf0cf;
  --orange: #ec9a62;     --orange-soft: #fbe9da;
  --coral: #e88d7d;      --coral-soft: #fae3de;
  --pink: #b86f7e;       --pink-soft: #f7e3e7;
  --green: #78916a;      --green-soft: #e8f0e2;
  --purple: #8877af;     --purple-soft: #ece8f5;

  /* 栏目强调色（INTERACTION-SPEC） */
  --acc-about: #4e86b4;
  --acc-teaching: #478d87;
  --acc-products: #b48748;
  --acc-blog: #b86f7e;
  --acc-journal: #8877af;
  --acc-resources: #568da1;
  --acc-contact: #78916a;

  /* 字体 */
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --font-body: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-cn-display: "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 圆角与阴影 */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(28, 39, 51, 0.07);
  --shadow-md: 0 6px 20px rgba(28, 39, 51, 0.10);
  --shadow-lg: 0 14px 34px rgba(28, 39, 51, 0.14);

  --header-h: 76px;
  --content-w: 1480px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-strong); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--blue-deep); }
p { margin: 0 0 1em; }
h1,h2,h3,h4 { color: var(--blue-ink); line-height: 1.35; margin: 0 0 .6em; }

.wrap { max-width: var(--content-w); margin: 0 auto; padding: 0 24px; }

/* ---------- 手绘感通用元素 ---------- */
.hand { font-family: var(--font-hand); font-weight: 700; }

/* 黄色手绘下划线 */
.u-swash { position: relative; display: inline-block; white-space: nowrap; }
.u-swash::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.02em;
  height: 0.28em; z-index: -1;
  background: var(--yellow-soft);
  border-radius: 99px;
  transform: rotate(-1deg);
}

/* 手绘笑脸 */
.smiley { display: inline-flex; width: 1.15em; height: 1.15em; vertical-align: -0.18em; }
.smiley circle.face { fill: none; stroke: currentColor; stroke-width: 1.6; }
.smiley .eye { fill: currentColor; }
.smiley path.mouth { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* Section 标题（黄色小灯泡 + 手写体） */
.sec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.sec-head h2 {
  font-family: var(--font-hand); font-size: 34px; font-weight: 700; margin: 0; color: var(--blue-ink);
}
.sec-head .cn { font-weight: 800; color: var(--blue-ink); font-size: 19px; }
.sec-head .bulb { font-size: 20px; }
.sec-sub { color: var(--ink-soft); font-size: 14px; margin: 0 0 20px; }

/* ---------- Quote Card ---------- */
.quote-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px 28px; margin: 34px 0;
  box-shadow: var(--shadow-sm);
}
.quote-card .qmark {
  font-family: Georgia, serif; font-size: 64px; line-height: .6;
  color: var(--blue); transform: translateY(10px);
}
.quote-card blockquote { margin: 0; flex: 1; }
.quote-card .q-en { font-family: var(--font-hand); font-size: 21px; color: var(--blue-ink); font-style: italic; }
.quote-card .q-cn { font-size: 13.5px; color: var(--ink-soft); }
.quote-card .q-by { font-family: var(--font-hand); font-size: 22px; color: var(--blue-ink); white-space: nowrap; }

/* ---------- Sticky Note ---------- */
.sticky-note {
  background: var(--yellow-soft);
  border: 1px solid #f0e2b6;
  border-radius: 4px 14px 6px 12px;
  padding: 14px 16px;
  font-family: var(--font-hand);
  font-size: 18px; line-height: 1.4; color: var(--blue-ink);
  transform: rotate(-2deg);
  box-shadow: var(--shadow-sm);
  display: inline-block;
}
.sticky-note.alt { background: #eef4ea; border-color: #d9e4cf; transform: rotate(2deg); }
.sticky-note.blue { background: var(--blue-soft); border-color: #ccdfef; }

/* ---------- Chips & Tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.7;
  background: var(--blue-chip); color: var(--blue-deep);
  white-space: nowrap;
}
.chip.teal   { background: var(--teal-soft);   color: #3f7d70; }
.chip.yellow { background: var(--yellow-soft); color: #a2761d; }
.chip.orange { background: var(--orange-soft); color: #b06a2e; }
.chip.coral  { background: var(--coral-soft);  color: #b5563f; }
.chip.pink   { background: var(--pink-soft);   color: #b05970; }
.chip.green  { background: var(--green-soft);  color: #57854f; }
.chip.purple { background: var(--purple-soft); color: #6a5b9a; }
.chip.ghost  { background: #f1f4f7; color: var(--ink-soft); }

.tag-chip {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: #eef3f8; color: var(--blue-strong);
  font-size: 11.5px; font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px;
  font-weight: 800; font-size: 14px; cursor: pointer;
  border: none; transition: all .18s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(78,134,180,.3); }
.btn-primary:hover { background: var(--blue-strong); color: #fff; transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--blue-strong); border: 1.6px solid var(--blue); }
.btn-outline:hover { background: var(--blue-soft); transform: translateY(-2px); }
.btn-soft { background: var(--blue-soft); color: var(--blue-deep); }
.btn-soft:hover { background: var(--blue-chip); }

/* 圆形箭头/下载按钮 */
.circle-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue-deep);
  font-size: 16px; transition: all .18s ease; flex: none;
}
.circle-btn:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(253, 251, 246, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--content-w); margin: 0 auto; padding: 0 24px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}

/* Logo */
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand .logo-crab {
  width: 46px; height: 46px; border-radius: 50%;
  background: #fdeee9; border: 2px solid #f6d9cf;
  display: flex; align-items: center; justify-content: center;
  object-fit: contain; flex: none;
  padding: 5px; box-sizing: border-box;
}
.brand .logo-text { line-height: 1.1; }
.brand .logo-name {
  font-family: var(--font-hand); font-size: 27px; font-weight: 700;
  color: var(--blue-ink); letter-spacing: .5px; display: block;
}
.brand .logo-slogan { font-family: var(--font-hand); font-size: 13.5px; color: var(--blue-strong); display: block; }

/* 主导航 */
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav li.menu-item { position: relative; }
.main-nav a.nav-link {
  display: inline-block; padding: 9px 15px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; color: var(--ink);
}
.main-nav a.nav-link:hover { background: var(--blue-soft); color: var(--blue-deep); }
.main-nav li.current > a.nav-link {
  background: var(--blue-soft); color: var(--blue-deep);
  border: 1.4px solid #c9deef;
}

/* 下拉菜单 */
.main-nav .dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 14px; min-width: 460px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px;
  opacity: 0; visibility: hidden; transition: all .18s ease;
}
.main-nav li.has-dropdown:hover .dropdown,
.main-nav li.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.main-nav .dropdown .dd-group { grid-column: 1 / -1; font-size: 12px; font-weight: 800; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px 2px; border-bottom: 1px dashed var(--line); }
.main-nav .dropdown a {
  display: block; padding: 7px 10px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.main-nav .dropdown a:hover { background: var(--blue-soft); color: var(--blue-deep); }

/* Header 右侧 */
.header-right { display: flex; align-items: center; gap: 18px; flex: none; }
.header-search-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: transparent; color: var(--ink); font-size: 17px;
}
.header-search-btn:hover { background: var(--blue-soft); }
.header-slogan {
  font-family: var(--font-hand); font-size: 17px; line-height: 1.25;
  color: var(--blue-ink); text-align: right; white-space: pre-line;
}
.btn-contact { padding: 9px 26px; }

/* 写作台入口（仅登录后显示） */
.btn-studio {
  padding: 9px 18px; background: #fff; color: var(--blue-deep);
  border: 2px solid var(--blue); box-shadow: none;
}
.btn-studio:hover { background: var(--blue-soft); color: var(--blue-deep); }
.btn-studio .bs-ico { margin-right: 5px; }

/* 汉堡按钮（移动端） */
.nav-toggle { display: none; }

/* ============================================================
   HERO SLIDER（首页）
   ============================================================ */
.hero-slider {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  margin: 22px auto 0; max-width: calc(var(--content-w) - 48px);
  background: linear-gradient(120deg, #dcebf5 0%, #e9f2ec 55%, #f7f0dd 100%);
  border: 1px solid #e3ecf2;
  box-shadow: var(--shadow-md);
  min-height: 380px;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; display: flex; }
.hero-slide.active { opacity: 1; pointer-events: auto; position: relative; }

.hero-slide .slide-text { flex: 1.1; padding: 56px 20px 56px 54px; display: flex; flex-direction: column; justify-content: center; z-index: 2; }
.hero-slide .slide-kicker { font-family: var(--font-hand); font-size: 19px; color: var(--blue-strong); margin-bottom: 6px; }
.hero-slide .slide-title {
  font-family: var(--font-hand); font-size: 52px; line-height: 1.12;
  color: var(--blue-ink); margin: 0 0 14px; font-weight: 700;
}
.hero-slide .slide-cn { font-size: 21px; font-weight: 800; color: var(--blue-ink); margin-bottom: 8px; }
.hero-slide .slide-sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px; }
.hero-slide .slide-art { flex: 1; position: relative; min-width: 0; }

/* 轮播控件 */
.slider-nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--blue-deep);
  box-shadow: var(--shadow-sm); font-size: 16px; z-index: 5;
  display: flex; align-items: center; justify-content: center;
}
.slider-nav-arrow:hover { background: #fff; }
.slider-nav-arrow.prev { left: 14px; }
.slider-nav-arrow.next { right: 14px; }
.slider-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.slider-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(46,75,102,.25); transition: all .2s;
}
.slider-dots button.active { background: var(--blue); width: 22px; border-radius: 99px; }

/* ---------- 首页入口卡片（Teaching/Products/Blog/...） ---------- */
.entry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 26px 0 8px; }
.entry-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px;
  box-shadow: var(--shadow-sm); transition: all .18s ease;
}
.entry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.entry-card .e-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.entry-card .e-name { font-weight: 800; font-size: 15px; color: var(--blue-ink); }
.entry-card .e-desc { font-size: 11.5px; color: var(--ink-soft); }
.entry-card .e-arrow { margin-left: auto; color: var(--ink-faint); font-size: 15px; }

/* ============================================================
   页面布局：Banner + Sidebar + Content
   ============================================================ */

/* 内页 Hero Banner（v2：无字书房共享横幅按页裁切 + 真实 HTML 文字）
   高度按 PAGE-RECONSTRUCTION 原构图比例，经 --hb-h 由模板传入 */
.hero-banner {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  margin: 0 0 26px;
  height: var(--hb-h, 300px);
  background: linear-gradient(115deg, #dfeaf3 0%, #e8f1f2 45%, #f6efdc 100%);
  border: 1px solid #e2ebf1;
  box-shadow: var(--shadow-md);
}
.hero-banner .hb-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--hb-pos, center 38%);
}
.hero-banner .hb-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(252,252,253,.55) 0%, rgba(252,252,253,.18) 38%, rgba(252,252,253,0) 60%);
}
.hero-banner .hb-text { position: absolute; left: 34px; top: 50%; transform: translateY(-50%); z-index: 2; max-width: 46%; }
.hero-banner .hb-title {
  font-family: var(--font-hand); font-size: clamp(30px, 4vw, 56px); font-weight: 700;
  color: var(--blue-ink); line-height: 1.05; margin: 0 0 8px;
}
.hero-banner .hb-cn { font-size: 18px; font-weight: 800; color: var(--blue-ink); margin-bottom: 4px; }
.hero-banner .hb-sub { font-family: var(--font-hand); font-size: 18px; color: var(--blue-strong); }

/* Banner 便签 / 清单卡（真实文字，非图片） */
.banner-notes { position: absolute; top: 24px; right: 22%; z-index: 3; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.banner-note-list {
  position: absolute; right: 6%; top: 18%; z-index: 3;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 18px;
  box-shadow: var(--shadow-sm); transform: rotate(2deg);
  font-size: 14px; font-weight: 700; color: var(--blue-ink);
}
.banner-note-list .bn-title { font-family: var(--font-hand); font-size: 19px; margin-bottom: 6px; }
.banner-note-list ul { list-style: none; margin: 0; padding: 0; }
.banner-note-list li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.banner-note-list li::before { content: "☑"; color: var(--teal); }

/* 主区域两栏：Sidebar + Content */
.page-body { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; padding-bottom: 60px; }
.page-body.full { grid-template-columns: 1fr; }

/* ---------- Section Sidebar ---------- */
.section-sidebar {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  position: sticky; top: calc(var(--header-h) + 16px);
}
.section-sidebar .sb-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 0 8px; }
.section-sidebar .sb-icon {
  width: 38px; height: 38px; border-radius: 10px; font-size: 18px;
  background: var(--blue-soft); display: flex; align-items: center; justify-content: center;
}
.section-sidebar .sb-name { font-family: var(--font-hand); font-size: 24px; color: var(--blue-ink); }
.section-sidebar .sb-cn { font-size: 14px; font-weight: 800; color: var(--blue-ink); }
.section-sidebar ul { list-style: none; margin: 0; padding: 0; }
.section-sidebar a.sb-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px; margin: 2px 0;
  font-size: 13.8px; font-weight: 600; color: var(--ink);
}
.section-sidebar a.sb-link .ic { font-size: 15px; width: 20px; text-align: center; }
.section-sidebar a.sb-link:hover { background: var(--bg-warm); }
.section-sidebar a.sb-link.active {
  background: var(--blue-soft); color: var(--blue-deep); font-weight: 800;
  border: 1px solid #cfe2f1;
}
.section-sidebar .sb-group { margin-top: 10px; }
.section-sidebar .sb-group > .sb-link { font-weight: 800; color: var(--blue-ink); }
.section-sidebar .sb-sub a { display: block; padding: 5px 12px 5px 42px; font-size: 13px; color: var(--ink-soft); border-radius: 8px; }
.section-sidebar .sb-sub a:hover, .section-sidebar .sb-sub a.active { color: var(--blue-deep); background: var(--blue-soft); }

/* 移动端 sidebar 折叠按钮 */
.sb-toggle { display: none; }

/* ============================================================
   CARDS
   ============================================================ */

/* ---------- Post Card ---------- */
.post-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .18s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card .pc-cover {
  height: 150px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.post-card .pc-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pc-cover .pc-emoji { font-size: 52px; opacity: .9; }
.post-card .pc-chip { position: absolute; left: 12px; bottom: 12px; }
.post-card .pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.post-card .pc-date { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.post-card h3 { font-size: 16.5px; margin: 4px 0 6px; line-height: 1.5; }
.post-card h3 a { color: var(--blue-ink); }
.post-card .pc-excerpt { font-size: 13.5px; color: var(--ink-soft); flex: 1; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .pc-more { font-weight: 800; font-size: 13px; color: var(--blue-strong); }
.post-card .pc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* 横向迷你 post card（首页左侧） */
.mini-post {
  display: flex; gap: 12px; padding: 10px 0; align-items: flex-start;
}
.mini-post + .mini-post { border-top: 1px dashed var(--line); }
.mini-post .mp-thumb {
  width: 74px; height: 60px; border-radius: 10px; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.mini-post .mp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-post h4 { font-size: 14.5px; margin: 0 0 3px; line-height: 1.45; }
.mini-post h4 a { color: var(--blue-ink); }
.mini-post .mp-meta { font-size: 11.5px; color: var(--ink-faint); display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Product Card ---------- */
.product-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .18s ease;
  display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .pr-cover {
  height: 160px; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-soft), #f2f6ea);
}
.product-card .pr-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pr-cover .pr-emoji { font-size: 54px; }
.product-card .pr-sticky {
  position: absolute; top: 10px; right: 12px;
  font-family: var(--font-hand); font-size: 13px; line-height: 1.3;
  background: var(--yellow-soft); padding: 6px 9px; border-radius: 3px 8px 4px 7px;
  transform: rotate(2deg); color: var(--blue-ink); box-shadow: var(--shadow-sm);
}
.product-card .pr-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.product-card .pr-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.product-card .pr-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.product-card h3 { font-size: 16.5px; margin: 0; }
.product-card .pr-desc { font-size: 13px; color: var(--ink-soft); flex: 1; }
.product-card .pr-foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.product-card .pr-foot .tags { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.product-card .pr-foot .circle-btn { margin-left: auto; }

/* ---------- Resource Card ---------- */
.resource-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .18s ease;
  display: flex; flex-direction: column;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.resource-card .rc-cover { height: 140px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.resource-card .rc-cover img { width: 100%; height: 100%; object-fit: cover; }
.resource-card .rc-cover .rc-emoji { font-size: 46px; }
.resource-card .rc-chip { position: absolute; left: 12px; bottom: 12px; }
.resource-card .rc-body { padding: 15px 17px 17px; flex: 1; display: flex; flex-direction: column; }
.resource-card h3 { font-size: 15.5px; margin: 0 0 6px; }
.resource-card h3 a { color: var(--blue-ink); }
.resource-card .rc-desc { font-size: 13px; color: var(--ink-soft); flex: 1; }
.resource-card .rc-foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.resource-card .rc-foot .tags { flex: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.resource-card .fmt { font-size: 11px; font-weight: 800; color: var(--ink-faint); letter-spacing: .04em; }

/* ---------- Teaching Course Card ---------- */
.course-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: all .18s ease;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.course-card .cc-cover { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 900; color: #fff; }
.course-card .cc-body { padding: 13px 15px 15px; }
.course-card .cc-kicker { font-size: 11px; color: var(--ink-faint); font-weight: 700; }
.course-card h3 { font-size: 15.5px; margin: 2px 0 4px; }
.course-card .cc-desc { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 8px; }
.course-card .cc-link { font-size: 12.5px; font-weight: 800; color: var(--blue-strong); }

/* ---------- Journal Timeline ---------- */
.journal-timeline { position: relative; padding-left: 26px; }
.journal-timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2.5px; border-radius: 2px;
  background: repeating-linear-gradient(to bottom, #b9d0e2 0 8px, transparent 8px 14px);
}
.j-year {
  position: relative; font-family: var(--font-hand); font-size: 30px; font-weight: 700;
  color: var(--blue); margin: 26px 0 12px; display: flex; align-items: center; gap: 12px;
}
.j-year .pill { background: var(--blue); color: #fff; font-size: 15px; padding: 2px 16px; border-radius: 999px; font-family: var(--font-body); font-weight: 800; }
.j-item { position: relative; padding: 0 0 26px 14px; }
.j-item::before {
  content: ""; position: absolute; left: -25px; top: 8px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue);
}
.j-item .j-date { font-size: 12.5px; font-weight: 800; color: var(--ink-faint); }
.j-item .j-card {
  display: flex; gap: 16px; margin-top: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; box-shadow: var(--shadow-sm); transition: all .18s ease;
}
.j-item .j-card:hover { transform: translateX(3px); box-shadow: var(--shadow-md); }
.j-item .j-thumb { width: 120px; height: 92px; border-radius: 10px; flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.j-item .j-thumb img { width: 100%; height: 100%; object-fit: cover; }
.j-item h3 { font-size: 16px; margin: 0 0 4px; }
.j-item h3 a { color: var(--blue-ink); }
.j-item .j-excerpt { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.j-item .j-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- About 页 ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr .95fr; gap: 18px; align-items: stretch; margin: 18px 0; }
.about-intro {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 22px; box-shadow: var(--shadow-sm);
}
.about-intro h2 { font-family: var(--font-hand); font-size: 32px; }
.quick-facts {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 20px; box-shadow: var(--shadow-sm);
}
.quick-facts h3 { font-family: var(--font-hand); font-size: 24px; }
.quick-facts table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.quick-facts td { padding: 5px 4px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.quick-facts td:first-child { color: var(--ink-faint); font-weight: 700; white-space: nowrap; width: 86px; }
.quick-facts td:last-child { font-weight: 600; }
.quick-facts tr:last-child td { border-bottom: none; }
.about-polaroid {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 12px 16px; box-shadow: var(--shadow-md); transform: rotate(2deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 0;
}
.about-polaroid .ap-note { font-family: var(--font-hand); font-size: 20px; color: var(--blue-ink); text-align: center; }

/* Identity icons row */
.id-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.id-badge {
  min-width: 0; text-align: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px 4px 8px;
}
.id-badge .id-ic { font-size: 26px; }
.id-badge .id-en { font-family: var(--font-hand); font-size: 17px; color: var(--blue-ink); line-height: 1.2; }
.id-badge .id-cn { font-size: 11.5px; color: var(--ink-soft); }

/* Belief cards */
.belief-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.belief-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 16px; text-align: center; box-shadow: var(--shadow-sm); transition: all .18s ease;
}
.belief-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.belief-card .b-ic { font-size: 28px; margin-bottom: 8px; }
.belief-card .b-en { font-family: var(--font-hand); font-size: 20px; color: var(--blue-ink); }
.belief-card .b-cn { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Teaching 页特色卡 ---------- */
.feature-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 16px; text-align: center; box-shadow: var(--shadow-sm);
}
.feature-card .f-ic {
  width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: var(--teal-soft);
}
.feature-card .f-ic img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.feature-card .f-en { font-family: var(--font-hand); font-size: 19px; color: var(--blue-ink); }
.feature-card .f-cn { font-size: 12px; color: var(--ink-soft); }

/* ---------- Home 三栏 ---------- */
.home-3col { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 24px; margin: 30px 0 20px; align-items: start; }
.home-panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 22px 18px; box-shadow: var(--shadow-sm);
}
.home-panel .hp-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.home-panel .hp-head .hp-title { display: flex; align-items: baseline; gap: 8px; }
.home-panel .hp-head h2 { font-family: var(--font-hand); font-size: 24px; margin: 0; }
.home-panel .hp-head .hp-cn { font-size: 13.5px; font-weight: 800; color: var(--blue-ink); }
.home-panel .hp-more { font-size: 12.5px; font-weight: 700; color: var(--blue-strong); }

/* Teaching center panel (首页中间) */
.teach-stage {
  border-radius: var(--r-md); overflow: hidden; margin-bottom: 14px;
  min-height: 220px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.teach-stage img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.teach-stage .ts-caption {
  position: relative; z-index: 2; text-align: center; color: var(--blue-ink);
  font-family: var(--font-hand); font-size: 22px; padding: 12px;
  background: rgba(255,255,255,.82); border-radius: 10px; box-shadow: var(--shadow-sm);
}
.teach-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.teach-point { text-align: center; padding: 10px 6px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.teach-point .tp-ic { font-size: 20px; }
.teach-point .tp-en { font-family: var(--font-hand); font-size: 15px; color: var(--blue-ink); }
.teach-point .tp-cn { font-size: 10.5px; color: var(--ink-soft); }

/* Journal mini list（首页右侧） */
.journal-mini { position: relative; padding-left: 20px; }
.journal-mini::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: repeating-linear-gradient(to bottom, #b9d0e2 0 6px, transparent 6px 10px); }
.journal-mini .jm-item { position: relative; padding: 0 0 14px 12px; }
.journal-mini .jm-item::before { content: ""; position: absolute; left: -19px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2.5px solid var(--blue); }
.journal-mini .jm-date { font-size: 11.5px; color: var(--ink-faint); font-weight: 700; }
.journal-mini h4 { font-size: 14px; margin: 1px 0 2px; }
.journal-mini h4 a { color: var(--blue-ink); }
.journal-mini .jm-sub { font-size: 12px; color: var(--ink-soft); }

/* ---------- Archive 工具条（筛选） ---------- */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 16px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.filter-bar select, .filter-bar input[type="search"], .filter-bar input[type="text"] {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  font-family: var(--font-body); font-size: 13px; color: var(--ink); background: #fff;
  outline: none;
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--blue); }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chips a {
  padding: 5px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: #f1f4f7; color: var(--ink-soft);
}
.filter-chips a:hover { background: var(--blue-soft); color: var(--blue-deep); }
.filter-chips a.active { background: var(--blue); color: #fff; }

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards-grid.col-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Blog 右栏 ---------- */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
.side-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 20px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.side-box h3 { font-family: var(--font-hand); font-size: 21px; margin-bottom: 10px; }
.pop-list { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.pop-list li { display: flex; gap: 10px; padding: 7px 0; align-items: flex-start; counter-increment: pop; }
.pop-list li::before {
  content: counter(pop); width: 22px; height: 22px; flex: none;
  border-radius: 50%; background: var(--coral-soft); color: #b5563f;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 800; margin-top: 2px;
}
.pop-list li:nth-child(2)::before { background: var(--yellow-soft); color: #a2761d; }
.pop-list li:nth-child(3)::before { background: var(--teal-soft); color: #3f7d70; }
.pop-list h4 { font-size: 13.5px; margin: 0; line-height: 1.45; }
.pop-list h4 a { color: var(--blue-ink); }
.pop-list .pm-date { font-size: 11px; color: var(--ink-faint); }
.tag-cloud { display: flex; gap: 7px; flex-wrap: wrap; }

/* ---------- Single 文章 ---------- */
.single-wrap {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 36px 44px; box-shadow: var(--shadow-sm);
}
.single-wrap .entry-meta { font-size: 13px; color: var(--ink-faint); margin-bottom: 18px; display: flex; gap: 14px; flex-wrap: wrap; }
.single-wrap h1.entry-title { font-size: 30px; }
.entry-content { font-size: 15.5px; }
.entry-content h2 { margin-top: 1.8em; padding-left: 12px; border-left: 4px solid var(--yellow); }
.entry-content h3 { margin-top: 1.5em; }
.entry-content img { border-radius: var(--r-md); }
.entry-content blockquote {
  margin: 1.4em 0; padding: 14px 20px; background: var(--blue-soft);
  border-radius: 12px; border-left: 4px solid var(--blue); color: var(--blue-deep);
}
.entry-content code { background: var(--bg-warm); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* ---------- Resource/Product 单页 meta ---------- */
.meta-panel {
  background: var(--bg); border: 1px dashed var(--line); border-radius: var(--r-md);
  padding: 16px 20px; margin: 20px 0; font-size: 13.5px;
}
.meta-panel dt { font-weight: 800; color: var(--blue-ink); margin-top: 8px; }
.meta-panel dd { margin: 2px 0 0 0; color: var(--ink-soft); }

/* ---------- Journal 侧栏：日历与数字 ---------- */
.cal { width: 100%; border-collapse: collapse; font-size: 12px; text-align: center; }
.cal caption { font-family: var(--font-hand); font-size: 19px; color: var(--blue-ink); margin-bottom: 6px; }
.cal th { color: var(--ink-faint); font-weight: 700; padding: 4px 0; }
.cal td { padding: 3px 0; }
.cal td.today { background: var(--blue); color: #fff; border-radius: 50%; font-weight: 800; }
.numbers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.num-item { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; text-align: center; }
.num-item .n { font-family: var(--font-hand); font-size: 26px; color: var(--blue); font-weight: 700; }
.num-item .l { font-size: 11px; color: var(--ink-soft); }
.num-item .n-cn { font-size: 10.5px; color: var(--ink-faint); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { margin-top: 30px; border-top: 1px solid var(--line); background: var(--bg-warm); }
.site-footer .footer-quote { max-width: var(--content-w); margin: 0 auto; padding: 26px 24px 8px; }
.site-footer .footer-bottom {
  max-width: var(--content-w); margin: 0 auto; padding: 10px 24px 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-faint);
}
.site-footer .footer-note { display: flex; align-items: center; gap: 12px; }
.site-footer .footer-crab { font-size: 30px; }
.footer-widgets { max-width: var(--content-w); margin: 0 auto; padding: 26px 24px 6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.footer-widgets h3 { font-family: var(--font-hand); font-size: 21px; }
.footer-widgets ul { list-style: none; padding: 0; margin: 0; }
.footer-widgets li { padding: 3px 0; font-size: 13.5px; }
.footer-widgets a { color: var(--ink-soft); }

/* ============================================================
   动画（轻量）
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.vis { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .entry-grid { grid-template-columns: repeat(3, 1fr); }
  .home-3col { grid-template-columns: 1fr 1fr; }
  .home-3col .home-panel:first-child { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-grid .about-polaroid { display: none; }
  .header-slogan { display: none; }
  .hero-slide .slide-title { font-size: 42px; }
  .hero-banner .hb-title { font-size: 46px; }
  .banner-notes { display: none; }
}
@media (max-width: 860px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(253,251,246,.98); flex-direction: column; align-items: stretch;
    padding: 18px 24px; overflow-y: auto; display: none; z-index: 80;
  }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a.nav-link { display: block; padding: 12px 16px; font-size: 16px; }
  .main-nav li.current > a.nav-link { border: none; }
  /* 二级菜单改为点击展开 */
  .main-nav .dropdown {
    position: static; transform: none; opacity: 1; visibility: hidden; display: none;
    min-width: 0; grid-template-columns: 1fr; box-shadow: none; border: none; padding: 0 0 0 14px;
  }
  .main-nav li.has-dropdown.open .dropdown { display: grid; visibility: visible; }
  .main-nav li.has-dropdown > a.nav-link::after { content: " ▾"; color: var(--ink-faint); }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 22px; height: 2.4px; border-radius: 2px; background: var(--blue-ink); transition: all .2s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }
  .btn-contact { display: none; }
  .btn-studio { padding: 8px 12px; }
  .btn-studio .bs-txt { display: none; }
  .btn-studio .bs-ico { margin-right: 0; }

  .page-body { grid-template-columns: 1fr; }
  .section-sidebar { position: static; }
  .sb-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 12px 16px; font-family: var(--font-body); font-size: 14px; font-weight: 800;
    color: var(--blue-ink); cursor: pointer; margin-bottom: 12px;
  }
  .section-sidebar { display: none; }
  .section-sidebar.open { display: block; }

  .cards-grid, .cards-grid.col-3 { grid-template-columns: repeat(2, 1fr); }
  .blog-layout { grid-template-columns: 1fr; }
  .home-3col { grid-template-columns: 1fr; }
  .home-3col .home-panel { grid-column: auto; }
  .entry-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slide { flex-direction: column; }
  .hero-slide .slide-art { min-height: 130px; }
  .hero-slide .slide-text { padding: 34px 30px 10px; }
  .hero-slide .slide-title { font-size: 36px; }
  .hero-banner { height: auto; min-height: 200px; }
  .hero-banner .hb-text { position: static; transform: none; padding: 30px 26px; max-width: 100%; }
  .banner-note-list { display: none; }
  .feature-4, .belief-grid { grid-template-columns: repeat(2, 1fr); }
  .teach-points { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .single-wrap { padding: 24px 20px; }
  .quote-card { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .cards-grid, .cards-grid.col-3, .entry-grid { grid-template-columns: 1fr; }
  .hero-slide .slide-title { font-size: 30px; }
  .hero-banner .hb-title { font-size: 36px; }
  .sec-head h2 { font-size: 27px; }
  .j-item .j-card { flex-direction: column; }
  .j-item .j-thumb { width: 100%; height: 110px; }
}

/* ============================================================
   HOME · 互动书房（1536×1024 原构图坐标，百分比定位）
   墙牌/桌面物件 = source-crops 原区域裁片精确落位；文字类 = HTML
   ============================================================ */
body.home .site-header, body.home .site-footer { display: none; }
.room-outer {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #efe9de; padding: 0;
}
.angus-room {
  position: relative; width: min(100vw, calc(100vh * 1.5));
  aspect-ratio: 3 / 2; overflow: hidden; background: #5b4a38;
}
.angus-room .room-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.angus-room .room-layer { position: absolute; z-index: 3; }
.room-layer img { display: block; }

/* sr-only（触屏/读屏文字） */
.rp-txt, .sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* 品牌悬牌照（原裁片 49,48 381×161） */
.room-board { left: 3.19%; top: 1.17%; width: 24.8%; transition: transform .18s ease; }
.room-board:hover { transform: translateY(-2px); }

/* My Learning Journal（日记底纸已烘焙进融合背景，内容容器透明，127,197 284×453） */
.room-journal { left: 8.27%; top: 19.24%; width: 18.49%; height: 44.24%; }
.room-journal .rj-inner {
  position: absolute; inset: 0; padding: 4.5% 8% 3%;
  display: flex; flex-direction: column; color: var(--blue-ink);
}
.room-journal .rj-title {
  font-family: var(--font-hand); font-weight: 700; color: #2d4c8c;
  font-size: clamp(13px, 1.5vw, 24px); margin-bottom: 5%;
}
.room-journal .rj-entry {
  display: flex; align-items: flex-start; gap: 5px;
  padding: 2.6% 0; text-decoration: none;
}
.room-journal .rj-entry + .rj-entry { border-top: 1px dashed #e0d2ac; }
.room-journal .rj-ic { width: 13%; flex: none; margin-top: 1px; }
.room-journal .rj-date {
  font-family: var(--font-hand); font-weight: 700; color: #8a6d1f;
  font-size: clamp(8px, 0.82vw, 13px); white-space: nowrap; line-height: 1.5;
}
.room-journal .rj-text {
  font-size: clamp(8px, 0.78vw, 13px); font-weight: 700; line-height: 1.45;
  color: var(--blue-ink);
}
.room-journal .rj-entry:hover .rj-text { color: var(--acc-journal); }
.room-journal .rj-foot {
  margin-top: auto; font-family: var(--font-hand); color: #8a6d1f;
  font-size: clamp(9px, 0.9vw, 15px); transform: rotate(-1.5deg);
}

/* 墙面入口（v3：原木框 + 画芯 + HTML 标题，结构与光效见 plaque-frame.css） */
.room-plaque img { width: 100%; height: auto; }
/* 位置：竖版木框（998×1226，高=宽×1.8427%），保持原水平中心 */
.rp-teaching  { left: 44.69%; top:  6.90%; width: 8.60%; }
.rp-products  { left: 61.24%; top:  6.50%; width: 8.00%; }
.rp-resources { left: 74.39%; top:  6.50%; width: 7.80%; }
.rp-blog      { left: 47.50%; top: 27.40%; width: 7.30%; }
.rp-about     { left: 62.25%; top: 26.80%; width: 7.60%; }
.rp-contact   { left: 74.52%; top: 26.80%; width: 7.60%; }

/* 桌面物件与坐姿人物已全部烘焙进 v2 融合背景（旧 room-character / prop-* 图层样式移除） */

/* 欢迎气泡（真实 HTML 文字，980,493 150×153） */
.room-bubble {
  left: 63.80%; top: 48.15%; width: 10.6%;
  background: #fffdf6; border: 2px solid var(--blue); border-radius: 14px;
  padding: 1.6% 1.8%; font-size: clamp(8px, 0.8vw, 13px); font-weight: 700;
  color: var(--blue-ink); line-height: 1.45; box-shadow: var(--shadow-md);
  transform: rotate(2deg);
}
.room-bubble::after {
  content: ""; position: absolute; left: 14%; bottom: -12px;
  border: 8px solid transparent; border-top-color: var(--blue);
}
.room-bubble .rb-hand { font-family: var(--font-hand); color: var(--blue-strong); font-size: 1.25em; }

/* 桌面小螃蟹（desk-crab-cut 透明抠图；最终落位见 home-placement-patch.css，此处保持一致） */
.room-crab {
  left: 66%; top: auto; bottom: 24%; width: 7%;
  z-index: 4; pointer-events: none;
}
.room-crab img {
  width: 100%; height: auto;
  animation: crab-hop 2.8s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes crab-hop {
  /* 原地小跳：起跳抬高 + 落地轻压，左右微挪 */
  0%, 100% { transform: translate(0, 0) scaleY(1); }
  12%      { transform: translate(-8%, -30%) scaleY(1.04); }
  26%      { transform: translate(0, 0) scaleY(0.94); }
  40%      { transform: translate(10%, -24%) scaleY(1.03); }
  54%      { transform: translate(0, 0) scaleY(0.95); }
  68%      { transform: translate(-6%, -18%) scaleY(1.02); }
  82%      { transform: translate(4%, 0) scaleY(0.96); }
}

/* 后台入口（原裁片 1353,42 182×215，整块可点击） */
.room-admin { left: 88.09%; top: 4.10%; width: 11.85%; transition: transform .18s ease; }
.room-admin img { width: 100%; height: auto; border-radius: 8px; }
.room-admin:hover { transform: translateY(-2px); }

/* 底部七栏目导航（真实链接，48,859 1459×119） */
.room-bottomnav .rbn-ic { display: none; }
.room-bottomnav {
  left: 0; top: 73.5%; width: 100%; height: 26.5%;
  background: linear-gradient(180deg, rgba(40,32,24,0) 0%, rgba(40,32,24,.30) 26%, rgba(43,34,26,.60) 52%, rgba(43,34,26,.80) 100%);
  border-radius: 0;
  display: flex; align-items: flex-end; justify-content: center; gap: 1.1%;
  padding: 0 1.4% 1.7%;
}
.room-bottomnav .rbn-item {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  text-decoration: none; padding: .55% 1.3%; border-radius: 10px;
  transition: background .18s ease, transform .18s ease;
}
.room-bottomnav .rbn-num { font-family: var(--font-hand); font-size: clamp(10px, 1.05vw, 17px); color: #d8cbb8; line-height: 1.15; }
.room-bottomnav .rbn-en { font-weight: 800; font-size: clamp(11px, 1.15vw, 18px); color: #f8f3e9; line-height: 1.25; }
.room-bottomnav .rbn-cn { font-size: clamp(9px, 0.92vw, 14px); color: #e4d9c6; line-height: 1.25; }
.room-bottomnav .rbn-item:hover, .room-bottomnav .rbn-item.selected {
  background: rgba(255,255,255,.16); transform: translateY(-2px);
}
.room-bottomnav .rbn-item.selected .rbn-en { color: color-mix(in srgb, var(--nav-accent, var(--yellow)) 65%, #fff); }
.room-bottomnav .rbn-anchor {
  width: 5.2%; flex: none; margin: 0 .6%; transition: transform .18s ease;
}
.room-bottomnav .rbn-anchor img { width: 100%; height: auto; }
.room-bottomnav .rbn-anchor:hover { transform: translateY(-2px); }
.rbni-about    { --nav-accent: var(--acc-about); }
.rbni-teaching { --nav-accent: var(--acc-teaching); }
.rbni-products { --nav-accent: var(--acc-products); }
.rbni-blog     { --nav-accent: var(--acc-blog); }
.rbni-journal  { --nav-accent: var(--acc-journal); }
.rbni-resources{ --nav-accent: var(--acc-resources); }
.rbni-contact  { --nav-accent: var(--acc-contact); }

/* 栏目预览卡（点击/悬停浮现） */
.room-preview {
  position: absolute; right: 2.5%; bottom: 14%; z-index: 8;
  width: 300px; max-width: 34%;
  background: #fff; border-radius: var(--r-md); border: 1.5px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: none; overflow: hidden;
}
.room-preview.open { display: block; animation: rp-in .22s ease; }
@keyframes rp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.room-preview .rpv-head {
  background: var(--rpv-accent, var(--blue)); color: #fff;
  padding: 10px 16px; display: flex; align-items: center; gap: 10px;
}
.room-preview .rpv-en { font-family: var(--font-hand); font-size: 22px; font-weight: 700; }
.room-preview .rpv-cn { font-size: 14px; font-weight: 700; }
.room-preview .rpv-close {
  margin-left: auto; background: none; border: none; color: #fff; font-size: 16px; cursor: pointer;
  padding: 2px 6px; border-radius: 6px;
}
.room-preview .rpv-close:hover { background: rgba(255,255,255,.2); }
.room-preview .rpv-body { padding: 14px 16px 16px; display: flex; gap: 12px; }
.room-preview .rpv-avatar { width: 72px; height: 72px; border-radius: 12px; object-fit: contain; background: var(--rpv-accent-soft, var(--blue-soft)); flex: none; }
.room-preview .rpv-desc { font-size: 13px; color: var(--ink-soft); margin: 0 0 10px; }
.room-preview .rpv-go {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--rpv-accent, var(--blue)); color: #fff;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 800; text-decoration: none;
}
.room-preview .rpv-go:hover { filter: brightness(1.08); }
.rpv-about    { --rpv-accent: var(--acc-about);     --rpv-accent-soft: #e4eef6; }
.rpv-teaching { --rpv-accent: var(--acc-teaching);  --rpv-accent-soft: #e2f0ee; }
.rpv-products { --rpv-accent: var(--acc-products);  --rpv-accent-soft: #f4ead9; }
.rpv-blog     { --rpv-accent: var(--acc-blog);      --rpv-accent-soft: #f7e3e7; }
.rpv-journal  { --rpv-accent: var(--acc-journal);   --rpv-accent-soft: #ece8f5; }
.rpv-resources{ --rpv-accent: var(--acc-resources); --rpv-accent-soft: #e2edf2; }
.rpv-contact  { --rpv-accent: var(--acc-contact);   --rpv-accent-soft: #e8f0e2; }

@media (prefers-reduced-motion: reduce) {
  .room-crab img { animation: none; }
  .room-preview.open { animation: none; }
  .room-plaque, .room-board, .room-admin, .room-bottomnav .rbn-item { transition: none; }
}

/* 手机：书房 → 场景 Hero + 品牌照 + 日记板 + 栏目卡列表 */
@media (max-width: 860px) {
  body.home .site-header { display: flex; }
  body.home .site-footer { display: block; }
  .room-outer { min-height: 0; display: block; padding: 14px 14px 0; }
  .angus-room { width: 100%; aspect-ratio: auto; background: none; overflow: visible; }

  /* 场景 Hero：书房中部横幅 */
  .angus-room .room-bg {
    display: block; position: static; width: 100%; height: 60vw; max-height: 300px;
    object-fit: cover; object-position: center 44%;
    border-radius: 18px; box-shadow: var(--shadow-md);
  }

  /* 品牌照叠在 Hero 下沿 */
  .angus-room .room-board {
    position: relative; left: auto; top: auto; width: 60%; max-width: 250px;
    display: block; margin: -46px auto 0; z-index: 5;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
  }

  /* 其余绝对定位元素一律隐藏 */
  .room-character, .room-bubble, .room-crab,
  .room-plaque, .room-admin, .prop, .room-preview { display: none !important; }

  /* 日记板：静态羊皮纸卡（保留真实条目） */
  .angus-room .room-journal {
    display: block; position: relative; left: auto; top: auto;
    width: 100%; height: auto; margin: 18px 0 4px;
  }
  .room-journal .rj-board { display: none; }
  .room-journal .rj-inner {
    position: static; padding: 18px 18px 14px;
    background: #f9efd6; border: 1px solid #e6d5a8; border-radius: 16px;
    box-shadow: var(--shadow-sm);
  }
  .room-journal .rj-title { font-size: 21px; margin-bottom: 8px; }
  .room-journal .rj-entry { padding: 9px 0; }
  .room-journal .rj-ic { width: 22px; }
  .room-journal .rj-date { font-size: 12px; }
  .room-journal .rj-text { font-size: 14px; }
  .room-journal .rj-foot { font-size: 14px; }

  /* 底部导航 → 彩色栏目卡列表（含小图标） */
  .angus-room .room-bottomnav {
    position: static; width: auto; height: auto; background: none; border-radius: 0;
    padding: 0; margin: 14px 0 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  }
  .angus-room .room-bottomnav .rbn-anchor { display: none; }
  .angus-room .room-bottomnav .rbn-item {
    flex-direction: row; align-items: center; gap: 12px;
    padding: 11px 16px 11px 12px; margin: 0;
    background: #fff; border: 1px solid var(--line);
    border-left: 5px solid var(--nav-accent, var(--blue));
    border-radius: 14px; box-shadow: var(--shadow-sm);
    transform: none;
  }
  .angus-room .room-bottomnav .rbn-item:hover { background: #fff; transform: none; }
  .room-bottomnav .rbn-ic { display: block; width: 44px; height: 44px; object-fit: contain; flex: none; }
  .room-bottomnav .rbn-num {
    order: -1; font-size: 13px; line-height: 1;
    color: var(--nav-accent, var(--blue));
    background: color-mix(in srgb, var(--nav-accent, var(--blue)) 13%, #fff);
    width: 30px; height: 30px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex: none;
  }
  .room-bottomnav .rbn-en { font-size: 16px; color: var(--blue-ink); }
  .room-bottomnav .rbn-cn { font-size: 13px; color: var(--ink-soft); }

  /* 引用卡收紧 */
  .quote-card { padding: 20px 22px; gap: 10px; }
  .quote-card .q-en { font-size: 19px; line-height: 1.45; }
  .quote-card .q-cn { font-size: 13.5px; }
  .quote-card .qmark { font-size: 40px; }
  .room-outer { padding-bottom: 18px; }
}

/* ---------- v2 增补 ---------- */
.section-sidebar .sb-crop { width: 20px; height: 20px; border-radius: 6px; flex: none; }
.sb-sub a { display: flex; align-items: center; gap: 8px; }
.footer-landscape { position: relative; height: 120px; overflow: hidden; }
.footer-landscape img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
@media (max-width: 860px) { .footer-landscape { height: 70px; } }
.cal caption a { text-decoration: none; color: var(--blue-strong); padding: 0 6px; font-size: 17px; }
.cal-day { text-decoration: none; display: inline-block; width: 22px; height: 22px; line-height: 22px; border-radius: 50%; }
.cal-day.has-entry { background: var(--acc-journal); color: #fff; font-weight: 800; }
.cal-day.has-entry:hover, .cal-day.cal-selected { background: var(--blue-deep); }
.id-badge .id-crop { width: 44px; height: 42px; object-fit: contain; }
.belief-card .b-crop { width: 52px; height: 52px; object-fit: contain; margin-bottom: 6px; }
.section-sidebar .sb-cn { margin-left: 4px; }

/* ============================================================
   ABOUT 页还原（page-references/about-page-reference.png）
   ============================================================ */

/* Hero v3：完整 3:1 Banner 一张图贯穿全宽 — 标题直接叠在图内左侧墙面，
   无左侧渐变遮罩、无 mask、无拼接底色块；仅保留加载占位色（图加载后被完全覆盖） */
.about-hero {
  position: relative; margin: 0 0 18px;
  margin-right: calc(50% - 50vw); /* 右侧出血，全幅贯穿 */
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  aspect-ratio: 3 / 1; /* 3:1 原比例展示，不拉伸；宽度随版心，高度自适应 */
  background: var(--bg-warm);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.about-hero .ah-text {
  position: absolute; left: 3%; top: 34%; transform: translateY(-50%);
  z-index: 2; max-width: 25%;
}
.about-hero .ah-title {
  font-family: var(--font-hand); font-size: clamp(38px, 4.4vw, 64px); font-weight: 700;
  color: var(--blue-ink); line-height: 1.02; margin: 0 0 10px;
}
.about-hero .ah-cn { font-size: clamp(15px, 1.4vw, 21px); font-weight: 800; color: var(--blue-ink); margin: 0; }
.about-hero .ah-art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; display: block;
}
/* ≤1100px：标题放图片上方，图片完整展示，避免窄屏 cover 裁切人物 */
@media (max-width: 1100px) {
  .about-hero { aspect-ratio: auto; margin-right: 0; border-radius: var(--r-lg); }
  .about-hero .ah-text { position: static; transform: none; max-width: none; padding: 22px 20px 4px; }
  .about-hero .ah-title { margin-bottom: 6px; }
  .about-hero .ah-cn { margin-bottom: 0; }
  .about-hero .ah-art {
    position: static; width: 100%; height: auto; margin-top: 10px;
  }
}

/* Identity 图标裁片：只取图标区（原图标 + 底部文字），HTML 负责文字 */
.id-badge .id-crop { width: 44px; height: 36px; object-fit: cover; object-position: top; margin: 0 auto 2px; }

/* 拍立得列：直接使用原区域（内含手写标题与 Note 便签） */
.about-polaroid { padding: 8px; transform: rotate(1.2deg); }
.about-polaroid img { width: 100%; border-radius: 6px; }

/* 侧栏底部 Hangzhou and Beyond（无字场景 + HTML 标题） */
.sb-hangzhou { margin-top: 16px; position: relative; border-radius: 12px; overflow: hidden; }
.sb-hangzhou img { width: 100%; display: block; }
.sb-hangzhou .sbhz-title {
  position: absolute; left: 10px; top: 8px;
  font-family: var(--font-hand); font-size: 19px; font-weight: 700; color: #2d4c8c;
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
}

/* Quick Facts 图标（原参考为彩色小图标，暂用 emoji，待补原区域素材） */
.quick-facts td:first-child { font-size: 13px; }


/* ============================================================
   晴雨动作小助手 Angus v2（48 帧 · 天气面板 · 头/腋下互动 · 拖动 · 收起）
   帧画布统一裁切为 210×285（原 400×400 去透明留白），人物约占宽 57%
   ============================================================ */
.site-pet {
  position: fixed; right: 12px; bottom: 8px; z-index: 7;
  width: 148px; cursor: grab; user-select: none; touch-action: none;
  transform: translate(var(--pet-x, 0px), var(--pet-y, 0px));
  -webkit-tap-highlight-color: transparent;
}
.site-pet:active { cursor: grabbing; }
.site-pet .pet-img {
  width: 100%; display: block;
  transform: var(--pet-flip, none);
  filter: drop-shadow(0 5px 7px rgba(0,0,0,.28));
}
/* 互动命中区（随裁切画布校准：头顶 sulk / 左右腋下 tickle） */
.site-pet .pet-zone {
  position: absolute; border: 0; background: transparent; cursor: pointer;
  border-radius: 30%; padding: 0;
}
.site-pet .pet-zone:focus-visible { outline: 2px dashed var(--blue); outline-offset: 2px; }
.site-pet .pet-head { left: 26%; top: 10%; width: 48%; height: 23%; }
.site-pet .pet-tickle-l { left: 16%; top: 42%; width: 20%; height: 16%; }
.site-pet .pet-tickle-r { left: 64%; top: 42%; width: 20%; height: 16%; }
/* 雨天撑伞：身体略窄，头部/腋下略向中间收（左手举伞，左腋随手臂抬高） */
[data-room-theme="teal"] .site-pet .pet-head { left: 30%; top: 11%; width: 40%; height: 22%; }
[data-room-theme="teal"] .site-pet .pet-tickle-l { left: 21%; top: 40%; width: 17%; height: 17%; }
[data-room-theme="teal"] .site-pet .pet-tickle-r { left: 62%; top: 43%; width: 17%; height: 16%; }
/* 天气/面板入口按钮（小助手左上角） */
.site-pet .pet-weather-btn {
  position: absolute; top: 2%; left: -6px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--card);
  color: var(--blue-strong); font-size: 15px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0; box-shadow: var(--shadow-md);
  opacity: 0; transition: opacity .15s ease;
}
.site-pet:hover .pet-weather-btn, .site-pet:focus-within .pet-weather-btn { opacity: 1; }
.site-pet .pet-bubble {
  position: absolute; bottom: calc(100% + 12px); right: -16px;
  min-width: 170px; max-width: 240px;
  background: #fffdf6; border: 2px solid var(--blue); border-radius: 12px;
  padding: 9px 12px; font-size: 13px; font-weight: 700; color: var(--blue-ink);
  line-height: 1.5; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.site-pet .pet-bubble.show { opacity: 1; visibility: visible; transform: none; }
.site-pet .pet-bubble::after {
  content: ""; position: absolute; right: 26px; bottom: -11px;
  border: 8px solid transparent; border-top-color: var(--blue);
}
/* 晴/雨 + 动作面板 */
.site-pet .pet-menu {
  position: absolute; bottom: calc(100% + 12px); right: -12px; z-index: 4;
  min-width: 208px; padding: 10px 12px 12px;
  background: var(--card); border: 2px solid var(--blue); border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.site-pet .pet-menu-title {
  font-family: var(--font-hand); font-weight: 700; font-size: 16px;
  color: var(--blue-strong); margin-bottom: 8px;
}
.site-pet .pet-menu-row { display: flex; flex-wrap: wrap; gap: 6px; }
.site-pet .pet-menu-row + .pet-menu-row { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.site-pet .pet-menu-row button {
  border: 1px solid var(--line); background: var(--bg-warm, #fbf8ed);
  color: var(--ink); border-radius: 999px; padding: 5px 11px;
  font-size: 12.5px; font-weight: 700; cursor: pointer; line-height: 1.3;
  transition: all .15s ease;
}
.site-pet .pet-menu-row button:hover { border-color: var(--blue); color: var(--blue-strong); }
.site-pet .pet-menu-row button[aria-pressed="true"] {
  background: var(--blue); border-color: var(--blue); color: #fff;
}
@media (max-width: 860px) {
  .site-pet { width: 112px; right: 8px; bottom: 6px; }
  .site-pet .pet-bubble { min-width: 150px; font-size: 12px; right: -8px; }
  .site-pet .pet-menu { right: -6px; min-width: 196px; }
  .site-pet .pet-weather-btn { opacity: 1; width: 26px; height: 26px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-pet { transition: none; }
}


/* footer 右侧文字避开悬浮小助手 */
.footer-bottom .hand { margin-right: 96px; }
@media (max-width: 860px) {
  .footer-bottom .hand { margin-right: 70px; }
}

/* ============================================================
   v3 · refinement kit 接入层（2026-10-04）
   坐姿人物 / 双主题 / 蓝调 Banner / 大页尾 / indigo Logo / 三级菜单
   ============================================================ */

/* ---------- 全站天气：雨天 teal 变量（蓝绿环境光；绿植/肤色不入图，紫只用于阴影） ---------- */
[data-room-theme="teal"] {
  --bg: #eef7f2;
  --bg-warm: #e4f0ea;
  --card: #fbfefd;
  --line: #d3e5dc;
  --line-soft: #e2eee8;
  --ink: #24484a;
  --ink-soft: #48706c;
  --ink-faint: #74968f;
  --blue: #3f8f86;
  --blue-strong: #2f7d74;
  --blue-deep: #1f645d;
  --blue-soft: #e0f1ec;
  --blue-chip: #d5ece5;
  --blue-ink: #24484a;
}
body { background: var(--bg); }
[data-room-theme="teal"] .room-outer { background: #e2efe9; }
[data-room-theme="teal"] .angus-room { background: #6f9d94; }
[data-room-theme="teal"] .room-bottomnav {
  background: linear-gradient(180deg, rgba(23,52,50,0) 0%, rgba(23,52,50,.30) 26%, rgba(25,56,53,.60) 52%, rgba(23,52,50,.80) 100%);
}
[data-room-theme="teal"] .room-journal .rj-entry + .rj-entry { border-top-color: #bcd8cf; }
[data-room-theme="teal"] .site-pet .pet-bubble { background: #f2faf7; }

/* ---------- 页头 Logo（indigo 横标） ---------- */
.brand .brand-logo {
  width: clamp(168px, 15vw, 224px);
  height: auto; display: block;
  transition: transform .18s ease;
}
.brand:hover .brand-logo { transform: translateY(-1px); }
@media (max-width: 860px) {
  .brand .brand-logo { width: 150px; }
}

/* ---------- 主题切换按钮 ---------- */
.room-theme-switch { display: inline-flex; gap: 4px; }
.room-theme-switch button {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 800;
  cursor: pointer; transition: all .15s ease; line-height: 1.2;
}
.room-theme-switch button:hover { border-color: var(--blue); color: var(--blue-strong); }
.room-theme-switch button[aria-pressed="true"] {
  background: var(--blue); border-color: var(--blue); color: #fff;
}
.nav-theme-switch { display: none; margin: 14px 12px 6px; }
@media (max-width: 860px) {
  .header-right .room-theme-switch { display: none; }
  .main-nav.open .nav-theme-switch { display: inline-flex; }
}
/* 窄桌面：压缩页头内边距与右侧集群，避免横向溢出 */
@media (max-width: 1100px) {
  .header-right { gap: 10px; }
  .main-nav a.nav-link { padding: 9px 10px; font-size: 13.5px; }
  .btn-contact { padding: 9px 18px; }
}

/* ---------- 三级菜单：顶栏下拉（Overview + 分组按钮 + 细项） ---------- */
.main-nav .dropdown {
  min-width: 240px; max-width: 340px;
  padding: 8px 10px 10px; max-height: none;
}
.main-nav .dropdown .dd-overview {
  display: block; padding: 8px 12px; border-radius: 9px;
  font-weight: 800; font-size: 13.5px; color: var(--blue-strong);
  background: var(--blue-soft); margin-bottom: 6px;
}
.main-nav .dropdown .dd-overview:hover { background: var(--blue-chip); }
.main-nav .dd-group { border-bottom: 1px dashed var(--line-soft); }
.main-nav .dd-group:last-child { border-bottom: none; }
.main-nav .dd-group-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 9px 12px; border-radius: 9px;
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  font-family: var(--font-body);
}
.main-nav .dd-group-btn:hover { background: var(--bg); }
.main-nav .dd-arrow { font-size: 11px; color: var(--ink-faint); transition: transform .18s ease; }
.main-nav .dd-group.open .dd-arrow { transform: rotate(90deg); }
.main-nav .dd-sub { display: none; padding: 0 6px 8px 16px; }
.main-nav .dd-group.open .dd-sub { display: block; }
.main-nav .dd-sub a {
  display: block; padding: 6px 10px; border-radius: 8px;
  font-size: 12.8px; color: var(--ink-soft); line-height: 1.45;
}
.main-nav .dd-sub a:hover { background: var(--bg); color: var(--blue-strong); }
/* 键盘可达：focus-within 保持下拉展开（原有 hover 规则并存） */
.main-nav li.has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }

/* ---------- 三级菜单：侧栏 details 手风琴 ---------- */
.section-sidebar details.sb-group { margin: 2px 0; }
.section-sidebar details.sb-group summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  list-style: none; cursor: pointer;
  padding: 8px 12px; border-radius: 10px; margin: 2px 0;
  font-size: 13.8px; font-weight: 700; color: var(--ink);
}
.section-sidebar details.sb-group summary::-webkit-details-marker { display: none; }
.section-sidebar details.sb-group summary:hover { background: var(--bg); }
.section-sidebar details.sb-group .sb-arrow {
  font-size: 12px; color: var(--ink-faint); transition: transform .18s ease;
}
.section-sidebar details.sb-group[open] .sb-arrow { transform: rotate(90deg); }
.section-sidebar details.sb-group .sb-sub { padding: 0 0 4px 14px; }
.section-sidebar details.sb-group .sb-sub a {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px; margin: 1px 0;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.section-sidebar details.sb-group .sb-sub a:hover { background: var(--bg); color: var(--blue-strong); }
.section-sidebar details.sb-group .sb-sub a.active { background: var(--blue-soft); color: var(--blue-deep); }

/* ---------- 页尾：Hangzhou 蓝调全景（大图 + 顶部渐变过渡 + 紧凑版权条） ---------- */
.site-footer { margin-top: 0; border-top: none; background: var(--bg); }
.page-body { padding-bottom: 30px; }
.footer-scenic {
  position: relative; height: clamp(280px, 32vw, 520px);
  overflow: hidden; background: #dfe9fb;
}
.footer-scenic .fs-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center bottom;
}
/* 与页面上缘的天空过渡（暖色页面同样以蓝景收尾，48–64px 渐变） */
.footer-scenic::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 1;
  height: 64px; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(223,233,251,0) 100%);
}
.footer-scenic .fs-heading {
  position: absolute; left: 0; right: 0; top: clamp(20px, 4vw, 56px); z-index: 2;
  text-align: center; padding: 0 24px;
}
.footer-scenic .fs-en {
  display: block; font-family: var(--font-hand);
  font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; color: #2c3f6e;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
}
.footer-scenic .fs-cn {
  display: block; margin-top: 4px;
  font-size: clamp(12.5px, 1.2vw, 15px); font-weight: 700; color: #4a5c8f;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.footer-meta {
  min-height: 72px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 24px; background: #edf2ff;
}
.footer-meta .f-logo { flex: none; display: block; }
.footer-meta .f-logo img { width: clamp(140px, 13vw, 180px); height: auto; display: block; }
.footer-meta .footer-note { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #3d5190; }
/* ---------- 页脚备案号（ICP / 公安联网备案）：号码由 WP 选项注入，样式保持低存在感 ---------- */
.footer-meta .footer-beian {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12px; line-height: 1.3; color: var(--ink-soft, #7d8aa6); white-space: nowrap;
}
.footer-meta .footer-beian a {
  color: inherit; text-decoration: none; border-bottom: 1px solid transparent;
}
.footer-meta .footer-beian a:hover { color: #3d5190; border-bottom-color: currentColor; }
.footer-meta .footer-beian .fb-sep { opacity: .45; }
.footer-meta .hand { margin-left: auto; margin-right: 96px; }
@media (max-width: 860px) {
  .footer-scenic { height: 280px; }
  .footer-meta { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .footer-meta .footer-beian { white-space: normal; }
  .footer-meta .hand { margin-right: 70px; margin-left: 0; width: 100%; }
}

/* ---------- 小助手：收起按钮 + 把手 ---------- */
.site-pet .pet-close {
  position: absolute; top: -6px; right: -2px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--card);
  color: var(--ink-soft); font-size: 11px; line-height: 1;
  cursor: pointer; opacity: 0; transition: opacity .15s ease;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.site-pet:hover .pet-close, .site-pet:focus-within .pet-close { opacity: 1; }
.pet-tab {
  position: fixed; right: 14px; bottom: 10px; z-index: 7;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--card); background: var(--blue-soft);
  font-size: 22px; cursor: pointer; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.site-pet[hidden] { display: none; }
.pet-tab:hover { transform: scale(1.08); }
.pet-tab[hidden] { display: none; }
@media (max-width: 860px) {
  .pet-tab { right: 10px; bottom: 8px; width: 40px; height: 40px; font-size: 18px; }
}

/* 修复：backdrop-filter 会使 position:fixed 的移动端菜单以页头为包含块（面板被压扁） */
@media (max-width: 860px) {
  .site-header { backdrop-filter: none; }
}
