/* ============================================================
   乾寰陶钧 QIANHUAN TAOJUN · 一期主站样式
   依据：乾寰陶钧_网站框架与文案_完整版_v2.md §1.4 视觉基调
   规则：无渐变 / 无重阴影 / 留白优先 / 朱砂 ≤10%
   ============================================================ */

:root {
  --paper:        #F6F2E8;
  --ink:          #23211D;
  --cinnabar:     #A7352B;
  --mist:         #6E6A60;
  --line:         #D9D2C4;
  --celadon:      #7C8B84;
  --clay:         #7A4B3A;
  --glaze:        #E4ECE6;
  --reverse:      #F6F2E8;
  --reverse-dim:  #C7C2B6;
  --reverse-line: #45423A;

  --serif-zh: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --serif-en: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: 40px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-zh);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

::selection { background: var(--cinnabar); color: var(--paper); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 通用排版 ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--mist);
  text-transform: uppercase;
}
.eyebrow .en { font-family: var(--serif-en); letter-spacing: .22em; }

.sec-head { margin-bottom: 44px; }
.sec-head h2 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .08em;
  margin: 14px 0 8px;
  line-height: 1.5;
}
.sec-head p { color: var(--mist); font-size: 15px; margin: 0; }
.sec-head .rule { width: 36px; height: 1px; background: var(--cinnabar); margin-top: 22px; }

.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

.en { font-family: var(--serif-en); }

/* ---------- 顶部 ---------- */
.top-rule { height: 3px; background: var(--cinnabar); }

.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.head-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: 88px; display: flex; align-items: center; gap: 48px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 168px; height: auto; }
.brand-fallback {
  font-size: 21px; letter-spacing: .18em; font-weight: 500;
}

.nav { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.nav a {
  font-size: 15px; letter-spacing: .14em; color: var(--ink);
  padding: 6px 0; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--cinnabar); transition: right .25s ease;
}
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.nav a.is-active { color: var(--cinnabar); }
.nav .nav-sep { width: 1px; height: 16px; background: var(--line); }
.nav .nav-minor { color: var(--mist); font-size: 13px; letter-spacing: .1em; }

.head-search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); padding: 8px 14px;
  color: var(--mist); font-size: 13px; letter-spacing: .08em;
  background: transparent; white-space: nowrap;
}
.head-search:hover { border-color: var(--celadon); color: var(--ink); }
.head-search svg { width: 15px; height: 15px; }

/* ---------- 主视觉 ---------- */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 96px var(--gutter) 104px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center;
}
.hero .eyebrow { margin-bottom: 34px; display: block; }
.hero h1 {
  font-size: 52px; font-weight: 500; letter-spacing: .1em;
  line-height: 1.45; margin: 0 0 30px;
}
.hero h1 em { font-style: normal; color: var(--cinnabar); }
.hero .lede {
  color: var(--mist); font-size: 16px; line-height: 2.15;
  max-width: 520px; margin: 0 0 44px;
}
.hero .lede span { display: block; }

.search-bar {
  display: flex; align-items: stretch; border: 1px solid var(--ink);
  max-width: 560px; background: var(--paper);
}
.search-bar input {
  flex: 1; border: 0; background: transparent; outline: none;
  padding: 16px 20px; color: var(--ink); font-size: 15px; min-width: 0;
}
.search-bar input::placeholder { color: var(--mist); }
.search-bar button {
  border: 0; background: var(--ink); color: var(--paper);
  padding: 0 28px; font-size: 14px; letter-spacing: .16em; white-space: nowrap;
}
.search-bar button:hover { background: var(--cinnabar); }
.search-tips { margin-top: 14px; font-size: 12.5px; color: var(--mist); letter-spacing: .04em; }
.search-tips a { color: var(--clay); margin-right: 14px; border-bottom: 1px solid var(--line); }
.search-tips a:hover { border-color: var(--clay); }

