*, *::before, *::after { box-sizing: border-box; }
/* ==========================================================================
   前台样式：页头 / 导航 / 幻灯 / 卡片 / 频道页 / 用户中心 / 页脚
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-6); }
.ico { vertical-align: -2px; }

/* 顶部通栏 */
.topbar {
  background: linear-gradient(90deg, var(--brand-900), var(--brand-700));
  color: #e7eff7; font-size: var(--fs-sm);
}
.topbar__inner { display: flex; align-items: center; gap: var(--sp-3); min-height: 40px; }
.topbar__text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__link { color: var(--gold-200); display: inline-flex; align-items: center; gap: 4px; }
.topbar__link-short { display: none; }
.topbar__close { background: none; border: 0; color: #b9cadb; padding: 4px; }
.topbar.is-hidden { display: none; }

/* 页头 */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__main { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.brand__mark {
  width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-700), var(--brand-600));
  color: #fff; font-weight: 700; letter-spacing: 1px; flex: 0 0 42px;
}
.brand__mark--light { background: rgba(255,255,255,.14); }
.brand__logo { height: 42px; width: auto; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-size: 19px; letter-spacing: .5px; color: var(--brand-900); cursor: default; }
.brand__name[data-site-name-editable] { cursor: pointer; border-bottom: 1px dashed transparent; }
.brand__name[data-site-name-editable]:hover { border-color: var(--gold-500); }
.brand__slogan { font-size: var(--fs-xs); color: var(--ink-500); letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.header__actions { display: flex; align-items: center; gap: var(--sp-2); }
.icon-btn {
  width: 40px; height: 40px; border: 0; background: transparent; border-radius: var(--r-sm);
  display: inline-grid; place-items: center; color: var(--ink-700); position: relative;
}
.icon-btn:hover { background: var(--bg-alt); color: var(--brand-700); }
.badge-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--gold-500); color: #fff;
  font-size: 11px; line-height: 18px; text-align: center;
}
.user-menu { position: relative; }
.user-menu__trigger { display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px; border-radius: var(--r-sm); color: var(--ink-700); }
.user-menu__trigger:hover { background: var(--bg-alt); }
.user-menu__name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); }
.user-menu__panel {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 156px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  display: none; z-index: var(--z-drawer);
}
.user-menu.is-open .user-menu__panel { display: block; }
.user-menu__panel a { display: block; padding: 8px 10px; border-radius: 6px; font-size: var(--fs-sm); color: var(--ink-700); }
.user-menu__panel a:hover { background: var(--bg-alt); color: var(--brand-700); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--brand-100); color: var(--brand-700); font-weight: 600;
}
.avatar--sm { width: 28px; height: 28px; font-size: 13px; }
.nav-toggle { display: none; }

/* 导航 */
.site-nav { border-top: 1px solid var(--line); }
.site-nav__inner { display: flex; align-items: center; gap: var(--sp-6); min-height: 52px; }
.nav-list { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 14px 14px; font-size: 15px; color: var(--ink-700); border-radius: 6px; }
.nav-link:hover { color: var(--brand-700); background: var(--brand-50); }
.nav-caret { display: inline-flex; transform: rotate(-90deg); color: var(--ink-300); }
.nav-item.has-child > .nav-link .nav-caret { transform: rotate(0); }
.nav-sub {
  position: absolute; left: 0; top: 100%; min-width: 180px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  display: none; z-index: var(--z-drawer);
}
.nav-item.has-child:hover > .nav-sub { display: block; }
.nav-sub .nav-item { display: block; }
.nav-sub .nav-link { display: block; padding: 8px 12px; font-size: var(--fs-sm); white-space: nowrap; }
.nav-sub-1 { left: 100%; top: 0; }

.nav-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; background: #fff; }
.nav-search input { border: 0; background: transparent; padding: 8px 14px; width: 170px; outline: none; font-size: var(--fs-sm); }
.nav-search button { border: 0; background: transparent; padding: 8px 12px; color: var(--ink-500); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; transition: transform .15s, box-shadow .15s, background .15s;
  background: var(--brand-700); color: #fff;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(13,39,66,.8); }
.btn--primary { background: linear-gradient(135deg, var(--brand-700), var(--brand-600)); }
.btn--gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); color: #2c1f07; }
.btn--ghost { background: #fff; border-color: var(--line-strong); color: var(--brand-700); }
.btn--ghost-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.btn--sm { height: 36px; padding: 0 14px; font-size: var(--fs-sm); border-radius: 8px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* 幻灯 */
.hero { position: relative; }
.hero__slider { position: relative; height: 560px; overflow: hidden; background: var(--brand-900); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero__slide.is-active { opacity: 1; pointer-events: auto; }
.hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg--1 { background: radial-gradient(1200px 500px at 20% 20%, var(--brand-600), transparent 60%), linear-gradient(135deg, var(--brand-900), var(--brand-700) 60%, var(--brand-600)); }
.hero__bg--2 { background: radial-gradient(900px 400px at 80% 10%, var(--brand-500), transparent 65%), linear-gradient(135deg, var(--brand-950), var(--brand-800)); }
.hero__bg--3 { background: radial-gradient(800px 500px at 50% 100%, var(--gold-600), transparent 70%), linear-gradient(135deg, var(--brand-800), var(--brand-600)); }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,21,36,.82), rgba(6,21,36,.28) 60%, transparent); }
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: var(--sp-4); color: #fff; max-width: 900px; margin: 0 auto; text-align: center; }
.hero__eyebrow { font-size: var(--fs-xs); letter-spacing: 3px; color: var(--gold-400); }
.hero__title { font-size: var(--fs-display); line-height: 1.15; font-weight: 700; letter-spacing: -.5px; }
.hero__desc { color: rgba(255,255,255,.82); max-width: 560px; }
.hero__actions { display: flex; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-2); flex-wrap: wrap; }
.hero__dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.hero__dots button { width: 22px; height: 4px; border: 0; border-radius: 2px; background: rgba(255,255,255,.35); }
.hero__dots button.is-active { background: var(--gold-400); }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  margin-top: -36px; position: relative; z-index: 4; box-shadow: var(--shadow-md);
}
.stat { background: #fff; padding: var(--sp-5) var(--sp-6); display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 26px; color: var(--brand-800); }
.stat span { font-size: var(--fs-sm); color: var(--ink-500); }

/* 区块 */
.section { padding: var(--sp-16) 0; }
.section--tint { background: var(--bg-alt); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-8); }
.section__eyebrow { font-size: var(--fs-xs); letter-spacing: 2.4px; color: var(--gold-600); margin-bottom: 6px; }
.section__title { font-size: var(--fs-h2); color: var(--brand-900); letter-spacing: -.3px; }
.section__more { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--ink-500); }
.section__more:hover { color: var(--brand-700); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); margin: var(--sp-8) 0 var(--sp-4); }
.section-title h2 { font-size: var(--fs-h2); color: var(--brand-900); }
.section-title h2 span { font-size: var(--fs-sm); color: var(--ink-400); font-weight: 400; margin-left: 6px; }

/* 产品卡 */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__ph, .product-detail__ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.92); font-size: 22px; letter-spacing: 2px; }
.product-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: 6px; }
.product-card__body h3 { font-size: 17px; color: var(--brand-900); }
.product-card__body p { color: var(--ink-500); font-size: var(--fs-sm); min-height: 40px; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-2); }
.price { color: var(--gold-600); font-weight: 700; font-size: 17px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: var(--r-pill); background: var(--gold-100); color: var(--gold-600); font-size: var(--fs-xs); width: fit-content; }
.tag--soft { background: var(--brand-50); color: var(--brand-700); }

/* 文章 */
.article-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--sp-8); }
.article-list { display: flex; flex-direction: column; }
.article-row { padding: var(--sp-5) 0; border-bottom: 1px dashed var(--line); }
.article-row:first-child { padding-top: 0; }
.article-row__meta { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--ink-400); margin-bottom: 6px; }
.article-row h3 { font-size: 18px; margin-bottom: 4px; }
.article-row h3 a:hover { color: var(--brand-700); }
.article-row p { color: var(--ink-500); font-size: var(--fs-sm); }
.topic-aside { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); height: fit-content; }
.topic-aside__title { font-size: 17px; color: var(--brand-900); margin-bottom: var(--sp-4); }
.topic-mini { display: grid; grid-template-columns: 40px 1fr; gap: 2px 10px; padding: var(--sp-3) 0; border-top: 1px dashed var(--line); }
.topic-mini__num { grid-row: span 2; font-family: var(--font-mono); color: var(--gold-600); font-size: 13px; }
.topic-mini__name { font-weight: 600; color: var(--ink-800); }
.topic-mini__desc { font-size: var(--fs-xs); color: var(--ink-400); }
.topic-aside__more { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--brand-700); }

.forum-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.forum-strip__item { background: #fff; padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: 2px; }
.forum-strip__item:hover { background: var(--brand-50); }
.forum-strip__title { font-weight: 600; color: var(--ink-800); }
.forum-strip__meta { font-size: var(--fs-xs); color: var(--ink-400); }

/* 频道页头 */
.page-banner { background: linear-gradient(135deg, var(--brand-900), var(--brand-700)); color: #fff; padding: var(--sp-16) 0 var(--sp-12); }
.page-banner--article { background: linear-gradient(135deg, var(--brand-900), var(--brand-700) 55%, var(--brand-600)); }
.page-banner--product { background: linear-gradient(135deg, var(--brand-950), var(--brand-800) 60%, var(--brand-500)); }
.page-banner--topic { background: linear-gradient(135deg, var(--brand-950), var(--gold-600) 50%, var(--brand-700)); }
.page-banner--forum { background: linear-gradient(135deg, var(--brand-950), var(--brand-700)); }
.page-banner__eyebrow { font-size: var(--fs-xs); letter-spacing: 3px; color: var(--gold-400); margin-bottom: 8px; }
.page-banner h1 { font-size: var(--fs-h1); letter-spacing: -.5px; }
.page-banner p { color: rgba(255,255,255,.76); margin-top: 8px; max-width: 640px; }
.page-body { padding: var(--sp-10) var(--sp-6) var(--sp-16); }

.filter-bar { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.filter-chip { padding: 6px 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-500); }
.filter-chip.is-active { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }

.article-feed { display: flex; flex-direction: column; gap: var(--sp-4); }
.article-card { display: grid; grid-template-columns: 240px 1fr; gap: var(--sp-6); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); }
.article-card__media { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/10; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__media span { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; }
.article-card__body { display: flex; flex-direction: column; gap: 6px; padding: var(--sp-2) 0; }
.article-card__body h2 { font-size: 20px; }
.meta { display: flex; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--ink-400); align-items: center; }
.text-link { color: var(--brand-700); font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 4px; }
.text-link--danger { color: var(--danger); background: none; border: 0; padding: 0; }

.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: var(--fs-sm); color: var(--ink-400); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.breadcrumb em { font-style: normal; color: var(--ink-700); }
.breadcrumb--light, .breadcrumb--light em { color: rgba(255,255,255,.7); }

.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-8); align-items: start; }
.detail-head h1 { font-size: var(--fs-h1); line-height: 1.3; margin-bottom: var(--sp-3); color: var(--brand-900); }
.detail-cover { width: 100%; border-radius: var(--r-lg); margin: var(--sp-6) 0; }
.rich-text { color: var(--ink-700); line-height: 1.9; font-size: 15.5px; }
.rich-text p { margin: 0 0 var(--sp-4); }
.rich-text h2 { font-size: 22px; margin: var(--sp-8) 0 var(--sp-3); color: var(--brand-900); }
.rich-text h3 { font-size: 18px; margin: var(--sp-6) 0 var(--sp-2); }
.rich-text ul { list-style: disc; padding-left: 1.4em; margin-bottom: var(--sp-4); }
.rich-text img { border-radius: var(--r-md); margin: var(--sp-4) 0; }
.detail-foot { margin-top: var(--sp-8); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); margin-bottom: var(--sp-4); }
.side-card h3 { font-size: 16px; margin-bottom: var(--sp-3); color: var(--brand-900); }
.side-list li { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-3) 0; border-top: 1px dashed var(--line); }
.side-list li a { font-size: var(--fs-sm); }
.side-list time { font-size: var(--fs-xs); color: var(--ink-300); }
.side-card--cta { background: linear-gradient(150deg, var(--brand-800), var(--brand-600)); color: #fff; border: 0; }
.side-card--cta h3 { color: #fff; }
.side-card--cta p { color: rgba(255,255,255,.78); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.muted { color: var(--ink-400); }

/* 产品详情 */
.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--sp-10); align-items: start; margin-bottom: var(--sp-10); }
.product-detail__media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); border: 1px solid var(--line); }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__info h1 { font-size: var(--fs-h1); margin: 8px 0; color: var(--brand-900); }
.product-detail__sub { color: var(--ink-500); margin-bottom: var(--sp-4); }
.product-detail__price { display: flex; align-items: baseline; gap: var(--sp-4); padding: var(--sp-4); background: var(--gold-100); border-radius: var(--r-md); margin-bottom: var(--sp-5); }
.product-detail__price strong { font-size: 30px; color: var(--gold-600); }
.product-detail__price span { font-size: var(--fs-xs); color: var(--ink-500); }
.buy-box { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.qty button { width: 36px; height: 40px; border: 0; background: #fff; color: var(--ink-500); }
.qty input { width: 48px; height: 40px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; }
.qty--sm button { width: 30px; height: 34px; }
.qty--sm input { width: 40px; height: 34px; }
.product-detail__points { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); color: var(--ink-500); }
.side-products li { padding: var(--sp-3) 0; border-top: 1px dashed var(--line); }
.side-products a { display: flex; gap: var(--sp-3); align-items: center; }
.side-products__thumb { width: 52px; height: 52px; border-radius: var(--r-sm); display: grid; place-items: center; color: #fff; flex: 0 0 52px; }
.side-products strong { display: block; font-size: var(--fs-sm); }
.side-products em { font-style: normal; color: var(--gold-600); font-size: var(--fs-xs); }

/* 专题 */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.topic-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.topic-card__media { aspect-ratio: 16/8; overflow: hidden; background: var(--bg-alt); display: grid; place-items: center; }
.topic-card__media img { width: 100%; height: 100%; object-fit: cover; }
.topic-card__media span { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 4px; }
.topic-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: 8px; }
.topic-card__body h2 { font-size: 19px; color: var(--brand-900); }
.topic-card__body p { color: var(--ink-500); font-size: var(--fs-sm); }
.topic-hero { background: linear-gradient(135deg, var(--brand-950), var(--brand-700) 70%); color: #fff; padding: var(--sp-16) 0 var(--sp-12); }
.topic-hero h1 { font-size: var(--fs-h1); }
.topic-hero p { color: rgba(255,255,255,.78); margin-top: 10px; max-width: 720px; }
.topic-intro { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); }
.topic-articles { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.topic-article { display: flex; gap: var(--sp-4); align-items: center; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.topic-article:last-child { border-bottom: 0; }
.topic-article:hover { background: var(--brand-50); }
.topic-article__num { font-family: var(--font-mono); color: var(--gold-600); font-size: 13px; flex: 0 0 24px; }
.topic-article__body { flex: 1; display: flex; flex-direction: column; }
.topic-article__body em { font-style: normal; color: var(--ink-400); font-size: var(--fs-xs); }

/* 论坛 */
.notice { background: var(--gold-100); border: 1px solid var(--gold-200); color: #6b4a12; border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
.board-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.board-row { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: var(--brand-50); }
.board-row__icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; flex: 0 0 40px; }
.board-row__main { flex: 1; display: flex; flex-direction: column; }
.board-row__main em { font-style: normal; font-size: var(--fs-xs); color: var(--ink-400); }
.board-row__last { text-align: right; font-size: var(--fs-xs); color: var(--ink-500); display: flex; flex-direction: column; gap: 2px; }
.board-row__last em { font-style: normal; color: var(--ink-300); }
.thread-list { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.thread-row { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: var(--brand-50); }
.thread-row__title { flex: 1; font-weight: 500; }
.thread-row__meta { display: flex; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--ink-400); flex-wrap: wrap; }
.thread-row__meta em { font-style: normal; color: var(--brand-600); background: var(--brand-50); padding: 1px 6px; border-radius: 4px; }
.board-head { margin-bottom: var(--sp-5); }
.board-head h1 { font-size: var(--fs-h1); color: var(--brand-900); }
.board-head p { color: var(--ink-500); font-size: var(--fs-sm); }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); }
.post-card__head h1 { font-size: 24px; color: var(--brand-900); margin-bottom: var(--sp-3); }
.post-card .rich-text { margin-top: var(--sp-5); }
.reply-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.reply-item { display: flex; gap: var(--sp-3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); }
.reply-item__body { flex: 1; }
.reply-item__meta { display: flex; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--ink-400); margin-bottom: 4px; }
.reply-item__meta strong { color: var(--ink-800); font-size: var(--fs-sm); }
.panel-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: var(--fs-sm); color: var(--ink-700); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 10px 12px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(42,106,157,.12); }
.field-hint { font-size: var(--fs-xs); color: var(--ink-400); font-style: normal; }
.form-hint { font-size: var(--fs-xs); color: var(--ink-400); }

