/* ==========================================================================
   SeoSite 默认模板样式（移动优先）
   纯 CSS，无外部依赖。换模板时整目录复制一份改，不影响 default。
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --fg: #171a21;
  --muted: #667085;
  --line: #e5e7ef;
  --brand: #1f5eff;
  --brand-ink: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1080px;
  --gap: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12141a;
    --surface: #1a1d26;
    --fg: #e7e9ef;
    --muted: #98a2b3;
    --line: #2a2e3a;
    --brand: #6d94ff;
    --brand-ink: #10131a;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ── 头部与导航 ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  z-index: 20;
  backdrop-filter: saturate(180%) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}

.brand {
  color: var(--fg);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand:hover { text-decoration: none; color: var(--brand); }

/* 有 logo 时站名紧跟在图后面 —— 图是站名前面的一枚标记，不是站名的替代品。
   flex 只加在 .brand-logo 上：纯文字站名仍走上面那套 nowrap + ellipsis，
   长站名的截断行为一点没变。header-inner 是 min-height:56px + 居中，多一枚
   20px 高的标记也不改变导航栏高度。 */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;   /* 允许整块被压缩，否则窄屏会把导航挤走 */
}

/* 省略号必须落在文字这一层：flex 里父级的 overflow/text-overflow 管不到子项 */
.brand-logo .brand-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 图不参与收缩（flex: none）：窄屏宁可让站名出省略号，也不能把标记压窄、
   裁掉半个。同一行由 .brand-logo 的 nowrap 保证，图片自己不会换行。 */
.brand picture { display: block; flex: none; }

/* 高 1.15rem（18.4px）是量出来的：站名 1.05rem 的 cap height 约 11.8px，方形
   标记取 1.5 倍左右视觉最稳 —— 1.25rem（20px，1.7 倍）会压过站名，1rem 又显
   小。宽度按比例，4.5rem 是保险：真丢进来一张 5:1 的整串字标也不会把导航挤到
   第二行，只会被缩得偏小（contain 不变形）。 */
.brand img {
  display: block;
  height: 1.15rem;
  width: auto;
  max-width: 4.5rem;
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: block;
  width: 42px; height: 42px;
  margin-right: -8px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  position: absolute;
  left: 11px;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--fg);
  content: "";
  transition: transform .18s ease, opacity .18s ease;
}
.nav-burger span { top: 20px; }
.nav-burger span::before { left: 0; top: -6px; }
.nav-burger span::after { left: 0; top: 6px; }

.nav-toggle:checked + .nav-burger span { background: transparent; }
.nav-toggle:checked + .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked + .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle:focus-visible + .nav-burger {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(15, 20, 35, .08);
}
.nav-toggle:checked ~ .site-nav { display: flex; }

.site-nav a {
  display: block;
  padding: 10px 4px;
  color: var(--fg);
  border-radius: 8px;
  font-size: .98rem;
}
.site-nav a:hover { background: var(--surface); text-decoration: none; }
.nav-search { color: var(--muted) !important; }

/* ── 导航「更多」：类目超过 5 个时折起来 ──────────────────────────────────
   checkbox + label 两个元素搞定，桌面是下拉、移动端顺着竖排展开，没有 JS。 */
.nav-more-toggle {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.nav-more-btn {
  display: block;
  padding: 10px 4px;
  border-radius: 8px;
  color: var(--muted);
  font-size: .98rem;
  cursor: pointer;
}
.nav-more-btn:hover { background: var(--surface); color: var(--fg); }
.nav-more-toggle:focus-visible + .nav-more-btn {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.nav-more-items { display: none; flex-direction: column; }
.nav-more-toggle:checked ~ .nav-more-items { display: flex; }

/* ── 主体 ───────────────────────────────────────────────────────────────── */

main.wrap { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }

.hero { margin-bottom: 28px; }
.hero-title { font-size: 1.6rem; margin-bottom: .35em; }
.hero-text { color: var(--muted); margin: 0; max-width: 60ch; }

.page-head { margin-bottom: 20px; }
.page-title { font-size: 1.5rem; margin-bottom: .25em; }
.page-sub { color: var(--muted); font-size: .95rem; margin: 0; }

.section-title {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  margin: 32px 0 14px;
}

/* ── 文章卡片 ───────────────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.card:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: 0 8px 24px rgba(20, 30, 60, .07);
  transform: translateY(-2px);
}

.card-cover { display: block; aspect-ratio: 16 / 9; background: var(--surface); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }

.card-title { font-size: 1.1rem; margin: 0; }
.card-title a { color: var(--fg); }
.card-title a:hover { color: var(--brand); text-decoration: none; }

.card-excerpt {
  color: var(--muted);
  font-size: .94rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  color: var(--muted);
  font-size: .82rem;
}
.card-meta .dot { color: var(--line); }

/* ── 标签 ───────────────────────────────────────────────────────────────── */

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font-size: .82rem;
  line-height: 1.5;
}
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip .count { color: var(--muted); font-size: .76rem; }
.chip.is-active .count { color: inherit; opacity: .75; }

.tag-cloud { margin-top: 36px; }

/* ── 分页 ───────────────────────────────────────────────────────────────── */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 34px 0 0;
}

