/* HANGFOOK 大陆版官网 — 与主页 Figma 视觉画板 100% 对齐的艺术风格与 Q弹动效系统
   色板与主页完全一致：暖米纸 #F7F5EF / 炭墨描边 #25251F / PetDock 天蓝 #31CCFF / 幸福输入暖黄 #FFD400 / 嫩叶绿 #8CE359 */

:root {
  --hf-paper: #F7F5EF;
  --hf-surface: #FFFFFF;
  --hf-soft: #EFECE2;
  --hf-ink: #25251F;
  --hf-muted: #595D52;
  --hf-subtle: #7D8175;
  --hf-blue: #31CCFF;
  --hf-yellow: #FFD400;
  --hf-green: #8CE359;
  --hf-pink: #FF9EB5;
  --hf-lavender: #D6C7FF;
  --hf-line: rgba(37, 37, 31, 0.14);
  --hf-spring: cubic-bezier(.34, 1.56, .64, 1);
  --hf-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body.hf-page {
  margin: 0;
  background: var(--hf-paper);
  color: var(--hf-ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Arial", sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  position: relative;
}

/* 主页同款极淡木纹/手绘纸面背景层 */
body.hf-page::before {
  content: "";
  position: fixed;
  inset: -24px;
  z-index: -2;
  background: url("/figma-home/assets/bg-wood-ext.png?v=20261125m3") center top / 1440px auto repeat-y;
  opacity: 0.42;
  pointer-events: none;
}

a { color: inherit; }
img { max-width: 100%; }

.hf-wrap {
  width: min(var(--hf-max), calc(100% - 40px));
  margin-inline: auto;
}

.hf-skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--hf-yellow);
  color: var(--hf-ink);
  border: 2.5px solid var(--hf-ink);
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
}
.hf-skip:focus { left: 16px; }

