/* ==========================================================================
   灵启官网 · 设计系统
   橙 #D88830 / 绿 #589870 / 金 #C0A870 / 暖白 #FDFBF7 / 墨 #2A241F
   ========================================================================== */

:root {
  --orange: #D88830;
  --orange-d: #B36A1E;
  --orange-l: #FBF4EA;
  --green: #589870;
  --green-d: #3C7052;
  --green-l: #EAF2EC;
  --gold: #C0A870;
  --paper: #FDFBF7;
  --white: #FFFFFF;
  --ink: #2A241F;
  --grey: #6E665E;
  --line: rgba(42, 36, 31, 0.10);
  --line-2: rgba(42, 36, 31, 0.16);
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Microsoft YaHei", serif;
  --sans: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --num: "Inter", "Helvetica Neue", Arial, sans-serif;
  --r: 4px;
  --max: 1180px;
}

* { 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(--sans);
  font-size: 15.5px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.38;
  margin: 0;
  color: var(--ink);
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 26px; }
.sec { padding: 96px 0; }
.sec-sm { padding: 64px 0; }
.sec-alt { background: var(--orange-l); }
.sec-white { background: var(--white); }
.sec-green { background: var(--green-l); }

/* ---------- 通用文字 ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 0.16em; color: var(--green-d);
  text-transform: uppercase; margin-bottom: 18px;
}
.kicker::before {
  content: ""; width: 22px; height: 1px; background: var(--green); display: inline-block;
}
.kicker.on-orange { color: var(--orange-d); }
.kicker.on-orange::before { background: var(--orange); }

.h1 { font-size: clamp(34px, 4.2vw, 52px); }
.h2 { font-size: clamp(26px, 3vw, 36px); }
.h3 { font-size: 20px; line-height: 1.55; }
.lead { font-size: 16.5px; color: var(--grey); line-height: 1.9; }
.muted { color: var(--grey); }
.small { font-size: 13px; color: var(--grey); line-height: 1.75; }

.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .h2 { margin-bottom: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: var(--r);
  font-size: 15px; font-family: var(--sans); cursor: pointer;
  border: 1px solid transparent; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); }
.btn-ghost { border-color: var(--green); color: var(--green-d); background: transparent; }
.btn-ghost:hover { background: var(--green-l); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { border-color: var(--orange); color: var(--orange-d); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 头部 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 251, 247, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; height: 72px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 50%; background: var(--orange);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-name { font-family: var(--serif); font-size: 17px; letter-spacing: 0.06em; }
.brand-sub { font-size: 11px; color: var(--grey); letter-spacing: 0.12em; }

.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a {
  font-size: 14.5px; color: var(--ink); padding: 6px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--orange); transition: width .2s ease;
}
.nav a:hover::after, .nav a.on::after { width: 100%; }
.nav a.on { color: var(--orange-d); }
.head-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.head-phone { font-family: var(--num); font-size: 14px; color: var(--grey); letter-spacing: 0.02em; }

.burger {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line-2);
  border-radius: var(--r); background: #fff; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px; cursor: pointer;
}
.burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); }

/* ---------- 首屏轮播 ---------- */
.hero { position: relative; background: var(--white); border-bottom: 1px solid var(--line); }
.hero-track { position: relative; height: clamp(520px, 76vh, 700px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center; width: 100%; }
.slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .42s ease;
  display: grid; grid-template-columns: 1fr; align-items: center;
}
.slide.on { opacity: 1; pointer-events: auto; }
.slide-a { background: var(--orange-l); }
.slide-b { background: var(--green-l); }
.slide-in { padding: 40px 0; }
.slide .h1 { margin-bottom: 20px; }
.slide .lead { max-width: 430px; margin-bottom: 30px; }
.slide-media { display: flex; align-items: center; justify-content: center; }
.slide-media svg { width: 100%; max-width: 580px; height: auto; }