.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 30px; font-size: 14px; letter-spacing: .14em;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--cinnabar); border-color: var(--cinnabar); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: transparent; color: var(--cinnabar); border-color: var(--cinnabar); }
.btn-sm { padding: 9px 20px; font-size: 13px; }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-art::before {
  content: ""; position: absolute; width: 430px; height: 430px;
  border: 1px solid var(--line); border-radius: 50%;
}
.hero-art::after {
  content: ""; position: absolute; width: 356px; height: 356px;
  border: 1px dashed var(--line); border-radius: 50%;
}
.hero-art img { width: 300px; height: 300px; position: relative; z-index: 1; animation: wheel 120s linear infinite; }
@keyframes wheel { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }
.hero-art .art-cap {
  position: absolute; bottom: -34px; font-size: 12px; letter-spacing: .22em;
  color: var(--celadon); font-family: var(--serif-en);
}

/* ---------- 四轴 ---------- */
.axis-sec { padding: 76px 0 80px; border-bottom: 1px solid var(--line); }
.axis-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.axis-item {
  padding: 30px 28px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; transition: background .2s;
}
.axis-item:last-child { border-right: 0; }
.axis-item:hover { background: var(--glaze); }
.axis-item .ax-num { font-family: var(--serif-en); font-size: 26px; color: var(--celadon); line-height: 1; }
.axis-item .ax-name { font-size: 19px; letter-spacing: .16em; }
.axis-item .ax-en { font-family: var(--serif-en); font-size: 13px; letter-spacing: .14em; color: var(--mist); }
.axis-item .ax-desc { font-size: 13px; color: var(--mist); line-height: 1.8; margin-top: 4px; }

/* ---------- 六域 ---------- */
.domains-sec { padding: 92px 0 96px; }
.domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.domain-card {
  background: var(--paper); padding: 36px 32px 32px; position: relative;
  display: flex; flex-direction: column; min-height: 254px;
  transition: background .22s ease;
}
.domain-card:hover { background: #FBF8F0; }
.domain-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 2px;
  background: var(--cinnabar); transition: width .3s ease;
}
.domain-card:hover::before { width: 100%; }
.dc-top { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.dc-key { font-size: 38px; font-weight: 500; line-height: 1; letter-spacing: .06em; }
.dc-en { font-family: var(--serif-en); font-size: 13px; letter-spacing: .2em; color: var(--celadon); }
.dc-line { font-size: 15px; line-height: 1.85; color: var(--ink); margin: 0 0 22px; min-height: 56px; }
.dc-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 24px; }
.dc-tags a { font-size: 13px; color: var(--mist); border-bottom: 1px solid transparent; }
.dc-tags a:hover { color: var(--cinnabar); border-color: var(--cinnabar); }
.dc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.dc-host { font-family: var(--serif-en); font-size: 12.5px; color: var(--celadon); letter-spacing: .06em; }
.dc-go { font-size: 13px; color: var(--cinnabar); letter-spacing: .1em; }
.dc-go span { display: inline-block; transition: transform .2s; }
.domain-card:hover .dc-go span { transform: translateX(4px); }

/* ---------- 专题 / 数字 / 最新 ---------- */
.topic-sec { padding: 80px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.topic-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; }
.topic-main { border-left: 2px solid var(--cinnabar); padding-left: 28px; }
.topic-main .t-label { font-size: 12px; letter-spacing: .24em; color: var(--cinnabar); }
.topic-main h3 { font-size: 27px; font-weight: 500; margin: 16px 0 14px; letter-spacing: .06em; line-height: 1.6; }
.topic-main p { color: var(--mist); font-size: 15px; margin: 0 0 22px; }
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-list li { border-top: 1px solid var(--line); padding: 15px 0; display: flex; gap: 18px; align-items: baseline; }
.topic-list li:last-child { border-bottom: 1px solid var(--line); }
.topic-list .tl-idx { font-family: var(--serif-en); font-size: 18px; color: var(--celadon); min-width: 26px; }
.topic-list a { font-size: 15.5px; letter-spacing: .04em; }
.topic-list a:hover { color: var(--cinnabar); }
.topic-list .tl-type { margin-left: auto; font-size: 12px; color: var(--mist); letter-spacing: .1em; white-space: nowrap; }