/* 购物车 / 结算 */
.cart-list { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 88px 1fr 160px 110px 40px; gap: var(--sp-4); align-items: center; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row__media { aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; }
.cart-row__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-row__media span { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 13px; }
.cart-row__main h3 { font-size: 15px; }
.cart-row__qty { display: flex; align-items: center; gap: var(--sp-2); }
.cart-row__amount { font-weight: 600; color: var(--gold-600); }
.cart-row__del { justify-self: end; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: var(--sp-5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); margin-top: var(--sp-4); flex-wrap: wrap; }
.cart-summary__total strong { font-size: 24px; color: var(--gold-600); }
.cart-summary__actions { display: flex; gap: var(--sp-3); }
.checkout-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--sp-6); align-items: start; }
.checkout-form h3 { font-size: 16px; }
.checkout-side { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); }
.checkout-items li { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.checkout-total { display: flex; justify-content: space-between; margin-top: var(--sp-4); font-weight: 600; }
.checkout-total strong { color: var(--gold-600); font-size: 20px; }
.success-hero { text-align: center; padding: var(--sp-10) 0 var(--sp-8); }
.success-hero__tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: inline-grid; place-items: center; margin-bottom: var(--sp-4); }
.success-hero h1 { font-size: var(--fs-h2); color: var(--brand-900); }
.success-hero p { color: var(--ink-500); font-size: var(--fs-sm); }
.success-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.kv-list { display: grid; grid-template-columns: 76px 1fr; gap: 8px; font-size: var(--fs-sm); }
.kv-list dt { color: var(--ink-400); }
.center-actions { display: flex; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-8); flex-wrap: wrap; }

