/* =====================================================================
   MetroPulse — Component Styles · Modern Editorial v2
   Targets the EXACT class system used by the Smarty templates:
   nav.html / footer.html / index / detail / category / contact / legal.
   Depends on core.css (design tokens + reset + .btn/.card utilities).
   ===================================================================== */

/* ============================ Header / Desktop nav ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; gap: 20px; min-height: 72px;
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
}
.brand { display: inline-flex; align-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--ink); gap: 10px; }
.brand:hover { color: var(--ink); }
.logo-img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  color: var(--ink-2); font-weight: 500; font-size: .95rem;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-links a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

.desktop-search {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; width: 230px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), width var(--t) var(--ease);
}
.desktop-search:focus-within { border-color: var(--brand-2); box-shadow: var(--ring); width: 250px; }
.desktop-search input { border: none; outline: none; background: transparent; width: 100%; font-size: .92rem; }
.desktop-search button { border: none; background: transparent; cursor: pointer; color: var(--muted); display: grid; place-items: center; padding: 0; flex: none; }
.desktop-search button:hover { color: var(--brand); }
/* 模板 SVG 未声明 fill/stroke，默认会渲染成黑色实心块 */
.desktop-search svg,
.mobile-search-form svg,
.mobile-search-button svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.mobile-search-button svg { color: var(--ink); }

/* ============================ User area (login / dropdown) ============================ */
.qk-user { display: flex; align-items: center; flex: none; margin-left: 4px; }
.qk-signin {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: .92rem;
  padding: 9px 18px; border-radius: 999px; text-decoration: none;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.qk-signin:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); box-shadow: var(--sh-sm); }
.qk-signin svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.user-dropdown { position: relative; display: flex; align-items: center; }
.user-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: 7px 12px; border-radius: 999px; border: 1px solid transparent;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.user-dropdown-toggle:hover { background: var(--brand-soft); color: var(--brand); }
.user-dropdown-toggle .bi { flex: none; }
.user-dropdown-toggle .bi:first-child { color: var(--brand); }
.user-dropdown-toggle .bi:last-child { color: var(--muted); transition: transform var(--t) var(--ease); }
.user-dropdown.open .user-dropdown-toggle .bi:last-child { transform: rotate(180deg); }
.user-dropdown-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 205px;
  margin: 0; padding: 7px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--sh-lg); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t) var(--ease);
  z-index: 60;
}
.user-dropdown.open .user-dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.user-dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  color: var(--ink); font-weight: 500; font-size: .93rem;
  border-radius: 9px; text-decoration: none; transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.user-dropdown-item:hover { background: var(--brand-soft); color: var(--brand); }
.user-dropdown-item .bi { width: 17px; height: 17px; color: var(--brand); flex: none; }
.user-dropdown-divider { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }

.mobile-panel-user { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.mobile-panel-signin {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: .95rem;
  padding: 13px 16px; border-radius: 11px; text-decoration: none;
}
.mobile-panel-signin:hover { background: var(--brand-2); color: #fff; }
.mobile-panel-userinfo { display: flex; flex-direction: column; gap: 4px; }
.mobile-panel-username, .mobile-panel-logout { padding: 14px 12px; border-radius: 11px; color: var(--ink); font-weight: 600; text-decoration: none; }
.mobile-panel-username:hover { background: var(--brand-soft); color: var(--brand); }
.mobile-panel-logout { color: var(--err, #b3261e); }
.mobile-panel-logout:hover { background: rgba(179, 38, 30, .08); color: var(--err, #b3261e); }

/* ============================ Mobile nav (JS-driven) ============================ */
.mobile-nav { display: none; }
.mobile-nav-bar {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; gap: 12px;
}
.mobile-brand { display: inline-flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mobile-icon-button {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--card); cursor: pointer; display: inline-grid; place-items: center; padding: 0;
}
.mobile-icon-button span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.mobile-icon-button span + span { margin-top: 5px; }
.mobile-brand { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.mobile-nav-panel {
  position: fixed; inset: 0; background: var(--paper); z-index: 100;
  padding: 22px; overflow-y: auto; transform: translateY(-100%); transition: transform .3s var(--ease);
}
.mobile-nav.is-open .mobile-nav-panel { transform: none; }
.mobile-nav-panel[hidden] { display: none; }
.mobile-panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-weight: 700; }
.mobile-panel-close { border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 8px 14px; cursor: pointer; font-size: .85rem; }
.mobile-search-form { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; margin-bottom: 18px; background: var(--card); }
.mobile-search-form svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.mobile-search-form input { border: none; outline: none; background: transparent; width: 100%; }
.mobile-panel-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-panel-links a { padding: 14px 12px; border-radius: 11px; color: var(--ink); font-weight: 600; }
.mobile-panel-links a:hover, .mobile-panel-links a.active { background: var(--brand-soft); color: var(--brand); }
body.nav-locked { position: fixed; left: 0; right: 0; top: var(--nav-lock-top, 0); overflow: hidden; }

/* ============================ Layout bands ============================ */
.site-main { display: block; }
.section-band { padding: 10px 0; }
.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.text-shell { width: 100%; max-width: var(--maxw-narrow); margin: 0 auto; padding: 64px 22px; }

/* ============================ Section head ============================ */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 38em; }

/* ============================ Buttons ============================ */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  background: var(--brand); color: #fff;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.button:hover { background: var(--brand-2); color: #fff; transform: translateY(-2px); box-shadow: var(--sh); }
.button.secondary { background: transparent; color: var(--brand); border-color: var(--line); }
.button.secondary:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.button-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 1.4rem 0; }

/* ============================ Hero (home) ============================ */
.hero { padding: 10px 0 10px; }
/* 纯文字 hero 横幅（PAGE_HERO 输出结构：.hero > .container > .hero-content） */
.hero .container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.hero-content {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(48px, 7vw, 84px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand), #0c3d2f);
  box-shadow: var(--sh-lg);
  color: #fff;
}
/* 右上/左下柔和光斑装饰 */
.hero-content::before,
.hero-content::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%);
}
.hero-content::before { width: 300px; height: 300px; top: -120px; right: -90px; }
.hero-content::after { width: 260px; height: 260px; bottom: -110px; left: -80px; }
.hero-content > section { position: relative; z-index: 1; }
.hero-content h1 {
  font-family: var(--serif); color: #fff; margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.14; font-weight: 700;
  max-width: 20ch; margin-inline: auto; text-wrap: balance;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
}
.hero-media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 5; max-height: 540px; background: var(--card-2);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin: .2rem 0 1rem; }
.hero-copy > p { font-size: 1.1rem; color: var(--ink-2); max-width: 34em; }
.trust-line { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin-top: 1.2rem; flex-wrap: wrap; }
.trust-date { color: var(--muted); }

/* ============================ Start grid (home "Start Here") ============================ */
.start-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.start-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--card); box-shadow: var(--sh-sm); color: var(--ink);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.start-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
/* start-card 复用 card__media / card__body，撑满高度 */
.start-card > .card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--card-2); }
.start-card > .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.start-card:hover .card__media img { transform: scale(1.05); }
.start-card > .card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.start-card h3 { font-size: 1.15rem; margin: 0; color: var(--ink); line-height: 1.3; }
.start-card p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.start-card strong { margin-top: auto; color: var(--brand); font-size: .9rem; font-weight: 600; }

