/* ============================================================
   宇哥说琴 · 官方网站
   设计系统 / Design tokens
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* hidden 属性必须真正生效（否则会被 .field{display:flex} 之类覆盖） */
[hidden] { display: none !important; }

:root {
  /* 色板 —— 暖白 / 墨黑 / 木色 / 朱印 */
  --bg:          #F6F3ED;
  --bg-alt:      #EFEAE1;
  --bg-deep:     #E7E0D5;
  --surface:     #FFFFFF;
  --ink:         #16181B;
  --ink-soft:    #454850;
  --body:        #55585E;
  --muted:       #8A857D;
  --muted-2:     #A9A49C;
  --gold:        #8C6A45;
  --gold-light:  #C8A87C;
  --crimson:     #A83A2C;
  --line:        #E5DED2;
  --line-soft:   #EDE7DD;
  --line-dark:   #2A2D31;

  /* 深色带专用 —— 与 --ink / --bg 解绑。
     原来深色带直接复用「墨底纸字」，一旦换成深色方案（漆黒 / 藍染），
     --ink 变浅、--bg 变深，深色带就会被反成浅带、明暗节奏全乱。
     独立出来之后，浅色方案与深色方案各自成立。 */
  --dark:        #16181B;
  --on-dark:     #F6F3ED;
  --on-dark-2:   #A9A49C;
  --on-dark-3:   #9A958D;
  --on-dark-4:   #6E6A64;

  /* 浅色小面与状态色（原来是写死的，深色方案下会突兀） */
  --surface-soft: #F9F7F3;
  --surface-warm: #FBF6EC;
  --header-bg:    rgba(246, 243, 237, .88);
  --ink-deep:     #000000;
  --ok:           #4A6B45;

  /* 字体 */
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans:  "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --latin: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* 度量 */
  --radius: 2px;
  --shell:  1440px;
  --pad-x:  64px;
  --sec-y:  104px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.32;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ink); color: var(--bg); }

/* 无障碍：仅屏幕阅读器 */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 24px; z-index: 999;
  padding: 12px 22px; background: var(--ink); color: var(--bg);
  border-radius: var(--radius); transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ============================================================
   布局
   ============================================================ */

.section { padding: var(--sec-y) var(--pad-x); }
.section--tight { padding: 72px var(--pad-x); }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--bg-alt); }
.section--white { background: var(--surface); }
.section--dark { background: var(--dark); }
.section--deep { background: var(--bg-deep); }

.inner {
  width: 100%;
  max-width: calc(var(--shell) - var(--pad-x) * 2);
  margin-inline: auto;
}

.stack   { display: flex; flex-direction: column; }
.stack-12 { gap: 12px; }
.stack-14 { gap: 14px; }
.stack-16 { gap: 16px; }
.stack-20 { gap: 20px; }
.stack-22 { gap: 22px; }
.stack-28 { gap: 28px; }
.stack-40 { gap: 40px; }
.stack-48 { gap: 48px; }
.stack-52 { gap: 52px; }
.stack-56 { gap: 56px; }

.row { display: flex; flex-wrap: wrap; }

/* ============================================================
   文字层级
   ============================================================ */

.eyebrow {
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold);
  line-height: 1.6;
  text-transform: uppercase;
}
.section--dark .eyebrow { color: var(--gold-light); }

.display {
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.26;
  letter-spacing: -.01em;
}
.display em { font-style: normal; color: var(--crimson); }

.h1 { font-size: clamp(34px, 3.4vw, 46px); line-height: 1.3; }
.h2 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.36; }
.h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.46; }
.h4 { font-size: 18px; line-height: 1.5; }

.lead { font-size: 16px; line-height: 1.85; color: var(--body); max-width: 60ch; }
.body-sm { font-size: 14px; line-height: 1.85; color: var(--body); }
.small { font-size: 13px; line-height: 1.85; color: var(--body); }
.micro { font-size: 12px; line-height: 1.8; color: var(--muted); }
.num { font-family: var(--latin); font-variant-numeric: tabular-nums; }

