/* ==========================================================================
   茂兴织染 设计系统 v0.1（2026-11-08，Claude 设计阶段）
   交接规则：GPT 铺页面时只引用本文件的 token 和组件类，不改取值。
   取值说明与理由见 redesign/HANDOFF-design.md。
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---------- 1. Tokens ---------- */
:root {
  /* 三色：深棕（暖灰棕）+ 哑光金 + 米白。只用下列值，不新增颜色。 */
  --umber-900: #2b221c;   /* 深棕：深色底、正文主色 */
  --umber-800: #3a2e26;   /* 深棕浅一阶：深色底上的分层 */
  --umber-600: #6b5848;   /* 米白底上的次要文字、标签（对 ivory-100 对比 5.9:1） */
  --gold-500:  #a88a55;   /* 哑光金：细线、装饰、深底大字。米白底上不做文字色 */
  --gold-400:  #b49360;   /* 按钮底色（深棕字对比 5.6:1） */
  --gold-300:  #c9b184;   /* 深底上的小字、标签（对 umber-900 对比 7.6:1） */
  --ivory-100: #f5f0e7;   /* 米白：主底色 */
  --ivory-50:  #fbf8f2;   /* 纸白：卡片、表格底 */

  --line-gold: rgba(168, 138, 85, .55);
  --line-soft: rgba(43, 34, 28, .12);
  --scrim: linear-gradient(180deg, rgba(43,34,28,.55) 0%, rgba(43,34,28,0) 22%, rgba(43,34,28,0) 55%, rgba(43,34,28,.6) 100%);

  /* 字体 */
  --font-display-en: "Cormorant Garamond", "Times New Roman", serif;
  --font-display-zh: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --font-sans: "Jost", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;

  /* 字号：按《The Elements of Typographic Style》经典音阶取值 */
  --fs-label:   0.75rem;                         /* 12 标签、导航（全大写） */
  --fs-small:   0.875rem;                        /* 14 辅助说明 */
  --fs-body:    1rem;                            /* 16 正文 */
  --fs-lead:    clamp(1.125rem, 1rem + .5vw, 1.3125rem);   /* 18→21 导语 */
  --fs-h3:      1.5rem;                          /* 24 */
  --fs-figure:  clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);   /* 36→60 大数字 */
  --fs-h2:      clamp(2.25rem, 1.5rem + 3.2vw, 4.5rem);    /* 36→72 栏目标题 */
  --fs-display: clamp(2.75rem, 1.4rem + 6vw, 6rem);        /* 44→96 Hero 标题 */

  --track-label: .24em;     /* 无衬线小字全大写的字距 */
  --track-display: .08em;   /* 英文衬线大写标题字距 */
  --track-display-zh: .18em;/* 中文宋体标题字距 */

  /* 间距：4px 基数 */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem;   --s-7: 3rem;  --s-8: 4rem;   --s-9: 6rem;  --s-10: 8rem;
  --section-pad: clamp(5rem, 4rem + 6vw, 10rem);  /* 栏目上下留白 */
  --gutter: clamp(1.25rem, .8rem + 2.4vw, 3rem);  /* 左右边距 */
  --measure: 36rem;          /* 居中窄栏宽度（中文约 36 字/行） */
  --wrap: 80rem;             /* 内容最大宽度 */

  /* 动效 */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur-fast: 180ms;
  --dur-reveal: 900ms;
  --dur-slide: 1600ms;

  --header-h: 4.5rem;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory-100);
  color: var(--umber-900);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.skip-link {
  position: absolute; left: var(--s-4); top: -4rem; z-index: 100;
  background: var(--umber-900); color: var(--ivory-100);
  padding: var(--s-3) var(--s-5); font-size: var(--fs-small);
}
.skip-link:focus { top: var(--s-4); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 3. Typography components ---------- */
/* 标签：无衬线小字全大写。只用来标明“这一屏是什么”，不叠在每个标题上。 */
.label {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--umber-600);
}
.on-dark .label { color: var(--gold-300); }

