/* =============================================================================
   落雨纪元 · 官网样式（v3 · Apple 产品页风格）
   -----------------------------------------------------------------------------
   严格对齐原始样板的视觉语言：
     · 纯白底 (#fff) / 极淡灰 (#fbfbfd) / 纯黑大色块 (#000) 三段式
     · 巨型标题 clamp(56px,9vw,112px)、字距 -.035em
     · 全宽 16:9 产品图，大圆角 28px
     · 描边极淡 rgba(0,0,0,.08)，几乎不用阴影
     · 唯一的彩色：品牌渐变（蓝→紫→桃）只用在标题和强调处
   ========================================================================== */

:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --bg: #ffffff;
  --bg-alt: #fbfbfd;
  --bg-elev: #f5f5f7;
  --border: rgba(0, 0, 0, 0.08);
  --border-2: rgba(0, 0, 0, 0.14);
  --blue: #0071e3;
  --blue-2: #0066cc;
  --violet: #5856d6;
  --iris: #af52de;
  --pink: #ff2d55;
  --mint: #00c7be;
  --grad: linear-gradient(100deg, #1d1d1f 20%, #0071e3 42%, #5856d6 58%, #af52de 75%, #ff2d55 90%);
  --r-xl: 28px;
  --r: 20px;
  --r-sm: 12px;
  --max: 1120px;
  --nav-h: 48px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Display",
          "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); text-decoration: underline; }

img { max-width: 100%; display: block; }

code, pre, .mono { font-family: var(--mono); }

pre {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}

code:not(pre code) {
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.9em;
}

/* ---------------------------------------------------------------- 布局 */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

section { padding: 100px 0; }
section.tight { padding: 60px 0; }
section.section-alt { background: var(--bg-alt); }
section.section-dark { background: #000; color: #f5f5f7; }
section.section-dark .section-title,
section.section-dark h2, section.section-dark h3 { color: #f5f5f7; }
section.section-dark p { color: #a1a1a6; }

#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--grad);
  z-index: 200;
  transition: width .1s linear;
}

/* ---------------------------------------------------------------- 导航 */
header.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
header.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
  max-width: 1024px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { height: 22px; width: auto; border-radius: 5px; }

nav.links { display: flex; align-items: center; gap: 30px; }
nav.links a {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color .2s;
}
nav.links a:hover { color: var(--blue); text-decoration: none; }
nav.links a.active { color: var(--text); font-weight: 500; }
nav.links .btn { font-size: 12.5px; padding: 6px 14px; }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  font-family: inherit;
  letter-spacing: -0.01em;
  line-height: 1.2;
  border: 1px solid var(--border-2);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-elev); color: var(--text); text-decoration: none; }
.btn.primary { background: var(--blue); border-color: transparent; color: #fff; }
.btn.primary:hover { background: var(--blue-2); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--blue); padding-left: 0; padding-right: 0; }
.btn.ghost:hover { background: transparent; text-decoration: underline; }
.btn.dark { background: var(--text); border-color: var(--text); color: #fff; }
.btn.dark:hover { background: #000; color: #fff; }
.btn.danger { color: var(--pink); border-color: rgba(255, 45, 85, .3); }
.btn.small { padding: 7px 16px; font-size: 14px; }
.btn.lg { padding: 15px 32px; font-size: 19px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------------------------------------------------------------- 首屏 */
.hero {
  padding-top: 132px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bg);
}
.hero-kicker {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.hero-title {
  font-size: clamp(56px, 9vw, 112px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  color: var(--text);
}
.hero-title .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--text-2);
  margin: 22px auto 0;
  line-height: 1.25;
  max-width: 780px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-visual {
  margin: 78px auto 0;
  max-width: 980px;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-elev);
  position: relative;
  box-shadow: 0 40px 120px -60px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0, 0, 0, .06);
}
.hero-visual-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, .07);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.hero-orbit.r1 { width: 26%; aspect-ratio: 1; animation: spin 26s linear infinite; }
.hero-orbit.r2 { width: 46%; aspect-ratio: 1; animation: spin 40s linear infinite reverse; }
.hero-orbit.r3 { width: 68%; aspect-ratio: 1; animation: spin 58s linear infinite; }
.hero-orbit::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  top: -5px; left: 50%;
  margin-left: -4px;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(0, 113, 227, .6);
}
.hero-orbit.r2::after { background: var(--violet); left: 8%; top: 88%; }
.hero-orbit.r3::after { background: var(--iris); left: 92%; top: 30%; }
.hero-core {
  width: 12%;
  aspect-ratio: 1;
  border-radius: 26px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .06);
  z-index: 2;
}
.hero-core img { width: 62%; height: 62%; object-fit: contain; border-radius: 8px; }
.hero-node {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .06);
  white-space: nowrap;
}
.hero-node.n1 { top: 12%; left: 8%; }
.hero-node.n2 { bottom: 14%; right: 9%; }
.hero-node.n3 { top: 20%; right: 12%; }

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---------------------------------------------------------------- 通用标题 */
.kicker {
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
h2.section-title {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--text);
}
p.section-sub {
  font-size: clamp(19px, 1.8vw, 24px);
  color: var(--text-2);
  line-height: 1.32;
  max-width: 720px;
  margin: 0 0 12px;
  font-weight: 400;
}
.center-head { text-align: center; }
.center-head p.section-sub { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- 产品大色块 */
.product-showcase { padding: 100px 0; }
.ps-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
  padding: 60px 40px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ps-card.light { background: var(--bg-alt); color: var(--text); }
.ps-card.dark { background: #000; color: #f5f5f7; }
.ps-card.dark p { color: #a1a1a6; }
.ps-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text-2);
}
.ps-card.dark .ps-tag { color: #a1a1a6; }
.ps-tag.new { color: var(--blue); }
.ps-card h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 780px;
  margin: 0;
}
.ps-card p {
  font-size: clamp(19px, 1.8vw, 24px);
  color: var(--text-2);
  margin: 14px 0 0;
  line-height: 1.3;
  max-width: 640px;
  font-weight: 400;
}
.ps-card .ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 26px 0 34px;
}
.ps-img {
  width: 100%;
  max-width: 820px;
  margin-top: auto;
}
.ps-img img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r) var(--r) 0 0;
  background: #1c1c1e;
}

