/* 易天红官网 · 基础层（结构与通用组件，主题在 theme.css 中覆盖颜色与版式） */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

p, li, .lead, .hero__sub, .about__lead {
  text-wrap: pretty;
}

body {
  margin: 0;
  background: var(--bg, #f5f1e8);
  color: var(--fg, #1b1a17);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.yt-lock { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
::selection { background: var(--accent, #9e2b25); color: #fff; }

:root {
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "华文宋体", "SimSun", Georgia, serif;
  --kai: "STKaiti", "KaiTi", "楷体", serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 2px;
  --patch-fill: currentColor;
  --patch-line: currentColor;
  --patch-dot: currentColor;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.sec { position: relative; padding-block: clamp(64px, 7vw, 112px); }

.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(36px, 5vw, 64px); }
.kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent, #9e2b25);
  font-weight: 600;
}
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.18;
  letter-spacing: 0.01em;
}
.lead { font-size: clamp(15px, 1.3vw, 18px); color: var(--muted, #5d574c); max-width: 62ch; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 14px;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--accent, #9e2b25); color: var(--on-accent, #fff); }
.btn--primary:hover { background: var(--accent-deep, #7f211c); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line, rgba(0, 0, 0, 0.2)); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--gold { border: 1px solid var(--accent); color: var(--accent); }
.btn--gold:hover { background: var(--accent); color: var(--bg); }


/* 导航中英双标 */
.nav__links a i,
.drawer a i {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  margin-left: 5px;
  color: var(--muted);
  opacity: 0.7;
  text-transform: uppercase;
}
.drawer a i { font-size: 10px; margin-left: 7px; opacity: 0.8; }

/* ---------- 页头 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding-block: 18px;
}
.site-header.scrolled {
  background: var(--header-bg, rgba(245, 241, 232, 0.92));
  backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 var(--line, rgba(0, 0, 0, 0.1));
  padding-block: 10px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 34px; width: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand__cn { font-family: var(--serif); font-size: 20px; letter-spacing: 0.16em; }
.brand__en { font-size: 9px; letter-spacing: 0.3em; color: var(--muted); }

.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav__links a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.1em;
  padding-block: 6px;
  color: var(--fg);
  opacity: 0.82;
  transition: opacity 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__tel { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: 0.06em; }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: 0.35s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
body.nav-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--bg);
  padding: 100px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: 0.4s var(--ease);
}
body.nav-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer a {
  font-family: var(--serif);
  font-size: 26px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.drawer .drawer__tel { margin-top: 26px; font-family: var(--sans); font-size: 15px; border: 0; opacity: 0.7; }

/* ---------- 滚动动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 统计 ---------- */
.stat__num {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.stat__suffix { font-size: 0.44em; margin-left: 2px; letter-spacing: 0.06em; }
.stat__label { margin-top: 10px; font-size: 13px; letter-spacing: 0.18em; }
.stat__note { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- 产品卡 ---------- */
.patch-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pcard { cursor: pointer; position: relative; }
.pcard__name { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: 0.06em; }
.pcard__tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.pcard__meta { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pcard__blurb { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-top: 10px; }
.pcard__price { font-family: var(--serif); font-size: 19px; color: var(--accent); }
.pcard__price em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 2px; }
.pcard__hours { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.pcard__more { font-size: 11px; letter-spacing: 0.2em; color: var(--accent); }
.pcard__idx { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 适应症 ---------- */
.ind__en { font-size: 10px; letter-spacing: 0.3em; color: var(--accent); }
.ind__group { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: 0.08em; }
.ind__dept { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.ind__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ind__list li {
  font-size: 13px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  transition: 0.3s var(--ease);
}
.ind__list li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- 优势 ---------- */
.adv__no { font-family: var(--serif); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }
.adv__t { font-family: var(--serif); font-size: 21px; font-weight: 500; margin-top: 10px; letter-spacing: 0.04em; }
.adv__d { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin-top: 8px; }

/* ---------- 工艺 ---------- */
.step { position: relative; padding-top: 16px; border-top: 1px solid var(--line); }
.step__no { font-size: 11px; letter-spacing: 0.2em; color: var(--accent); }
.step__t { font-family: var(--serif); font-size: 20px; margin-top: 8px; font-weight: 500; }
.step__d { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.7; }

/* ---------- 证据 ---------- */
.paper__label { font-size: 11px; letter-spacing: 0.24em; color: var(--accent); }
.paper__title { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; margin-top: 14px; line-height: 1.4; }
.paper__journal { font-size: 12.5px; color: var(--muted); margin-top: 8px; letter-spacing: 0.06em; }
.paper__quote {
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.7;
  margin-top: 22px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}
.paper__note { font-size: 13px; color: var(--muted); margin-top: 16px; }
.case__t { font-family: var(--serif); font-size: 19px; }
.case__h { font-size: 11.5px; letter-spacing: 0.12em; color: var(--accent); margin-top: 6px; }
.case__d { font-size: 13px; color: var(--muted); line-height: 1.75; margin-top: 10px; }
.metric__num { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); letter-spacing: 0.02em; }
.metric__label { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; margin-top: 6px; }

/* ---------- 专家 ---------- */
.expert__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.expert__role { font-size: 11px; letter-spacing: 0.22em; color: var(--accent); }
.expert__name { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: 0.12em; margin-top: 8px; }
.expert__org { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.expert__quote { font-family: var(--serif); font-size: 16px; line-height: 1.8; margin-top: 16px; color: var(--fg); }
.expert__list { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.expert__list li { font-size: 12.5px; color: var(--muted); padding-left: 12px; position: relative; line-height: 1.65; }
.expert__list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 4px; height: 1px; background: var(--accent); }
.expert__note { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.7; }
.expert__more {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.2em;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  padding-bottom: 3px;
  align-self: flex-start;
}

/* ---------- 时间线 ---------- */
.tl { display: grid; grid-template-columns: 88px 1fr; gap: 22px; position: relative; padding-block: 18px; }
.tl__year { font-family: var(--serif); font-size: 20px; letter-spacing: 0.06em; color: var(--accent); }
.tl__body h3 { font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: 0.06em; }
.tl__body p { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.75; }

/* ---------- 资讯 ---------- */
.news__meta { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.news__tag { color: var(--accent); }
.news__title { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.55; margin-top: 10px; }
.news__d { font-size: 13px; color: var(--muted); line-height: 1.75; margin-top: 8px; }
.news__arrow { font-size: 18px; color: var(--accent); }

/* ---------- 表单 ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 14px;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }
.field select { appearance: none; cursor: pointer; }
.form__tip { font-size: 12px; color: var(--muted); min-height: 18px; }
.form__tip.ok { color: var(--accent); }
.form__tip.err { color: #b4402f; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 54px 34px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer__brand { max-width: 320px; }
.footer__brand img { height: 40px; margin-bottom: 16px; }
.footer__cols { display: flex; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap; }
.footer__col h4 { font-size: 11px; letter-spacing: 0.2em; color: var(--fg); font-weight: 600; margin-bottom: 12px; }
.footer__col a { display: block; padding-block: 3px; font-size: 13px; }
.footer__bottom {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ---------- 产品弹窗 ---------- */
.yt-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  opacity: 0;
  visibility: hidden;
  transition: 0.4s var(--ease);
}
.yt-modal.open { opacity: 1; visibility: visible; }
.yt-modal__mask { position: absolute; inset: 0; background: rgba(12, 11, 9, 0.72); backdrop-filter: blur(6px); }
.yt-modal__panel {
  position: relative;
  width: min(980px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
  transform: translateY(18px) scale(0.99);
  transition: 0.45s var(--ease);
}
.yt-modal.open .yt-modal__panel { transform: none; }
.yt-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  z-index: 2;
}
.yt-modal__close:hover { color: var(--accent); }
.pm { display: grid; grid-template-columns: 0.85fr 1.15fr; }
.pm__visual {
  background: var(--panel, rgba(0, 0, 0, 0.03));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 56px);
}
.pm__shape { width: 74%; max-width: 260px; color: var(--accent); }
.pm__shapeCap { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.pm__info { padding: clamp(28px, 4vw, 52px); }
.pm__kicker { font-size: 11px; letter-spacing: 0.22em; color: var(--accent); }
.pm__name { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; letter-spacing: 0.1em; margin-top: 10px; }
.pm__blurb { font-size: 14px; color: var(--muted); line-height: 1.8; margin-top: 14px; }
.pm__scene { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pm__scene span { font-size: 12px; border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.pm__table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 13px; }
.pm__table th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.pm__table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pm__tip { font-size: 11.5px; color: var(--muted); margin-top: 18px; line-height: 1.7; }
.pm__cta { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.xm { display: grid; grid-template-columns: 0.62fr 1.38fr; }
.xm__photo { background: var(--panel, rgba(0, 0, 0, 0.04)); }
.xm__photo img { width: 100%; height: 100%; object-fit: cover; }
.xm__info { padding: clamp(28px, 4vw, 52px); }
.xm__role { font-size: 11px; letter-spacing: 0.22em; color: var(--accent); }
.xm__name { font-family: var(--serif); font-size: 40px; font-weight: 500; letter-spacing: 0.14em; margin-top: 8px; }
.xm__org { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.xm__list { margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.xm__list li { font-size: 13px; line-height: 1.7; padding-left: 14px; position: relative; }
.xm__list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 5px; height: 1px; background: var(--accent); }
.xm__note { font-size: 12.5px; color: var(--muted); margin-top: 18px; line-height: 1.75; }

/* ---------- 风格切换器 ---------- */
.yswitch { position: fixed; right: 22px; bottom: 22px; z-index: 120; }
.yswitch__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.14em;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}
.yswitch__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
.yswitch__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 260px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.35s var(--ease);
}
.yswitch.open .yswitch__menu { opacity: 1; visibility: visible; transform: none; }
.yswitch__title { font-size: 10px; letter-spacing: 0.18em; color: var(--muted); padding: 8px 10px 12px; }
.yswitch__item {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-areas: "k n" "k note";
  gap: 2px 10px;
  padding: 9px 10px;
  border-radius: 2px;
  transition: background 0.25s;
}
.yswitch__item:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.yswitch__item.is-on { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.yswitch__k { grid-area: k; font-size: 9px; letter-spacing: 0.14em; color: var(--accent); align-self: center; }
.yswitch__n { grid-area: n; font-family: var(--serif); font-size: 15px; letter-spacing: 0.1em; }
.yswitch__note { grid-area: note; font-size: 10px; color: var(--muted); }
.yswitch__all { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .pm { grid-template-columns: 1fr; }
  .pm__visual { padding: 30px; }
  .pm__shape { max-width: 190px; }
  .xm { grid-template-columns: 1fr; }
  .xm__photo { max-height: 260px; overflow: hidden; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .form__row { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 64px 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