/* 衬线大标题：大写、宽字距、居中 */
.display, .heading {
  margin: 0;
  font-family: var(--font-display-en);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-display);
  line-height: 1.04;
  text-wrap: balance;
}
.display { font-size: var(--fs-display); }
.heading { font-size: var(--fs-h2); }
html[lang^="zh"] .display, html[lang^="zh"] .heading {
  font-family: var(--font-display-zh);
  font-weight: 600;
  letter-spacing: var(--track-display-zh);
  line-height: 1.2;
}
/* 中文页里的英文副标（如 MAOXING）仍用英文衬线 */
.latin { font-family: var(--font-display-en); }

.lead {
  font-family: var(--font-display-en);
  font-size: var(--fs-lead);
  line-height: 1.6;
}
html[lang^="zh"] .lead { font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.9; }

/* 金色细线分隔 */
.rule {
  display: block; width: 4rem; height: 1px; border: 0; margin: var(--s-6) auto;
  background: var(--gold-500);
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 3rem; padding: 0 var(--s-6);
  font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-400); color: var(--umber-900); }
.btn-gold:hover { background: var(--gold-300); }
.btn-line { border-color: var(--line-gold); color: inherit; background: transparent; }
.btn-line:hover { border-color: var(--gold-500); background: rgba(168,138,85,.08); }

/* 文字链接：金线自左向右画出 */
.link {
  font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: flex-end; min-height: 2.75rem;
  padding-bottom: .35em;
  background: linear-gradient(var(--gold-500), var(--gold-500)) left bottom / 100% 1px no-repeat;
  transition: background-size 300ms var(--ease);
}
.link:hover { background-size: 30% 1px; }
.link[href^="mailto:"] { text-transform: none; letter-spacing: normal; }

/* 采购内容页：复用正文、分栏、卡片、问答与规格表，不影响首页和产品页。 */
.content-width { max-width: var(--wrap); margin-inline: auto; min-width: 0; }
.content-page .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.content-page .section-head { display: block; text-align: center; }
.content-page .section-head > * { max-width: 50rem; margin-inline: auto; }
.content-page .heading { overflow-wrap: break-word; }
.content-page h1.heading { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); }
.content-page .label + .heading, .content-page .heading + p { margin-top: var(--s-4); }
.content-page .content-width > .heading { margin-bottom: var(--s-7); }
.content-page .content-width > h2.heading { text-align: center; }
.content-page .content-hero:not(:has(.split)) { text-align: center; }
.content-page .content-hero:not(:has(.split)) .lead { max-width: 50rem; margin-inline: auto; }
.content-page .content-hero:not(:has(.split)) .actions { justify-content: center; }
.content-page .content-image { display: block; width: 100%; max-width: 32.5rem; margin: 0; justify-self: end; }
.content-page .content-image img, .content-page .card .article-cover img { width: 100%; height: auto; }
.content-page .prose { width: 100%; min-width: 0; }
.content-columns { display: grid; gap: var(--s-7); min-width: 0; }
.content-page > .content-columns { max-width: var(--wrap); margin-inline: auto; }
.content-columns > * { min-width: 0; }
.content-page .content-aside { align-self: start; display: grid; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line-gold); }
.content-page .content-aside a { display: block; padding-block: var(--s-2); text-underline-offset: .3em; }
.content-page .content-aside .heading { font-size: var(--fs-h3); }
.content-page .content-fact { width: 100%; padding-top: var(--s-5); border-top: 1px solid var(--line-gold); overflow-wrap: anywhere; }
.content-page .content-fact dt { margin-top: var(--s-4); color: var(--umber-600); font-family: var(--font-sans); font-size: var(--fs-small); }
.content-page .content-fact dd { margin: var(--s-1) 0 0; }
.content-page .content-table { overflow-x: auto; max-width: 100%; margin-block: var(--s-6); }
.content-page .content-table .spec-table { min-width: 40rem; }
.content-page .content-table th, .content-page .content-table td { padding-inline: var(--s-4); }
.content-page .content-table th { width: auto; white-space: nowrap; }
.content-page section.faq-list > details { max-width: var(--measure); margin-inline: auto; }
.content-page .content-links { max-width: var(--measure); margin-inline: auto; padding-left: var(--s-5); }
.content-page .content-links a { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .3em; }
.content-page .card .card-name { margin-block: var(--s-4); }
.content-footer .footer-links { display: grid; gap: var(--s-2); font-size: var(--fs-small); }
.content-footer .footer-legal { margin-top: var(--s-5); }
.content-footer a { overflow-wrap: anywhere; text-underline-offset: .3em; }
@media (min-width: 60rem) {
  .content-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-9); }
  .content-columns:has(> aside) { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
}
@media (max-width: 63.999rem) { .content-header .nav-optional { display: none; } }