/* 用户中心 */
.auth-page { padding: var(--sp-16) var(--sp-6); display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-8); box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 24px; color: var(--brand-900); }
.auth-sub { color: var(--ink-500); font-size: var(--fs-sm); margin: 6px 0 var(--sp-6); }
.auth-card form { display: flex; flex-direction: column; gap: var(--sp-4); }
.auth-alt { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--ink-500); text-align: center; }
.auth-alt a { color: var(--brand-700); }
.user-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-6); align-items: start; }
.user-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); }
.user-nav__profile { display: flex; align-items: center; gap: var(--sp-3); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
.user-nav__profile strong { font-size: 15px; }
.user-nav__profile em { font-style: normal; font-size: var(--fs-xs); color: var(--ink-400); margin-left: auto; }
.user-nav ul { margin-top: var(--sp-3); display: flex; flex-direction: column; }
.user-nav li a { display: block; padding: 9px 10px; border-radius: 6px; font-size: var(--fs-sm); color: var(--ink-600, var(--ink-700)); }
.user-nav li.is-active a, .user-nav li a:hover { background: var(--brand-50); color: var(--brand-700); }
.user-main { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); }
.user-head h1 { font-size: 22px; color: var(--brand-900); }
.user-head p { color: var(--ink-500); font-size: var(--fs-sm); margin-top: 4px; }
.user-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-top: var(--sp-5); }
.user-stat { background: var(--brand-50); border-radius: var(--r-md); padding: var(--sp-4); text-align: center; }
.user-stat strong { display: block; font-size: 24px; color: var(--brand-800); }
.user-stat span { font-size: var(--fs-xs); color: var(--ink-500); }
.mini-table__head, .mini-table__row { display: grid; grid-template-columns: 1.4fr .8fr .8fr .8fr; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.mini-table__head { color: var(--ink-400); font-size: var(--fs-xs); }
.status { font-style: normal; font-size: var(--fs-xs); padding: 2px 8px; border-radius: var(--r-pill); background: var(--bg-alt); color: var(--ink-500); }
.status--0 { background: var(--warn-bg); color: var(--warn); }
.status--1 { background: var(--ok-bg); color: var(--ok); }
.status--2 { background: var(--brand-50); color: var(--brand-700); }
.status--3 { background: #eceff5; color: var(--ink-500); }
.status--4 { background: var(--danger-bg); color: var(--danger); }
.order-list { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-4); }
.order-card { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.order-card__head { display: flex; justify-content: space-between; padding: var(--sp-3) var(--sp-4); background: var(--bg-alt); font-size: var(--fs-sm); }
.order-card__body { display: flex; gap: var(--sp-4); align-items: center; padding: var(--sp-4); font-size: var(--fs-sm); flex-wrap: wrap; }
.order-card__body .text-link { margin-left: auto; }

/* 搜索 / 分页 / 空态 */
.search-bar { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.search-bar input { flex: 1; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 10px 14px; }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: var(--sp-8); }
.pager__btn { min-width: 36px; height: 36px; padding: 0 10px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: var(--fs-sm); color: var(--ink-600); }
.pager__btn.is-current { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.pager__gap { color: var(--ink-300); }
.empty { text-align: center; color: var(--ink-400); padding: var(--sp-10) 0; font-size: var(--fs-sm); }
.error-page { text-align: center; padding: var(--sp-20) var(--sp-6); }
.error-page__code { font-size: 64px; font-weight: 700; color: var(--brand-100); letter-spacing: 4px; }
.error-page h1 { font-size: var(--fs-h2); color: var(--brand-900); margin-top: var(--sp-3); }
.error-page p { color: var(--ink-500); margin-top: 6px; }

/* 页脚 */
.site-footer { background: var(--brand-950); color: #b9cadb; margin-top: var(--sp-10); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-10); padding: var(--sp-16) var(--sp-6) var(--sp-12); }
.footer__logo { display: flex; align-items: center; gap: var(--sp-3); color: #fff; margin-bottom: var(--sp-4); }
.footer__logo img { height: 40px; }
.footer__about { font-size: var(--fs-sm); color: rgba(255,255,255,.62); margin-bottom: var(--sp-5); max-width: 360px; }
.footer__contact { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-sm); }
.footer__contact span { display: flex; gap: 8px; align-items: center; color: rgba(255,255,255,.72); }
.footer__nav h4, .footer__cta h4 { color: #fff; font-size: 15px; margin-bottom: var(--sp-4); }
.footer-nav__item a { font-size: var(--fs-sm); color: rgba(255,255,255,.68); display: inline-block; padding: 5px 0; }
.footer-nav__item a:hover { color: var(--gold-400); }
.footer-nav__sub { padding-left: var(--sp-4); border-left: 1px solid rgba(255,255,255,.12); margin: 4px 0 4px 2px; }
.footer-nav__sub a { font-size: var(--fs-xs); color: rgba(255,255,255,.5); }
.footer__cta p { font-size: var(--fs-sm); color: rgba(255,255,255,.62); margin-bottom: var(--sp-5); max-width: 280px; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: var(--sp-4) 0; font-size: var(--fs-xs); color: rgba(255,255,255,.45); }
.footer__bar-inner { display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.footer__meta { display: flex; gap: var(--sp-4); }
.footer__meta a:hover { color: #fff; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal__mask { position: absolute; inset: 0; background: rgba(6,21,36,.55); backdrop-filter: blur(2px); }
.modal__body { position: relative; width: min(420px, calc(100vw - 32px)); background: #fff; border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-lg); }
.modal__body h3 { font-size: 17px; margin-bottom: var(--sp-4); }
.modal__actions { display: flex; justify-content: flex-end; gap: var(--sp-3); margin-top: var(--sp-5); }

/* 移动端：抽屉导航 */
@media (max-width: 1024px) {
  .nav-search { display: none; }
  .nav-list { gap: 0; }
  .nav-link { padding: 12px 10px; font-size: 14px; }
  .header__register { display: none; }
}
@media (max-width: 860px) {
  .hero__slider { height: 460px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); margin-top: -20px; }
  .section { padding: var(--sp-12) 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .article-split { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-grid { grid-template-columns: 1fr; }
  .success-grid { grid-template-columns: 1fr; }
  .user-layout { grid-template-columns: 1fr; gap: 14px; }
  .user-nav { padding: 13px 14px; min-width: 0; }
  .user-main { min-width: 0; }
  .user-nav__profile { padding-bottom: 10px; }
  .user-nav ul {
    flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: 10px;
    width: 100%; min-width: 0; max-width: 100%;
    overflow: visible; padding-bottom: 2px;
  }
  .user-nav li { flex: 0 0 auto; }
  .user-nav li a {
    display: inline-flex; align-items: center; padding: 8px 11px; border-radius: 8px;
    background: #f5f8fa; white-space: nowrap; font-size: 12px;
  }
  .user-nav li.is-active a { background: var(--brand-50); }
  .cart-row { grid-template-columns: 64px 1fr 90px; grid-auto-rows: auto; }
  .cart-row__amount { grid-column: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .container, .page-body { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .nav-toggle { display: inline-grid; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h));
    background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s ease;
    overflow-y: auto; z-index: var(--z-drawer);
  }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav__inner { display: block; padding: var(--sp-3) var(--sp-4) var(--sp-6); }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { display: flex; justify-content: space-between; padding: 13px 4px; font-size: 15px; }
  .nav-sub { position: static; display: none; border: 0; box-shadow: none; padding: 0 0 8px 12px; background: transparent; min-width: 0; }
  .nav-sub-1 { padding-left: 24px; }
  .nav-item.is-open > .nav-sub { display: block; }
  .nav-caret { transform: rotate(0); }
  .nav-item.has-child.is-open > .nav-link .nav-caret { transform: rotate(180deg); }
  .nav-sub .nav-link { padding: 8px 4px; font-size: 14px; color: var(--ink-500); }

  .brand__slogan { display: none; }
  .brand__name { font-size: 17px; }
  .header__login { display: none; }
  .header__actions .icon-btn { width: 36px; height: 36px; }
  .user-menu__name { display: none; }

  .hero__slider { height: 420px; }
  .hero__content { gap: var(--sp-3); }
  .hero__desc { font-size: var(--fs-sm); }
  .hero__stats { border-radius: var(--r-md); margin: 0 var(--sp-4); margin-top: -18px; width: auto; }
  .product-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .topic-grid { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; }
  .article-card__media { aspect-ratio: 16/9; }
  .forum-strip { grid-template-columns: 1fr; }
  .page-banner { padding: var(--sp-10) 0 var(--sp-8); }
  .page-body { padding-top: var(--sp-6); padding-bottom: var(--sp-10); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); padding-top: var(--sp-10); }
  .form-row { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 56px 1fr; }
  .cart-row__qty { grid-column: 2; }
  .cart-row__amount { grid-column: 2; }
  .cart-row__del { grid-column: 2; justify-self: start; }
  .user-main { padding: var(--sp-4); }
  .thread-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .thread-row__meta { flex-wrap: wrap; }
  .mini-table__head, .mini-table__row { grid-template-columns: 1.4fr .8fr .8fr; }
  .mini-table__head span:last-child, .mini-table__row span:last-child { display: none; }
  .footer__bar-inner { flex-direction: column; }
}

@media (max-width: 420px) {
  .hero__slider { height: 380px; }
  .hero__title { font-size: 26px; }
  .hero__actions .btn { width: 100%; }
  .stat { padding: var(--sp-4); }
  .stat strong { font-size: 22px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .product-card__body { padding: var(--sp-4); }
  .section-title { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cart-summary { flex-direction: column; align-items: stretch; }
  .cart-summary__actions .btn { flex: 1; }
  .success-grid { gap: var(--sp-3); }
  .user-stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .order-card__body { flex-direction: column; align-items: flex-start; gap: 4px; }
  .order-card__body .text-link { margin-left: 0; }
}

/* 语言切换 */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 3px 8px; font-size: var(--fs-xs); color: var(--ink-500); line-height: 1.4; }
.lang-switch a.is-active { background: var(--brand-800); color: #fff; }
.lang-switch a:hover { color: var(--brand-700); }

/* 悬浮客服 / 返回顶部 */
.support-dock { position: fixed; top: auto; bottom: var(--support-y, 24px); right: var(--support-x, 24px); z-index: var(--z-modal, 60); display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.support-dock[data-side="left"] { right: auto; left: var(--support-x, 24px); align-items: flex-start; }
.support-panel { order: 1; }
.support-backtop { order: 2; }
.support-fab { order: 3; }
.support-fab {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); color: #fff;
  box-shadow: 0 10px 24px rgba(7, 25, 44, .24); cursor: pointer; font-size: var(--fs-sm);
}
.support-fab:hover { transform: translateY(-1px); }
.support-panel {
  width: 286px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg, 0 18px 40px rgba(7,25,44,.18)); overflow: hidden;
}
.support-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--brand-800); color: #fff; }
.support-close { border: 0; background: transparent; color: #dce7f1; padding: 4px; }
.support-list { overflow-y: auto; overscroll-behavior: contain; }
.support-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.support-item:last-child { border-bottom: 0; }
.support-item:hover { background: var(--brand-50); }
.support-item__ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-700); flex: none; }
.support-item__text { display: flex; flex-direction: column; min-width: 0; }
.support-item__text b { font-size: var(--fs-sm); color: var(--ink-800); }
.support-item__text small { font-size: var(--fs-xs); color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-empty { padding: 18px 16px; color: var(--ink-500); font-size: var(--fs-sm); }
.support-backtop {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand-700);
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(7,25,44,.14); cursor: pointer; flex: 0 0 auto;
}
.support-backtop[hidden] { display: none; }
.support-qr-body { text-align: center; }
.support-qr-body img { width: 220px; height: 220px; object-fit: contain; margin: 12px auto; border: 1px solid var(--line); border-radius: var(--r-md); }
@media (max-width: 640px) {
  .support-fab__label { display: none; }
  .support-fab { padding: 11px; border-radius: 50%; }
  .support-dock { top: auto; bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   移动端 App 化：紧凑页头、抽屉入口、底部快捷导航与更克制的间距
   ========================================================================== */
.mobile-tabbar, .mobile-drawer-top, .mobile-lang-row, .mobile-shortcuts { display: none; }
.mobile-tabbar__item { position: relative; }
.mobile-tabbar__item span { line-height: 1.2; }

@media (max-width: 768px) {
  .topbar__inner { min-height: 34px; gap: 6px; }
  .topbar__text { font-size: 12px; line-height: 1.4; }
  .topbar__link { font-size: 12px; gap: 2px; flex: 0 0 auto; }
  .topbar__link-full { display: none; }
  .topbar__link-short { display: inline; }
  .topbar__close { flex: 0 0 auto; padding: 2px; }

  .header__main { min-height: 56px; gap: 8px; }
  .brand { flex: 1 1 auto; gap: 8px; min-width: 0; overflow: hidden; }
  .brand__mark { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; font-size: 13px; }
  .brand__logo { height: 36px; }
  .brand__text { flex: 1 1 auto; min-width: 0; overflow: hidden; }
  .brand__name { display: block; max-width: 100%; font-size: 18px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand__slogan { display: none; }
  .header__actions { flex: 0 0 auto; gap: 2px; }
  .header__actions > .lang-switch { display: none; }
  .header__actions .icon-btn { width: 36px; height: 36px; }
  .header__login, .header__register { display: none; }
  .user-menu__trigger { padding: 4px; }

  .site-nav {
    position: absolute; inset: 100% 0 auto 0; max-height: calc(100vh - 56px); z-index: 90;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
  }
  .site-nav.is-open { height: auto; }
  .site-nav__inner { display: flex; flex-direction: column; align-items: stretch; min-height: 100%; padding: 14px var(--sp-4) calc(18px + env(safe-area-inset-bottom)); }
  .mobile-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; padding-top: 0; }
  .mobile-shortcuts a { display: flex; align-items: center; gap: 8px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); color: var(--ink-600); font-size: 13px; }
  .mobile-lang-row { margin-top: auto; }
  body.nav-open { overflow: hidden; }
  body.nav-open .mobile-tabbar, body.nav-open .support-dock { display: none; }
  .mobile-tabbar { z-index: 80; }

  .mobile-drawer-top {
    display: flex; align-items: center; min-height: 44px; padding-bottom: 14px;
    margin-bottom: 8px; border-bottom: 1px solid var(--line);
  }
  .mobile-auth { display: flex; gap: 10px; width: 100%; }
  .mobile-auth .btn { flex: 1; height: 40px; }
  .mobile-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .mobile-user strong { display: block; font-size: 15px; color: var(--ink-800); }
  .mobile-user small { display: block; font-size: 11px; color: var(--ink-400); }

  .mobile-lang-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-500); font-size: 13px; }
  .mobile-lang-row .lang-switch a { padding: 5px 12px; }

  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .mobile-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line); border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 28px rgba(7,25,44,.12);
  }
  .mobile-tabbar__item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 2px 6px; border-radius: 11px;
    color: var(--ink-600); font-size: 12px; font-weight: 600;
    transition: background .18s, color .18s, box-shadow .18s;
  }
  .mobile-tabbar__item.is-active {
    color: #fff; background: var(--brand-800);
    box-shadow: 0 5px 14px -6px rgba(13,39,66,.55);
  }
  .mobile-tabbar__item .ico { width: 22px; height: 22px; stroke-width: 2; }

  .hero__slider { height: 340px; }
  .hero__content { gap: 12px; max-width: none; margin: 0; align-items: stretch; text-align: left; }
  .hero__actions { justify-content: flex-start; }
  .hero__eyebrow { font-size: 11px; letter-spacing: 2px; }
  .hero__title { font-size: 28px; line-height: 1.2; }
  .hero__desc { font-size: 14px; line-height: 1.6; }
  .hero__actions { gap: 10px; margin-top: 4px; flex-wrap: nowrap; }
  .hero__actions .btn { flex: 1 1 0; width: auto; min-width: 0; padding: 0 12px; font-size: 14px; }
  .hero__stats { margin-top: -14px; }
  .stat { padding: 14px 16px; }
  .stat strong { font-size: 21px; line-height: 1.2; }
  .stat span { font-size: 12px; }

  .section { padding: 40px 0; }
  .page-banner { padding: 36px 0 30px; }
  .page-banner h1 { font-size: 28px; line-height: 1.25; }
  .page-banner p { font-size: 14px; }
  .page-body { padding-top: 24px; padding-bottom: 40px; }

  .board-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 3px; align-items: center; }
  .board-row__icon { grid-column: 1; grid-row: 1 / 3; }
  .board-row__main { grid-column: 2; grid-row: 1; min-width: 0; }
  .board-row__main strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .board-row__last { grid-column: 2; grid-row: 2; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; text-align: left; }
  .board-row__last span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .board-row__last em { flex: 0 0 auto; }

  .support-dock { top: auto; bottom: calc(78px + env(safe-area-inset-bottom)); right: 14px; }
  .support-panel { width: calc(100vw - 28px); max-width: none; }
  .support-fab { width: 40px; height: 40px; padding: 9px; }
  .support-fab__label { display: none; }
  .product-card__foot { padding-right: 52px; }
}

@media (max-width: 420px) {
  .hero__actions { flex-wrap: nowrap; }
  .hero__actions .btn { width: auto; flex: 1 1 0; }
  .section__head { gap: 6px; }
}

/* ===== 公告条 / 评论 / 方案表单 / 追溯 ===== */
.announcement { position: relative; z-index: 50; background: var(--brand-900); color: #fff; }
.announcement--success { background: #1f5a46; }
.announcement--warning { background: #8a5a19; }
.announcement__inner { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 34px 6px 0; font-size: 13px; }
.announcement__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); flex: 0 0 7px; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.announcement__inner strong { font-weight: 600; white-space: nowrap; }
.announcement__text { color: rgba(255,255,255,.72); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announcement__close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; }

.comments { margin-top: var(--sp-8); }
.comment-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-3); display: flex; flex-direction: column; gap: 8px; margin-top: var(--sp-3); }
.comment-form textarea { width: 100%; min-height: 82px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); resize: vertical; font: inherit; font-size: 14px; outline: none; }
.comment-form textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(42,106,157,.1); }
.comment-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.emoji-panel { display: flex; flex-wrap: wrap; gap: 2px; }
.emoji-panel button { width: 30px; height: 30px; border: 0; border-radius: 6px; background: var(--bg-alt); cursor: pointer; font-size: 16px; line-height: 1; }
.emoji-panel button:hover { background: var(--brand-50); }
.comment-list { margin-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.comment-item { display: flex; gap: var(--sp-3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); }
.comment-item__body { flex: 1; min-width: 0; }
.comment-item__body header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.comment-item__body header strong { font-size: 14px; color: var(--ink-800); }
.comment-item__body header time { font-size: 11px; color: var(--ink-400); }
.comment-item__body header em { font-style: normal; font-size: 10px; color: var(--brand-600); }
.comment-item__body p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink-600); }
.comment-item__actions { margin-top: 6px; font-size: 12px; }
.comment-item__actions button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--brand-600); }
.comment-item[style*="--depth:1"], .comment-item[style*="--depth:2"], .comment-item[style*="--depth:3"], .comment-item[style*="--depth:4"], .comment-item[style*="--depth:5"] { margin-left: calc(var(--sp-5) * (var(--depth) + 1)); background: #fbfcfe; }
.reply-item[style*="--depth:1"], .reply-item[style*="--depth:2"], .reply-item[style*="--depth:3"], .reply-item[style*="--depth:4"], .reply-item[style*="--depth:5"] { margin-left: calc(var(--sp-5) * (var(--depth) + 1)); background: #fbfcfe; }
.reply-item__body > .reply-item, .comment-item__body > .comment-item { margin-top: var(--sp-3); }

.lead-page { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--sp-6); align-items: start; }
.lead-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.lead-hero { padding: var(--sp-6); border-radius: var(--r-lg); background: linear-gradient(160deg, var(--brand-900), #163d31); color: #fff; position: sticky; top: 90px; }
.eyebrow { display: inline-block; font-size: 11px; letter-spacing: .12em; color: var(--gold-400); margin-bottom: 12px; }
.lead-hero h1 { font-size: clamp(24px, 3vw, 36px); line-height: 1.25; margin: 0 0 10px; }
.lead-hero p { color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.8; }
.lead-points { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13px; color: rgba(255,255,255,.82); }
.lead-points li { display: flex; align-items: center; gap: 8px; }
.lead-form { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .field--full { grid-column: 1 / -1; }
.lead-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.lead-form__foot .muted { font-size: 12px; margin: 0; }
@media (max-width: 640px) { .lead-steps { grid-template-columns: 1fr; } }
@media (max-width: 768px) { body.lead-page-body .support-dock { display: none; } }
.lead-success { align-items: flex-start; text-align: left; }
.lead-success h2 { margin: 0; }
.lead-success p { color: var(--ink-500); }
.lead-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 0; }
.lead-steps > div { padding: 14px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.lead-steps span { color: var(--gold-600); font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.lead-steps strong { display: block; margin-top: 5px; color: var(--brand-900); font-size: 13px; }
.lead-steps p { margin-top: 4px; color: var(--ink-500); font-size: 11px; line-height: 1.6; }

.trace-head { max-width: 720px; margin-bottom: var(--sp-5); }
.trace-head h1 { font-size: clamp(24px, 3.2vw, 38px); margin: 0 0 10px; color: var(--brand-900); }
.trace-head p { color: var(--ink-500); line-height: 1.8; }
.trace-search { display: flex; gap: 10px; max-width: 720px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.trace-search input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 14px; outline: none; }
.trace-search input:focus { border-color: var(--brand-500); }
.trace-hint { font-size: 12px; color: var(--ink-400); margin: 8px 0 var(--sp-5); }
.trace-hint button { border: 0; background: none; color: var(--brand-600); padding: 0; cursor: pointer; text-decoration: underline; }
.trace-summary { display: flex; gap: 20px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r-md); background: var(--brand-50); margin-bottom: var(--sp-4); }
.trace-summary div { display: flex; flex-direction: column; gap: 2px; }
.trace-summary span { font-size: 11px; color: var(--ink-400); }
.trace-summary strong { font-size: 15px; color: var(--brand-900); }
.trace-timeline { display: flex; flex-direction: column; gap: var(--sp-3); position: relative; }
.trace-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); }
.trace-card header { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.trace-card__index { width: auto; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 999px; background: var(--brand-600); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; white-space: nowrap; flex: 0 0 auto; }
.trace-card header div { flex: 1; }
.trace-card header strong { display: block; font-size: 15px; color: var(--brand-900); }
.trace-card header time { font-size: 11px; color: var(--ink-400); }
.trace-card__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.trace-card__grid div { background: var(--bg-alt); border-radius: var(--r-sm); padding: 9px 10px; min-width: 0; }
.trace-card__grid small { display: block; font-size: 10px; color: var(--ink-400); margin-bottom: 3px; }
.trace-card__grid strong { display: block; font-size: 13px; color: var(--ink-800); }
.trace-card__grid em { display: block; font-style: normal; font-size: 11px; color: var(--ink-400); margin-top: 2px; overflow-wrap: anywhere; }
.trace-card__note { margin: 10px 0 0; font-size: 12px; color: var(--ink-500); }
.trace-about { margin-top: var(--sp-8); }
.trace-elements { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.trace-elements div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); }
.trace-elements span { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); font-size: 13px; font-weight: 700; white-space: nowrap; margin-bottom: 8px; }
.trace-elements strong { display: block; font-size: 13px; color: var(--brand-900); overflow-wrap: anywhere; }
.trace-elements p { margin: 5px 0 0; font-size: 12px; color: var(--ink-400); line-height: 1.7; overflow-wrap: anywhere; }

.user-nav__badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; font-style: normal; line-height: 18px; text-align: center; }
.user-nav li a { display: flex; align-items: center; gap: 6px; }
.user-actions-right { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.message-list--user { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }

@media (max-width: 900px) {
  .lead-page { grid-template-columns: 1fr; }
  .lead-hero { position: static; }
  .trace-card__grid { grid-template-columns: 1fr 1fr; }
  .trace-elements { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .announcement__text { display: none; }
  .announcement__inner { padding-right: 36px; }
  .form-grid { grid-template-columns: 1fr; }
  .comment-item { padding: 12px; }
  .comment-item[style*="--depth:1"], .comment-item[style*="--depth:2"], .comment-item[style*="--depth:3"], .comment-item[style*="--depth:4"], .comment-item[style*="--depth:5"] { margin-left: calc(var(--sp-3) * var(--depth)); }
  .reply-item[style*="--depth:1"], .reply-item[style*="--depth:2"], .reply-item[style*="--depth:3"], .reply-item[style*="--depth:4"], .reply-item[style*="--depth:5"] { margin-left: calc(var(--sp-3) * var(--depth)); }
  .trace-search { flex-direction: column; }
  .trace-search .btn { width: 100%; }
  .trace-card__grid { grid-template-columns: 1fr; }
  .trace-elements { grid-template-columns: 1fr; }
  .trace-elements div { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 14px; }
  .trace-elements span { width: auto; min-width: 40px; height: 40px; padding: 0 9px; margin: 0; border-radius: 10px; font-size: 13px; white-space: nowrap; grid-column: 1; grid-row: 1 / 3; }
  .trace-elements strong { grid-column: 2; grid-row: 1; align-self: center; font-size: 14px; }
  .trace-elements p { grid-column: 2; grid-row: 2; margin-top: 2px; }
}

.user-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: var(--sp-4) 0 var(--sp-5); }
.user-shortcuts a { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--brand-700); font-size: 13px; }
.user-shortcuts a:hover { border-color: var(--brand-300); background: var(--brand-50); }
@media (max-width: 640px) { .user-shortcuts { grid-template-columns: 1fr; } }

