/* ============================================================
   Loopmed — 设计系统
   石墨黑 / 骨白 / 银灰 / 青绿点缀
   ============================================================ */

:root {
  --bg: #0b0d10;
  --bg-raise: #101318;
  --bg-card: #14181d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --fg: #eceef1;
  --fg-dim: #8b9199;
  --fg-faint: #788089;
  --accent: #3fbfa0;
  --accent-soft: rgba(63, 191, 160, 0.14);
  --head-bg: rgba(11, 13, 16, 0.84);
  --grid-line: rgba(255, 255, 255, 0.035);
  --glow-a: rgba(90, 130, 150, 0.14);
  --glow-b: rgba(63, 191, 160, 0.08);
  --art-line: rgba(200, 212, 220, 0.28);
  --art-soft: rgba(200, 212, 220, 0.18);
  --art-strong: rgba(200, 212, 220, 0.40);
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 76px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --fs-display: clamp(38px, 5.8vw, 88px);
  --fs-h2: clamp(24px, 2.4vw, 34px);
  --fs-h3: clamp(17px, 1.4vw, 21px);
  --fs-body: clamp(15px, 1.05vw, 17px);
  --fs-mono: 12px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f6f7;
  --bg-raise: #ffffff;
  --bg-card: #fafbfb;
  --line: rgba(12, 16, 22, 0.10);
  --line-strong: rgba(12, 16, 22, 0.26);
  --fg: #0d1014;
  --fg-dim: #545b64;
  --fg-faint: #656c75;
  --accent: #0f7a63;
  --accent-soft: rgba(15, 122, 99, 0.10);
  --head-bg: rgba(245, 246, 247, 0.88);
  --grid-line: rgba(12, 16, 22, 0.05);
  --glow-a: rgba(90, 130, 150, 0.12);
  --glow-b: rgba(15, 122, 99, 0.07);
  --art-line: rgba(20, 30, 45, 0.24);
  --art-soft: rgba(20, 30, 45, 0.15);
  --art-strong: rgba(20, 30, 45, 0.38);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.78;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #06120f; }

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

/* ---------- 线稿 ---------- */
.art-line { stroke: var(--art-line); }
.art-soft { stroke: var(--art-soft); }
.art-strong { stroke: var(--art-strong); }
.art-accent { stroke: var(--accent); }
.art-dot { fill: var(--accent); }

/* ---------- 排版 ---------- */
.eyebrow {
  font-size: var(--fs-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 500;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.14; }
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.42; letter-spacing: -0.01em; }

.lead {
  color: var(--fg-dim);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.8;
  max-width: 660px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 页头 ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
}
.site-head.is-stuck {
  background: var(--head-bg);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 36px; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark { width: 26px; height: 26px; color: var(--accent); }
.brand__name { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.brand__name span {
  display: block; font-size: 9px; letter-spacing: 0.22em;
  color: var(--fg-faint); font-weight: 500; margin-top: 1px;
}

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 13.5px; color: var(--fg-dim); position: relative; transition: color .25s var(--ease); }
.nav a:hover { color: var(--fg); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent);
  transition: width .3s var(--ease);
}
.nav a:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 2px;
  font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--line-strong);
  color: var(--fg); background: none; cursor: pointer;
  font-family: inherit;
  transition: all .3s var(--ease);
}
.btn:hover { border-color: var(--fg-dim); background: var(--line); }
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid:hover { opacity: .86; transform: translateY(-1px); }
.btn svg { width: 13px; height: 13px; }
.head-cta { flex-shrink: 0; }
.nav-toggle { display: none; }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid var(--line); background: none; color: var(--fg-dim);
  border-radius: 50%; cursor: pointer; transition: all .3s var(--ease);
}
.theme-toggle:hover { color: var(--fg); border-color: var(--line-strong); }
.theme-toggle svg { width: 14px; height: 14px; }

/* ---------- 第一屏 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 148px; padding-bottom: clamp(56px, 9vh, 108px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 78% 34%, var(--glow-a), transparent 70%),
    radial-gradient(50% 45% at 92% 78%, var(--glow-b), transparent 70%);
  pointer-events: none;
}
.hero__art {
  position: absolute; right: -3vw; top: 52%; transform: translateY(-50%);
  width: min(54vw, 740px); z-index: 1; opacity: .6; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero__inner { max-width: 880px; }
.hero h1 { margin: 26px 0 0; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 34px; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.hero__en {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-faint); max-width: 460px;
}

/* ---------- 数字带 ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
}
.stats__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
.stat { padding: 42px 24px 40px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat:first-child .stat__num { font-size: clamp(44px, 5vw, 72px); }
.stat__num {
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  display: flex; align-items: baseline; gap: 2px;
}
.stat__num i { font-style: normal; font-size: .42em; color: var(--fg-dim); font-weight: 500; }
.stat__label { margin-top: 12px; font-size: 12.5px; color: var(--fg-dim); letter-spacing: 0.02em; }

/* ---------- 区块 ---------- */
.section { padding: clamp(70px, 10vw, 142px) 0; }
.section--raise { background: var(--bg-raise); }
.section__head { max-width: 780px; margin-bottom: clamp(42px, 5vw, 74px); }
.section__head h2 { margin: 18px 0 0; }
.section__head .lead { margin-top: 22px; }
.section__head--split {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(26px, 5vw, 78px);
  max-width: none; align-items: end;
}