/* ---------- 5. Header（透明叠加，Logo 居中，语言切换左上） ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  color: var(--ivory-100);
}
.lang-switch { display: flex; gap: var(--s-1); justify-self: start; }
.lang-switch a, .lang-switch span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s-2);
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .16em; text-decoration: none;
}
.lang-switch [aria-current] { color: var(--gold-300); }
.wordmark { display: grid; justify-items: center; align-content: center; min-height: 2.75rem; text-decoration: none; line-height: 1; }
.wordmark-en {
  font-family: var(--font-display-en); font-size: 1.5rem; font-weight: 500;
  letter-spacing: .32em; margin-right: -.32em; /* 抵消末字字距，保持视觉居中 */
}
.wordmark-zh { margin-top: .45rem; font-size: .6875rem; letter-spacing: .5em; margin-right: -.5em; color: var(--gold-300); }
.header-nav { justify-self: end; display: flex; gap: var(--s-5); }
.header-nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label);
  text-transform: uppercase; text-decoration: none;
}
.header-nav a:hover { color: var(--gold-300); }
/* Four-item static navigation; the separately maintained blog header is unchanged. */
@media (max-width: 35.999rem) { .header-nav:has(a[href$="/garments/"]) { gap: var(--s-3); } }
@media (max-width: 63.999rem) {
  .site-header { height: calc(var(--header-h) + 2.75rem); grid-template-rows: var(--header-h) 2.75rem; }
  .header-nav { grid-column: 1 / -1; justify-self: center; }
}

/* ---------- 6. Hero（全屏轮播 + 深棕标题牌） ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; align-items: end; justify-items: center;
  padding: calc(var(--header-h) + var(--s-6)) var(--gutter) var(--s-9);
  background: var(--umber-900);
}
@media (max-width: 63.999rem) { .hero { padding-top: calc(var(--header-h) + 2.75rem + var(--s-6)); } }
.hero-slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity var(--dur-slide) var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 9s linear;
}
.hero-slide.is-active img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--scrim); pointer-events: none; }

.hero-plaque {
  position: relative; z-index: 2;
  width: min(100%, 40rem);
  padding: var(--s-7) var(--s-5) var(--s-6);
  background: rgba(43, 34, 28, .9);
  border: 1px solid var(--line-gold);
  color: var(--ivory-100);
  text-align: center;
  margin-bottom: 6svh;
}
.hero-plaque .display { color: var(--ivory-100); }
.hero-plaque .rule { margin: var(--s-5) auto; }
.hero-sub { margin: 0 auto var(--s-6); max-width: 30rem; color: rgba(245,240,231,.86); font-size: var(--fs-small); line-height: 1.8; }
@media (min-width: 48rem) {
  .hero-plaque { padding: var(--s-7) var(--s-8) var(--s-6); }
  .hero-sub { font-size: var(--fs-body); }
}

/* 轮播控制：当前款号 + 进度 + 暂停 */
.hero-controls {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: var(--s-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding-bottom: env(safe-area-inset-bottom);
  color: var(--ivory-100);
}
.hero-caption { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-label); letter-spacing: .16em; text-decoration: none; min-height: 2.75rem; display: block; line-height: 2.75rem; }
.hero-caption:hover { color: var(--gold-300); }
.hero-dots { display: flex; align-items: center; gap: var(--s-1); }
.hero-dot, .hero-pause {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  background: none; border: 0; padding: 0; color: inherit; cursor: pointer;
}
.hero-dot::before { content: ""; width: 1.75rem; height: 1px; background: rgba(245,240,231,.45); transition: background-color var(--dur-fast) var(--ease), height var(--dur-fast) var(--ease); }
.hero-dot:hover::before { background: var(--ivory-100); }
.hero-dot[aria-current="true"]::before { background: var(--gold-300); height: 2px; }
.hero-pause svg { width: .75rem; height: .75rem; fill: currentColor; }
@media (max-width: 30rem) {
  .hero-controls { gap: var(--s-2); }
  .hero-caption { display: flex; flex-shrink: 0; }
  .hero-caption .caption-index, .hero-caption .caption-name { display: none; }
}

