/* ============================================================
   组件层：按钮 / 卡片 / 标签 / 模块卡 / 表格 / 表单 / 手风琴 / 时间轴
   ============================================================ */

/* ---- 按钮 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--r-full);
  font-size: var(--fs-s);
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur) ease, background var(--dur-fast) ease,
    border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.btn:active { transform: scale(.97); }
.btn svg { flex: none; }

.btn--primary {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  color: #fff;
  box-shadow: 0 6px 18px rgba(20, 64, 110, .28), var(--sh-inset-top);
}
.btn--primary:hover {
  color: #fff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  box-shadow: 0 10px 26px rgba(20, 64, 110, .34), var(--sh-inset-top);
  transform: translateY(-1px);
}

.btn--amber {
  background: linear-gradient(180deg, var(--amber-500), var(--amber-600));
  color: var(--navy-900);
  box-shadow: 0 6px 20px rgba(246, 168, 33, .3), var(--sh-inset-top);
}
.btn--amber:hover {
  color: var(--navy-900);
  background: linear-gradient(180deg, var(--amber-400), var(--amber-500));
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--brand-700);
  background: var(--paper);
}
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-600); background: var(--brand-050); }

.btn--on-dark {
  border-color: rgba(143, 191, 234, .4);
  color: var(--text-on-dark);
  background: rgba(143, 191, 234, .06);
}
.btn--on-dark:hover { border-color: var(--amber-400); color: var(--amber-400); background: rgba(246, 168, 33, .08); }

.btn--lg { padding: 15px 34px; font-size: var(--fs-m); }
.btn--sm { padding: 8px 18px; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* 顶栏 CTA 价格角标 */
.nav__cta-flag {
  margin-left: 2px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--amber-400);
  background: var(--navy-900);
  padding: 1px 7px;
  border-radius: var(--r-full);
  line-height: 1.6;
}

/* 文字链接（带箭头） */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-s); font-weight: 600;
  color: var(--brand-600);
}
.link-arrow svg { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { color: var(--brand-500); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- 标签 / 徽标 ---- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs);
  color: var(--brand-700);
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-full);
  padding: 4px 12px;
  letter-spacing: .04em;
}
.chip--mono { font-family: var(--font-mono); letter-spacing: .14em; }
.chip--muted { color: var(--text-3); background: var(--paper-2); border-color: rgba(102,121,141,.30); }
.chip--xs { padding: 2px 9px; font-size: 11px; }
.chip--title { vertical-align: middle; margin-left: 10px; }

.tag-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--amber-ink);
  letter-spacing: .14em;
}

/* ---- 通用卡片 ---- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-1);
  border-radius: var(--r-l);
  padding: var(--sp-8);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease,
    border-color var(--dur) ease;
}
.card--hover:hover {
  transform: translateY(-4px);
  border-color: var(--brand-200);
  box-shadow: var(--sh-2);
}
.card--dark {
  background: rgba(143, 191, 234, .05);
  border-color: rgba(143, 191, 234, .18);
  color: var(--text-on-dark-2);
}
.card--dark:hover { border-color: rgba(246, 168, 33, .45); }

/* ---- 图标容器 ---- */
.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--r-m);
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
  margin-bottom: var(--sp-5);
}
.icon-box--amber { background: rgba(246, 168, 33, .12); border-color: rgba(246, 168, 33, .35); color: var(--amber-600); }
.icon-box--on-dark {
  background: rgba(246, 168, 33, .1);
  border-color: rgba(246, 168, 33, .32);
  color: var(--amber-500);
}

/* ---- 数据指标 ---- */
.stat { text-align: left; }
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(var(--fs-3xl), 3.4vw, var(--fs-4xl));
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
}
.stat__num i { font-style: normal; color: var(--amber-600); }
.stat__label { margin-top: 6px; font-size: var(--fs-s); color: var(--text-3); letter-spacing: .06em; }
.on-dark .stat__num, .section--dark .stat__num { color: var(--amber-500); }
.on-dark .stat__label, .section--dark .stat__label { color: var(--text-on-dark-3); }