.message-item { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.message-item:last-child { border-bottom: 0; }
.message-item.is-unread { background: #fffdf4; box-shadow: inset 3px 0 0 var(--gold-400); }
.message-item header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.message-item header strong { font-size: 14px; color: var(--brand-900); }
.message-item header time { margin-left: auto; font-size: 11px; color: var(--ink-400); }
.message-item p { margin: 0 0 7px; font-size: 13px; color: var(--ink-500); line-height: 1.7; }
.message-item__actions { display: flex; gap: 12px; font-size: 12px; }
.message-item__actions form { display: inline; }
.level { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 4px; background: var(--bg-alt); color: var(--ink-400); text-transform: uppercase; }
.level--success { background: var(--ok-bg); color: var(--ok); }
.level--warning { background: var(--warn-bg); color: var(--warn); }

/* ===== 五要素动态链路 ===== */
.trace-card { cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.trace-card.is-live { border-color: var(--brand-500); box-shadow: 0 18px 45px -34px rgba(9, 70, 43, .55); }
.trace-card__tap { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--brand-600); font-size: 11px; white-space: nowrap; }
.trace-card header { flex-wrap: wrap; }
.trace-flow { margin: 14px 0 6px; padding: 13px 14px 15px; border: 1px solid rgba(34, 107, 72, .16); border-radius: 14px; background: linear-gradient(135deg, #f0f8ed, #fbfdf8 58%, #f5f9f2); overflow: hidden; }
.trace-flow__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: var(--ink-500); font-size: 11px; }
.trace-flow__live { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-700); font-weight: 700; letter-spacing: .08em; }
.trace-flow__live i { width: 7px; height: 7px; border-radius: 50%; background: #48a56f; box-shadow: 0 0 0 4px rgba(72,165,111,.14); animation: traceDot 1.8s infinite; }
.trace-flow__rail { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.trace-flow__rail::before { content: ""; position: absolute; left: 8%; right: 8%; top: 27px; height: 1px; background: repeating-linear-gradient(90deg, rgba(45,125,82,.18) 0 6px, transparent 6px 12px); z-index: 0; }
.trace-flow__spark { position: absolute; top: 23px; left: 8%; width: 9px; height: 9px; border-radius: 50%; background: #c7a454; box-shadow: 0 0 0 5px rgba(199,164,84,.18), 0 0 14px #d8b75d; animation: traceSpark 5s linear infinite; z-index: 1; }
.trace-node { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0 4px; }
.trace-node__ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid rgba(45,125,82,.24); color: var(--brand-700); box-shadow: 0 4px 12px -10px rgba(9,70,43,.45); animation: traceNode 4.4s ease-in-out infinite; animation-delay: calc(var(--i) * .55s); }
.trace-node small { font-size: 9px; letter-spacing: .12em; color: var(--ink-400); }
.trace-node strong { font-size: 11px; color: var(--ink-700); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trace-node em { font-size: 9px; color: var(--ink-400); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes traceSpark { 0% { left: 8%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 88%; opacity: 0; } }
@keyframes traceNode { 0%, 100% { box-shadow: 0 0 0 0 rgba(45,125,82,.05); } 18% { box-shadow: 0 0 0 6px rgba(45,125,82,.14); } 38% { box-shadow: 0 0 0 0 rgba(45,125,82,.05); } }
@keyframes traceDot { 0%,100% { opacity: .45;} 50% { opacity: 1; } }
@media (max-width: 640px) {
  .trace-flow__rail { grid-template-columns: repeat(5, 92px); overflow-x: auto; padding-bottom: 4px; }
  .trace-flow__rail::before { width: 360px; right: auto; }
  .trace-node strong, .trace-node em { white-space: normal; }
  .trace-card__tap { display: none; }
}

/* AJAX 反馈 */
.form-status { display: none; margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.55; }
.form-status:not(:empty) { display: block; }
.form-status.is-success { background: var(--ok-bg); color: var(--ok); }
.form-status.is-error { background: var(--danger-bg); color: var(--danger); }
.site-toast { position: fixed; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 9999; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.site-toast__item { padding: 11px 14px; border-radius: 11px; background: #173d2a; color: #fff; font-size: 13px; line-height: 1.5; box-shadow: 0 16px 38px -18px rgba(6, 40, 24, .65); transform: translateY(12px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.site-toast__item.is-show { transform: none; opacity: 1; }
.site-toast__item--error { background: #7c302a; }
.comment-item.is-new, .reply-item.is-new { animation: ajaxIn .35s ease both; }
@keyframes ajaxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.trace-flow.is-replay .trace-flow__spark { animation: traceSpark 3.6s linear 1; }
.trace-flow.is-replay .trace-node__ico { animation: traceNode 3.6s ease-in-out 1; }
.trace-card.is-live { transform: translateY(-1px); }
@media (max-width: 640px) { .site-toast { bottom: 92px; } }

/* 主题联动修正：所有原有的固定绿色/蓝色强调改为品牌变量 */
.tone-1, .tone-2, .tone-3, .tone-4, .tone-5, .tone-6 {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-500));
}
.trace-flow {
  border-color: color-mix(in srgb, var(--brand-700) 18%, transparent);
  background: linear-gradient(135deg, var(--brand-50), #fbfdf8 58%, var(--gold-100));
}
.trace-flow__live i { background: var(--brand-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 14%, transparent); }
.trace-flow__spark { background: var(--gold-500); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold-500) 18%, transparent), 0 0 14px var(--gold-400); }
.lead-hero { background: linear-gradient(160deg, var(--brand-900), var(--brand-800)); }
.site-toast__item { background: var(--brand-900); box-shadow: 0 16px 38px -18px color-mix(in srgb, var(--brand-950) 65%, transparent); }
.announcement--success { background: var(--brand-700); }
.page-banner, .topic-hero { background: linear-gradient(135deg, var(--brand-950), var(--brand-700)); }


/* ===== 3.10 手机端底部信息分层，避开固定导航与悬浮按钮 ===== */
@media (max-width: 768px) {
  .site-footer { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .footer__bar { padding: 16px 0 14px; }
  .footer__bar-inner { gap: 8px; }
  .footer__bar-inner > span:first-child { line-height: 1.6; }
  .footer__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 8px; width: 100%; }
  .footer__meta a { display: flex; align-items: center; min-height: 28px; padding: 2px 0; font-size: 11.5px; white-space: nowrap; }
  .footer__icp { grid-column: 1 / -1; }
}

/* 前台 AJAX：隐藏态、加载态与购物车即时刷新 */
.cart-list[hidden], .cart-summary[hidden], .empty[hidden], .badge-count[hidden] { display: none !important; }
.btn.is-loading, .icon-btn.is-loading { opacity: .62; pointer-events: none; cursor: wait; }
.cart-row.is-removing { opacity: 0; transform: translateX(6px); transition: opacity .18s, transform .18s; }

/* 隐私政策 */
.privacy-banner { background: linear-gradient(120deg, #133d2a, #1f5c3e); }
.privacy-banner h1 { color: #fff; }
.privacy-banner p { color: rgba(255,255,255,.72); }
.privacy-page { max-width: 900px; margin-left: auto; margin-right: auto; }
.privacy-card {
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid rgba(35, 80, 55, .12);
    border-radius: 22px;
    background: #fffdf7;
    box-shadow: 0 24px 60px -44px rgba(18, 60, 40, .45);
}
.privacy-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(35, 80, 55, .12);
    color: #8a978a;
    font-size: 12px;
}
.privacy-card__meta time { color: #1d6a46; font-weight: 600; }
.privacy-copy { margin-top: 24px; color: #334c3c; font-size: 14px; line-height: 2; }
.privacy-copy p { margin: 0; }
.privacy-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(35, 80, 55, .12);
    color: #718073;
    font-size: 13px;
}
.privacy-card__foot a { display: inline-flex; align-items: center; gap: 5px; color: #1d6a46; font-weight: 600; }
@media (max-width: 560px) {
    .privacy-page { padding-left: 12px; padding-right: 12px; }
    .privacy-card { padding: 20px 16px; border-radius: 16px; }
    .privacy-copy { font-size: 13px; line-height: 1.9; }
}

/* ==========================================================================
   Homepage P0 — editorial hero / delivery proof / service & review cards
   仅作用于首页新结构，不覆盖文章、产品、论坛等既有页面
   ========================================================================== */
.home-hero { position: relative; --home-hero-h: 720px; }
.home-hero__slider { position: relative; height: var(--home-hero-h); overflow: hidden; background: var(--brand-950); }
.home-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.home-hero__slide.is-active { opacity: 1; pointer-events: auto; }
.home-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero__bg--gradient {
  background:
    radial-gradient(1000px 620px at 78% 18%, color-mix(in srgb, var(--brand-600) 55%, transparent), transparent 70%),
    radial-gradient(700px 500px at 12% 100%, color-mix(in srgb, var(--gold-600) 20%, transparent), transparent 70%),
    linear-gradient(135deg, var(--brand-950) 0%, var(--brand-900) 56%, var(--brand-800) 100%);
}
.home-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,14,20,.94) 0%, rgba(4,14,20,.78) 42%, rgba(4,14,20,.34) 72%, rgba(4,14,20,.5) 100%),
    linear-gradient(0deg, rgba(4,14,20,.8) 0%, transparent 52%);
}
.home-hero__slide::after {
  content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%, #000 100%);
}
.home-hero__inner {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr);
  align-items: center; gap: clamp(36px, 5vw, 76px);
}
.home-hero__copy { max-width: 720px; }
.home-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--gold-400); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; line-height: 1.4; text-transform: uppercase;
}
.home-hero__eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .8; }
.home-hero__title {
  margin-top: 17px; color: #fff; font-size: clamp(40px, 4.35vw, 63px);
  line-height: 1.1; letter-spacing: -.045em; font-weight: 700;
  text-wrap: balance;
}
.home-hero__desc {
  margin-top: 21px; max-width: 610px; color: rgba(232,241,246,.75);
  font-size: clamp(15px, 1.15vw, 17px); line-height: 1.85;
}
.home-hero__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.home-hero__actions .btn { min-width: 146px; }
.home-hero__proof {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.56); font-size: 12px; letter-spacing: .04em;
}
.home-hero__proof span { display: inline-flex; align-items: center; gap: 7px; }
.home-hero__proof span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-400); opacity: .85; }
.delivery-panel {
  width: 100%; max-width: 395px; justify-self: end;
  padding: 23px 24px 19px; border: 1px solid rgba(225,195,120,.22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(10,29,24,.82), rgba(8,24,23,.62));
  box-shadow: 0 30px 70px -38px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
}
.delivery-panel__head {
  display: flex; align-items: center; gap: 9px;
  padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.55); font-size: 10px; font-weight: 600; letter-spacing: .18em;
}
.delivery-panel__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(213,178,95,.12); }
.delivery-panel__head em { margin-left: auto; font-style: normal; color: rgba(255,255,255,.32); letter-spacing: .08em; }
.delivery-panel__list { padding: 4px 0 0; }
.delivery-panel__list li {
  display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center;
  gap: 10px; min-height: 46px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.delivery-panel__num { color: var(--gold-400); font-size: 11px; font-weight: 600; letter-spacing: .06em; opacity: .8; }
.delivery-panel__name { color: rgba(255,255,255,.86); font-size: 13px; font-weight: 500; }
.delivery-panel__state { color: rgba(255,255,255,.42); font-size: 11px; }
.delivery-panel__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 16px; }
.delivery-panel__foot span { color: var(--gold-400); font-size: 10px; font-weight: 600; letter-spacing: .16em; }
.delivery-panel__foot small { color: rgba(255,255,255,.42); font-size: 11px; text-align: right; }
.home-hero__dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 6px; z-index: 4; }
.home-hero__dots button { width: 24px; height: 3px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.32); }
.home-hero__dots button.is-active { background: var(--gold-400); }
.home-metrics { position: relative; z-index: 3; margin-top: -38px; }
.home-metrics__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 50px -36px rgba(8,29,30,.35); overflow: hidden;
}
.home-metric { display: flex; align-items: baseline; gap: 9px; padding: 22px 26px; border-right: 1px solid var(--line); }
.home-metric:last-child { border-right: 0; }
.home-metric strong { color: var(--brand-900); font-size: clamp(25px, 2.3vw, 34px); line-height: 1; letter-spacing: -.045em; }
.home-metric span { color: var(--ink-500); font-size: 12px; line-height: 1.4; }
.home-section { padding: 96px 0; }
.home-section--cases { background: var(--bg-alt); }
.home-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.home-head__eyebrow { color: var(--gold-600); font-size: 11px; font-weight: 600; letter-spacing: .2em; }
.home-head__title { margin-top: 10px; max-width: 780px; color: var(--brand-900); font-size: clamp(29px, 3vw, 41px); line-height: 1.22; letter-spacing: -.035em; text-wrap: balance; }
.home-head__desc { margin-top: 12px; max-width: 680px; color: var(--ink-500); font-size: 14px; line-height: 1.8; }
.home-head__more { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; color: var(--ink-500); font-size: 13px; white-space: nowrap; }
.home-head__more:hover { color: var(--brand-700); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand-500) 28%, var(--line)); box-shadow: 0 26px 50px -34px rgba(8,29,30,.45); }
.service-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-900); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card__media img { transform: scale(1.035); }
.service-card__media::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(0deg, rgba(4,20,18,.42), transparent); pointer-events: none; }
.service-card__index { position: absolute; left: 16px; top: 14px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.service-card__ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 22px; letter-spacing: 2px; }
.service-card__body { padding: 22px 23px 20px; }
.service-card__kicker { color: var(--gold-600); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.service-card__body h3 { margin-top: 6px; color: var(--brand-900); font-size: 21px; line-height: 1.3; letter-spacing: -.02em; }
.service-card__body h3 a:hover { color: var(--brand-600); }
.service-card__desc { margin-top: 8px; min-height: 42px; color: var(--ink-500); font-size: 13px; line-height: 1.7; }
.service-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 15px; }
.service-card__tags span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt); color: var(--ink-500); font-size: 11px; line-height: 1.4; }
.service-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.service-card__meta em { display: block; color: var(--ink-400); font-size: 10px; font-style: normal; letter-spacing: .06em; }
.service-card__meta span { color: var(--ink-700); font-size: 13px; }
.service-card__meta a { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; color: var(--brand-700); transition: background .18s, color .18s; }
.service-card__meta a:hover { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }
.service-card__fit { margin-top: 11px; color: var(--ink-400); font-size: 11px; line-height: 1.5; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: transform .22s ease, box-shadow .22s ease; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(8,29,30,.4); }
.case-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-900); }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover .case-card__media img { transform: scale(1.035); }
.case-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,20,18,.5), transparent 55%); pointer-events: none; }
.case-card__index { position: absolute; left: 15px; top: 13px; color: rgba(255,255,255,.7); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.case-card__label { position: absolute; left: 15px; bottom: 13px; color: rgba(255,255,255,.78); font-size: 10px; letter-spacing: .12em; }
.case-card__ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 20px; }
.case-card__body { padding: 20px 21px 18px; }
.case-card__body h3 { color: var(--brand-900); font-size: 19px; line-height: 1.4; letter-spacing: -.02em; }
.case-card__body h3 a:hover { color: var(--brand-600); }
.case-card__body p { margin-top: 9px; min-height: 66px; color: var(--ink-500); font-size: 13px; line-height: 1.7; }
.case-card__kpi { margin-top: 14px; padding: 9px 0 9px 11px; border-left: 2px solid var(--gold-500); color: var(--brand-700); font-size: 11px; line-height: 1.55; }
.case-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--ink-400); font-size: 11px; }
.case-card__foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-700); }
.home-cta { padding: 0 0 96px; }
.home-cta__panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(250px,.75fr); align-items: center; gap: 48px;
  padding: 58px 62px; border: 1px solid color-mix(in srgb, var(--gold-500) 22%, transparent); border-radius: 22px;
  background:
    radial-gradient(700px 320px at 100% 0%, color-mix(in srgb, var(--gold-600) 18%, transparent), transparent 68%),
    linear-gradient(135deg, var(--brand-950), var(--brand-900) 58%, var(--brand-800));
  color: #fff; box-shadow: 0 30px 70px -46px rgba(4,20,18,.5);
}
.home-cta__panel::after {
  content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: linear-gradient(90deg, transparent, #000);
}
.home-cta__copy, .home-cta__actions { position: relative; z-index: 1; }
.home-cta__eyebrow { color: var(--gold-400); font-size: 11px; font-weight: 600; letter-spacing: .18em; }
.home-cta__copy h2 { margin-top: 12px; max-width: 680px; font-size: clamp(28px, 3vw, 40px); line-height: 1.26; letter-spacing: -.035em; text-wrap: balance; }
.home-cta__copy p { margin-top: 14px; max-width: 620px; color: rgba(255,255,255,.64); font-size: 14px; line-height: 1.8; }
.home-cta__actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; max-width: 230px; justify-self: end; }
.home-cta__actions .btn { width: 100%; }
@media (max-width: 1100px) {
  .home-hero__inner { grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 32px; }
  .delivery-panel { padding: 20px 19px 17px; }
  .service-grid, .case-grid { gap: 16px; }
  .home-cta__panel { padding: 44px 38px; gap: 30px; }
}
@media (max-width: 900px) {
  .home-hero { --home-hero-h: 760px; }
  .home-hero__inner { grid-template-columns: 1fr; align-content: center; gap: 27px; padding-top: 24px; padding-bottom: 24px; }
  .home-hero__copy { max-width: 640px; }
  .home-hero__title { font-size: clamp(34px, 6vw, 50px); }
  .home-hero__desc { margin-top: 15px; }
  .home-hero__actions { margin-top: 22px; }
  .home-hero__proof { margin-top: 22px; padding-top: 14px; gap: 6px 14px; }
  .delivery-panel { max-width: none; justify-self: stretch; }
  .delivery-panel__list li { min-height: 40px; }
  .delivery-panel__foot { padding-top: 12px; }
  .home-metrics { margin-top: -26px; }
  .home-metrics__inner { grid-template-columns: repeat(2, 1fr); }
  .home-metric { border-bottom: 1px solid var(--line); }
  .home-metric:nth-child(2n) { border-right: 0; }
  .home-metric:nth-child(3), .home-metric:nth-child(4) { border-bottom: 0; }
  .home-section { padding: 68px 0; }
  .service-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .home-head { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 28px; }
  .home-head__more { margin-top: 2px; }
  .home-cta { padding-bottom: 68px; }
  .home-cta__panel { grid-template-columns: 1fr; gap: 26px; padding: 38px 30px; }
  .home-cta__actions { max-width: none; flex-direction: row; flex-wrap: wrap; justify-self: stretch; }
  .home-cta__actions .btn { width: auto; }
}
@media (max-width: 640px) {
  .home-hero { --home-hero-h: 820px; }
  .home-hero__eyebrow { font-size: 10px; letter-spacing: .14em; }
  .home-hero__title { margin-top: 13px; font-size: 34px; line-height: 1.16; letter-spacing: -.035em; }
  .home-hero__desc { font-size: 14px; line-height: 1.75; }
  .home-hero__actions .btn { height: 42px; padding: 0 16px; font-size: 13px; min-width: 0; }
  .home-hero__proof { display: none; }
  .delivery-panel { padding: 16px 17px 14px; border-radius: 14px; }
  .delivery-panel__head { padding-bottom: 11px; font-size: 9px; }
  .delivery-panel__list li { min-height: 36px; gap: 8px; }
  .delivery-panel__name { font-size: 12px; }
  .delivery-panel__state { font-size: 10px; }
  .delivery-panel__foot { display: none; }
  .home-metrics { margin-top: -20px; }
  .home-metrics__inner { border-radius: 12px; }
  .home-metric { padding: 15px 14px; gap: 7px; }
  .home-metric strong { font-size: 24px; }
  .home-metric span { font-size: 10px; }
  .service-grid, .case-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card__body { padding: 17px 18px 16px; }
  .service-card__desc { min-height: 0; }
  .case-card__body p { min-height: 0; }
  .home-section { padding: 52px 0; }
  .home-cta { padding-bottom: 52px; }
  .home-cta__panel { padding: 30px 22px; border-radius: 16px; }
  .home-cta__copy h2 { font-size: 27px; }
  .home-cta__copy p { font-size: 13px; }
  .home-cta__actions { flex-direction: column; }
  .home-cta__actions .btn { width: 100%; }
}