/* ---------- 7. 栏目通用 ---------- */
.section { padding: var(--section-pad) var(--gutter); }
.section-center { text-align: center; }
.section-dark { background: var(--umber-900); color: var(--ivory-100); }
.measure { max-width: var(--measure); margin-inline: auto; }

/* 品牌导言：米白底、居中窄栏 */
.brand .heading { margin-top: var(--s-5); }
.brand-copy p { margin: 0 0 var(--s-5); color: var(--umber-900); }
.brand-copy p:last-child { margin-bottom: 0; }
.figures {
  list-style: none; margin: var(--s-9) auto 0; padding: 0;
  max-width: 64rem;
  display: grid; grid-template-columns: 1fr; gap: var(--s-7);
}
.figure { display: grid; justify-items: center; gap: var(--s-2); }
.figure-value {
  font-family: var(--font-display-en); font-size: var(--fs-figure); font-weight: 500;
  line-height: 1; letter-spacing: .02em; color: var(--umber-900);
  font-variant-numeric: lining-nums;
}
.figure-value small { font-size: .45em; letter-spacing: .1em; margin-left: .15em; }
html[lang^="zh"] .figure-value small { font-family: var(--font-display-zh); }
@media (min-width: 48rem) {
  .figures { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .figure + .figure { border-left: 1px solid var(--line-gold); }
}
.brand-more { margin-top: var(--s-8); }

/* ---------- 8. 进场动效：只用于品牌区一次性淡入，不铺到每个栏目 ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.hero-plaque[data-enter] { animation: plaque-in 1200ms var(--ease) 200ms both; }
@keyframes plaque-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-slide img { transform: none; }
}

/* ==========================================================================
   产品详情页组件（v0.2，2026-11-08）
   ========================================================================== */

/* ---------- 9. 实底页眉（非 Hero 页面） ---------- */
.site-header--solid {
  position: relative;
  color: var(--umber-900);
  background: var(--ivory-100);
  border-bottom: 1px solid var(--line-soft);
}
.site-header--solid .lang-switch [aria-current],
.site-header--solid .wordmark-zh { color: var(--umber-600); }
.site-header--solid .header-nav a:hover { color: var(--umber-600); }

.breadcrumb { padding: var(--s-5) var(--gutter) 0; max-width: var(--wrap); margin-inline: auto; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--gold-500); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--umber-900); }

/* ---------- 10. 产品首屏：主图 + 名称 + 规格表 ---------- */
.product-intro {
  max-width: var(--wrap); margin-inline: auto;
  padding: var(--s-6) var(--gutter) var(--section-pad);
  display: grid; gap: var(--s-7);
}
.product-media { margin: 0; background: var(--ivory-50); aspect-ratio: 4 / 5; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-head .heading { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); margin-top: var(--s-4); }
.product-head .rule { margin: var(--s-5) 0; }
.product-head .intro { margin: 0 0 var(--s-5); max-width: 34rem; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-6); padding: 0; list-style: none; }
.tags li { padding: .3rem .75rem; border: 1px solid var(--line-gold); font-size: var(--fs-small); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
@media (max-width: 30rem) { .actions .btn { flex: 1 1 100%; } }
@media (min-width: 60rem) {
  .product-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-9); align-items: start; }
  .product-media { position: sticky; top: var(--s-5); }
}