.hero-ctrl {
  position: absolute; left: 0; right: 0; bottom: 26px;
  display: flex; align-items: center; gap: 18px; pointer-events: none;
}
.hero-ctrl .wrap { display: flex; align-items: center; gap: 16px; width: 100%; }
.dots { display: flex; gap: 8px; pointer-events: auto; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(42, 36, 31, 0.2); cursor: pointer; transition: all .2s;
}
.dot.on { background: var(--orange); width: 22px; border-radius: 4px; }
.arrows { margin-left: auto; display: flex; gap: 8px; pointer-events: auto; }
.arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
  background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--ink); transition: all .18s;
}
.arrow:hover { border-color: var(--orange); color: var(--orange-d); }
.pause {
  border: 0; background: transparent; color: var(--grey); font-size: 12px;
  cursor: pointer; pointer-events: auto; padding: 4px 6px; font-family: var(--sans);
}

/* ---------- 三条线 ---------- */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.line-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px 30px 30px; display: flex; flex-direction: column;
  transition: border-color .18s, transform .18s;
}
.line-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.line-no {
  font-family: var(--num); font-size: 12px; letter-spacing: 0.14em;
  color: var(--gold); margin-bottom: 16px;
}
.line-card h3 { font-size: 22px; margin-bottom: 6px; }
.line-tag { font-size: 12.5px; color: var(--green-d); letter-spacing: 0.08em; margin-bottom: 16px; }
.line-card p { font-size: 14.5px; color: var(--grey); line-height: 1.85; flex: 1; }
.line-more {
  margin-top: 22px; font-size: 13.5px; color: var(--orange-d);
  display: inline-flex; align-items: center; gap: 6px;
}
.line-card:hover .line-more { gap: 10px; }

/* ---------- 阶段轴 ---------- */
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; margin-top: 10px; }
.stages::before {
  content: ""; position: absolute; left: 6px; right: calc(20% - 6px); top: 23px; height: 1px; background: var(--line-2);
}
.stage { position: relative; padding: 0 14px 0 0; }
.stage-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--paper);
  border: 1.5px solid var(--green); margin: 17px 0 22px; position: relative; z-index: 1;
}
.stage.hot .stage-dot { background: var(--orange); border-color: var(--orange); }
.stage-age { font-family: var(--num); font-size: 13px; color: var(--orange-d); letter-spacing: 0.04em; }
.stage h4 { font-size: 17px; margin: 6px 0 8px; }
.stage p { font-size: 13.5px; color: var(--grey); line-height: 1.8; }
.stage a { font-size: 12.5px; color: var(--green-d); border-bottom: 1px solid var(--green); }

/* ---------- 产品卡 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prod {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px; display: flex; flex-direction: column;
  transition: border-color .18s, box-shadow .18s;
}
.prod:hover { border-color: var(--orange); }
.prod-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.prod-country { font-size: 12.5px; color: var(--grey); letter-spacing: 0.04em; }
.badge {
  font-size: 11.5px; padding: 3px 10px; border-radius: 99px; letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-green { background: var(--green-l); color: var(--green-d); }
.badge-orange { background: var(--orange-l); color: var(--orange-d); }
.badge-gold { background: #FAF6EC; color: #8A7440; border: 1px solid var(--gold); }
.prod h3 { font-size: 18px; margin-bottom: 8px; }
.prod p { font-size: 13.8px; color: var(--grey); line-height: 1.8; flex: 1; }
.prod-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  font-size: 11.5px; color: var(--grey); border: 1px solid var(--line-2);
  border-radius: 99px; padding: 2px 9px;
}
.prod-foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; font-size: 12.5px; color: var(--grey);
}

/* ---------- 方法四步 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.step-no {
  font-family: var(--num); font-size: 12px; color: var(--orange); letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 13.8px; color: var(--grey); line-height: 1.8; }

/* ---------- 数据 ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.metric { padding: 34px 24px 30px; border-right: 1px solid var(--line-2); }
.metric:last-child { border-right: 0; }
.metric-n {
  font-family: var(--num); font-size: clamp(30px, 3.2vw, 42px); color: var(--ink);
  letter-spacing: -0.01em; line-height: 1.1;
}
.metric-n span { font-size: 15px; color: var(--orange-d); margin-left: 4px; }
.metric-l { font-size: 13px; color: var(--grey); margin-top: 10px; }

/* ---------- 案例 ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 26px; display: flex; flex-direction: column;
}
.case-who { font-size: 12.5px; color: var(--green-d); letter-spacing: 0.06em; margin-bottom: 12px; }
.case-q { font-family: var(--serif); font-size: 17px; line-height: 1.6; margin-bottom: 14px; }
.case p { font-size: 13.8px; color: var(--grey); line-height: 1.85; flex: 1; }
.case-meta { margin-top: 18px; font-size: 12px; color: var(--grey); padding-top: 14px; border-top: 1px dashed var(--line); }

/* ---------- 表单 ---------- */
.form-band { background: var(--green-l); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--grey); margin-bottom: 6px; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 11px 13px; font-size: 14.5px; font-family: var(--sans); color: var(--ink);
  background: var(--paper); outline: none; transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 12px; color: var(--grey); margin-top: 12px; line-height: 1.7; }