.section--dark h1, .section--dark h2,
.section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark .lead, .section--dark .body-sm, .section--dark .small { color: var(--on-dark-2); }
.section--dark .micro { color: var(--on-dark-3); }

.gold { color: var(--gold); }
.crimson { color: var(--crimson); }
.ink { color: var(--ink); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--dark .rule { background: var(--line-dark); }

/* ============================================================
   页头
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  height: 80px; padding: 0 var(--pad-x);
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand__seal { width: 34px; height: 34px; flex: none; }

.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__cn {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--ink); line-height: 1.18; letter-spacing: .02em;
}
.brand__en {
  font-family: var(--latin); font-size: 9px; font-weight: 500;
  letter-spacing: 2px; color: var(--gold); line-height: 1.2;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  font-size: 15px; color: var(--ink-soft); line-height: 1;
  padding: 6px 0; transition: color .18s;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .24s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone {
  font-family: var(--latin); font-size: 15px; font-weight: 600;
  color: var(--ink); letter-spacing: .2px;
}
.header__phone:hover { color: var(--crimson); }

.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--ink);
  position: relative; transition: background .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px;
  background: var(--ink); transition: transform .24s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   按钮
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 17px 32px;
  border-radius: var(--radius);
  font-size: 15px; line-height: 1; font-weight: 500;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn--sm { padding: 12px 22px; font-size: 14px; }
.btn--xs { padding: 10px 18px; font-size: 13px; }

.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--ink-deep); transform: translateY(-1px); }

.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: #fff; transform: translateY(-1px); }

.btn--outline-light { border-color: rgba(246, 243, 237, .55);
  border-color: color-mix(in srgb, var(--on-dark) 55%, transparent); color: var(--on-dark); }
.btn--outline-light:hover { border-color: var(--on-dark);
  background: rgba(246, 243, 237, .08);
  background: color-mix(in srgb, var(--on-dark) 8%, transparent); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--crimson);
}
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   首屏
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: stretch;
  min-height: 660px;
  background: var(--bg-alt);
}
.hero__copy {
  display: flex; flex-direction: column; justify-content: center;
  gap: 26px;
  padding: 96px 56px 96px var(--pad-x);
}
.hero__title { max-width: 12em; }
.hero__sub { font-size: 17px; line-height: 1.82; color: var(--body); max-width: 34em; }
/* 实体定义句：谁 · 在哪 · 做什么 · 哪年开的。
   人看着是一行小字，AI 搜索会把这句直接摘走当答案。 */
.hero__def {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 36em;
  padding-left: 13px;
  border-left: 2px solid var(--gold-light);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { display: flex; align-items: center; gap: 9px; }
.hero__trust svg { flex: none; }
.hero__trust span { font-size: 13px; color: #6E6963; }

.hero__visual { position: relative; overflow: hidden; background: var(--bg-deep); }
.hero__visual img {
  width: 100%; height: 100%; min-height: 660px;
  object-fit: cover; object-position: 50% 58%;
}

/* 内页页头 */
.page-hero {
  display: flex; flex-direction: column; gap: 16px;
  padding: 52px var(--pad-x) 46px;
  background: var(--bg-alt);
}
.breadcrumb { font-size: 12px; color: var(--muted); letter-spacing: .6px; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--muted-2); }

/* ============================================================
   品牌
   ============================================================ */

.brand-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.brand-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.brand-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -18px rgba(22,24,27,.28);
}
.brand-card__latin {
  font-family: var(--latin); font-size: 18px; font-weight: 600;
  letter-spacing: .5px; color: var(--ink); line-height: 1.3;
}
.brand-card__latin--long { font-size: 15px; }
.brand-card__cn { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--gold); }
.brand-card__meta { font-size: 12px; color: var(--muted); line-height: 1.7; }
.brand-card__series { font-size: 12px; color: var(--body); line-height: 1.75; }
/* 404 页把品牌卡当链接用：去掉链接默认的下划线与蓝色 */
a.brand-card { color: inherit; text-decoration: none; }