@media (max-width: 640px) {
  .service-card__meta, .case-card__foot { padding-right: 52px; }
}

/* ==========================================================================
   Editorial detail layer — P1
   Tokens + service/article detail + restrained reveal
   ========================================================================== */
:root {
  --ed-container: 1200px;
  --ed-space-1: 8px;
  --ed-space-2: 16px;
  --ed-space-3: 24px;
  --ed-space-4: 32px;
  --ed-space-5: 48px;
  --ed-space-6: 64px;
  --ed-space-7: 80px;
  --ed-space-8: 96px;
  --ed-radius-sm: 10px;
  --ed-radius-md: 16px;
  --ed-radius-lg: 22px;
  --ed-fs-kicker: 11px;
  --ed-fs-small: 13px;
  --ed-fs-body: 16px;
  --ed-fs-h3: 19px;
  --ed-fs-h2: clamp(28px, 3vw, 38px);
  --ed-fs-h1: clamp(38px, 4.2vw, 56px);
  --ed-line-body: 1.85;
  --ed-ease: cubic-bezier(.22, 1, .36, 1);
}
.ed-page { padding-top: var(--ed-space-4); padding-bottom: var(--ed-space-7); }
.ed-page .breadcrumb { margin-bottom: var(--ed-space-4); }
.ed-kicker { color: var(--gold-600); font-size: var(--ed-fs-kicker); font-weight: 600; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
.ed-lede { color: var(--ink-500); font-size: 17px; line-height: 1.8; max-width: 640px; }
.ed-service-hero {
  display: grid; grid-template-columns: minmax(0,1.04fr) minmax(360px,.96fr);
  align-items: center; gap: clamp(36px,5vw,72px);
  padding: var(--ed-space-5) 0 var(--ed-space-7);
  border-bottom: 1px solid var(--line);
}
.ed-service-hero__copy h1 { margin-top: 14px; max-width: 650px; color: var(--brand-900); font-size: var(--ed-fs-h1); line-height: 1.16; letter-spacing: -.045em; text-wrap: balance; }
.ed-service-hero__copy .ed-lede { margin-top: 18px; }
.ed-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: var(--ed-space-5); border: 1px solid var(--line); border-radius: var(--ed-radius-md); overflow: hidden; background: var(--line); }
.ed-facts > div { min-width: 0; padding: 14px 16px; background: #fff; }
.ed-facts em { display: block; color: var(--ink-400); font-size: 10px; font-style: normal; letter-spacing: .08em; }
.ed-facts strong { display: block; margin-top: 3px; overflow: hidden; color: var(--brand-900); font-size: 17px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.ed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: var(--ed-space-4); }
.ed-inline-list { display: grid; gap: 7px; margin-top: var(--ed-space-4); color: var(--ink-500); font-size: var(--ed-fs-small); }
.ed-inline-list li { display: flex; align-items: center; gap: 8px; }
.ed-inline-list .ico { color: var(--gold-600); flex: 0 0 auto; }
.ed-service-hero__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin: 0; border: 1px solid var(--line); border-radius: var(--ed-radius-lg); background: var(--brand-900); box-shadow: 0 24px 54px -42px rgba(8,29,30,.42); }
.ed-service-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.ed-service-hero__ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 30px; letter-spacing: 3px; }
.ed-service-hero__media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(0deg, rgba(4,20,18,.58), transparent); pointer-events: none; }
.ed-service-hero__media figcaption { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 17px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ed-service-hero__media figcaption span { color: var(--gold-400); font-size: 10px; font-weight: 600; letter-spacing: .14em; }
.ed-service-hero__media figcaption em { color: rgba(255,255,255,.55); font-size: 10px; font-style: normal; letter-spacing: .06em; }
.ed-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: clamp(40px,5vw,72px); margin-top: var(--ed-space-7); }
.ed-detail-main { min-width: 0; max-width: 780px; }
.ed-section-head { margin-bottom: var(--ed-space-4); }
.ed-section-head p { color: var(--gold-600); font-size: var(--ed-fs-kicker); font-weight: 600; letter-spacing: .16em; }
.ed-section-head h2 { margin-top: 8px; color: var(--brand-900); font-size: var(--ed-fs-h2); line-height: 1.25; letter-spacing: -.035em; }
.ed-rich { max-width: 760px; color: var(--ink-700); font-size: var(--ed-fs-body); line-height: var(--ed-line-body); }
.ed-rich p { margin-bottom: var(--ed-space-3); }
.ed-rich h2 { margin: var(--ed-space-5) 0 var(--ed-space-2); color: var(--brand-900); font-size: 27px; line-height: 1.35; letter-spacing: -.025em; }
.ed-rich h3 { margin: var(--ed-space-4) 0 var(--ed-space-1); color: var(--brand-900); font-size: var(--ed-fs-h3); line-height: 1.45; }
.ed-rich img { border-radius: var(--ed-radius-md); margin: var(--ed-space-4) 0; }
.ed-rich blockquote { margin: var(--ed-space-4) 0; padding: 14px 0 14px 18px; border-left: 2px solid var(--gold-500); color: var(--ink-600); font-size: 15px; }
.ed-rich li { margin-bottom: 6px; }
.ed-detail-side { display: flex; flex-direction: column; gap: 14px; }
.ed-side-card { padding: var(--ed-space-3); border: 1px solid var(--line); border-radius: var(--ed-radius-md); background: #fff; }
.ed-side-card--dark { border-color: transparent; background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--gold-600) 18%, transparent), transparent 72%), linear-gradient(145deg, var(--brand-950), var(--brand-900) 62%, var(--brand-800)); color: #fff; box-shadow: 0 24px 50px -38px rgba(8,29,30,.45); }
.ed-side-card--dark .ed-kicker { color: var(--gold-400); }
.ed-side-card--dark h3 { margin-top: 10px; color: #fff; font-size: 21px; line-height: 1.35; letter-spacing: -.02em; }
.ed-side-card--dark p { margin-top: 9px; color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.75; }
.ed-side-card--dark .btn { margin-top: 16px; }
.ed-side-card h3 { color: var(--brand-900); font-size: 17px; line-height: 1.4; }
.ed-related { margin-top: 12px; }
.ed-related li { padding: 11px 0; border-top: 1px solid var(--line); }
.ed-related li:first-child { border-top: 0; padding-top: 0; }
.ed-related a { display: flex; align-items: center; gap: 10px; }
.ed-related__thumb { width: 46px; height: 46px; flex: 0 0 46px; overflow: hidden; border-radius: 9px; background: var(--bg-alt); display: grid; place-items: center; color: #fff; }
.ed-related__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ed-related strong { display: block; color: var(--ink-800); font-size: 12px; line-height: 1.4; }
.ed-related em { display: block; margin-top: 2px; color: var(--gold-600); font-size: 10px; font-style: normal; }
.ed-article-page .breadcrumb { margin-bottom: var(--ed-space-5); }
.ed-article-hero { max-width: 900px; padding-top: var(--ed-space-3); }
.ed-article-hero h1 { margin-top: 14px; color: var(--brand-900); font-size: clamp(36px, 4.4vw, 58px); line-height: 1.14; letter-spacing: -.045em; text-wrap: balance; }
.ed-article-hero .ed-lede { margin-top: 19px; max-width: 780px; }
.ed-article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-400); font-size: 12px; }
.ed-article-cover { overflow: hidden; margin: var(--ed-space-5) 0 0; border: 1px solid var(--line); border-radius: var(--ed-radius-lg); background: var(--brand-900); }
.ed-article-cover img { width: 100%; max-height: 540px; object-fit: cover; }
.ed-article-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: clamp(40px,5vw,72px); margin-top: var(--ed-space-5); }
.ed-article-main { min-width: 0; max-width: 780px; }
.ed-article-foot { margin-top: var(--ed-space-5); padding-top: var(--ed-space-3); border-top: 1px solid var(--line); }
.ed-related-list { margin-top: 12px; }
.ed-related-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.ed-related-list li:first-child { border-top: 0; padding-top: 0; }
.ed-related-list a { display: block; }
.ed-related-list strong { display: block; color: var(--ink-800); font-size: 12px; line-height: 1.5; }
.ed-related-list time { display: block; margin-top: 3px; color: var(--ink-300); font-size: 10px; }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ed-ease), transform .55s var(--ed-ease); }
.reveal-ready [data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 1000px) {
  .ed-service-hero { grid-template-columns: 1fr; gap: 34px; padding-top: 32px; padding-bottom: 48px; }
  .ed-service-hero__media { aspect-ratio: 16 / 10; }
  .ed-detail-grid, .ed-article-layout { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .ed-detail-side { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .ed-side-card--dark, .ed-side-card { height: 100%; }
  .ed-article-cover img { max-height: 420px; }
}
@media (max-width: 640px) {
  .ed-page { padding-top: 18px; padding-bottom: 50px; }
  .ed-page .breadcrumb { margin-bottom: 22px; }
  .ed-service-hero__copy h1, .ed-article-hero h1 { font-size: 32px; line-height: 1.2; }
  .ed-lede { font-size: 14px; line-height: 1.75; }
  .ed-facts { grid-template-columns: 1fr; margin-top: 26px; }
  .ed-facts > div { padding: 10px 14px; }
  .ed-facts strong { font-size: 15px; }
  .ed-actions { margin-top: 22px; }
  .ed-actions .btn { height: 42px; padding: 0 16px; font-size: 13px; }
  .ed-inline-list { font-size: 12px; gap: 6px; }
  .ed-detail-side { grid-template-columns: 1fr; gap: 12px; }
  .ed-article-meta { margin-top: 18px; padding-top: 13px; }
  .ed-article-cover { margin-top: 30px; border-radius: 14px; }
  .ed-article-cover img { max-height: 230px; }
  .ed-rich { font-size: 15px; line-height: 1.85; }
  .ed-rich h2 { font-size: 23px; }
  .ed-rich h3 { font-size: 18px; }
}
.ed-process { margin-top: var(--ed-space-6); padding-top: var(--ed-space-5); border-top: 1px solid var(--line); }
.ed-process__head h3 { margin-top: 8px; color: var(--brand-900); font-size: 21px; line-height: 1.4; letter-spacing: -.02em; }
.ed-process__track { display: grid; list-style: none; padding: 0; grid-template-columns: repeat(4,1fr); gap: 1px; margin-top: var(--ed-space-4); background: var(--line); border: 1px solid var(--line); border-radius: var(--ed-radius-md); overflow: hidden; }
.ed-process__track li { min-width: 0; padding: 18px 16px 20px; background: #fff; }
.ed-process__num { display: block; color: var(--gold-600); font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.ed-process__track strong { display: block; margin-top: 6px; color: var(--brand-900); font-size: 14px; line-height: 1.4; }
.ed-process__track p { margin-top: 6px; color: var(--ink-400); font-size: 11px; line-height: 1.6; }
@media (max-width: 640px) {
  .ed-process__track { grid-template-columns: repeat(2,1fr); }
}

/* ==========================================================================
   P2 — editorial list pages / accessibility / image format support
   ========================================================================== */
picture { display: contents; }
.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 200;
  padding: 10px 14px; border-radius: 8px; background: #fff; color: var(--brand-900);
  font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px rgba(8,29,30,.18); transition: top .18s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--gold-500); outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.ed-list-hero {
  position: relative; overflow: hidden;
  padding: 62px 0 46px;
  background:
    radial-gradient(760px 380px at 88% 0%, color-mix(in srgb, var(--brand-600) 48%, transparent), transparent 70%),
    linear-gradient(135deg, var(--brand-950), var(--brand-900) 58%, var(--brand-800));
  color: #fff;
}
.ed-list-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 62px 62px; mask-image: linear-gradient(90deg, transparent, #000);
}
.ed-list-hero > .container { position: relative; z-index: 1; }
.ed-list-hero__eyebrow { color: var(--gold-400); font-size: var(--ed-fs-kicker); font-weight: 600; letter-spacing: .18em; }
.ed-list-hero__row { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-top: 13px; }
.ed-list-hero h1 { color: #fff; font-size: clamp(36px, 4vw, 52px); line-height: 1.16; letter-spacing: -.04em; text-wrap: balance; }
.ed-list-hero p { margin-top: 14px; max-width: 680px; color: rgba(255,255,255,.64); font-size: 14px; line-height: 1.8; }
.ed-list-hero__count { flex: 0 0 auto; padding: 6px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.6); font-size: 10px; letter-spacing: .1em; white-space: nowrap; }
.ed-list-body { padding-top: 40px; padding-bottom: 88px; }
.ed-list-body .filter-bar { margin-bottom: 28px; }
.ed-note-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.ed-note-card {
  display: grid; grid-template-columns: 1fr; min-height: 0;
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--ed-radius-md); background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ed-note-card--lead {
  grid-column: span 2; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); min-height: 344px;
}
.ed-note-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand-500) 24%, var(--line)); box-shadow: 0 22px 44px -34px rgba(8,29,30,.4); }
.ed-note-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-900); }
.ed-note-card--lead .ed-note-card__media { aspect-ratio: auto; min-height: 100%; }
.ed-note-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ed-note-card:hover .ed-note-card__media img { transform: scale(1.035); }
.ed-note-card__ph { width: 100%; height: 100%; min-height: 180px; display: grid; place-items: center; color: #fff; font-size: 20px; }
.ed-note-card__body { display: flex; flex-direction: column; min-width: 0; padding: 18px 22px 19px; }
.ed-note-card--lead .ed-note-card__body { justify-content: center; padding: 26px 30px; }
.ed-note-card--lead .ed-note-card__body .text-link { margin-top: 16px; }
.ed-note-card__meta { display: flex; align-items: center; gap: 9px; color: var(--ink-400); font-size: 10px; }
.ed-note-card__meta time { margin-left: auto; }
.ed-note-card__body h2 { margin-top: 9px; color: var(--brand-900); font-size: 18px; line-height: 1.45; letter-spacing: -.02em; }
.ed-note-card--lead .ed-note-card__body h2 { font-size: 24px; line-height: 1.35; }
.ed-note-card__body h2 a:hover { color: var(--brand-600); }
.ed-note-card__body p { margin-top: 8px; color: var(--ink-500); font-size: 12px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ed-note-card__body .text-link { margin-top: auto; padding-top: 12px; font-size: 11px; }
@media (max-width: 1000px) {
  .ed-list-hero { padding: 48px 0 36px; }
  .ed-list-hero__row { align-items: start; flex-direction: column; gap: 14px; }
  .ed-list-hero__count { align-self: flex-start; }
  .ed-note-grid { grid-template-columns: 1fr; }
  .ed-note-card { grid-template-columns: 1fr; }
  .ed-note-card--lead { grid-column: auto; grid-template-columns: 1fr; min-height: 0; }
  .ed-note-card--lead .ed-note-card__media { aspect-ratio: 16 / 9; }
  .ed-note-card--lead .ed-note-card__body { padding: 18px 22px 19px; }
  .ed-note-card--lead .ed-note-card__body h2 { font-size: 20px; }
  .ed-list-body { padding-top: 30px; padding-bottom: 64px; }
}
@media (max-width: 640px) {
  .ed-list-hero { padding: 36px 0 30px; }
  .ed-list-hero h1 { font-size: 30px; }
  .ed-list-hero p { font-size: 13px; }
  .ed-list-body { padding-top: 22px; padding-bottom: 50px; }
  .ed-note-card { grid-template-columns: 1fr; min-height: 0; }
  .ed-note-card__media { aspect-ratio: 16 / 9; min-height: 0; }
  .ed-note-card__body { padding: 16px 18px 18px; }
  .ed-note-card__body h2 { font-size: 17px; }
  .ed-note-card__body .text-link { margin-top: 8px; }
}

/* ==========================================================================
   P3 — search / 404 / responsive image delivery
   ========================================================================== */
.ed-search-hero { padding-bottom: 38px; }
.ed-search-hero__row { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.ed-search-hero .ed-search-form { margin-top: 28px; }
.ed-search-form {
  display: flex; align-items: center; gap: 8px; max-width: 860px;
  padding: 7px 8px 7px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px;
  background: rgba(255,255,255,.07); backdrop-filter: blur(10px);
}
.ed-search-form__ico { display: inline-grid; place-items: center; color: rgba(255,255,255,.55); flex: 0 0 auto; }
.ed-search-form input {
  flex: 1 1 auto; min-width: 0; height: 40px; border: 0; background: transparent; color: #fff;
  font-size: 15px; outline: 0;
}
.ed-search-form input::placeholder { color: rgba(255,255,255,.42); }
.ed-search-form input::-webkit-search-cancel-button { display: none; }
.ed-search-form__clear { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: rgba(255,255,255,.55); }
.ed-search-form__clear:hover { background: rgba(255,255,255,.1); color: #fff; }
.ed-search-form .btn { background: #fff; border-color: #fff; color: var(--brand-900); }
.ed-search-body { padding-top: 30px; }
.ed-search-expanded { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -8px 0 18px; color: var(--ink-400); font-size: 11px; }
.ed-search-expanded span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-600); }
.ed-search-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; color: var(--ink-400); font-size: 12px; }
.ed-search-summary em { color: var(--brand-800); font-style: normal; font-weight: 600; }
.ed-search-section { margin-bottom: 34px; }
.ed-search-section__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.ed-search-section__head h2 { color: var(--brand-900); font-size: 21px; letter-spacing: -.02em; }
.ed-search-section__head span { color: var(--ink-400); font-size: 11px; }
.ed-search-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ed-search-hit {
  display: grid; grid-template-columns: 112px minmax(0,1fr) 20px; align-items: center; gap: 18px;
  padding: 17px 2px; border-bottom: 1px solid var(--line); transition: background .18s ease, padding .18s ease;
}
.ed-search-hit:hover { padding-inline: 10px; background: rgba(255,255,255,.6); }
.ed-search-hit__kind { align-self: start; padding-top: 3px; color: var(--gold-600); font-size: 10px; font-weight: 600; letter-spacing: .08em; line-height: 1.5; }
.ed-search-hit__body { min-width: 0; }
.ed-search-hit__body h3 { color: var(--brand-900); font-size: 17px; line-height: 1.45; letter-spacing: -.02em; }
.ed-search-hit__body p { margin-top: 6px; color: var(--ink-500); font-size: 12px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ed-search-hit__body small { display: block; margin-top: 6px; color: var(--ink-400); font-size: 10px; }
.ed-search-hit__arrow { display: grid; place-items: center; color: var(--brand-600); }
.ed-search-hit--service { grid-template-columns: 112px minmax(0,1fr) 20px; }
.ed-search-hit__thumb { display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; background: var(--brand-900); }
.ed-search-hit__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ed-search-hit__thumb > span { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 16px; }
.ed-search-hit__service-meta { color: var(--gold-600); font-size: 10px; letter-spacing: .06em; }
.ed-search-hit--service .ed-search-hit__body h3 { margin-top: 3px; }
.ed-search-hits-empty { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink-400); font-size: 13px; }
.ed-search-empty { max-width: 760px; margin: 26px auto 0; padding: 52px 24px 46px; border: 1px solid var(--line); border-radius: var(--ed-radius-lg); background: #fff; text-align: center; }
.ed-search-empty__mark { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); }
.ed-search-empty h2 { color: var(--brand-900); font-size: 23px; letter-spacing: -.03em; }
.ed-search-empty p { margin-top: 9px; color: var(--ink-500); font-size: 13px; line-height: 1.7; }
.ed-search-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.ed-search-chips a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt); color: var(--ink-600); font-size: 12px; }
.ed-search-chips a:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }
.ed-search-empty__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
@media (max-width: 900px) {
  .ed-search-hero__row { align-items: start; flex-direction: column; gap: 12px; }
  .ed-search-form { margin-top: 18px; }
  .ed-search-body { padding-top: 22px; }
  .ed-search-summary { align-items: start; flex-direction: column; gap: 4px; }
}
@media (max-width: 640px) {
  .ed-search-hero { padding-bottom: 24px; }
  .ed-search-form { padding: 5px 6px 5px 12px; gap: 5px; }
  .ed-search-form input { height: 36px; font-size: 14px; }
  .ed-search-form .btn { height: 36px; padding: 0 12px; font-size: 12px; }
  .ed-search-hit { grid-template-columns: 72px minmax(0,1fr) 16px; gap: 10px; padding: 13px 40px 13px 0; }
  .ed-search-hit__body h3 { font-size: 15px; }
  .ed-search-hit__body p { -webkit-line-clamp: 3; }
  .ed-search-hit__kind { font-size: 9px; }
  .ed-search-hit--service { grid-template-columns: 82px minmax(0,1fr) 16px; }
  .ed-search-empty { margin-top: 8px; padding: 34px 18px 32px; }
  .ed-search-empty h2 { font-size: 20px; }
}