.page-btn {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: .9rem;
}
.page-btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.page-info { color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }

/* 下拉翻页：跟 .page-btn 同高同胶囊，系统箭头换成自绘 chevron。
   原生 select 的箭头由操作系统绘制，macOS 是细灰三角、Windows 是另一套，
   塞进这套蓝色胶囊里会像贴上去的，所以关掉 appearance 自己画一个。
   宽度写死 9.4em：页码从 1 数到 11 时文本变长，不固定会让整排按钮左右跳。 */
.pager-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 9.4em;
  padding: 8px 30px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1.5 2 6 6.2 10.5 2' fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 11px 7px;
  color: var(--fg);
  font: inherit;
  font-size: .9rem;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  text-align: center;
  cursor: pointer;
}
.pager-select:hover {
  border-color: var(--brand);
  color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1.5 2 6 6.2 10.5 2' fill='none' stroke='%231f5eff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.pager-select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 展开后的列表由系统绘制，只能给个底色，避免深色页面上弹出白板 */
.pager-select option { background: var(--bg); color: var(--fg); }

@media (prefers-color-scheme: dark) {
  .pager-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1.5 2 6 6.2 10.5 2' fill='none' stroke='%2398a2b3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
  .pager-select:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1.5 2 6 6.2 10.5 2' fill='none' stroke='%236d94ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

/* 360px 屏上三件并排会把 Next 挤出去，收紧间距和宽度 */
@media (max-width: 420px) {
  .pager { gap: 8px; }
  .pager-select {
    min-width: 0;
    padding: 7px 24px 7px 10px;
    font-size: .82rem;
    background-position: right 8px center;
  }
}

/* ── 文章页 ─────────────────────────────────────────────────────────────── */

.post { max-width: 720px; margin: 0 auto; }
.post-head { margin-bottom: 22px; }
.post-title { font-size: 1.85rem; margin-bottom: .4em; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .86rem;
}

/* ── 购买 FAQ（正文之后） ───────────────────────────────────────────────── */

.faq { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.faq-title { font-size: 1.06rem; margin: 0 0 .9em; }
.faq-list { margin: 0; }
.faq-list dt { font-weight: 600; margin: 1.15em 0 .35em; }
.faq-list dt:first-of-type { margin-top: 0; }
.faq-list dd { margin: 0 0 1.1em; line-height: 1.72; }

.post-cover { position: relative; margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.post-cover img { width: 100%; display: block; transition: transform .35s ease; }
.post-cover .cover-link { display: block; }
.post-cover .cover-link:hover img { transform: scale(1.02); }

/* 封面上的「Check price」胶囊。pointer-events: none 让点击统一落到外层
   <a> 上 —— 否则按钮边缘那几个像素会变成「点了没反应」的死角。 */
.post-cover .cover-cta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(17, 19, 24, .86);
  color: #fff;
  font-size: .85rem;
  font-weight: 650;
  letter-spacing: .01em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
  pointer-events: none;
}
.post-cover .cover-link:hover .cover-cta { background: var(--brand); color: var(--brand-ink); }

@media (max-width: 480px) {
  .post-cover .cover-cta { right: 10px; bottom: 10px; padding: 8px 13px; font-size: .8rem; }
}

/* ── 购买卡（正文末尾、FAQ 之前） ────────────────────────────────────────── */
/* HTML 由管理端生成后追加进正文，所以这里的 class 名要和那边写死的一致；
   改名字得两边一起改。样式只负责让它看起来像「一个明确的购买位」：
   缩略图 + 品牌/商家 + 价格 + 一个真按钮 + 一行披露。 */

.buy-box {
  margin: 30px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.buy-box .buy-box-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.buy-box .buy-box-row { display: flex; gap: 14px; align-items: flex-start; }
.buy-box .buy-box-thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  /* 正文的 .post-body img 有 margin: 1.4em auto，会把缩略图挤歪。
     这里的选择器多一个 .buy-box，特异性压得过它。 */
  margin: 0;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.buy-box .buy-box-info { flex: 1; min-width: 0; }
.buy-box .buy-box-title { margin: 0 0 4px; font-size: 1rem; font-weight: 650; line-height: 1.35; }
.buy-box .buy-box-sub { margin: 0 0 10px; color: var(--muted); font-size: .82rem; }
.buy-box .buy-box-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
}
.buy-box .buy-box-price s { color: var(--muted); font-size: .9rem; }
.buy-box .buy-box-price strong { font-size: 1.16rem; }
.buy-box .buy-box-off {
  padding: 2px 7px;
  border-radius: 999px;
  background: #fee4e2;
  color: #b42318;
  font-size: .76rem;
  font-weight: 700;
}
.buy-box .buy-box-btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}
.buy-box .buy-box-btn:hover { filter: brightness(1.07); text-decoration: none; }
.buy-box .buy-box-note { margin: 12px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.5; }

@media (max-width: 420px) {
  .buy-box { padding: 15px; }
  .buy-box .buy-box-thumb { flex-basis: 72px; width: 72px; height: 72px; }
}

@media (prefers-color-scheme: dark) {
  .buy-box .buy-box-off { background: #3b1512; color: #ffb4ab; }
}

.post-body { font-size: 1.02rem; }
.post-body h2 { margin-top: 1.8em; }
.post-body h3 { margin-top: 1.5em; }
.post-body ul,
.post-body ol { padding-left: 1.35em; margin: 0 0 1.1em; }
.post-body li { margin-bottom: .4em; }

.post-body img {
  border-radius: var(--radius-sm);
  margin: 1.4em auto;
}

.post-body blockquote {
  margin: 1.4em 0;
  padding: .2em 1em;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
}

.post-body code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .12em .38em;
}

.post-body pre {
  margin: 1.4em 0;
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}
.post-body pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: .86rem;
  line-height: 1.6;
}

.post-body table {
  width: 100%;
  margin: 1.4em 0;
  border-collapse: collapse;
  font-size: .92rem;
  display: block;
  overflow-x: auto;
}
.post-body th,
.post-body td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; }
.post-body th { background: var(--surface); font-weight: 600; }