.brand-detail-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.brand-detail {
  display: flex; flex-direction: column; gap: 12px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.brand-detail__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brand-detail__latin {
  font-family: var(--latin); font-size: 17px; font-weight: 600;
  letter-spacing: .4px; color: var(--ink);
}
.brand-detail__cn { font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--gold); }
.brand-detail__origin { font-size: 12px; color: var(--muted); }
.brand-detail__desc { font-size: 13px; line-height: 2; color: var(--body); }
.brand-detail__models {
  font-size: 12px; line-height: 1.9; color: var(--gold);
  padding-top: 12px; border-top: 1px solid var(--line-soft);
}

/* ============================================================
   筛选 chips
   ============================================================ */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  font-size: 13px; color: var(--body); line-height: 1;
  transition: background .18s, color .18s, border-color .18s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ============================================================
   产品卡
   ============================================================ */

.product-grid {
  display: grid; gap: 20px;
  /* 每行几台由后台「首页 · 在库名琴」控制；窄屏自动降列，手机上永远一列 */
  grid-template-columns: repeat(var(--pcols, 3), minmax(0, 1fr));
}
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.product-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px -20px rgba(22,24,27,.3);
}
.product-card__media {
  /* 比例与填充方式由后台「商品图显示」控制，见 <head> 里的 :root 变量 */
  aspect-ratio: var(--pcard-ratio, 1 / 1);
  background: var(--bg-alt);
  overflow: hidden;
}
.product-card__media img {
  width: 100%; height: var(--pcard-img-h, 100%);
  object-fit: var(--pcard-fit, contain); object-position: center;
  transition: transform .5s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.035); }

.product-card__body {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 22px 24px;
}
.product-card__title { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.product-card__spec { font-size: 12px; color: var(--muted); line-height: 1.7; }
.product-card__cond { font-size: 12px; color: var(--gold); line-height: 1.7; }
.product-card__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-top: 6px;
}
.product-card__price {
  font-family: var(--latin); font-size: 18px; font-weight: 600; color: var(--ink);
}
.product-card__price small { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }

/* 找琴卡（深色） */
.find-card {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 16px;
  padding: 34px;
  background: var(--dark);
  border-radius: var(--radius);
}
.find-card .eyebrow { color: var(--gold-light); }
.find-card h3 { font-size: 24px; line-height: 1.42; color: var(--on-dark); }
.find-card p { font-size: 13px; line-height: 1.85; color: var(--on-dark-2); }

/* ============================================================
   列表式货架（在库名琴页）
   ============================================================ */

.stock-list { display: flex; flex-direction: column; }

.stock-head {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 150px 130px 76px;
  gap: 22px; align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.stock-head span {
  font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .8px;
}
.stock-head span:nth-child(4), .stock-head span:nth-child(5) { text-align: right; }

.stock-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 150px 130px 76px;
  gap: 22px; align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.stock-row:hover { background: rgba(239,234,225,.55); }
.stock-row__thumb {
  width: 128px; height: auto;
  aspect-ratio: var(--pthumb-ratio, 1 / 1);
  border-radius: var(--radius);
  overflow: hidden; background: var(--bg-alt);
}
.stock-row__thumb img {
  width: 100%; height: var(--pthumb-img-h, 100%);
  object-fit: var(--pthumb-fit, contain);
}
.stock-row__info { display: flex; flex-direction: column; gap: 7px; }
.stock-row__title { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.stock-row__spec { font-size: 12px; color: var(--muted); line-height: 1.65; }
.stock-row__cond { font-size: 12px; color: var(--gold); line-height: 1.65; }
.stock-row__price {
  font-family: var(--latin); font-size: 16px; font-weight: 600;
  color: var(--ink); text-align: right;
}
.stock-row__cta { font-size: 13px; font-weight: 500; color: var(--crimson); text-align: right; }
.stock-row__cta:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   深色版块：流程 / 质保 / 团队
   ============================================================ */

.flow {
  display: grid; gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.flow__step { display: flex; flex-direction: column; gap: 14px; }
.flow__step hr { height: 1px; background: var(--line-dark); border: 0; margin: 0; }
.flow__no {
  font-family: var(--latin); font-size: 13px; font-weight: 600;
  letter-spacing: 1.4px; color: var(--gold-light);
}
.flow__title { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--on-dark); line-height: 1.5; }
.flow__desc { font-size: 13px; line-height: 1.92; color: var(--on-dark-3); }

/* 浅底变体（品牌页「怎么选」） */
.flow--light .flow__step hr { background: var(--line); }
.flow--light .flow__no { color: var(--gold); }
.flow--light .flow__title { color: var(--ink); }
.flow--light .flow__desc { color: var(--body); }

.warranty {
  display: grid; gap: 48px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.warranty__item { display: flex; flex-direction: column; gap: 8px; }
.warranty__title { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--on-dark); line-height: 1.5; }
.warranty__desc { font-size: 12px; line-height: 1.9; color: var(--on-dark-3); }

/* 浅底变体 */
.warranty--light .warranty__title { color: var(--ink); }
.warranty--light .warranty__desc { color: var(--body); font-size: 13px; }

.media-row { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-row img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius); background: #22252A;
}
.media-row figcaption { font-size: 12px; line-height: 1.8; color: var(--on-dark-3); }
.media-row figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }

/* 单张宽幅实拍 */
.wide-figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.wide-shot {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-deep);
}
.wide-figure figcaption { font-size: 12px; line-height: 1.8; color: var(--muted); }
.section--dark .wide-figure figcaption { color: var(--on-dark-3); }

/* ============================================================
   数据 / 口碑 / FAQ
   ============================================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 34px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__num {
  font-family: var(--latin); font-size: 32px; font-weight: 600;
  color: var(--ink); line-height: 1.3;
}
.stat__num--accent { color: var(--crimson); }
.stat__label { font-size: 13px; line-height: 1.7; color: var(--muted); }

.quotes { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quote {
  display: flex; flex-direction: column; gap: 20px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.quote__text { font-size: 14px; line-height: 1.94; color: var(--ink-soft); flex: 1; }
.quote__foot { display: flex; flex-direction: column; gap: 5px; }
.quote__author { font-family: var(--serif); font-size: 13px; font-weight: 600; color: var(--ink); }
.quote__meta { font-size: 12px; color: var(--muted); }

.faq-layout {
  display: grid; gap: 64px;
  grid-template-columns: 360px minmax(0, 1fr);
}
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0;
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 16px; font-weight: 600;
  color: var(--ink); line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none;
  width: 11px; height: 11px;
  border-right: 1.4px solid var(--gold);
  border-bottom: 1.4px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .24s;
}
.faq-item[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq-item__answer {
  padding: 0 44px 24px 0;
  font-size: 13px; line-height: 1.95; color: #6E6963;
}

/* ============================================================
   表单 / 联系信息
   ============================================================ */

.contact-layout {
  display: grid; gap: 48px;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: start;
}

/* 表单撤下后左栏只剩一张联系卡，比右栏矮一截会在下方留出大片空白。
   让卡片撑满整行高度，内容整体居中，读起来是一块从容的引导面板。 */
.contact-ways { height: 100%; justify-content: center; }