/* 规格表：两列，细线分隔，无底色块 */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.spec-table caption { text-align: left; padding-bottom: var(--s-3); }
.spec-table th, .spec-table td { padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--line-gold); }
.spec-table th { width: 36%; font-weight: 400; color: var(--umber-600); font-size: var(--fs-small); padding-right: var(--s-4); }
.spec-table td { font-variant-numeric: lining-nums tabular-nums; }
.price-note { margin: var(--s-4) 0 0; font-size: var(--fs-small); color: var(--umber-600); }

/* ---------- 11. 电子色卡 ---------- */
.swatch-section { background: var(--ivory-50); }
.swatch-section .section-head { text-align: center; margin-bottom: var(--s-8); }
.swatch-section .heading { margin-top: var(--s-4); }
.swatch-pages { display: grid; gap: var(--s-6); max-width: 64rem; margin-inline: auto; }
.swatch-page { display: block; background: var(--ivory-50); border: 1px solid var(--line-soft); padding: var(--s-3); text-decoration: none; transition: border-color var(--dur-fast) var(--ease); }
.swatch-page:hover { border-color: var(--gold-500); }
.swatch-page img { width: 100%; height: auto; }
.swatch-note { margin: var(--s-6) auto 0; max-width: var(--measure); text-align: center; font-size: var(--fs-small); color: var(--umber-600); }

/* ---------- 12. 样卡与成品图 ---------- */
.gallery { display: grid; gap: var(--s-5); max-width: var(--wrap); margin: var(--s-8) auto 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); } }
.gallery figure { margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--ivory-50); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.gallery a:hover img { transform: scale(1.03); }
.gallery-single { max-width: 40rem; }

/* ---------- 13. 采购条款（深棕带） ---------- */
.terms .section-head { text-align: center; margin-bottom: var(--s-8); }
.terms .heading { margin-top: var(--s-4); color: var(--ivory-100); }
.terms-list { display: grid; gap: var(--s-6); max-width: var(--wrap); margin: 0 auto; padding: 0; list-style: none; }
.terms-list li { padding-top: var(--s-5); border-top: 1px solid var(--line-gold); }
.terms-list h3 { margin: 0 0 var(--s-3); font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold-300); }
.terms-list p { margin: 0; color: rgba(245,240,231,.88); font-size: var(--fs-small); line-height: 1.85; }
@media (min-width: 48rem) { .terms-list { grid-template-columns: repeat(2, 1fr); gap: var(--s-7) var(--s-8); } }
@media (min-width: 72rem) { .terms-list { grid-template-columns: repeat(4, 1fr); } }
.terms .actions { justify-content: center; margin-top: var(--s-8); }
.terms .btn-line { color: var(--ivory-100); }

/* ---------- 14. 相关推荐（大图卡片） ---------- */
.related .section-head { text-align: center; margin-bottom: var(--s-8); }
.related .heading { margin-top: var(--s-4); }
.cards { display: grid; gap: var(--s-7) var(--s-5); max-width: var(--wrap); margin: 0 auto; padding: 0; list-style: none; }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: block; text-decoration: none; }
.card-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ivory-50); margin-bottom: var(--s-4); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-code { display: block; }
.card-name { display: block; margin-top: var(--s-2); font-family: var(--font-display-en); font-size: var(--fs-h3); line-height: 1.25; }
html[lang^="zh"] .card-name { font-family: var(--font-display-zh); font-size: 1.25rem; font-weight: 600; letter-spacing: .04em; }
.card-meta { display: block; margin-top: var(--s-2); font-size: var(--fs-small); color: var(--umber-600); }