/* ---- 表格（规格/对比） ---- */
.table-wrap {
  border: 1px solid var(--line-1);
  border-radius: var(--r-l);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.table-scroll { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; font-size: var(--fs-s); min-width: 560px; }
table.spec th, table.spec td { padding: 14px 18px; text-align: left; }
table.spec thead th {
  background: var(--navy-800);
  color: var(--text-on-dark);
  font-weight: 600;
  letter-spacing: .08em;
  font-size: var(--fs-xs);
  white-space: nowrap;
}
table.spec tbody tr + tr { border-top: 1px solid var(--line-1); }
table.spec tbody tr:nth-child(even) { background: var(--brand-050); }
table.spec td:first-child { font-weight: 600; color: var(--text-1); white-space: nowrap; }
table.spec td { color: var(--text-2); }


/* ---- 手风琴 ---- */
.accordion { border-top: 1px solid var(--line-1); }
.accordion__item { border-bottom: 1px solid var(--line-1); }
.accordion__trigger {
  display: flex; align-items: center; gap: var(--sp-4);
  width: 100%;
  padding: 20px 4px;
  text-align: left;
  font-size: var(--fs-m);
  font-weight: 600;
  color: var(--text-1);
  transition: color var(--dur-fast) ease;
}
.accordion__trigger:hover { color: var(--brand-600); }
.accordion__trigger .plus {
  position: relative; flex: none;
  width: 26px; height: 26px;
  margin-left: auto;
  border: 1px solid var(--line-2); border-radius: 50%;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.accordion__trigger .plus::before, .accordion__trigger .plus::after {
  content: ""; position: absolute; inset: 50% 7px auto 7px; height: 1.6px;
  background: var(--brand-600); border-radius: 2px;
  transform: translateY(-50%);
  transition: transform var(--dur) var(--ease-out), background var(--dur-fast) ease;
}
.accordion__trigger .plus::after { transform: translateY(-50%) rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .plus { transform: rotate(45deg); border-color: var(--amber-500); background: rgba(246, 168, 33, .12); }
.accordion__trigger[aria-expanded="true"] .plus::before,
.accordion__trigger[aria-expanded="true"] .plus::after { background: var(--amber-600); }
.accordion__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}
.accordion__panel.is-open { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__body {
  padding: 0 4px 22px;
  color: var(--text-2);
  font-size: var(--fs-s);
  line-height: 1.9;
  max-width: 76ch;
}

/* ---- 时间轴 ---- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--amber-500), var(--brand-300) 70%, transparent);
}
.timeline__item { position: relative; padding-bottom: var(--sp-10); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -30px; top: 7px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--amber-500);
  box-shadow: 0 0 0 4px rgba(246, 168, 33, .15);
}
.timeline__year {
  font-family: var(--font-mono);
  font-size: var(--fs-s);
  letter-spacing: .16em;
  color: var(--amber-ink);
  font-weight: 600;
}
.timeline__title { font-size: var(--fs-l); font-weight: 700; margin: 6px 0 8px; }
.timeline__text { color: var(--text-2); font-size: var(--fs-s); max-width: 62ch; }

/* ---- 步骤条 ---- */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding: var(--sp-8) var(--sp-6) var(--sp-8) 0;
}
.step__no {
  counter-increment: step;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .2em;
  color: var(--amber-500);
  display: flex; align-items: center; gap: 10px;
}
.step__no::before {
  content: counter(step, decimal-leading-zero);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: rgba(246, 168, 33, .85);
  letter-spacing: 0;
}
.step__title { font-size: var(--fs-l); font-weight: 700; margin: var(--sp-3) 0 var(--sp-2); }
.step__text { color: var(--text-on-dark-2); font-size: var(--fs-s); }
.steps--light .step__text { color: var(--text-2); }

/* ---- 返回顶部 ---- */
.backtop {
  position: fixed; right: 22px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--amber-500);
  border: 1px solid rgba(246, 168, 33, .4);
  box-shadow: var(--sh-2);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), background var(--dur-fast) ease;
}
.backtop.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.backtop:hover { background: var(--navy-700); }
@media (max-width: 560px) { .backtop { right: 14px; bottom: 16px; } }

/* ---- 引用 / 客户声音 ---- */
.quote {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-1);
  border-radius: var(--r-l);
  padding: var(--sp-8);
  box-shadow: var(--sh-1);
}
.quote::before {
  content: "\201C";
  position: absolute; top: 6px; left: 22px;
  font-family: var(--font-serif);
  font-size: 76px; line-height: 1;
  color: var(--brand-100);
}
.quote__text { position: relative; font-size: var(--fs-m); line-height: 2; color: var(--text-2); min-height: 9em; }
.quote__who { margin-top: var(--sp-5); display: flex; align-items: center; gap: 12px; }
.quote__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-600), var(--navy-800));
  color: #fff; font-weight: 700; font-size: var(--fs-s);
}
.quote__name { font-weight: 700; font-size: var(--fs-s); }
.quote__role { font-size: var(--fs-xs); color: var(--text-3); }