/* ---------- 联系方式卡（加微信 / 打电话）---------- */
.contact-ways {
  display: flex; flex-direction: column; gap: 22px;
  padding: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-ways__title {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--ink); line-height: 1.5;
}
.contact-ways__note { font-size: 13px; line-height: 1.85; color: var(--muted); }
.contact-ways__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }
.contact-ways__qr {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 168px; flex: none;
}
.contact-ways__qr img {
  width: 100%; aspect-ratio: 1; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
}
.contact-ways__qr-tip { font-size: 11.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.contact-ways__acts {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  flex: 1; min-width: 186px;
}
.contact-ways__wx {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  width: 100%; padding: 12px 16px;
  font: inherit; text-align: left; cursor: pointer;
  background: var(--surface-soft); border: 1px dashed var(--line); border-radius: var(--radius);
  transition: border-color .2s, background .2s;
}
.contact-ways__wx:hover { border-color: var(--gold); background: var(--surface); }
.contact-ways__wx.is-done { border-color: var(--gold); background: var(--surface-warm); }
.contact-ways__wx-label { font-size: 11.5px; color: var(--muted); letter-spacing: .5px; }
.contact-ways__wx-val { font-family: var(--latin); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.contact-ways__wx-copy {
  margin-left: auto; flex: none; font-size: 11.5px; font-weight: 500;
  color: var(--gold); text-decoration: underline; text-underline-offset: 3px;
}
.contact-ways__tel { width: 100%; justify-content: center; }
.contact-ways__num { font-family: var(--latin); font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: .5px; }
.contact-ways__hours { font-size: 12px; line-height: 1.6; color: var(--muted); }

/* ---------- 全站悬浮联系条 ---------- */
.floatbar {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.floatbar__toggle {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px 13px 17px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .3px;
  box-shadow: 0 10px 28px rgba(22, 24, 27, .24), 0 2px 6px rgba(22, 24, 27, .16);
  transition: transform .22s ease, box-shadow .22s ease, background .2s;
}
.floatbar__toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(22, 24, 27, .3), 0 3px 8px rgba(22, 24, 27, .18);
}
.floatbar__ico { display: inline-flex; color: var(--floatbar-ico, var(--gold-light)); }
.floatbar.is-open .floatbar__toggle { background: var(--ink-deep); }
.floatbar__panel {
  display: flex; flex-direction: column; gap: 12px;
  width: 268px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(22, 24, 27, .18), 0 4px 12px rgba(22, 24, 27, .08);
  text-align: center;
  animation: floatbarIn .22s ease;
}
@keyframes floatbarIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.floatbar__title { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); }
/* 二维码底必须保持浅色：深色方案下也照旧（扫码识别靠的是浅底深码），
   所以这里刻意不跟 --surface-soft 走 */
.floatbar__qr { padding: 10px; background: #F9F7F3; border: 1px solid var(--line-soft); border-radius: 4px; }
.floatbar__qr img { width: 100%; aspect-ratio: 1; }
.floatbar__tip { font-size: 12px; line-height: 1.7; color: var(--muted); }
.floatbar__wx {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 10px 12px;
  background: var(--surface-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color .2s, background .2s;
}
.floatbar__wx:hover { border-color: var(--gold); background: var(--surface); }
.floatbar__wx-label { flex: none; font-size: 11px; color: var(--muted); letter-spacing: .4px; }
.floatbar__wx-val { flex: 1; font-family: var(--latin); font-size: 13px; font-weight: 500; color: var(--ink); }
.floatbar__wx-copy { flex: none; font-size: 11px; color: var(--gold); white-space: nowrap; }
.floatbar__wx.is-done .floatbar__wx-copy { color: var(--ok); }
.floatbar__acts { display: flex; flex-direction: column; gap: 8px; }
.floatbar__act {
  display: block; padding: 12px 16px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  font-size: 13.5px; color: var(--ink); text-align: center;
  transition: background .2s, color .2s;
}
.floatbar__act:hover { background: var(--ink); color: var(--bg); }
.floatbar__act--tel { background: var(--ink); color: var(--bg); }
.floatbar__act--tel:hover { background: var(--ink-deep); }
.floatbar__hours { font-size: 11px; color: var(--muted-2); }

@media (max-width: 720px) {
  .floatbar { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .floatbar__toggle { padding: 12px 17px 12px 14px; font-size: 13.5px; }
  .floatbar__panel { width: min(272px, calc(100vw - 28px)); }
}

.info-panel { display: flex; flex-direction: column; gap: 22px; }
.info-panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--bg-deep); }
.info-list { display: flex; flex-direction: column; }
.info-item {
  display: flex; flex-direction: column; gap: 7px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.info-item__label { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .6px; }
.info-item__value { font-size: 15px; line-height: 1.75; color: var(--ink); }
.info-item__value--num { font-family: var(--latin); }

/* 到店指引 */
.guide { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.map-slot {
  display: flex; align-items: center; justify-content: center;
  min-height: 252px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px; color: var(--gold); text-align: center; padding: 24px;
}
.guide-list { display: flex; flex-direction: column; gap: 20px; }
.guide-item { display: flex; flex-direction: column; gap: 8px; }
.guide-item__title { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.6; }
.guide-item__desc { font-size: 13px; line-height: 1.9; color: var(--body); }

/* 关于我们 */
.about-intro {
  display: grid; gap: 56px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
.about-intro img {
  width: 100%; aspect-ratio: 592 / 430; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-deep);
}
.team { display: grid; gap: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team__item { display: flex; flex-direction: column; gap: 10px; }
.team__title { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--on-dark); line-height: 1.55; }
.team__desc { font-size: 13px; line-height: 1.92; color: var(--on-dark-3); }

/* ============================================================
   师资介绍页
   ============================================================ */

/* 师资总览：左边文案 + 右边师生实拍 */
.teachers-overview {
  display: grid; gap: 64px;
  grid-template-columns: minmax(0, 1fr) 620px;
  align-items: center;
}
.teachers-overview__copy { display: flex; flex-direction: column; gap: 22px; }
.teachers-overview__copy .lead { font-size: 14px; }
.teachers-overview img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-deep);
}
.teachers-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* 数字卡：师资页是 4 个 */
.stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }

/* 老师卡
   列数由后台「师资列表布局」控制：师资介绍页读 --tgrid-cols，
   「关于我们」页的师资模块读 --tabout-cols（各一套，互不牵制）。
   变量没注入时回落到 3 列，删掉 head 里的 style 也不会散版。 */
.teacher-grid { display: grid; gap: 24px; grid-template-columns: repeat(var(--tgrid-cols, 3), minmax(0, 1fr)); }
.teacher-grid--about { grid-template-columns: repeat(var(--tabout-cols, 3), minmax(0, 1fr)); }
.teacher-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .22s, transform .22s, box-shadow .22s;
}
.teacher-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px -20px rgba(22,24,27,.3);
}
.teacher-card__media {
  aspect-ratio: var(--tcard-ratio, 1 / 1);
  background: var(--bg-deep); overflow: hidden;
}
.teacher-card__media img {
  width: 100%; height: var(--tcard-img-h, 100%);
  object-fit: var(--tcard-fit, cover); object-position: 50% 30%;
  transition: transform .5s ease;
}
.teacher-card:hover .teacher-card__media img { transform: scale(1.04); }
.teacher-card__body {
  flex: 1;
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px;
}
.teacher-card__name {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  color: var(--ink); line-height: 1.3;
}
.teacher-card__role { font-size: 12px; font-weight: 500; color: var(--gold); letter-spacing: .4px; line-height: 1.5; }
.teacher-card__meta { font-size: 13px; line-height: 1.6; color: var(--muted); }
.teacher-card__focus { font-size: 13px; font-weight: 500; line-height: 1.6; color: var(--ink-soft); }
.teacher-card__intro { font-size: 14px; line-height: 1.86; color: var(--body); }
.teacher-card__link {
  margin-top: auto; padding-top: 8px;
  font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--crimson);
}
.teacher-card__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 整幅深色 CTA 带 */
.cta-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 64px; flex-wrap: wrap;
}
.cta-band__copy { display: flex; flex-direction: column; gap: 16px; max-width: 660px; }
.cta-band__desc { font-size: 14px; line-height: 1.85; color: var(--on-dark-2); }
.cta-band__acts { display: flex; gap: 14px; flex-wrap: wrap; }