/* ---------- Entrance Keyframes (与 home.css 完全一致的 Q弹节奏) ---------- */
@keyframes hfDrop {
  0%   { opacity: 0; transform: translateY(-20px) scale(.84); }
  55%  { opacity: 1; transform: translateY(3px) scale(1.05, .95); }
  78%  { transform: translateY(-1.5px) scale(.98, 1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes hfLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes hfRainbow {
  0%   { clip-path: circle(0% at 0% 100%); transform: scale(.88) rotate(-5deg); opacity: 0; }
  55%  { clip-path: circle(120% at 0% 100%); transform: scale(1.03) rotate(1deg); opacity: 1; }
  100% { clip-path: circle(160% at 0% 100%); transform: none; opacity: 1; }
}
@keyframes hfRise {
  0%   { opacity: 0; transform: translateY(48px) scale(.96); }
  55%  { opacity: 1; transform: translateY(-6px) scale(1.01, .99); }
  78%  { transform: translateY(2px); }
  100% { opacity: 1; transform: none; }
}
@keyframes hfPeek {
  0%   { opacity: 0; transform: translateY(55%) scale(1, .75); }
  50%  { opacity: 1; transform: translateY(-10%) scale(.95, 1.08); }
  72%  { transform: translateY(3%) scale(1.03, .97); }
  100% { opacity: 1; transform: none; }
}
@keyframes hfPop {
  0%   { opacity: 0; transform: scale(.2) rotate(-22deg); }
  55%  { opacity: 1; transform: scale(1.14) rotate(6deg); }
  76%  { transform: scale(.93) rotate(-3deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes hfSway {
  from { transform: rotate(calc(var(--rot, 5deg) * -.6)) translateY(0); }
  to   { transform: rotate(calc(var(--rot, 5deg) * .6)) translateY(-4px); }
}
@keyframes hfBob {
  0%, 66%, 100% { transform: none; }
  75% { transform: translateY(6px) scale(1.06, .92); }
  84% { transform: translateY(-3px) scale(.96, 1.04); }
  92% { transform: translateY(1px); }
}

/* Scroll reveal (仅在 JS 激活后启用，保障爬虫与无 JS 100% 可见) */
html.hf-motion .hf-reveal {
  opacity: 0;
  transform: translateY(28px) scale(.97);
}
html.hf-motion .hf-reveal.is-in {
  animation: hfRise .75s var(--hf-spring) both;
}

/* ---------- Top Navigation (复刻主页 HF + HANGFOOK 顶栏与 2px 炭墨长线) ---------- */
.hf-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(10px);
}
.hf-topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
}
.hf-topbar-line {
  width: min(var(--hf-max), calc(100% - 40px));
  height: 2px;
  margin-inline: auto;
  background: var(--hf-ink);
  transform-origin: 0 50%;
  animation: hfLine .85s cubic-bezier(.7, 0, .2, 1) .1s both;
}
.hf-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform .4s var(--hf-spring);
}
.hf-brand:hover { transform: scale(1.04) rotate(-1deg); }
.hf-brand-mark {
  width: 28px;
  height: 25px;
  display: block;
  animation: hfDrop .7s .12s both;
}
.hf-brand-word {
  width: 108px;
  height: 14px;
  display: block;
  animation: hfDrop .7s .2s both;
}

.hf-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.hf-nav a {
  padding: 5px 9px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  color: var(--hf-ink);
  transition: background .2s ease, border-color .2s ease, transform .38s var(--hf-spring);
}
.hf-nav a:hover {
  background: #FFF6CC;
  border-color: var(--hf-ink);
  transform: translateY(-2px);
}
.hf-nav a[aria-current="page"] {
  background: var(--hf-yellow);
  border-color: var(--hf-ink);
  box-shadow: 0 3px 0 var(--hf-ink);
}
.hf-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.hf-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2.5px solid var(--hf-ink);
  border-radius: 13px;
  background: var(--hf-surface);
  color: var(--hf-ink);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 3px 0 var(--hf-ink);
  cursor: pointer;
}

/* ---------- Buttons (主页下载弹窗同款 Q弹手绘按键) ---------- */
.hf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 2.5px solid var(--hf-ink);
  border-radius: 15px;
  background: var(--hf-blue);
  color: var(--hf-ink);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--hf-ink);
  transition: transform .42s var(--hf-spring), box-shadow .16s ease;
  white-space: nowrap;
}
.hf-btn:hover { transform: translateY(-3px) scale(1.03, .98); box-shadow: 0 7px 0 var(--hf-ink); }
.hf-btn:active { transform: translateY(3px) scale(.96, 1.03); box-shadow: 0 1px 0 var(--hf-ink); transition-duration: .1s; }
.hf-btn.yellow { background: var(--hf-yellow); }
.hf-btn.green { background: var(--hf-green); }
.hf-btn.white { background: var(--hf-surface); }
.hf-btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 12px; box-shadow: 0 3px 0 var(--hf-ink); }
.hf-btn.sm:hover { box-shadow: 0 5px 0 var(--hf-ink); }

/* ---------- Breadcrumb ---------- */
.hf-crumb {
  position: relative;
  z-index: 12;
  padding: 16px 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hf-subtle);
}
.hf-crumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.hf-crumb li + li::before { content: "›"; margin-right: 6px; font-size: 14px; opacity: 0.6; }
.hf-crumb a { text-decoration: none; }
.hf-crumb a:hover { color: var(--hf-ink); text-decoration: underline; }

/* ---------- Illustrated Hero Stage (与主页彩虹、贴纸、探头小动物完全同源) ---------- */
.hf-hero {
  position: relative;
  padding: 26px 0 34px;
  overflow: visible;
}
.hf-hero-stage {
  position: relative;
}

/* 左上角探出彩虹（紧贴卡片左上外缘，不遮挡上方导航与面包屑） */
.hf-hero-rainbow {
  position: absolute;
  left: -46px;
  top: -20px;
  width: 196px;
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
  animation: hfRainbow 1.15s .08s both;
}