/* ---------- 15. 页脚 ---------- */
.site-footer { background: var(--umber-900); color: rgba(245,240,231,.82); padding: var(--s-8) var(--gutter) max(var(--s-6), env(safe-area-inset-bottom)); }
.site-footer-inner { max-width: var(--wrap); margin: 0 auto; display: grid; gap: var(--s-6); }
@media (min-width: 48rem) { .site-footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .wordmark { justify-items: start; color: var(--ivory-100); }
.site-footer .wordmark-en, .site-footer .wordmark-zh { margin-right: 0; }
.site-footer h2 { margin: 0 0 var(--s-3); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold-300); }
.site-footer p, .site-footer address { margin: 0; font-style: normal; font-size: var(--fs-small); line-height: 1.9; }
.site-footer a { text-decoration: none; display: inline-flex; min-height: 2.75rem; align-items: center; }
.site-footer a:hover { color: var(--gold-300); }

/* ---------- 16. 问答（details 折叠） ---------- */
.faq .section-head { margin-bottom: var(--s-7); }
.faq .heading { margin-top: var(--s-4); }
.faq-list details { border-top: 1px solid var(--line-soft); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 3.5rem; padding: var(--s-3) 0; cursor: pointer; list-style: none; font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-display-en); font-size: 1.5rem; color: var(--gold-500); transition: transform var(--dur-fast) var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--umber-600); }
.faq-list details p { margin: 0 0 var(--s-5); color: var(--umber-600); }
html[lang^="zh"] .product-head .heading { font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.75rem); letter-spacing: .12em; }
.name-spec { display: block; font-size: .62em; font-weight: 500; letter-spacing: .14em; margin-bottom: .25em; color: var(--umber-600); }
.name-spec { font-variant-numeric: lining-nums; }
@media (max-width: 59.99rem) { .product-media { aspect-ratio: 1; } }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.breadcrumb ol { align-items: center; }
@media (max-width: 22.5rem) {
  .wordmark-en { font-size: 1.25rem; letter-spacing: .24em; margin-right: -.24em; }
  .header-nav a, .lang-switch a, .lang-switch span { letter-spacing: .12em; }
}
html[lang="en"] .product-head .heading { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); letter-spacing: .06em; line-height: 1.12; }
.nowrap { white-space: nowrap; }

/* ---------- 17. 中文页电话 / 微信行 ---------- */
.contact-line { margin: var(--s-4) 0 0; font-size: var(--fs-small); color: var(--umber-600); }
.contact-line a { display: inline-flex; align-items: center; min-height: 2.75rem; font-variant-numeric: lining-nums tabular-nums; letter-spacing: .04em; color: var(--umber-900); text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: .3em; }
.terms .contact-line { text-align: center; color: rgba(245,240,231,.82); }
.terms .contact-line a { color: var(--ivory-100); }

/* ==========================================================================
   首页其余栏目 + 列表页 / 博客组件（v0.3，2026-11-08）
   ========================================================================== */

/* ---------- 18. 栏目标题区（居中：标签 + 标题 + 可选导语） ---------- */
.section-head { text-align: center; margin: 0 auto var(--s-8); max-width: 48rem; }
.section-head .heading { margin-top: var(--s-4); }
.section-head .intro { margin: var(--s-5) auto 0; max-width: var(--measure); color: var(--umber-600); }
.section-dark .section-head .intro { color: rgba(245,240,231,.82); }
.section-foot { margin-top: var(--s-8); text-align: center; }
.section-paper { background: var(--ivory-50); }