/* ---------- 页脚 ---------- */
.site-foot { background: #22352B; color: #E8E4DA; padding: 72px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-foot h4 {
  font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.14em; color: #A8B8AC;
  margin-bottom: 18px; font-weight: 400;
}
.site-foot a { font-size: 14px; color: #E8E4DA; line-height: 2.2; display: block; opacity: .86; }
.site-foot a:hover { opacity: 1; color: #fff; }
.foot-brand { font-family: var(--serif); font-size: 20px; color: #fff; margin-bottom: 12px; letter-spacing: 0.06em; }
.foot-desc { font-size: 13px; color: #A8B8AC; line-height: 1.9; max-width: 300px; }
.foot-btm {
  margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; font-size: 12px; color: #8FA396; gap: 16px; flex-wrap: wrap;
}

/* ---------- 内页头 ---------- */
.page-head { padding: 76px 0 56px; background: var(--orange-l); border-bottom: 1px solid var(--line); }
.page-head.green { background: var(--green-l); }
.page-head .h1 { margin-bottom: 18px; max-width: 860px; }
.page-head .lead { max-width: 720px; }
.crumb { font-size: 12.5px; color: var(--grey); margin-bottom: 26px; letter-spacing: 0.04em; }
.crumb a:hover { color: var(--orange-d); }

/* ---------- 内容块 ---------- */
.blocks { display: grid; gap: 40px; }
.block { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; padding-top: 0; }
.block h2 { font-size: 21px; }
.block-list li {
  position: relative; padding-left: 20px; font-size: 14.8px; color: var(--grey);
  line-height: 1.95; margin-bottom: 6px;
}
.block-list li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
}

/* ---------- 筛选 ---------- */
.filter-bar {
  position: sticky; top: 72px; z-index: 40; background: var(--paper);
  border-bottom: 1px solid var(--line); padding: 16px 0;
}
.filter-groups { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.fg-label { font-size: 12px; color: var(--grey); margin-right: 2px; letter-spacing: 0.06em; }
.chip {
  border: 1px solid var(--line-2); background: #fff; border-radius: 99px;
  padding: 5px 13px; font-size: 12.5px; color: var(--ink); cursor: pointer;
  font-family: var(--sans); transition: all .15s;
}
.chip:hover { border-color: var(--green); color: var(--green-d); }
.chip.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.result-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0 18px; font-size: 13px; color: var(--grey);
}
.result-line b { color: var(--orange-d); font-family: var(--num); }

/* ---------- 对比 ---------- */
.cmp-bar {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(200%);
  bottom: 24px; z-index: 70; background: #22352B; color: #fff;
  border-radius: var(--r); padding: 12px 16px; display: flex; align-items: center;
  gap: 16px; transition: transform .25s ease, opacity .2s ease; max-width: 92vw;
  opacity: 0; pointer-events: none;
}
.cmp-bar.on { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.cmp-items { display: flex; gap: 8px; flex-wrap: wrap; }
.cmp-item { font-size: 12.5px; background: rgba(255,255,255,0.12); padding: 4px 10px; border-radius: 99px; }

/* ---------- 国家代码徽标（不用国旗 emoji，Windows 不支持彩色国旗） ---------- */
.cc {
  display: inline-block; font-family: var(--num); font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--grey); border: 1px solid var(--line-2); border-radius: 2px;
  padding: 0 4px; line-height: 1.5; vertical-align: 1px;
}
.cc-lg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 22px; font-family: var(--num); font-size: 11px; letter-spacing: 0.08em;
  color: var(--green-d); background: var(--green-l); border-radius: 3px; margin-bottom: 14px;
}

/* ---------- 国家卡 ---------- */
.country-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.country-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px; transition: all .18s;
}
.country-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.country-flag { font-size: 26px; line-height: 1; margin-bottom: 14px; }
.country-card h3 { font-size: 19px; margin-bottom: 6px; }
.country-card .en { font-size: 11.5px; color: var(--grey); letter-spacing: 0.06em; margin-bottom: 12px; }
.country-card p { font-size: 13px; color: var(--grey); line-height: 1.75; }
.country-count { margin-top: 14px; font-size: 12px; color: var(--orange-d); font-family: var(--num); }

/* ---------- 时间轴 ---------- */
.road { position: relative; padding-left: 26px; }
.road::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.road-item { position: relative; padding-bottom: 40px; }
.road-item::before {
  content: ""; position: absolute; left: -26px; top: 9px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--green);
}
.road-item.hot::before { border-color: var(--orange); background: var(--orange); }
.road-age { font-family: var(--num); font-size: 12.5px; color: var(--orange-d); letter-spacing: 0.06em; }
.road-item h3 { font-size: 20px; margin: 4px 0 8px; }
.road-item p { font-size: 14.2px; color: var(--grey); max-width: 720px; }