/* ---------------------------------------------------------------- 数字 */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--r);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.stat-num {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.stat-label {
  font-size: 15px;
  color: var(--text-2);
  margin-top: 10px;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------- 使命 */
.mission {
  border-radius: var(--r-xl);
  padding: 80px 40px;
  text-align: center;
  background: linear-gradient(160deg, #f5f5f7 0%, #e8e8ed 100%);
}
.mission-quote {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  max-width: 880px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------- 小卡片 */
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
}
.card h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.02em; font-weight: 600; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.47; }
.card .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--bg-elev);
  font-size: 19px;
  margin-bottom: 16px;
}
a.card { color: inherit; display: block; transition: border-color .2s; }
a.card:hover { border-color: var(--border-2); text-decoration: none; }

/* ---------------------------------------------------------------- 历程 */
.timeline { position: relative; margin: 0; padding: 0 0 0 32px; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 4px; bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, #0071e3, #5856d6, #af52de, #ff2d55);
  border-radius: 2px;
  opacity: .2;
}
.timeline li { position: relative; padding: 0 0 36px 22px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -31px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .1);
}
.timeline .t-date { font-size: 14px; font-weight: 600; color: var(--blue); letter-spacing: -0.01em; }
.timeline h4 { margin: 6px 0; font-size: 21px; letter-spacing: -0.02em; font-weight: 600; color: var(--text); }
.timeline p { margin: 0; color: var(--text-2); font-size: 16px; }