/* 收口 CTA 条 */
.cta-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
  padding: 38px 44px;
  background: var(--dark);
  border-radius: var(--radius);
}
.cta-strip__copy { display: flex; flex-direction: column; gap: 9px; max-width: 640px; }
.cta-strip__title { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--on-dark); line-height: 1.42; }
.cta-strip__desc { font-size: 13px; line-height: 1.85; color: var(--on-dark-2); }

/* ============================================================
   页脚
   ============================================================ */

.site-footer {
  display: flex; flex-direction: column; gap: 40px;
  padding: 76px var(--pad-x) 44px;
  background: var(--dark);
}
.site-footer__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 64px; flex-wrap: wrap;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.site-footer__cn { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--on-dark); line-height: 1.35; }
.site-footer__en {
  font-family: var(--latin); font-size: 9px; font-weight: 500;
  letter-spacing: 2.2px; color: var(--gold-light);
}
.site-footer__tagline { font-size: 13px; line-height: 1.85; color: var(--on-dark-3); }
.site-footer__addr { font-size: 12px; line-height: 1.8; color: var(--on-dark-4); }
.site-footer__addr a:hover { color: var(--gold-light); }

.site-footer__cols { display: flex; gap: 68px; flex-wrap: wrap; }
.fcol { display: flex; flex-direction: column; gap: 14px; }
.fcol__title { font-size: 12px; font-weight: 500; color: var(--gold-light); letter-spacing: 1.4px; }
.fcol a { font-size: 13px; color: var(--on-dark-3); line-height: 1.4; transition: color .18s; }
.fcol a:hover { color: var(--on-dark); }