/* ============================ Card grid (news cards) ============================ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card-grid--wide { grid-template-columns: repeat(4, 1fr); }
.card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--sh-sm); color: var(--ink);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
a.card:hover { color: var(--ink); }
/* 卡片内部包了一层 <a>，需要接力撑满高度，否则 card__body 的 flex:1 失效 */
.card > a { display: flex; flex-direction: column; flex: 1; color: inherit; }
.card > a:hover { color: inherit; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--card-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
/* entry-meta：作者/浏览/分享/评论/日期，带图标（适配当前品牌色） */
.entry-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  color: var(--muted); font-weight: 600; font-size: .86rem; line-height: 1.4;
}
.entry-meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.entry-meta svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--brand-2); }
.entry-meta .meta-author { color: var(--ink); font-weight: 650; }
.entry-meta .trust-date { color: var(--muted); }
.hero-copy .entry-meta { margin-top: 18px; font-size: .94rem; gap: 6px 16px; }
.hero-copy .entry-meta svg { width: 15px; height: 15px; }
.article-hero .entry-meta { margin-top: 16px; font-size: .95rem; gap: 6px 16px; }
.article-hero .entry-meta svg { width: 15px; height: 15px; }
.card__body .entry-meta { margin-bottom: 6px; font-size: .8rem; gap: 5px 12px; }
.card__body .entry-meta svg { width: 13px; height: 13px; }
.start-card .entry-meta { margin: 2px 0; font-size: .78rem; gap: 5px 12px; }
.start-card .entry-meta svg { width: 13px; height: 13px; }
.card h3 { font-size: 1.15rem; margin: 0; line-height: 1.3; color: var(--ink); }
.card p { margin: 0; font-size: .9rem; color: var(--ink-2); }
/* card--big 属于 Featured 区块，4 列网格排布，带图，与 .card 共享基础样式 */
.card--big .card__body { padding: 1.1rem 1.1rem 1.2rem; gap: .5rem; }
.card--big h3 { font-size: 1.06rem; }
.card--big p {
  font-size: .85rem;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================ Newsletter ============================ */
.newsletter-band { padding: 8px 0 64px; }
/* .shell.newsletter 同时带两个类：外层用 shell 控宽，内容盒另起 padding */
.shell.newsletter {
  display: grid; grid-template-columns: 1fr minmax(280px, 380px); gap: 32px; align-items: center;
  background: linear-gradient(135deg, var(--brand), #0c3d2f); color: #fff;
  border-radius: var(--radius-lg); padding: 44px 48px;
  max-width: calc(var(--maxw) - 44px);
}
.newsletter h2 { color: #fff; margin: .2rem 0 .4rem; }
.newsletter p { color: rgba(255,255,255,.82); margin: 0; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; min-width: 300px; }
.newsletter-form input {
  padding: 13px 18px; border-radius: 999px; border: none; background: rgba(255,255,255,.95); font-size: .95rem;
}
.newsletter-form button {
  padding: 13px 22px; border-radius: 999px; border: none; cursor: pointer;
  background: #fff; color: var(--brand); font-weight: 700; transition: background var(--t), color var(--t);
}
.newsletter-form button:hover { background: var(--brand-2); color: #fff; }
.newsletter-form p { font-size: .78rem; color: rgba(255,255,255,.6); margin: 0; }

/* ============================ Article / detail ============================ */
.article-hero { margin: 0 auto; max-width: var(--maxw); padding: 10px 22px 8px; }
.article-hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); margin: 0 0 .8rem; }
.article-hero .card__meta { margin-bottom: 1.6rem; }
/* 源图为 1024x1536 竖图，需限高裁切，否则撑成超高竖条 */
.article-hero img {
  width: 100%; max-height: 520px; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--sh); background: var(--card-2);
}
.article-hero .caption { margin-top: .9rem; text-align: center; font-size: .9rem; }
.hero-kicker {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 1rem;
}
.caption { color: var(--muted); font-size: .95rem; }
.article-body {
  max-width: var(--maxw); margin: 0 auto 64px;
  padding: 24px 22px 0; font-size: 1.06rem; line-height: 1.85; color: var(--ink-2);
}
.article-body h2 { margin-top: 2.2rem; font-size: 1.55rem; }
.article-body h3 { margin-top: 1.6rem; font-size: 1.22rem; }
.article-body p { margin: 0 0 1.2rem; }
.article-body img { width: 100%; border-radius: var(--radius); margin: 1.8rem 0; }
.article-body blockquote { font-size: 1.12rem; margin: 1.8rem 0; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.article-body li { margin-bottom: .4rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body th { background: var(--card-2); color: var(--ink); font-weight: 600; }
.next-step { text-align: center; margin: 40px 0 0; }
/* related 推荐区块内容宽度与文章正文（--maxw）对齐 */
.related-band .shell { max-width: var(--maxw); }

/* ============================ Comments ============================ */
.comments-section { padding: 0 0 64px; }
.comments-shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.comments-shell .section-head { margin-bottom: 28px; }
.comment-form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--sh-sm); padding: 28px; margin-bottom: 36px;
}
.comment-rating { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.comment-rating-label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.comment-rating-stars { display: flex; gap: 4px; }
.comment-star-btn {
  background: none; border: 0; padding: 2px; margin: 0; cursor: pointer; line-height: 0;
  color: var(--line); transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}
.comment-star-btn svg { width: 26px; height: 26px; fill: currentColor; }
.comment-star-btn:hover { color: var(--accent); transform: scale(1.12); }
.comment-star-btn.active { color: var(--accent); }
#commentContent {
  width: 100%; min-height: 116px; resize: vertical;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--paper); font: inherit; color: var(--ink); line-height: 1.6;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
#commentContent:focus { border-color: var(--brand-2); box-shadow: var(--ring); outline: none; background: #fff; }
#commentContent::placeholder { color: var(--muted); }
.comment-form-foot { margin-top: 16px; text-align: right; }
.comment-login-hint {
  margin: 0; padding: 18px 20px; border: 1px dashed var(--line); border-radius: 11px;
  background: var(--card-2); color: var(--ink-2); text-align: center;
}
.comment-login-hint a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.comment-list { display: flex; flex-direction: column; }
.comment-item { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-item:first-child { padding-top: 0; }
.comment-avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 1rem;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.comment-name { font-weight: 600; color: var(--ink); }
.comment-date { font-size: .82rem; color: var(--muted); }
.comment-stars { display: inline-flex; gap: 2px; margin: 6px 0; }
.comment-stars svg { width: 14px; height: 14px; fill: currentColor; }
.comment-stars svg.filled { color: var(--accent); }
.comment-stars svg.empty { color: var(--line); }
.comment-text { font-size: .95rem; line-height: 1.65; color: var(--ink-2); margin: 2px 0 0; word-break: break-word; }
.comment-empty { text-align: center; color: var(--muted); padding: 36px 0; margin: 0; }
.comment-more { text-align: center; margin-top: 28px; }
.comment-toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: .92rem; box-shadow: var(--sh-lg); z-index: 999; opacity: 0;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); pointer-events: none;
}
.comment-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================ Category page ============================ */
.listing-hero { max-width: var(--maxw-narrow); margin: 0 auto; padding: 56px 22px 24px; text-align: center; }
.listing-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.listing-hero p { color: var(--ink-2); }
.choose-band { padding: 0 0 40px; }
.pill-links {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
}
.cat-pill {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-2); font-weight: 500; font-size: .9rem; background: var(--card);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.cat-pill:hover, .cat-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty-state { text-align: center; padding: 60px 22px 100px; color: var(--muted); }
.empty-icon { font-size: 2.6rem; margin-bottom: .5rem; }
.empty-text { font-size: 1.05rem; }