/* P3 — helpful 404 */
.error-page--rich {
  text-align: left;
  display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 48px; align-items: center;
  min-height: 460px; padding-top: 64px; padding-bottom: 72px;
}
.error-page--rich .error-page__code { display: block; color: color-mix(in srgb, var(--brand-500) 18%, transparent); font-size: clamp(90px, 13vw, 150px); line-height: .85; letter-spacing: -.09em; font-weight: 800; }
.error-page__eyebrow { margin-top: -6px; color: var(--gold-600); font-size: 10px; font-weight: 600; letter-spacing: .16em; }
.error-page--rich h1 { margin-top: 12px; color: var(--brand-900); font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
.error-page--rich p { margin-top: 12px; max-width: 560px; color: var(--ink-500); font-size: 14px; line-height: 1.8; }
.error-search { display: flex; align-items: center; gap: 8px; max-width: 560px; margin-top: 26px; padding: 7px 8px 7px 14px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; }
.error-search > svg { flex: 0 0 auto; color: var(--ink-400); }
.error-search input { flex: 1 1 auto; min-width: 0; height: 36px; border: 0; outline: 0; background: transparent; color: var(--ink-800); font-size: 13px; }
.error-page__links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.error-page__links a { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-700); font-size: 12px; }
.error-page__aside { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 260px; border: 1px solid var(--line); border-radius: var(--ed-radius-lg); background: var(--brand-950); color: #fff; }
.error-page__stamp { color: rgba(255,255,255,.1); font-size: 96px; font-weight: 800; line-height: 1; letter-spacing: -.08em; }
.error-page__aside small { color: var(--gold-400); font-size: 9px; letter-spacing: .14em; text-align: center; }
@media (max-width: 800px) {
  .error-page--rich { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding-top: 40px; padding-bottom: 52px; }
  .error-page__aside { display: none; }
  .error-page--rich h1 { font-size: 30px; }
}

/* ==========================================================================
   P4 — topic manuals / community / post pages
   ========================================================================== */
.ed-list-hero--compact { padding: 48px 0 38px; }
.ed-list-hero--compact .breadcrumb { margin-bottom: 22px; }
.ed-list-hero--compact h1 { font-size: clamp(32px, 3.6vw, 44px); }
.ed-list-hero--compact p { margin-top: 10px; max-width: 620px; }
.ed-list-hero__side { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn--on-dark {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08);
  color: #fff; font-size: 12px; font-weight: 500;
}
.btn--on-dark:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.15); color: #fff; }