.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.post-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 30px 0 0;
}
.post-gallery figure { margin: 0; }
.post-gallery img { border-radius: var(--radius-sm); background: var(--surface); }
.post-gallery figcaption { color: var(--muted); font-size: .8rem; margin-top: 6px; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }

.related { max-width: 720px; margin: 40px auto 0; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.related-thumb {
  flex: 0 0 auto;
  /* 高度跟正文行高 1.65em 走，缩略图不额外撑高每一行；宽度按 4:3 给 */
  width: 2.2em;
  height: 1.65em;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface);
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-title { flex: 1 1 auto; min-width: 0; }
.related-list time { color: var(--muted); font-size: .82rem; white-space: nowrap; }

.back-link { margin-top: 34px; color: var(--muted); font-size: .92rem; }

/* ── 搜索 ───────────────────────────────────────────────────────────────── */

.search-form {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  max-width: 560px;
}
.search-form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: .96rem;
}
.search-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.search-form button {
  flex: 0 0 auto;
  padding: 11px 18px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--brand-ink);
  font: inherit;
  font-size: .96rem;
  cursor: pointer;
}
.search-form button:hover { filter: brightness(1.06); }

/* ── 空态 / 404 ─────────────────────────────────────────────────────────── */

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.notfound { max-width: 520px; margin: 40px auto; text-align: center; }
.nf-code {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--line);
  margin: 0;
  line-height: 1;
}
.notfound .search-form { margin: 26px auto; }
.notfound .back-link { margin-top: 0; }

/* ── 页脚 ───────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: .86rem;
}
.site-footer p { margin: 0 0 6px; }
.site-footer .copy { color: var(--muted); }

/* 页脚导航：About / Contact 这类低频页面放这里，别占顶部宽度 */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}
.footer-nav a { color: var(--muted); font-size: .88rem; }
.footer-nav a:hover { color: var(--fg); text-decoration: none; }

/* ── 断点 ───────────────────────────────────────────────────────────────── */

@media (min-width: 640px) {
  h1 { font-size: 2rem; }
  .hero-title { font-size: 1.9rem; }
  .page-title { font-size: 1.7rem; }
  .post-title { font-size: 2.1rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .post-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 24px; }
  .header-inner { min-height: 64px; }
  main.wrap { padding-top: 34px; }

  /* 桌面端：隐藏汉堡，导航横排 */
  .nav-burger { display: none; }
  .site-nav {
    display: flex !important;
    position: relative;  /* More 的下拉要挂在这一行下面 */
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav a { padding: 6px 10px; font-size: .93rem; color: var(--muted); }
  .site-nav a:hover { color: var(--fg); background: var(--surface); }

  .nav-more-btn { display: inline-block; padding: 6px 10px; font-size: .93rem; }
  .nav-more-items {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
    padding: 6px;
    gap: 2px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(15, 20, 35, .12);
    z-index: 40;
  }

  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero { margin-bottom: 34px; }
}

/* ── About / Contact ────────────────────────────────────────────────────── */

.page-narrow { max-width: 720px; margin: 0 auto; }
.page-narrow .page-head { margin-bottom: 24px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.contact-field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; }
.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: .96rem;
}
.contact-field textarea { min-height: 220px; resize: vertical; line-height: 1.6; }
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.contact-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.contact-actions button {
  padding: 11px 22px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--brand-ink);
  font: inherit;
  font-size: .96rem;
  cursor: pointer;
}
.contact-actions button:hover { filter: brightness(1.06); }
.contact-hint { color: var(--muted); font-size: .84rem; }

.contact-alert {
  margin: 20px 0 0;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .92rem;
}
.contact-alert.ok {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
}
.contact-alert.err {
  background: color-mix(in srgb, #e5484d 10%, transparent);
  border-color: color-mix(in srgb, #e5484d 35%, transparent);
}

/* 蜜罐字段：不能 display:none，否则部分脚本会跳过它 */
.contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