/* ============================ Legal & static pages ============================ */
.text-shell .eyebrow { margin-bottom: .4rem; }
.text-shell h1, .article-h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 1.2rem; }
/* legal-copy 与 article-body 同元素：已在 text-shell 内，需清掉重复的限宽与内边距 */
.article-body.legal-copy {
  max-width: none; margin: 0; padding: 0;
  font-size: 1.04rem; line-height: 1.8; color: var(--ink-2);
}
.legal-copy h1 { margin-top: 0; }
.legal-copy h2 { margin-top: 2.2rem; font-size: 1.42rem; }
.legal-copy h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.legal-copy ul, .legal-copy ol { color: var(--ink-2); }
.legal-copy a { text-decoration: underline; text-underline-offset: 3px; }

/* ============================ Contact page ============================ */
.contact-page .text-shell { max-width: var(--maxw); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; margin-top: 8px; }
.contact-intro h2 { margin-top: 0; }
/* 结构为 <dl class="contact-details"> > .contact-detail > <dt> + <dd> */
.contact-details { margin: 1.6rem 0 0; display: flex; flex-direction: column; }
.contact-detail { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-detail:first-child { border-top: 1px solid var(--line); }
.contact-detail dt {
  margin: 0 0 3px; font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.contact-detail dd { margin: 0; font-size: .98rem; color: var(--ink); }
.contact-detail dd a { color: var(--brand); font-weight: 500; }
.contact-detail dd a:hover { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--sh-sm); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.contact-field input, .contact-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--paper); font: inherit; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.contact-field input:focus, .contact-field textarea:focus { border-color: var(--brand-2); box-shadow: var(--ring); outline: none; background: #fff; }
.contact-field textarea { resize: vertical; min-height: 130px; }
.contact-field .hint { font-size: .8rem; color: var(--muted); margin: 0; }
.contact-submit {
  align-self: flex-start; padding: 12px 26px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--brand); color: #fff; font-weight: 600; transition: background var(--t), transform var(--t);
}
.contact-submit:hover { background: var(--brand-2); transform: translateY(-2px); }
.contact-note { font-size: .82rem; color: var(--muted); margin: 0; }

/* ============================ Notification (JS-injected on contact page) ============================ */
.notification {
  position: fixed; right: 22px; bottom: 22px; z-index: 200; max-width: 340px;
  padding: 14px 20px; border-radius: 12px; color: #fff; font-size: .92rem; font-weight: 500;
  box-shadow: var(--sh-lg); background: var(--ok);
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.notification.error { background: var(--err); }
.notification.show { opacity: 1; transform: none; }

/* ============================ Pagination ============================ */
.pagination, .page-nav {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 8px; margin: 8px auto 64px; padding: 0 22px; list-style: none;
}
.pagination .pagination-list {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 8px; margin: 0; padding: 0; list-style: none;
}
.pagination li, .pagination-item { list-style: none; }
.pagination a, .pagination span, .page-nav a, .page-nav span {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  color: var(--ink-2); font-size: .92rem; font-weight: 500;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.pagination a:hover, .page-nav a:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-2); }
.pagination .active, .pagination .current, .page-nav .active, .page-nav .current,
.pagination li.active a, .pagination li.active span {
  background: var(--brand); color: #fff; border-color: var(--brand);
  border-radius: 999px;
}
.pagination .disabled, .page-nav .disabled { opacity: .45; pointer-events: none; }
/* 箭头符号（内层 span）：去掉边框背景及按钮尺寸，仅显示箭头 */
.pagination .prev > span, .pagination .next > span {
  border: 0; background: transparent;
  min-width: 0; height: auto; padding: 0;
}

/* ============================ Footer ============================ */
.site-footer { background: #0e1a16; color: rgba(255,255,255,.72); margin-top: 72px; padding: 40px 0 26px; }
.footer-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
}
.footer-wrap strong { color: #fff; font-family: var(--serif); font-size: 1.2rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.68); font-size: .92rem; }
.footer-links a:hover { color: var(--brand-2); }

/* ============================ Back to top ============================ */
#backToTop {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px;
  border-radius: 50%; background: var(--brand); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--sh-lg); z-index: 60;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), background var(--t) var(--ease);
}
#backToTop.show { opacity: 1; transform: none; pointer-events: auto; }
#backToTop:hover { background: var(--brand-2); }

/* ============================ Responsive ============================ */
@media (max-width: 992px) {
  .hero { padding: 10px 0 10px; }
  .hero-inner { grid-template-columns: 1fr; gap: 5px; }
  .hero-media { aspect-ratio: 16 / 10; max-height: 380px; }
  .start-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--wide { grid-template-columns: repeat(2, 1fr); }
  .shell.newsletter { grid-template-columns: 1fr; padding: 36px 32px; }
  .newsletter-form { min-width: 0; }
}
@media (max-width: 720px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .start-grid, .card-grid, .card-grid--wide { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-band { padding: 10px 0; }
  .shell.newsletter { padding: 30px 22px; }
  .text-shell { padding: 40px 20px; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 14px; }
}