/* ---------- 19. 产品墙 / 列表页卡片网格 ---------- */
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-4); max-width: var(--wrap); margin: 0 auto; padding: 0; list-style: none; }
@media (min-width: 48rem) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--s-5); } }
@media (min-width: 72rem) { .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 72rem) {
  .products-wall .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wall--methods { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.wall .card-name { font-size: 1.125rem; }
@media (min-width: 48rem) { .wall .card-name { font-size: 1.25rem; } }
.wall .card-meta { line-height: 1.6; }
.card-top { display: flex; align-items: center; gap: var(--s-3); min-height: var(--s-5); }
.badge-new {
  display: inline-block; padding: .15rem .5rem; border: 1px solid var(--gold-500);
  font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--umber-900); line-height: 1.4;
}

/* ---------- 20. 图文分栏（印花定制等） ---------- */
.split { display: grid; gap: var(--s-7); max-width: var(--wrap); margin: 0 auto; align-items: center; }
@media (min-width: 60rem) { .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-9); } }
.split-copy .heading { margin-top: var(--s-4); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); }
.split-copy .rule { margin: var(--s-5) 0; }
.split-copy p { margin: 0 0 var(--s-5); max-width: 32rem; }
.media-slot { margin: 0; aspect-ratio: 4 / 5; background: var(--ivory-50); border: 1px solid var(--line-soft); overflow: hidden; display: grid; place-items: center; }
.media-slot img { width: 100%; height: 100%; object-fit: cover; }
.media-slot-empty { color: var(--umber-600); font-size: var(--fs-small); letter-spacing: .12em; }
@media (min-width: 60rem) { .media-slot { aspect-ratio: 5 / 6; } }

/* ---------- 21. 博客卡片（首页最新 3 篇、博客列表页） ---------- */
.post-cards { display: grid; gap: var(--s-7); max-width: var(--wrap); margin: 0 auto; padding: 0; list-style: none; }
@media (min-width: 60rem) { .post-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); } }
.post-card { display: flex; flex-direction: column; height: 100%; padding-top: var(--s-5); border-top: 1px solid var(--line-gold); text-decoration: none; }
.post-card time, .post-card .post-cat { display: block; }
.post-card-title { margin: var(--s-3) 0 var(--s-4); font-family: var(--font-display-en); font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; }
html[lang^="zh"] .post-card-title { font-family: var(--font-display-zh); font-size: 1.25rem; font-weight: 600; letter-spacing: .03em; line-height: 1.55; }
.post-card-summary { margin: 0 0 var(--s-5); color: var(--umber-600); font-size: var(--fs-small); line-height: 1.85; }
.post-card-more { margin-top: auto; align-self: flex-start; }
.post-card:hover .post-card-title { color: var(--umber-600); }

/* ---------- 22. 联系区（深棕底）+ 地图 ---------- */
.contact-grid { display: grid; gap: var(--s-8); max-width: var(--wrap); margin: 0 auto; align-items: start; }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-9); } }
.contact-copy .heading { margin-top: var(--s-4); color: var(--ivory-100); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); }
.contact-copy .rule { margin: var(--s-5) 0; }
.contact-list { margin: 0; display: grid; gap: var(--s-4); }
.contact-list div { display: grid; gap: var(--s-1); }
.contact-list dt { font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold-300); }
.contact-list dd { margin: 0; color: rgba(245,240,231,.9); }
.contact-list a { color: var(--ivory-100); text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: .3em; display: inline-flex; align-items: center; min-height: 2.75rem; }
.contact-copy .actions { margin-top: var(--s-7); }
.contact-copy .btn-line { color: var(--ivory-100); }
.map-frame { margin: 0; border: 1px solid var(--line-gold); background: var(--umber-800); aspect-ratio: 4 / 3; }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.15); }
.map-attribution { font-size: .75rem; opacity: .65; }
.map-links { display: flex; flex-wrap: wrap; gap: var(--s-5); margin: var(--s-4) 0 0; font-size: var(--fs-small); }
.map-links a { color: var(--gold-300); display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.map-links a:hover { color: var(--ivory-100); }

/* ---------- 23. 窄页脚（首页联系区之后：备案号与版权） ---------- */
.site-footer--slim { padding-top: var(--s-5); border-top: 1px solid rgba(201,177,132,.25); }
.site-footer--slim .site-footer-inner { grid-template-columns: 1fr; gap: var(--s-2); }
@media (min-width: 48rem) { .site-footer--slim .site-footer-inner { grid-template-columns: 1fr auto; align-items: center; } }
.footer-legal { font-size: var(--fs-small); color: rgba(245,240,231,.7); }
.footer-legal a { color: inherit; }

/* ---------- 24. 列表页筛选栏（GPT 做产品列表页用） ---------- */
.filter-bar { display: grid; gap: var(--s-4); max-width: var(--wrap); margin: 0 auto var(--s-8); padding: var(--s-4) 0; border-top: 1px solid var(--line-gold); border-bottom: 1px solid var(--line-soft); }
@media (min-width: 60rem) { .filter-bar { grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-6); } }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.filter-group legend { float: left; margin-right: var(--s-3); padding: 0; }
.chip {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s-4);
  font: inherit; font-size: var(--fs-small); color: var(--umber-900); background: transparent;
  border: 1px solid var(--line-soft); border-radius: 0; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--gold-500); }