.manual-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.manual-row {
  display: grid; grid-template-columns: 44px 220px minmax(0,1fr) 108px; align-items: center; gap: 24px;
  padding: 22px 26px; border-bottom: 1px solid var(--line); transition: background .18s ease;
}
.manual-row:last-child { border-bottom: 0; }
.manual-row:hover { background: var(--brand-50); }
.manual-row__num { color: var(--gold-600); font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.manual-row__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--brand-900); }
.manual-row__media picture, .manual-row__media img { display: block; width: 100%; height: 100%; }
.manual-row__media img { object-fit: cover; transition: transform .45s ease; }
.manual-row:hover .manual-row__media img { transform: scale(1.035); }
.manual-row__media > span { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: 12px; letter-spacing: .16em; }
.manual-row__body { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.manual-row__kicker { color: var(--ink-400); font-size: 9px; letter-spacing: .12em; }
.manual-row__body strong { color: var(--brand-900); font-size: 21px; line-height: 1.4; letter-spacing: -.02em; }
.manual-row__body em { color: var(--ink-500); font-size: 12px; font-style: normal; line-height: 1.7; }
.manual-row__cta { justify-self: end; display: inline-flex; align-items: center; gap: 6px; color: var(--brand-700); font-size: 11px; white-space: nowrap; }
.manual-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 18px;
  padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
}
.manual-cta__eyebrow { color: var(--gold-600); font-size: 9px; font-weight: 600; letter-spacing: .14em; }
.manual-cta strong { display: block; margin-top: 7px; color: var(--brand-900); font-size: 19px; letter-spacing: -.02em; }
.manual-cta p { margin-top: 6px; max-width: 680px; color: var(--ink-500); font-size: 12px; line-height: 1.7; }
.manual-cta .btn { flex: 0 0 auto; }

.community-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-bottom: 42px; }
.community-board {
  display: flex; flex-direction: column; gap: 9px; min-height: 168px; padding: 21px 23px 19px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.community-board:hover { transform: translateY(-2px); border-color: var(--brand-300); box-shadow: 0 20px 38px -34px rgba(8,29,30,.4); }
.community-board__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.community-board__num { color: var(--gold-600); font-size: 10px; font-weight: 600; letter-spacing: .14em; }
.community-board__count { color: var(--ink-400); font-size: 10px; letter-spacing: .04em; }
.community-board > strong { color: var(--brand-900); font-size: 20px; line-height: 1.35; letter-spacing: -.02em; }
.community-board__last { display: flex; align-items: baseline; gap: 7px; min-width: 0; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.community-board__last em { flex: 0 0 auto; color: var(--brand-600); font-size: 9px; font-style: normal; letter-spacing: .08em; }
.community-board__last span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-500); font-size: 11px; }
.community-board__cta { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-700); font-size: 10px; }