/* 悬浮手绘贴纸（支持鼠标视差 + 点击 Q弹） */
.hf-st {
  position: absolute;
  z-index: 6;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.hf-st-pop {
  display: block;
  animation: hfPop .9s var(--d, 350ms) both;
}
.hf-st-hv {
  display: block;
  will-change: transform;
}
.hf-st-idle {
  display: block;
  animation: hfSway var(--sd, 3.4s) ease-in-out var(--sdl, 0s) infinite alternate;
}
.hf-st img { display: block; width: 100%; height: auto; pointer-events: none; }

.hf-st-flower { right: -26px; top: 34px; width: 92px; }
.hf-st-star   { left: -24px; bottom: -22px; width: 66px; }
.hf-st-cloud  { right: 170px; top: -28px; width: 72px; }
.hf-st-leaf   { right: -16px; bottom: -18px; width: 58px; }
.hf-st-pig    { left: -30px; top: 26px; width: 78px; }

/* 卡片顶部探头吉祥物（主页同款苹果小鸟 / 小兔子） */
.hf-hero-peek {
  position: absolute;
  right: 48px;
  top: -66px;
  width: 112px;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}
.hf-hero-peek.is-rabbit { top: -82px; width: 106px; }
.hf-hero-peek-pop {
  display: block;
  animation: hfPeek .95s .45s both;
  transform-origin: 50% 100%;
}
.hf-hero-peek-hv {
  display: block;
  will-change: transform;
}
.hf-hero-peek img { display: block; width: 100%; height: auto; }

.hf-hero-box {
  position: relative;
  z-index: 2;
  background: var(--hf-surface);
  border: 3px solid var(--hf-ink);
  border-radius: 28px;
  box-shadow: 0 7px 0 var(--hf-ink);
  padding: 36px 40px 32px;
  animation: hfRise .85s .15s both;
}
.hf-hero-box.tone-blue     { background: linear-gradient(155deg, #FFFFFF 55%, #DFF7FF 100%); }
.hf-hero-box.tone-yellow   { background: linear-gradient(155deg, #FFFFFF 55%, #FFF6C2 100%); }
.hf-hero-box.tone-mint     { background: linear-gradient(155deg, #FFFFFF 55%, #E3FBE8 100%); }
.hf-hero-box.tone-coral    { background: linear-gradient(155deg, #FFFFFF 55%, #FFE7EE 100%); }
.hf-hero-box.tone-lavender { background: linear-gradient(155deg, #FFFFFF 55%, #F0EAFF 100%); }

.hf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border: 2px solid var(--hf-ink);
  border-radius: 999px;
  background: var(--hf-yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 2.5px 0 var(--hf-ink);
}
.hf-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 3.9vw, 44px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hf-lead {
  margin: 0;
  max-width: 820px;
  font-size: 15.8px;
  color: var(--hf-muted);
}
.hf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.hf-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 2px dashed var(--hf-line);
}
.hf-stat {
  background: var(--hf-paper);
  border: 2px solid var(--hf-ink);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 3px 0 var(--hf-ink);
  transition: transform .38s var(--hf-spring);
}
.hf-stat:hover { transform: translateY(-3px) rotate(-.8deg); }
.hf-stat strong { display: block; font-size: 19px; line-height: 1.25; font-weight: 900; }
.hf-stat span { display: block; font-size: 12px; color: var(--hf-muted); margin-top: 2px; font-weight: 600; }

/* ---------- Sections ---------- */
.hf-section {
  padding: 34px 0;
}
.hf-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hf-section-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.7vw, 30px);
  line-height: 1.24;
  font-weight: 900;
  position: relative;
  display: inline-block;
}
.hf-section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  margin-top: 7px;
  border-radius: 99px;
  background: var(--hf-yellow);
  border: 1.5px solid var(--hf-ink);
}
.hf-section-head p {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--hf-muted);
  font-size: 14.8px;
}

/* ---------- Cards & Grids (手绘描边 + 轻盈底棱 + Q弹悬停) ---------- */
.hf-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hf-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hf-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.hf-card {
  background: var(--hf-surface);
  border: 2.5px solid var(--hf-ink);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 5px 0 var(--hf-ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .42s var(--hf-spring), box-shadow .18s ease;
}
.hf-card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: 0 9px 0 var(--hf-ink);
}
.hf-card h3 { margin: 0; font-size: 17.5px; line-height: 1.35; font-weight: 900; }
.hf-card p { margin: 0; font-size: 14px; color: var(--hf-muted); }
.hf-card-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13.5px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hf-card-link:hover { text-decoration: underline; }

/* Catalog Item Card */
.hf-item-card {
  background: var(--hf-surface);
  border: 2.5px solid var(--hf-ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 5px 0 var(--hf-ink);
  display: flex;
  flex-direction: column;
  transition: transform .42s var(--hf-spring), box-shadow .18s ease;
}
.hf-item-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 10px 0 var(--hf-ink);
}
.hf-item-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--hf-soft);
  border-bottom: 2.5px solid var(--hf-ink);
  overflow: hidden;
}
.hf-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s var(--hf-spring);
}
.hf-item-card:hover .hf-item-thumb img {
  transform: scale(1.06);
}
.hf-item-body {
  padding: 16px 17px 17px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.hf-item-body h3 { margin: 0; font-size: 16.5px; line-height: 1.35; font-weight: 900; }
.hf-item-body p { margin: 0; font-size: 13.6px; color: var(--hf-muted); }

.hf-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.hf-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border: 1.5px solid var(--hf-ink);
  border-radius: 999px;
  background: var(--hf-paper);
  color: var(--hf-ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}
.hf-badge.blue { background: #C6F1FF; }
.hf-badge.yellow { background: #FFF099; }
.hf-badge.mint { background: #CEFACD; }
.hf-badge.coral { background: #FFD6E0; }

.hf-item-meta {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1.5px dashed var(--hf-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--hf-subtle);
  font-weight: 700;
}

/* ---------- Filters ---------- */
.hf-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.hf-filter-btn {
  padding: 7px 15px;
  border: 2px solid var(--hf-ink);
  border-radius: 999px;
  background: var(--hf-surface);
  color: var(--hf-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .35s var(--hf-spring), background .16s ease, box-shadow .16s ease;
}
.hf-filter-btn:hover { transform: translateY(-2px); background: #FFF6CC; }
.hf-filter-btn.is-active {
  background: var(--hf-yellow);
  box-shadow: 0 3px 0 var(--hf-ink);
}

.hf-search-input {
  width: min(460px, 100%);
  min-height: 44px;
  padding: 0 16px;
  border: 2.5px solid var(--hf-ink);
  border-radius: 15px;
  background: var(--hf-surface);
  box-shadow: 0 3px 0 var(--hf-ink);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--hf-ink);
}

/* ---------- Tables ---------- */
.hf-table-wrap {
  overflow-x: auto;
  background: var(--hf-surface);
  border: 2.5px solid var(--hf-ink);
  border-radius: 22px;
  box-shadow: 0 5px 0 var(--hf-ink);
}
.hf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 620px;
}
.hf-table th, .hf-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1.5px solid var(--hf-line);
  vertical-align: top;
}
.hf-table th {
  background: #FFF6CC;
  font-weight: 900;
  font-size: 13.5px;
  border-bottom: 2.5px solid var(--hf-ink);
}
.hf-table tr:last-child td { border-bottom: 0; }

/* ---------- Prose / Guides ---------- */
.hf-article {
  background: var(--hf-surface);
  border: 2.5px solid var(--hf-ink);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--hf-ink);
  padding: 34px 38px;
}
.hf-article h2 {
  margin: 28px 0 12px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 900;
  padding-top: 18px;
  border-top: 2px dashed var(--hf-line);
}
.hf-article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.hf-article h3 { margin: 20px 0 8px; font-size: 17px; font-weight: 800; }
.hf-article p { margin: 0 0 14px; color: #363930; font-size: 15.2px; }
.hf-article ul, .hf-article ol { margin: 0 0 16px; padding-left: 22px; }
.hf-article li { margin-bottom: 7px; color: #363930; font-size: 14.8px; }
.hf-callout {
  margin: 18px 0;
  padding: 16px 18px;
  border: 2px solid var(--hf-ink);
  border-radius: 16px;
  background: #FFF6CC;
  box-shadow: 0 3px 0 var(--hf-ink);
  font-size: 14.5px;
}

/* ---------- FAQ ---------- */
.hf-faq-list { display: grid; gap: 12px; }
.hf-faq-list details {
  background: var(--hf-surface);
  border: 2.5px solid var(--hf-ink);
  border-radius: 18px;
  padding: 15px 20px;
  box-shadow: 0 4px 0 var(--hf-ink);
  transition: transform .35s var(--hf-spring);
}
.hf-faq-list details:hover { transform: translateY(-2px); }
.hf-faq-list summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hf-faq-list summary::-webkit-details-marker { display: none; }
.hf-faq-list summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--hf-ink);
  border-radius: 50%;
  background: var(--hf-yellow);
  font-size: 16px;
  flex-shrink: 0;
  transition: transform .35s var(--hf-spring), background .2s ease;
}
.hf-faq-list details[open] summary::after {
  content: "−";
  background: var(--hf-blue);
  transform: rotate(180deg);
}
.hf-faq-list details p {
  margin: 12px 0 2px;
  font-size: 14.5px;
  color: var(--hf-muted);
  padding-top: 10px;
  border-top: 1.5px dashed var(--hf-line);
}

/* ---------- Discreet Collapsible Topic Index ---------- */
.hf-topic-drawer {
  border-top: 1.5px dashed var(--hf-line);
  padding-top: 14px;
  color: var(--hf-subtle);
  font-size: 12.5px;
}
.hf-topic-drawer summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--hf-subtle);
}
.hf-topic-drawer summary::-webkit-details-marker { display: none; }
.hf-topic-drawer summary:hover { color: var(--hf-ink); }
.hf-topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
}
.hf-topic-tags a {
  font-size: 12px;
  color: var(--hf-subtle);
  text-decoration: none;
}
.hf-topic-tags a:hover { color: var(--hf-ink); text-decoration: underline; }

/* ---------- Dual Banner CTA (复刻主页蓝黄双卡 + 探头小鸟/兔子 Q弹交互) ---------- */
.hf-dual-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 38px;
}
.hf-banner-card {
  position: relative;
  border: 3px solid var(--hf-ink);
  border-radius: 26px;
  padding: 26px 26px 24px;
  box-shadow: 0 7px 0 var(--hf-ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: transform .42s var(--hf-spring), box-shadow .18s ease;
}
.hf-banner-card.is-pd { background: var(--hf-blue); }
.hf-banner-card.is-in { background: var(--hf-yellow); }
.hf-banner-card:hover {
  transform: translateY(-5px) rotate(-0.6deg);
  box-shadow: 0 11px 0 var(--hf-ink);
}
.hf-banner-card:active {
  transform: translateY(2px) scale(.98);
  box-shadow: 0 3px 0 var(--hf-ink);
}
.hf-banner-peek {
  position: absolute;
  top: -54px;
  right: 26px;
  width: 84px;
  pointer-events: none;
  transition: transform .45s var(--hf-spring);
}
.hf-banner-card.is-in .hf-banner-peek { top: -64px; width: 76px; }
.hf-banner-card:hover .hf-banner-peek {
  transform: translateY(-10px) rotate(5deg) scale(1.06);
}
.hf-banner-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--hf-ink);
}
.hf-banner-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(37, 37, 31, 0.82);
}
.hf-banner-pill {
  margin-top: 6px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 2px solid var(--hf-ink);
  border-radius: 999px;
  background: var(--hf-surface);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 3px 0 var(--hf-ink);
}
.hf-banner-arrow {
  display: inline-block;
  animation: hfBob 2.6s infinite 1.2s;
}