/* ---------------------------------------------------------------- 代码块 */
.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  padding: 10px 16px;
  font-size: 12.5px;
  color: var(--text-3);
  font-family: var(--mono);
}
.code-head + pre { border-radius: 0 0 var(--r-sm) var(--r-sm); margin: 0; }
.copy-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-3); font-size: 12.5px; font-family: inherit;
}
.copy-btn:hover { color: var(--blue); }

/* ---------------------------------------------------------------- 表格 */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #fff;
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); }
th { background: var(--bg-alt); color: var(--text-2); font-weight: 600; font-size: 13.5px; }
tr:last-child td { border-bottom: none; }
td.mono, th.mono { font-family: var(--mono); font-size: 13px; }

/* ---------------------------------------------------------------- 提示条 */
.note {
  border-radius: var(--r-sm);
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  margin: 22px 0;
}
.note.info { background: rgba(0, 113, 227, .06); border-color: rgba(0, 113, 227, .16); }
.note.warn { background: rgba(255, 159, 10, .08); border-color: rgba(255, 159, 10, .22); }
.note.danger { background: rgba(255, 45, 85, .07); border-color: rgba(255, 45, 85, .2); }

/* ---------------------------------------------------------------- 标签 */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--bg-alt);
}
.tag.ok { color: #00795f; background: rgba(0, 199, 190, .1); border-color: rgba(0, 199, 190, .25); }
.tag.off { color: var(--text-3); }
.tag.warn { color: #8a5a00; background: rgba(255, 159, 10, .1); border-color: rgba(255, 159, 10, .25); }

/* ---------------------------------------------------------------- 表单 */
label.field { display: block; margin-bottom: 20px; }
label.field span.lbl { display: block; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 17px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: #b0b0b5; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .12);
}
.help { font-size: 13px; color: var(--text-3); margin-top: 7px; }

/* ---------------------------------------------------------------- 黑色 CTA */
.band {
  border-radius: var(--r-xl);
  padding: 70px 40px;
  text-align: center;
  background: #000;
  color: #f5f5f7;
}
.band h2 { font-size: clamp(30px, 4vw, 48px); margin: 0 0 14px; letter-spacing: -0.025em; color: #f5f5f7; font-weight: 700; }
.band p { color: #a1a1a6; margin: 0 0 28px; font-size: clamp(17px, 1.6vw, 21px); }
.band .btn { background: #fff; color: #1d1d1f; border-color: transparent; }
.band .btn:hover { background: #e8e8ed; }
.band .btn.hollow { background: transparent; color: #f5f5f7; border-color: rgba(255, 255, 255, .3); }
.band .btn.hollow:hover { background: rgba(255, 255, 255, .1); }

/* ---------------------------------------------------------------- 页脚 */
footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  font-size: 13px;
  color: var(--text-2);
}
footer .fgrid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
footer .fbrand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: 14px; margin-bottom: 12px; }
footer .fbrand img { height: 22px; border-radius: 5px; }
footer h5 { font-size: 13px; color: var(--text); font-weight: 600; margin: 0 0 14px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 10px; }
footer a { color: var(--text-2); font-size: 13px; }
footer a:hover { color: var(--blue); text-decoration: none; }
footer .fbot {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 12px;
}

/* ---------------------------------------------------------------- 滚动淡入 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* ---------------------------------------------------------------- 工具类 */
.dim { color: var(--text-2); }
.faint { color: var(--text-3); }
.center { text-align: center; }
.small { font-size: 14px; }
.mt0 { margin-top: 0; }
.mt24 { margin-top: 24px; }
.mt40 { margin-top: 40px; }
.mb0 { margin-bottom: 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.center-row { justify-content: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hide { display: none !important; }
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
nav.links a.btn.active, nav.links a.btn:hover { color: #fff; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 980px) {
  section { padding: 72px 0; }
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  footer .fgrid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-node.n3 { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  section { padding: 56px 0; }
  .hero { padding-top: 72px; padding-bottom: 60px; }
  .hero-visual { margin-top: 44px; border-radius: 18px; }
  .hero-node { display: none; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .ps-card { padding: 40px 22px 0; border-radius: 20px; }
  .mission { padding: 50px 22px; border-radius: 20px; }
  .band { padding: 48px 22px; border-radius: 20px; }
  nav.links { gap: 0; }
  nav.links a:not(.btn) { display: none; }
  nav.links .btn { padding: 6px 13px; font-size: 12px; }
  footer .fgrid { grid-template-columns: 1fr; gap: 26px; }
  .timeline { padding-left: 24px; }
  .timeline li::before { left: -23px; }
}

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

/* =============================================================================
   兼容层：早期页面（docs / apply / admin / news / api / products / about / join）
   用到的是上一版类名，这里映射成 v3 的纯白 Apple 风格，避免重写这些页面。
   ========================================================================== */
.hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; margin: 0; color: var(--text); }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: clamp(19px, 1.9vw, 26px); color: var(--text-2); max-width: 760px; margin: 20px auto 0; line-height: 1.32; font-weight: 400; }
.hero .cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.badge { display: inline-block; padding: 6px 16px; border-radius: 980px; background: var(--bg-elev); border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 20px; }
.badge .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-right: 7px; vertical-align: middle; }
.hero-note { margin-top: 30px; font-size: 14px; color: var(--text-3); display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 14px; height: 14px; opacity: .7; }

/* 产品页的 .product 卡片（products.html 用过，现已统一到 .ps-card，这里兜底） */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product { border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--bg-alt); padding: 32px; }
.product h3 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.025em; font-weight: 700; }
.product p { color: var(--text-2); font-size: 17px; margin: 0 0 16px; }
.product .p-meta { display: flex; gap: 10px; margin-bottom: 14px; }
.product .p-tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 980px; background: #fff; border: 1px solid var(--border); color: var(--text-2); }
.product .p-points { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.product .p-points li { font-size: 13px; color: var(--text-2); background: #fff; border: 1px solid var(--border); padding: 5px 11px; border-radius: 980px; }

/* 文档页左侧锚点导航 */
.doc-nav { position: sticky; top: 76px; font-size: 14px; }
.doc-nav .grp { color: var(--text-3); font-size: 12px; margin: 18px 0 6px; font-weight: 600; }
.doc-nav a { display: block; color: var(--text-2); padding: 5px 0; }
.doc-nav a:hover { color: var(--blue); text-decoration: none; }
.doc-body h2 { font-size: 28px; letter-spacing: -0.02em; margin: 44px 0 12px; scroll-margin-top: 70px; }
.doc-body h3 { font-size: 19px; margin: 26px 0 8px; }
.doc-body p { color: var(--text-2); }
/* =============================================================================
   v4 调整（按创始人反馈）
     1. 导航整体放大，LOGO 显著放大，导航区可以比正文宽
     2. 按钮放大
     3. 首屏改为左右两栏：左侧文案 / 右侧轨道视觉，平衡布局
   ========================================================================== */

/* ---------------- 1) 导航：更大 ---------------- */
header.nav { height: 68px; }
header.nav .wrap {
  max-width: 1320px;          /* 导航区比正文 1120 更宽 */
  padding: 0 32px;
  gap: 28px;
}
.brand {
  font-size: 19px;
  font-weight: 600;
  gap: 12px;
  letter-spacing: -0.02em;
}
.brand img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 10px -2px rgba(0,0,0,.18);
}
nav.links { gap: 34px; }
nav.links a { font-size: 15px; font-weight: 500; }
nav.links .btn { font-size: 14.5px; padding: 9px 20px; }

/* ---------------- 2) 按钮：更大 ---------------- */
.btn { padding: 14px 30px; font-size: 18px; }
.btn.small { padding: 9px 20px; font-size: 14.5px; }
.btn.lg { padding: 18px 42px; font-size: 21px; }
nav.links .btn { padding: 9px 20px; }

/* ---------------- 3) 首屏：左右平衡两栏 ---------------- */
.hero { text-align: left; padding-top: 96px; padding-bottom: 110px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-left { text-align: left; }
.hero-title {
  font-size: clamp(44px, 5.6vw, 82px);
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.hero-sub {
  font-size: clamp(18px, 1.6vw, 22px);
  margin: 24px 0 0;
  max-width: 560px;
  line-height: 1.45;
  color: var(--text-2);
}
.hero-ctas { justify-content: flex-start; margin-top: 38px; gap: 14px; }
.hero-right { display: flex; justify-content: center; }
.hero-right .hero-visual {
  margin: 0;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-xl);
}

@media (max-width: 980px) {
  header.nav { height: 60px; }
  header.nav .wrap { padding: 0 20px; }
  .brand { font-size: 17px; }
  .brand img { height: 34px; width: 34px; }
  nav.links a { font-size: 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 64px; padding-bottom: 72px; text-align: center; }
  .hero-left { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-right .hero-visual { max-width: 420px; }
  .btn.lg { padding: 15px 32px; font-size: 19px; }
}

@media (max-width: 720px) {
  .hero-title { font-size: clamp(38px, 9vw, 54px); }
  nav.links a:not(.btn) { display: none; }
}
/* =============================================================================
   v5：导航 logo 改为纯图片字标
   · 不要圆角、不要阴影、不要描边
   · 图片是白底黑字（四角纯白 #FFFFFF），用 multiply 混合让它与导航底色完全融合，
     即使导航是半透明白也不会露出白方块
   ========================================================================== */
header.nav { background: rgba(255, 255, 255, 0.94); }
.brand { gap: 0; }
header.nav .brand img,
.brand img {
  height: 40px;
  width: auto;
  max-width: none;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  mix-blend-mode: multiply;
}
@media (max-width: 980px) {
  header.nav .brand img,
  .brand img { height: 30px; }
}
/* =============================================================================
   v6：logo 更清晰更大 + 手机端适配
   ========================================================================== */

/* ---- 桌面：logo 放大到 48px，导航相应加高 ---- */
header.nav { height: 76px; }
header.nav .wrap { max-width: 1360px; padding: 0 36px; }
header.nav .brand img,
.brand img {
  height: 48px;
  width: auto;
  max-width: none;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  mix-blend-mode: multiply;
  /* 让浏览器用高质量缩放，避免小图放大发虚 */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* ---- 平板 ---- */
@media (max-width: 980px) {
  header.nav { height: 66px; }
  header.nav .wrap { padding: 0 22px; gap: 14px; }
  header.nav .brand img,
  .brand img { height: 36px; }
}

/* ---- 手机：logo 收小、按钮不再被挤出右边 ---- */
@media (max-width: 720px) {
  header.nav { height: 60px; }
  header.nav .wrap {
    padding: 0 16px;
    gap: 10px;
    align-items: center;
  }
  /* 允许 brand 收缩，避免把按钮顶出去 */
  .brand { min-width: 0; flex: 0 1 auto; }
  header.nav .brand img,
  .brand img {
    height: 28px;
    max-width: 46vw;              /* 再宽也不会把按钮挤走 */
    object-fit: contain;
    object-position: left center;
  }
  nav.links { flex: 0 0 auto; margin-left: auto; }
  nav.links .btn {
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.1;
  }
}
/* ---- 产品图：按原图比例显示，不裁切（换任何尺寸的图都不会被切）---- */
.ps-img img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  width: 100%;
  border-radius: var(--r) var(--r) 0 0;
}
/* =============================================================================
   v7：导航 logo 彻底去框
   原因：图片白底是 JPG 压缩的 253/254 而非纯 255，配 multiply 混合后留下一圈极淡
        灰边，视觉上就是「黑色线框」。
   做法：① logo 已换成「白底真透明」的 PNG（四角 alpha=0）
         ② 去掉 multiply，恢复正常绘制
         ③ 显式声明 border / outline / background 全为无
   ========================================================================== */
header.nav .brand img,
.brand img {
  height: 48px;
  width: auto;
  max-width: none;
  object-fit: contain;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  mix-blend-mode: normal;
  filter: none;
  image-rendering: -webkit-optimize-contrast;
}
@media (max-width: 980px) {
  header.nav .brand img, .brand img { height: 36px; }
}
@media (max-width: 720px) {
  header.nav .brand img, .brand img { height: 28px; max-width: 46vw; object-position: left center; }
}
/* =============================================================================
   v8：消灭一切「线框」
   排查结论：logo 图片本身四边全透明、无任何线条（已逐行逐列扫描确认）。
   因此线框只可能来自 CSS 装饰，这里把凡是围绕 logo / 视觉元素的描边、环形阴影
   全部清除。
   ========================================================================== */

/* ---- 全局：图片永远不画边框 ---- */
img { border: 0 !important; outline: 0 !important; }

/* ---- 导航 logo：零装饰 ---- */
header.nav .brand img,
.brand img {
  height: 48px;
  width: auto;
  max-width: none;
  object-fit: contain;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  mix-blend-mode: normal;
  -webkit-appearance: none;
  image-rendering: -webkit-optimize-contrast;
}
.brand:focus, .brand:focus-visible, .brand a:focus { outline: none !important; }

/* ---- 首屏轨道框：去掉那一圈 1px 描边 ---- */
.hero-visual {
  box-shadow: none !important;
  border: 0 !important;
  background: var(--bg-elev);
}
.hero-core {
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0;
}
.hero-core img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
}
.hero-node {
  box-shadow: none !important;
  border: 1px solid rgba(0, 0, 0, .07);
}

/* ---- 导航底部分隔线再淡一档 ---- */
header.nav { border-bottom: 1px solid rgba(0, 0, 0, .04); }

/* ---- 页脚 logo：换成透明版，去掉白块和圆角 ---- */
footer .fbrand img {
  height: 26px;
  width: auto;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
}
/* =============================================================================
   v9：导航 logo 改回 JPG（按创始人要求）
   · 用 /zp/logo-nav.jpg —— 由原图去白边 + 精确缩到 2 倍显示尺寸 + 反锐化，比原图清晰
   · 不做任何混合模式、无边框、无圆角、无阴影
   · 只影响顶部导航；首屏与页脚的 logo 保持不变
   ========================================================================== */
header.nav { height: 82px; }
header.nav .wrap { max-width: 1360px; padding: 0 36px; }
header.nav .brand img,
.brand img {
  height: 54px;
  width: auto;
  max-width: none;
  object-fit: contain;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  mix-blend-mode: normal;
  image-rendering: auto;
}
@media (max-width: 980px) {
  header.nav { height: 70px; }
  header.nav .wrap { padding: 0 22px; }
  header.nav .brand img, .brand img { height: 40px; }
}
@media (max-width: 720px) {
  header.nav { height: 62px; }
  header.nav .wrap { padding: 0 16px; gap: 10px; }
  .brand { min-width: 0; flex: 0 1 auto; }
  header.nav .brand img, .brand img {
    height: 30px;
    max-width: 46vw;
    object-position: left center;
  }
  nav.links { flex: 0 0 auto; margin-left: auto; }
  nav.links .btn { padding: 8px 14px; font-size: 13px; }
}
/* =============================================================================
   v10
   ① 手机端（<=720px）顶部导航只显示 LOGO，隐藏所有链接与按钮
   ② 首屏轨道中心的 logo 换回原图 lorian.jpg，尺寸与显示方式对齐
   ========================================================================== */

/* ---- 首屏轨道中心：原方形 logo ---- */
.hero-core {
  width: 15%;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
.hero-core img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
}

/* ---- 手机端：导航只剩 logo ---- */
@media (max-width: 720px) {
  nav.links { display: none !important; }
  header.nav .wrap {
    justify-content: flex-start;
    padding: 0 16px;
  }
  header.nav .brand img,
  .brand img {
    height: 34px;          /* 独占整条导航，可以大一点 */
    max-width: 62vw;
    object-position: left center;
  }
  header.nav { height: 62px; }
}
/* =============================================================================
   v11
   ① 手机端导航 logo 更大、水平居中
   ② 首屏轨道中心改用「圆形裁剪」的 PNG（不是在 CSS 里圆角遮罩，
      图片本身就是圆的，四角透明）
   ========================================================================== */

/* ---- 轨道中心：圆形图，零装饰 ---- */
.hero-core {
  width: 16%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  overflow: visible;
}
.hero-core img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
}

/* ---- 手机端：logo 更大且居中 ---- */
@media (max-width: 720px) {
  header.nav { height: 72px; }
  header.nav .wrap {
    justify-content: center;
    padding: 0 16px;
  }
  header.nav .brand {
    width: 100%;
    justify-content: center;
  }
  header.nav .brand img,
  .brand img {
    height: 46px;
    max-width: 82vw;
    object-position: center center;
  }
}

/* 平板也略微放大一点，保持过渡自然 */
@media (min-width: 721px) and (max-width: 980px) {
  header.nav .brand img,
  .brand img { height: 42px; }
}
/* =============================================================================
   v12
   ① 修正：hero 默认居中（之前 v4 把 .hero 全局改成左对齐，导致开放平台等页面标题跑到左边）
   ② 只有首屏的两栏布局（.hero-grid）才左对齐
   ========================================================================== */
.hero { text-align: center; }
.hero h1, .hero h2 { text-align: center; }
.hero p.lead, .hero p.hero-sub, .hero .hero-sub {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero .cta, .hero .hero-ctas { justify-content: center; }

/* 首屏两栏：左对齐 */
.hero-grid .hero-left { text-align: left; }
.hero-grid .hero-left h1 { text-align: left; }
.hero-grid .hero-left p { text-align: left; margin-left: 0; margin-right: 0; }
.hero-grid .hero-left .hero-ctas { justify-content: flex-start; }
/* =============================================================================
   v15：页脚 logo 统一为圆形（lorian-round.png，图片本身就是圆的）
   ========================================================================== */
footer .fbrand img {
  height: 34px;
  width: 34px;
  object-fit: contain;
  border-radius: 50%;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
footer .fbrand { gap: 10px; font-size: 15px; }
@media (max-width: 720px) {
  footer .fbrand img { height: 30px; width: 30px; }
}
/* =============================================================================
   v17：手机端导航恢复「左 logo + 右申请按钮」
   · logo 用 clamp 跟随屏宽自动缩放，小屏不挤、大屏不小
   · 文字链接在手机上隐藏，只保留「申请 API Key」按钮
   ========================================================================== */
@media (max-width: 720px) {
  header.nav { height: 64px; }
  header.nav .wrap {
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    gap: 8px;
  }

  /* 左：logo */
  header.nav .brand {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    justify-content: flex-start;
  }
  header.nav .brand img,
  .brand img {
    height: clamp(26px, 7.2vw, 40px);   /* 320px 屏→约 26px，556px 屏→40px */
    width: auto;
    max-width: 56vw;                    /* 再宽也给按钮留位置 */
    object-fit: contain;
    object-position: left center;
  }

  /* 右：只留申请按钮 */
  nav.links {
    display: flex !important;
    flex: 0 0 auto;
    margin-left: auto;
    gap: 0;
  }
  nav.links a:not(.btn) { display: none !important; }
  nav.links .btn {
    display: inline-flex;
    padding: 9px 15px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* 360px 以下的小屏再收一档，保证按钮完整显示 */
@media (max-width: 380px) {
  header.nav .brand img,
  .brand img { height: 24px; max-width: 50vw; }
  nav.links .btn { padding: 8px 12px; font-size: 12px; }
}