.topic-hero__meta { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 18px; color: rgba(255,255,255,.64); font-size: 10px; letter-spacing: .08em; }
.topic-hero__meta span { position: relative; }
.topic-hero__meta span + span::before { content: ""; position: absolute; left: -11px; top: 50%; width: 1px; height: 10px; margin-top: -5px; background: rgba(255,255,255,.22); }

.topic-products { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.topic-product { display: grid; grid-template-columns: 240px minmax(0,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.topic-product:only-child { grid-column: 1 / -1; }
.topic-product__media { display: block; min-height: 100%; overflow: hidden; background: var(--brand-900); }
.topic-product__media picture, .topic-product__media img { display: block; width: 100%; height: 100%; }
.topic-product__media img { object-fit: cover; transition: transform .45s ease; }
.topic-product:hover .topic-product__media img { transform: scale(1.035); }
.topic-product__media > span { display: grid; place-items: center; width: 100%; height: 100%; min-height: 150px; color: #fff; }
.topic-product__body { display: flex; flex-direction: column; min-width: 0; padding: 22px 24px; }
.topic-product__kicker { color: var(--gold-600); font-size: 9px; font-weight: 600; letter-spacing: .13em; }
.topic-product__body strong { margin-top: 8px; color: var(--brand-900); font-size: 21px; line-height: 1.4; letter-spacing: -.02em; }
.topic-product__body em { margin-top: 6px; color: var(--ink-500); font-size: 12px; font-style: normal; line-height: 1.7; }
.topic-product__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 16px; }
.topic-product__foot .price { color: var(--brand-900); font-size: 17px; }

.post-hero {
  position: relative; overflow: hidden; padding: 46px 0 40px; color: #fff;
  background:
    radial-gradient(680px 320px at 86% 0%, color-mix(in srgb, var(--brand-600) 38%, transparent), transparent 70%),
    linear-gradient(135deg, var(--brand-950), var(--brand-900) 62%, var(--brand-800));
}
.post-hero .breadcrumb { margin-bottom: 20px; }
.post-hero__board { display: inline-flex; margin-top: 2px; padding: 3px 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; color: var(--gold-400); font-size: 9px; letter-spacing: .1em; }
.post-hero h1 { max-width: 940px; margin-top: 12px; color: #fff; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.32; letter-spacing: -.035em; text-wrap: balance; }
.post-hero__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; color: rgba(255,255,255,.6); font-size: 11px; }
.post-hero__meta .avatar { background: rgba(255,255,255,.12); color: #fff; }
.post-card--reading { padding: clamp(24px, 4vw, 46px); }
.post-card--reading .rich-text { margin-top: 0; }

@media (max-width: 1000px) {
  .manual-row { grid-template-columns: 40px 180px minmax(0,1fr); gap: 18px; }
  .manual-row__cta { display: none; }
  .community-grid { grid-template-columns: 1fr; }
  .topic-products { grid-template-columns: 1fr; }
  .topic-product { grid-template-columns: 220px minmax(0,1fr); }
}
@media (max-width: 640px) {
  .ed-list-hero--compact { padding: 34px 0 28px; }
  .ed-list-hero--compact .breadcrumb { margin-bottom: 16px; }
  .ed-list-hero--compact h1 { font-size: 28px; }
  .ed-list-hero__side { align-items: flex-start; flex-direction: column; gap: 8px; }
  .manual-row { grid-template-columns: 28px minmax(0,1fr); gap: 10px 12px; padding: 16px; }
  .manual-row__num { grid-column: 1; grid-row: 1 / 3; align-self: start; padding-top: 4px; }
  .manual-row__media { grid-column: 2; grid-row: 1; aspect-ratio: 16 / 8; }
  .manual-row__body { grid-column: 2; grid-row: 2; gap: 5px; }
  .manual-row__body strong { font-size: 17px; }
  .manual-row__body em { font-size: 11px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .manual-cta { align-items: flex-start; flex-direction: column; gap: 16px; margin-top: 12px; padding: 18px; }
  .manual-cta strong { font-size: 17px; }
  .community-grid { gap: 10px; margin-bottom: 30px; }
  .community-board { min-height: 0; padding: 17px 18px; }
  .community-board > strong { font-size: 18px; }
  .topic-hero__meta { gap: 6px 16px; margin-top: 14px; }
  .topic-product { grid-template-columns: 1fr; }
  .topic-product__media { aspect-ratio: 16 / 8; min-height: 0; }
  .topic-product__body { padding: 18px; }
  .post-hero { padding: 30px 0 26px; }
  .post-hero h1 { font-size: 26px; line-height: 1.4; }
  .post-hero__meta { gap: 6px 10px; margin-top: 14px; }
  .post-card--reading { padding: 20px; }
}

/* P4 — member center */
.user-main { min-width: 0; padding: 0; border: 0; background: transparent; }
.user-nav__profile { display: grid; grid-template-columns: 38px minmax(0,1fr); column-gap: 10px; row-gap: 2px; align-items: center; }
.user-nav__profile .avatar { grid-row: 1 / 3; width: 38px; height: 38px; }
.user-nav__profile strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-nav__profile em { grid-column: 2; margin-left: 0; }
.user-hero {
  position: relative; overflow: hidden; padding: 30px 32px 0; border-radius: var(--r-lg);
  background:
    radial-gradient(560px 280px at 88% 0%, color-mix(in srgb, var(--brand-600) 38%, transparent), transparent 70%),
    linear-gradient(135deg, var(--brand-950), var(--brand-900) 62%, var(--brand-800));
  color: #fff;
}
.user-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 58px 58px; mask-image: linear-gradient(90deg, transparent, #000);
}
.user-hero > * { position: relative; z-index: 1; }
.user-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.user-hero__eyebrow { color: var(--gold-400); font-size: 9px; font-weight: 600; letter-spacing: .16em; }
.user-hero h1 { margin-top: 10px; color: #fff; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.3; letter-spacing: -.03em; }
.user-hero p { margin-top: 8px; color: rgba(255,255,255,.62); font-size: 12px; }
.user-hero__avatar {
  flex: 0 0 auto; width: 58px; height: 58px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.1);
  color: #fff; font-size: 22px; font-weight: 600;
}
.user-hero__stats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); margin-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.user-hero__stats > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 15px 16px 17px; }
.user-hero__stats > div + div { border-left: 1px solid rgba(255,255,255,.12); }
.user-hero__stats strong { color: #fff; font-size: 23px; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.user-hero__stats span { color: rgba(255,255,255,.55); font-size: 10px; }
.user-panel { margin-top: 4px; padding: 22px 24px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.user-panel .section-title { margin-top: 0; }

/* App 内「我的 → App 设置 → 检查更新」 */
.app-update-panel { margin-top: 14px; }
.app-update-panel[hidden] { display: none; }
.app-update-note { color: var(--ink-500); font-size: 11px; font-weight: 400; }
.app-update-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 4px 0 2px; }
.app-update-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.app-update-meta strong { color: var(--brand-900); font-size: 14px; font-weight: 600; }
.app-update-meta small { color: var(--ink-500); font-size: 12px; }
.app-update-meta small span { color: var(--brand-700); font-variant-numeric: tabular-nums; }
.app-update-hint { margin: 10px 0 0; color: var(--ink-400); font-size: 11px; line-height: 1.55; }
@media (max-width: 640px) {
  .app-update-row { align-items: flex-start; gap: 12px; }
  .app-update-row .btn { flex: 0 0 auto; }
  .app-update-hint { margin-top: 8px; }
}
@media (max-width: 1000px) {
  .user-hero { padding: 24px 24px 0; }
  .user-hero__stats > div { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 640px) {
  .user-hero { padding: 21px 18px 0; border-radius: var(--r-md); }
  .user-hero h1 { margin-top: 8px; font-size: 24px; }
  .user-hero__avatar { width: 44px; height: 44px; font-size: 17px; }
  .user-hero__stats { margin-top: 18px; }
  .user-hero__stats > div { padding: 12px 5px 13px; }
  .user-hero__stats strong { font-size: 18px; }
  .user-hero__stats span { font-size: 9px; white-space: nowrap; }
  .user-panel { margin-top: 0; padding: 16px 14px 12px; border-radius: var(--r-md); }
  .user-panel.app-update-panel { margin-top: 12px; }
  .user-panel .section-title { margin-bottom: 6px; }
  .user-panel .mini-table__head, .user-panel .mini-table__row { padding-left: 0; padding-right: 0; }
}

/* P5 — emoji picker + share */
.emoji-picker { position: relative; display: inline-flex; flex: 0 0 auto; }
.emoji-trigger {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink-500); font-size: 12px; cursor: pointer;
}
.emoji-trigger:hover { border-color: var(--brand-300); background: var(--brand-50); color: var(--brand-700); }
.emoji-trigger svg { transform: rotate(90deg); transition: transform .18s ease; }
.emoji-trigger[aria-expanded="true"] { border-color: var(--brand-400); background: var(--brand-50); color: var(--brand-700); }
.emoji-trigger[aria-expanded="true"] svg { transform: rotate(-90deg); }
.emoji-popover {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 80;
  width: min(344px, calc(100vw - 96px)); max-height: min(340px, 52vh);
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #fff;
  box-shadow: 0 24px 55px -24px rgba(8,29,30,.4);
}
.emoji-popover__head { display: flex; align-items: baseline; gap: 7px; padding: 13px 14px 10px; border-bottom: 1px solid var(--line); }
.emoji-popover__head strong { color: var(--brand-900); font-size: 13px; }
.emoji-popover__head span { color: var(--ink-400); font-size: 9px; }
.emoji-popover__close { margin-left: auto; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-400); font-size: 18px; line-height: 1; cursor: pointer; }
.emoji-popover__close:hover { background: var(--bg-alt); color: var(--ink-700); }
.emoji-popover__body { overflow: auto; overscroll-behavior: contain; padding: 10px 12px 12px; }
.emoji-group + .emoji-group { margin-top: 12px; }
.emoji-group h4 { margin-bottom: 7px; color: var(--ink-400); font-size: 9px; font-weight: 500; letter-spacing: .1em; }
.emoji-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.emoji-grid button {
  display: grid; place-items: center; aspect-ratio: 1 / 1; min-width: 0; padding: 0;
  border: 0; border-radius: 6px; background: transparent; font-size: 17px; line-height: 1; cursor: pointer;
}
.emoji-grid button:hover, .emoji-grid button:focus-visible { background: var(--brand-50); }
.emoji-popover__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.emoji-popover__foot span { color: var(--ink-400); font-size: 9px; }
.emoji-popover__foot button { border: 0; background: transparent; color: var(--brand-700); font-size: 10px; cursor: pointer; }

.share-bar {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px 28px;
  margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
}
.share-bar__kicker { color: var(--gold-600); font-size: 9px; font-weight: 600; letter-spacing: .14em; }
.share-bar__head strong { display: block; margin-top: 5px; color: var(--brand-900); font-size: 17px; letter-spacing: -.02em; }
.share-bar__head p { margin-top: 4px; color: var(--ink-400); font-size: 11px; }
.share-bar__actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.share-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink-500); font-size: 11px; line-height: 1; text-decoration: none; cursor: pointer;
}
.share-chip:hover { border-color: var(--brand-300); background: var(--brand-50); color: var(--brand-700); }
.share-chip__ico { color: var(--ink-400); font-size: 13px; }
.share-chip__badge { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 8px; font-weight: 600; line-height: 1; }
.share-chip__badge--wechat { background: #07c160; }
.share-chip__badge--weibo { background: #e6162d; }
.share-chip__badge--qq { background: #12b7f5; }
.share-chip__badge--qzone { background: #f5a623; }
.share-bar__status { grid-column: 1 / -1; min-height: 14px; margin-top: -8px; color: var(--brand-600); font-size: 10px; }
@media (max-width: 640px) {
  .emoji-popover { width: min(310px, calc(100vw - 104px)); max-height: 310px; }
  .emoji-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .emoji-popover__head span { display: none; }
  .share-bar { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; padding: 16px; border-radius: var(--r-md); }
  .share-bar__actions { justify-content: flex-start; }
  .share-bar__head strong { font-size: 16px; }
  .share-bar__status { margin-top: 0; }
}
.emoji-popover[hidden], .share-chip[hidden] { display: none; }
.emoji-popover__body { flex: 1 1 auto; min-height: 0; }
.emoji-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 8px 12px 0; }
.emoji-tabs button { height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-400); font-size: 10px; cursor: pointer; }
.emoji-tabs button:hover { color: var(--brand-700); background: var(--brand-50); }
.emoji-tabs button.is-active { background: var(--brand-900); color: #fff; }
@media (max-width: 340px) {
  .emoji-popover { width: calc(100vw - 72px); }
  .emoji-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .emoji-grid button { font-size: 16px; }
  .emoji-tabs button { font-size: 9px; }
  .emoji-popover__foot span { display: none; }
  .emoji-popover__foot { justify-content: flex-end; }
}