/* ---------- Footer ---------- */
.hf-footer {
  margin-top: 44px;
  border-top: 2px solid var(--hf-ink);
  background: rgba(247, 245, 239, 0.92);
  padding: 36px 0 28px;
  font-size: 13px;
  color: var(--hf-muted);
}
.hf-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1.5px dashed var(--hf-line);
}
.hf-footer h4 { margin: 0 0 10px; font-size: 14px; font-weight: 900; color: var(--hf-ink); }
.hf-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.hf-footer a { text-decoration: none; font-weight: 600; }
.hf-footer a:hover { color: var(--hf-ink); text-decoration: underline; }
.hf-footer-bottom {
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--hf-subtle);
}

/* ---------- Download Modal (与 home.css #dlModal 完全同款) ---------- */
.hf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(37, 37, 31, .45);
}
.hf-modal-backdrop[hidden] { display: none; }
.hf-modal {
  position: relative;
  width: min(490px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px 24px 22px;
  background: var(--hf-paper);
  color: var(--hf-ink);
  border: 3px solid var(--hf-ink);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--hf-ink);
  animation: hfRise .55s var(--hf-spring) both;
}
.hf-modal-art {
  width: 210px;
  height: auto;
  display: block;
  margin: -4px auto 10px;
  padding: 8px 14px 4px;
  background: var(--hf-blue);
  border: 3px solid var(--hf-ink);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--hf-ink);
  transform: rotate(-2deg);
}
.hf-modal-art.yellow { background: var(--hf-yellow); }
.hf-modal h2 { margin: 0 0 14px; font-size: 21px; font-weight: 900; text-align: center; }
.hf-modal-x {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 3px solid var(--hf-ink);
  border-radius: 50%;
  background: #fff;
  color: var(--hf-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform .42s var(--hf-spring);
}
.hf-modal-x:hover { transform: rotate(90deg) scale(1.1); }
.hf-dl-list { display: grid; gap: 12px; }
.hf-dl-card {
  background: #fff;
  border: 2.5px solid var(--hf-ink);
  border-radius: 16px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hf-dl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hf-dl-head strong { font-size: 16px; }
.hf-dl-head span { font-size: 12px; color: var(--hf-muted); font-weight: 700; }
.hf-dl-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.hf-dl-btns .hf-btn { flex: 1 1 140px; }
.hf-dl-btns .hf-btn.backup { flex: 0 1 auto; background: #f2f1eb; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .hf-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hf-nav-actions .hf-btn.hide-sm { display: none; }
}
@media (max-width: 960px) {
  .hf-menu-toggle { display: inline-flex; }
  .hf-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--hf-paper);
    border-bottom: 2.5px solid var(--hf-ink);
    padding: 14px 20px 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .hf-nav.is-open { display: flex; }
  .hf-grid-4, .hf-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hf-stats, .hf-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hf-st-flower, .hf-st-pig { display: none; }
}
@media (max-width: 680px) {
  .hf-hero-box, .hf-article { padding: 24px 20px; border-radius: 22px; }
  .hf-hero-rainbow { width: 140px; left: -26px; top: -16px; }
  .hf-hero-peek { width: 82px; right: 18px; top: -48px; }
  .hf-hero-peek.is-rabbit { width: 78px; top: -58px; }
  .hf-st-cloud, .hf-st-star, .hf-st-leaf { width: 46px; }
  .hf-grid-2, .hf-grid-3, .hf-grid-4, .hf-footer-grid, .hf-dual-cta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hf-brand-mark, .hf-brand-word, .hf-topbar-line, .hf-hero-rainbow, .hf-hero-box,
  .hf-hero-peek-pop, .hf-st-pop, .hf-st-idle, .hf-banner-arrow, .hf-modal,
  html.hf-motion .hf-reveal.is-in { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hf-btn, .hf-card, .hf-item-card, .hf-banner-card { transition: none; }
}