.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}
.site-footer__bottom p { font-size: 11px; line-height: 1.9; color: var(--on-dark-4); }
.site-footer__cities { font-size: 11px; line-height: 1.9; color: var(--on-dark-4); letter-spacing: .4px; }
/* ICP 备案号：全局 a 是 color:inherit / 无下划线，这里补一条细下划线，
   让人看得出是能点的（链接目标是工信部备案管理系统，不是首页） */
.site-footer__bottom a { color: var(--on-dark-3); padding-bottom: 1px;
  border-bottom: 1px solid color-mix(in srgb, var(--on-dark-4) 55%, transparent);
  transition: color .18s, border-color .18s; }
.site-footer__bottom a:hover,
.site-footer__bottom a:focus-visible { color: var(--on-dark); border-bottom-color: var(--on-dark); }

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1240px) {
  :root { --pad-x: 48px; --sec-y: 88px; }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-grid > :nth-child(n+4) { grid-column: auto; }
  .hero__copy { padding-right: 40px; }
}

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__visual img { min-height: 420px; max-height: 520px; }
  .hero__copy { padding: 64px var(--pad-x); }
  .product-grid { grid-template-columns: repeat(var(--pcols-md, 2), minmax(0, 1fr)); }
  .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; gap: 36px; }
  .teachers-overview { grid-template-columns: 1fr; gap: 36px; }
  .stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  /* 窄屏不跟后台的「每行几个」走：统一降到 2 列，手机上再降 1 列。
     后台选 2 列时这里就是它本身；选 3 / 4 列时窄屏自动收紧，不会挤成一条条。 */
  .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
}

@media (max-width: 860px) {
  :root { --pad-x: 24px; --sec-y: 68px; }
  .site-header { height: 68px; gap: 16px; }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px -28px rgba(22,24,27,.5);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .22s, transform .22s;
  }
  .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { width: 100%; padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header__phone { display: none; }

  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-detail-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 26px; padding: 28px; }
  .quotes { grid-template-columns: 1fr; }
  .warranty { grid-template-columns: 1fr; gap: 28px; }
  .media-row { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; gap: 26px; }
  .teacher-grid { grid-template-columns: 1fr; }
  .stats--4 { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { gap: 28px; }
  .guide { grid-template-columns: 1fr; }
  .cta-strip { padding: 30px 26px; }
  .site-footer { padding: 56px 24px 36px; }
  .site-footer__cols { gap: 40px 52px; }
  .page-hero { padding: 36px 24px 34px; }

  /* 列表货架转卡片式 */
  .stock-head { display: none; }
  .stock-row {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 16px 18px;
    align-items: start;
    padding: 22px 0;
  }
  .stock-row__thumb { width: 116px; }
  .stock-row__info { grid-column: 2; }
  .stock-row__cond { grid-column: 2; }
  .stock-row__price { grid-column: 2; text-align: left; }
  .stock-row__cta { grid-column: 2; text-align: left; }
}

@media (max-width: 520px) {
  .brand-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .hero__visual img { min-height: 300px; }
}

/* 尊重系统的减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   打印
   ============================================================ */

@media print {
  .site-header, .nav-toggle, .cta-strip, .find-card { display: none; }
  body { background: #fff; font-size: 11pt; }
  .section, .site-footer { padding: 20pt 0; break-inside: avoid; }
  .section--dark, .site-footer { background: #fff !important; color: #000 !important; }
  .section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #000 !important; }
  .product-card, .brand-card, .quote { break-inside: avoid; border-color: #ccc; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #666; }
}