.chip[aria-pressed="true"] { background: var(--umber-900); border-color: var(--umber-900); color: var(--ivory-100); }
.filter-count { font-size: var(--fs-small); color: var(--umber-600); }
.wall [hidden] { display: none; }
.empty-state { text-align: center; padding: var(--s-8) 0; color: var(--umber-600); }

/* ---------- 25. 博客正文排版（文章详情页） ---------- */
.prose { max-width: 40rem; margin: 0 auto; font-size: 1.0625rem; line-height: 1.9; }
html[lang="en"] .prose { font-family: var(--font-display-en); font-size: 1.25rem; line-height: 1.65; }
.prose > * + * { margin-top: 1.15em; }
.prose > * { margin-bottom: 0; }
.prose h2 { margin-top: 2.4em; font-family: var(--font-display-en); font-size: 1.875rem; font-weight: 500; line-height: 1.25; }
html[lang^="zh"] .prose h2 { font-family: var(--font-display-zh); font-size: 1.5rem; font-weight: 600; letter-spacing: .04em; line-height: 1.5; }
.prose h3 { margin-top: 2em; font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 600; }
.prose a { text-decoration-color: var(--gold-500); text-underline-offset: .25em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding-left: var(--s-5); border-left: 1px solid var(--gold-500); color: var(--umber-600); }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: var(--s-2); font-family: var(--font-sans); font-size: var(--fs-small); color: var(--umber-600); }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: var(--fs-small); line-height: 1.6; display: block; overflow-x: auto; }
.prose th, .prose td { padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.prose thead th { border-bottom-color: var(--line-gold); color: var(--umber-600); font-weight: 500; }
.article-head { text-align: center; max-width: 48rem; margin: 0 auto var(--s-8); }
.article-head .heading { margin-top: var(--s-4); font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem); text-transform: none; letter-spacing: .01em; }
html[lang^="zh"] .article-head .heading { letter-spacing: .06em; }
.article-meta { margin-top: var(--s-5); }
.site-footer-inner.site-footer--slim { margin-top: var(--s-6); gap: var(--s-2); }
@media (min-width: 48rem) { .site-footer-inner.site-footer--slim { grid-template-columns: 1fr auto; align-items: center; } }
@media (max-width: 22.5rem) { .display { font-size: 2.375rem; } .hero-plaque { padding-inline: var(--s-4); min-width: 0; } }
.hero { grid-template-columns: minmax(0, 1fr); }

/* ---------- 26. 文章页配图、相关文章、分类 ---------- */
.article-cover { max-width: 48rem; margin: 0 auto var(--s-8); }
.article-cover img { width: 100%; height: auto; }
.article-related { max-width: var(--wrap); margin: var(--s-9) auto 0; padding-top: var(--s-6); border-top: 1px solid var(--line-soft); }
.article-related > .label { margin: 0 0 var(--s-5); text-align: center; }
@media (min-width: 60rem) { .post-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 56rem; } }
.post-cat { color: var(--umber-600); }