/* ---------- 四柱 ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.pillar {
  padding: clamp(26px, 3.3vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease);
}
.pillar:hover { background: var(--bg-raise); }
.pillar__no {
  font-size: var(--fs-mono); letter-spacing: 0.16em; color: var(--fg-faint);
  display: flex; align-items: center; gap: 12px;
}
.pillar__no span { flex: 1; height: 1px; background: var(--line); }
.pillar h3 { margin: 22px 0 0; }
.pillar p { margin-top: 15px; color: var(--fg-dim); font-size: 14.5px; line-height: 1.8; }
.pillar__metric {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--fg-faint);
}
.pillar__metric b { color: var(--fg); font-weight: 500; }
.pillars--stack { margin-top: clamp(46px, 6vw, 84px); }

/* ---------- 闭环链条 ---------- */
.chain {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-strong);
}
.step { padding: 30px 22px 34px 0; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; padding-right: 0; }
.step::before {
  content: ""; position: absolute; top: -4px; left: 0;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.step__no { font-size: var(--fs-mono); letter-spacing: 0.16em; color: var(--fg-faint); }
.step h3 { font-size: 16px; margin-top: 14px; letter-spacing: 0; }
.step p { margin-top: 10px; font-size: 13.5px; color: var(--fg-dim); line-height: 1.72; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 14px; }
table.data th {
  text-align: left; font-weight: 500; font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint);
  padding: 0 20px 14px 0; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
table.data td {
  padding: 17px 20px 17px 0; border-bottom: 1px solid var(--line);
  color: var(--fg-dim); vertical-align: top; line-height: 1.65;
}
table.data td:first-child { color: var(--fg); font-weight: 500; white-space: nowrap; }
table.data tr:hover td { color: var(--fg); }
.tag {
  display: inline-block; font-size: 11.5px; letter-spacing: 0.06em;
  padding: 3px 9px; border: 1px solid var(--accent); color: var(--accent);
  border-radius: 2px; white-space: nowrap;
}

/* ---------- 卡组 ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.card { background: var(--bg); padding: clamp(24px, 3vw, 38px); }
.card--main { background: var(--bg-card); }
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h3 { font-size: 19px; }
.card__role { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); }
.card__num {
  margin: 24px 0 4px; font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
}
.card__num i { font-style: normal; font-size: 13px; color: var(--fg-faint); font-weight: 400; margin-left: 5px; }
.card p { margin-top: 18px; font-size: 13.5px; color: var(--fg-dim); line-height: 1.75; }
.card ul { margin-top: 18px; list-style: none; }
.card li {
  font-size: 13px; color: var(--fg-dim); padding: 7px 0 7px 14px;
  border-top: 1px solid var(--line); position: relative;
}
.card li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 5px; height: 1px; background: var(--accent);
}

/* ---------- 边界（做 / 不做） ---------- */
.bounds { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.bound { background: var(--bg); padding: clamp(24px, 3vw, 40px); }
.bound h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.bound__mark {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.bound--do .bound__mark { border: 1px solid var(--accent); color: var(--accent); }
.bound--dont .bound__mark { border: 1px solid var(--line-strong); color: var(--fg-faint); }
.bound ul { margin-top: 18px; list-style: none; }
.bound li {
  font-size: 14px; color: var(--fg-dim);
  padding: 10px 0 10px 16px; border-top: 1px solid var(--line); position: relative;
}
.bound li::before { content: ""; position: absolute; left: 0; top: 18px; width: 6px; height: 1px; background: var(--line-strong); }

/* ---------- 联系 ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(55% 60% at 20% 30%, var(--glow-b), transparent 70%);
  pointer-events: none;
}
.contact .wrap { position: relative; }
.contact__grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 5vw, 70px);
  align-items: end;
}
.contact__list { border-top: 1px solid var(--line); }
.contact__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--fg-dim);
}
.contact__row b { color: var(--fg); font-weight: 500; }

/* ---------- 页脚 ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 46px;
  font-size: 12.5px; color: var(--fg-faint);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 30px; justify-content: space-between; }
.site-foot a { color: var(--fg-dim); }
.site-foot a:hover { color: var(--fg); }

/* ---------- 入场动效 ---------- */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 1px solid var(--line); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-bottom: 34px; }
  .chain { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .section__head--split { grid-template-columns: 1fr; align-items: start; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-head .wrap { height: 66px; gap: 16px; }
  .nav {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg-raise);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 14px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px var(--gutter); font-size: 15px; }
  .nav a::after { display: none; }
  .head-cta { display: none; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; margin-left: auto;
    border: 1px solid var(--line); background: none; color: var(--fg);
    border-radius: 2px; cursor: pointer;
  }
  .theme-toggle { margin-left: auto; }
  .pillars { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; }
  .step { border-right: 0; padding-right: 0; }
  .bounds { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero__art { opacity: .28; width: 92vw; right: -28vw; }
}

@media (max-width: 560px) {
  /* 手机上数字带保持两列，单列会把这一屏拉得过长 */
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 16px 24px; }
  .stat:first-child { padding-left: 0; }
  .stat:not(:first-child) { border-left: 1px solid var(--line); }
  .stat:nth-child(even) { border-left: 0; }
  .stat__num { font-size: 30px; }
  .stat:first-child .stat__num { font-size: 40px; }
  .stat__label { font-size: 12px; margin-top: 8px; }
  table.data { min-width: 0; }
  table.data th, table.data td { white-space: normal; }
  .card__num { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