.stat-sec { padding: 68px 0; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 0 32px; border-right: 1px solid var(--line); }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: 0; }
.stat-num { font-family: var(--serif-en); font-size: 46px; line-height: 1.1; color: var(--ink); }
.stat-num small { font-size: 16px; font-family: var(--serif-zh); color: var(--mist); margin-left: 6px; }
.stat-label { font-size: 13.5px; color: var(--mist); letter-spacing: .1em; margin-top: 8px; }

.feed-sec { padding: 20px 0 96px; }
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feed-card { border-top: 1px solid var(--line); padding-top: 20px; }
.feed-card .fc-type { font-size: 12px; letter-spacing: .18em; color: var(--cinnabar); }
.feed-card h4 { font-size: 18px; font-weight: 500; margin: 12px 0 10px; line-height: 1.6; letter-spacing: .04em; }
.feed-card h4 a:hover { color: var(--cinnabar); }
.feed-card p { font-size: 13.5px; color: var(--mist); margin: 0 0 14px; line-height: 1.85; }
.feed-card .fc-meta { font-size: 12px; color: var(--celadon); letter-spacing: .06em; }

/* ---------- 共建 / 订阅 ---------- */
.join-sec { background: var(--ink); color: var(--reverse); padding: 76px 0; }
.join-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.join-sec .eyebrow { color: var(--reverse-dim); }
.join-sec h2 { font-size: 30px; font-weight: 500; letter-spacing: .08em; margin: 14px 0 16px; }
.join-sec p { color: var(--reverse-dim); font-size: 14.5px; margin: 0; line-height: 2; }
.join-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--reverse-line); border: 1px solid var(--reverse-line); }
.join-links a {
  background: var(--ink); padding: 20px 22px; font-size: 14.5px;
  letter-spacing: .1em; display: flex; justify-content: space-between; align-items: center;
}
.join-links a:hover { background: #302D27; color: var(--reverse); }
.join-links a span:last-child { color: var(--reverse-dim); font-size: 18px; }

.subscribe { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.sub-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.sub-copy h3 { font-size: 24px; font-weight: 500; letter-spacing: .08em; margin: 10px 0 8px; }
.sub-copy p { color: var(--mist); font-size: 14px; margin: 0; }
.sub-form { display: flex; border-bottom: 1px solid var(--ink); min-width: 380px; }
.sub-form input { flex: 1; border: 0; background: transparent; outline: none; padding: 12px 6px; font-size: 14px; }
.sub-form button { border: 0; background: transparent; color: var(--cinnabar); font-size: 14px; letter-spacing: .12em; padding: 0 4px 0 18px; }

/* ---------- 页脚 ---------- */
.site-foot { background: var(--ink); color: var(--reverse-dim); padding: 62px 0 0; }
.foot-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 64px; padding-bottom: 48px; }
.foot-brand img { width: 190px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: .9; }
.foot-brand p { font-size: 13.5px; margin: 0; line-height: 2; }
.foot-brand .slogan { color: var(--reverse); font-size: 16px; letter-spacing: .12em; margin-bottom: 12px; }
.foot-col h5 { color: var(--reverse); font-size: 14px; font-weight: 500; letter-spacing: .16em; margin: 0 0 18px; }
.foot-col a { display: block; font-size: 13.5px; padding: 6px 0; letter-spacing: .06em; }
.foot-col a:hover { color: var(--reverse); }
.foot-bottom {
  border-top: 1px solid var(--reverse-line); padding: 22px 0 28px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 12.5px; letter-spacing: .04em;
}
.foot-bottom a { border-bottom: 1px solid var(--reverse-line); }
.foot-bottom a:hover { color: var(--reverse); border-color: var(--reverse-dim); }
.foot-note { font-size: 12px; color: #8A867C; line-height: 1.9; margin: 0 0 18px; }

/* ---------- 内页通用 ---------- */
.page-head { padding: 60px 0 48px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 12.5px; color: var(--mist); letter-spacing: .06em; margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--cinnabar); }
.breadcrumb span { margin: 0 10px; color: var(--line); }
.page-head h1 { font-size: 40px; font-weight: 500; letter-spacing: .1em; margin: 0 0 14px; line-height: 1.5; }
.page-head h1 .ph-key { color: var(--cinnabar); margin-right: 16px; }
.page-head .ph-en { font-family: var(--serif-en); font-size: 15px; letter-spacing: .2em; color: var(--celadon); }
.page-head p { font-size: 16px; color: var(--mist); margin: 16px 0 0; max-width: 720px; }

.sec-pad { padding: 64px 0 96px; }
.notice {
  border-left: 2px solid var(--celadon); background: var(--glaze);
  padding: 16px 22px; font-size: 13.5px; color: var(--mist); line-height: 1.9; margin: 0 0 36px;
}
.notice strong { color: var(--ink); font-weight: 500; }

/* 筛选器 */
.filter-bar { border: 1px solid var(--line); margin-bottom: 40px; }
.filter-row { display: flex; border-bottom: 1px solid var(--line); padding: 14px 22px; gap: 18px; align-items: baseline; }
.filter-row:last-child { border-bottom: 0; }
.filter-row .fr-label { min-width: 76px; font-size: 13px; letter-spacing: .14em; color: var(--mist); flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid transparent; background: transparent; padding: 4px 13px;
  font-size: 13px; color: var(--ink); letter-spacing: .06em; line-height: 1.8;
}
.chip:hover { color: var(--cinnabar); }
.chip.is-on { border-color: var(--cinnabar); color: var(--cinnabar); }
.filter-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; background: #FBF8F0; font-size: 13px; color: var(--mist); }
.filter-foot button { border: 0; background: transparent; color: var(--cinnabar); font-size: 13px; letter-spacing: .08em; }

/* 结果列表 */
.result-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.result-head h3 { font-size: 18px; font-weight: 500; letter-spacing: .1em; margin: 0; }
.result-head .rh-count { font-size: 13px; color: var(--mist); }
.entity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.entity-card { background: var(--paper); padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.entity-card:hover { background: #FBF8F0; }
.ec-top { display: flex; gap: 12px; align-items: center; }
.ec-type { font-size: 11.5px; letter-spacing: .14em; color: var(--cinnabar); border: 1px solid var(--line); padding: 2px 9px; }
.ec-sample { font-size: 11px; letter-spacing: .1em; color: var(--clay); border: 1px dashed var(--clay); padding: 2px 8px; }
.ec-id { font-family: var(--serif-en); font-size: 12px; color: var(--celadon); margin-left: auto; }
.entity-card h4 { font-size: 19px; font-weight: 500; margin: 2px 0 0; letter-spacing: .05em; }
.entity-card h4 a:hover { color: var(--cinnabar); }
.ec-summary { font-size: 13.5px; color: var(--mist); line-height: 1.85; margin: 0; }
.ec-meta { font-size: 12px; color: var(--celadon); letter-spacing: .04em; margin-top: auto; padding-top: 8px; }
.empty-state { border: 1px solid var(--line); padding: 64px 32px; text-align: center; color: var(--mist); }
.empty-state .es-title { font-size: 18px; color: var(--ink); margin-bottom: 10px; }

/* 实体档案 */
.archive { display: grid; grid-template-columns: 1fr 320px; gap: 72px; padding-top: 56px; }
.archive h2 { font-size: 22px; font-weight: 500; letter-spacing: .1em; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.archive p { font-size: 15px; line-height: 2.15; color: var(--ink); }
.archive .muted { color: var(--mist); }
.param-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; font-size: 14px; }
.param-table th, .param-table td { border-bottom: 1px solid var(--line); padding: 13px 14px; text-align: left; vertical-align: top; }
.param-table th { width: 160px; color: var(--mist); font-weight: 400; letter-spacing: .08em; }
.source-badge { display: inline-block; font-size: 12px; padding: 2px 10px; border: 1px solid var(--celadon); color: var(--celadon); letter-spacing: .08em; }
.relations { list-style: none; margin: 0; padding: 0; }
.relations li { border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 14px; display: flex; gap: 14px; }
.relations .rel { color: var(--cinnabar); min-width: 52px; }
.relations a:hover { color: var(--cinnabar); }
.side-box { border: 1px solid var(--line); padding: 24px; margin-bottom: 24px; }
.side-box h4 { font-size: 14px; font-weight: 500; letter-spacing: .14em; margin: 0 0 16px; }
.side-box .sb-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.side-box .sb-row:last-child { border-bottom: 0; }
.side-box .sb-row span:first-child { color: var(--mist); }
.side-box .sb-note { font-size: 12.5px; color: var(--mist); line-height: 1.85; margin: 14px 0 0; }
.side-box .btn { width: 100%; text-align: center; margin-top: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .head-inner { gap: 24px; }
  .nav { gap: 18px; }
  .hero-inner { gap: 40px; }
  .hero h1 { font-size: 42px; }
  .hero-art::before { width: 340px; height: 340px; }
  .hero-art::after { width: 280px; height: 280px; }
  .hero-art img { width: 240px; height: 240px; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .head-inner { height: auto; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; gap: 16px; }
  .brand img { width: 140px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; gap: 20px; padding-bottom: 4px; }
  .nav .nav-minor, .nav .nav-sep { display: none; }
  .head-search { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; padding: 64px var(--gutter) 88px; }
  .hero-art { order: -1; margin-bottom: 24px; }
  .hero h1 { font-size: 36px; }
  .axis-strip, .domain-grid, .feed-grid, .stat-row, .entity-grid { grid-template-columns: repeat(2, 1fr); }
  .axis-item:nth-child(2) { border-right: 0; }
  .axis-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .topic-grid, .join-inner, .archive, .foot-top { grid-template-columns: 1fr; gap: 40px; }
  .stat-item { padding: 0 20px; }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(-n+2) { margin-bottom: 28px; }
  .sub-inner { flex-direction: column; align-items: stretch; }
  .sub-form { min-width: 0; }
}

@media (max-width: 620px) {
  .hero h1 { font-size: 30px; }
  .hero .lede { font-size: 14.5px; }
  .axis-strip, .domain-grid, .feed-grid, .entity-grid, .stat-row { grid-template-columns: 1fr; }
  .axis-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .axis-item:last-child { border-bottom: 0; }
  .stat-item { border-right: 0; padding: 0; margin-bottom: 24px; }
  .sec-head h2 { font-size: 24px; }
  .page-head h1 { font-size: 30px; }
  .join-links { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; gap: 10px; }
  .search-bar { flex-direction: column; }
  .search-bar button { padding: 12px; }
}

/* ============================================================
   二期 · 课程与市集交易域样式
   规则：沿用宣纸/玄墨/朱砂/青灰/紫泥；无渐变、无重阴影
   ============================================================ */

.commerce-hero { padding: 58px 0 46px; border-bottom: 1px solid var(--line); }
.commerce-hero .ch-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.commerce-hero h1 { font-size: 38px; font-weight: 500; letter-spacing: .1em; margin: 12px 0 14px; }
.commerce-hero p { color: var(--mist); font-size: 15px; margin: 0; max-width: 680px; line-height: 2; }
.commerce-hero .ch-count { font-family: var(--serif-en); font-size: 15px; color: var(--celadon); white-space: nowrap; }

.commerce-notice {
  border-left: 2px solid var(--cinnabar); background: #FBF8F0;
  padding: 13px 18px; font-size: 13px; color: var(--ink); line-height: 1.85; margin: 0 0 30px;
}
.commerce-notice.is-muted { border-left-color: var(--celadon); color: var(--mist); }

.commerce-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 30px; }
.commerce-toolbar .chip { border: 1px solid var(--line); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.commerce-card { border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; }
.card-media {
  height: 116px; border-bottom: 1px solid var(--line); background: var(--glaze);
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
  font-family: var(--serif-en); letter-spacing: .18em; color: var(--celadon); font-size: 13px;
}
.card-media b { font-family: var(--serif-zh); font-weight: 400; color: var(--clay); font-size: 13px; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { font-size: 11.5px; letter-spacing: .16em; color: var(--celadon); }
.card-body h3 { font-size: 18px; font-weight: 500; line-height: 1.65; margin: 10px 0 10px; }
.card-body h3 a:hover { color: var(--cinnabar); }
.card-body p { font-size: 13.5px; color: var(--mist); line-height: 1.85; margin: 0 0 18px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--celadon); margin-top: auto; }
.card-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.card-foot strong { font-size: 18px; font-weight: 500; color: var(--cinnabar); }

.detail-head { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 30px; }
.detail-kicker { font-size: 12px; letter-spacing: .18em; color: var(--celadon); }
.detail-head h2, .detail-main h2 { font-size: 30px; font-weight: 500; letter-spacing: .08em; margin: 12px 0 14px; }
.detail-head p { color: var(--mist); font-size: 15px; line-height: 2; margin: 0; max-width: 720px; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 72px; }
.detail-main h3 { font-size: 17px; font-weight: 500; letter-spacing: .08em; margin: 36px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.detail-main h3:first-child { margin-top: 0; }
.detail-main p { font-size: 14.5px; line-height: 2; color: var(--ink); }
.detail-main code { background: var(--glaze); padding: 2px 6px; font-size: 13px; }
.syllabus { padding-left: 22px; font-size: 14.5px; line-height: 2; }
.detail-side .side-box { border-top: 2px solid var(--ink); }
.detail-side .btn { display: block; text-align: center; margin-top: 12px; }

.cart-row { display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding: 22px 0; }
.cart-row p { font-size: 12.5px; color: var(--mist); margin: 6px 0 0; }
.cart-total { display: flex; justify-content: space-between; padding: 24px 0; font-size: 16px; }
.check-agree { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin-bottom: 28px; }
.check-agree label { display: block; font-size: 14px; line-height: 2; cursor: pointer; }
.pay-hint { color: var(--cinnabar); font-size: 13.5px; margin-top: 16px; min-height: 24px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.state-flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 42px; }
.state-node { background: var(--paper); padding: 16px 10px; text-align: center; font-size: 12.5px; color: var(--mist); }
.state-node.is-on { background: var(--ink); color: var(--reverse); }

@media (max-width: 900px) {
  .commerce-hero .ch-row { flex-direction: column; align-items: flex-start; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .state-flow { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
  .state-flow { grid-template-columns: repeat(2, 1fr); }
  .commerce-hero h1 { font-size: 28px; }
}

/* ============================================================
   可公开内容页：品牌 / 规范 / 术语 / 共建
   ============================================================ */
.doc-hero { padding: 58px 0 46px; border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: 38px; font-weight: 500; letter-spacing: .1em; margin: 12px 0 10px; }
.doc-hero .dh-en { font-family: var(--serif-en); font-size: 14px; letter-spacing: .22em; color: var(--celadon); }
.doc-hero p { color: var(--mist); font-size: 15.5px; line-height: 2; margin: 18px 0 0; max-width: 780px; }
.doc-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 72px; align-items: start; }
.doc-main section { margin-bottom: 54px; }
.doc-main section:last-child { margin-bottom: 0; }
.doc-main h2 {
  font-size: 23px; font-weight: 500; letter-spacing: .1em; margin: 0 0 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.doc-main h3 { font-size: 17px; font-weight: 500; letter-spacing: .06em; margin: 28px 0 10px; }
.doc-main p { font-size: 14.8px; line-height: 2.15; color: var(--ink); margin: 0 0 16px; }
.doc-main ul, .doc-main ol { margin: 0 0 18px; padding-left: 24px; }
.doc-main li { font-size: 14.5px; line-height: 2.05; margin-bottom: 7px; }
.doc-main a { color: var(--clay); border-bottom: 1px solid var(--line); }
.doc-main a:hover { color: var(--cinnabar); border-color: var(--cinnabar); }
.doc-main code { background: var(--glaze); padding: 2px 6px; font-size: 13px; color: var(--clay); }
.doc-lead { font-size: 16px !important; line-height: 2.05 !important; color: var(--ink) !important; }
.doc-quote {
  border-left: 2px solid var(--cinnabar); padding: 6px 0 6px 22px; margin: 24px 0;
  font-size: 15px; line-height: 2; color: var(--ink);
}
.doc-callout {
  border: 1px solid var(--line); background: var(--glaze); padding: 20px 24px; margin: 24px 0;
  font-size: 14px; line-height: 1.95; color: var(--ink);
}
.doc-callout strong { font-weight: 500; color: var(--cinnabar); }
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.doc-cell { background: var(--paper); padding: 24px 26px; }
.doc-cell h4 { font-size: 16px; font-weight: 500; letter-spacing: .06em; margin: 0 0 10px; }
.doc-cell p { font-size: 13.5px; color: var(--mist); line-height: 1.9; margin: 0; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 4px; }
.doc-table th, .doc-table td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.doc-table th { color: var(--mist); font-weight: 400; letter-spacing: .06em; width: 26%; }
.doc-table tr:last-child th, .doc-table tr:last-child td { border-bottom: 0; }
.doc-toc { border: 1px solid var(--line); padding: 22px 24px; }
.doc-toc h4 { font-size: 13px; letter-spacing: .16em; color: var(--mist); margin: 0 0 14px; font-weight: 400; }
.doc-toc a { display: block; font-size: 13.5px; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.doc-toc a:last-child { border-bottom: 0; }
.doc-toc a:hover { color: var(--cinnabar); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; letter-spacing: .08em; color: var(--mist); }
.field label b { color: var(--cinnabar); font-weight: 400; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); background: var(--paper); padding: 12px 14px;
  font-size: 14px; font-family: inherit; color: var(--ink); outline: none; border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--celadon); }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.form-act { margin-top: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-hint { font-size: 12.5px; color: var(--mist); }
.form-done { color: var(--celadon); font-size: 13.5px; }
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { display: flex; gap: 18px; border-bottom: 1px solid var(--line); padding: 16px 0; }
.step-list li:last-child { border-bottom: 0; }
.step-list .sn { font-family: var(--serif-en); font-size: 20px; color: var(--celadon); min-width: 34px; }
.step-list .st { font-size: 14.5px; font-weight: 500; margin-bottom: 4px; }
.step-list .sd { font-size: 13.5px; color: var(--mist); line-height: 1.85; }
.cite-box { border: 1px solid var(--line); border-left: 2px solid var(--celadon); background: var(--glaze); padding: 18px 22px; margin-top: 22px; }
.cite-box .cb-label { font-size: 11.5px; letter-spacing: .14em; color: var(--celadon); margin-bottom: 10px; }
.cite-box code { font-size: 13px; line-height: 1.9; color: var(--ink); word-break: break-all; }
.copy-hint { font-size: 12.5px; color: var(--celadon); margin-left: 4px; }
@media (max-width: 900px) {
  .doc-wrap { grid-template-columns: 1fr; gap: 40px; }
  .doc-grid, .form-grid { grid-template-columns: 1fr; }
}