/* ---------- 自测 ---------- */
.quiz { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 34px; }
.quiz-q { margin-bottom: 26px; }
.quiz-q .q { font-family: var(--serif); font-size: 17px; margin-bottom: 12px; }
.quiz-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.quiz-result { margin-top: 22px; padding: 22px; background: var(--green-l); border-radius: var(--r); display: none; }
.quiz-result.on { display: block; }
.quiz-result h4 { font-family: var(--serif); font-size: 18px; margin-bottom: 8px; }
.quiz-result p { font-size: 14px; color: var(--grey); }

/* ---------- 后台 ---------- */
.admin-wrap { max-width: 1080px; margin: 48px auto; padding: 0 24px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th {
  text-align: left; background: var(--orange-l); color: var(--orange-d);
  font-weight: 500; padding: 10px 12px; font-size: 12px; letter-spacing: 0.04em;
}
table.tb td { padding: 10px 12px; border-bottom: 1px solid var(--line); }

/* ---------- 移动端 ---------- */
@media (max-width: 980px) {
  .sec { padding: 64px 0; }
  .head-phone { display: none; }
  .nav { display: none; }
  .burger { display: flex; margin-left: auto; }
  .head-cta { margin-left: 0; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 26px 22px;
    gap: 14px;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .slide-media { display: none; }
  .hero-track { height: auto; min-height: 0; }
  .slide { position: relative; display: none; padding: 40px 0 56px; }
  .slide.on { display: block; }
  .lines, .prod-grid, .cases { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line-2); }
  .stages { grid-template-columns: 1fr; gap: 18px; }
  .stages::before { display: none; }
  .stage { padding-left: 24px; }
  .stage-dot { position: absolute; left: 0; top: 4px; margin: 0; }
  .country-grid { grid-template-columns: 1fr 1fr; }
  .block { grid-template-columns: 1fr; gap: 14px; }
  .form-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .filter-bar { position: static; }
  .result-line { flex-direction: column; align-items: flex-start; gap: 6px; }
  .slide .h1 { font-size: 30px; }
}

@media (max-width: 560px) {
  .steps, .country-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  .btn-row .btn { width: 100%; }
}
