/* ==========================================================================
   小牛星球数字科技 官网样式系统 v2 —— 明亮金融风（参考还呗官网配色）
   主色 #0050F0 · 辅助青 #28D2E6 · 白色背景 · 蓝色 Footer
   Design tokens → Layout → Components → Pages → Responsive
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #f4f8ff;
  --bg-3: #eaf1ff;
  --surface: rgba(0, 80, 240, 0.04);
  --surface-2: rgba(0, 80, 240, 0.07);
  --line: rgba(13, 60, 160, 0.12);
  --line-strong: rgba(13, 60, 160, 0.26);

  --text: #0d1b3e;
  --text-2: #3d4a66;
  --muted: #75809a;

  --brand: #0050f0;
  --brand-deep: #0040c0;
  --cyan: #28d2e6;
  --amber: #ffb545;
  --rose: #e5484d;

  --grad-brand: linear-gradient(120deg, #0050f0 0%, #1a7bf0 55%, #28d2e6 100%);
  --grad-warm: linear-gradient(120deg, #ffb545 0%, #ff8a5c 100%);

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;

  --shadow: 0 18px 48px -20px rgba(0, 60, 180, 0.22);
  --glow: 0 0 0 1px rgba(0, 80, 240, 0.2), 0 18px 60px -24px rgba(0, 80, 240, 0.35);

  --maxw: 1200px;
  --gutter: 24px;
  --nav-h: 72px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

::selection { background: rgba(0, 80, 240, 0.18); color: var(--brand-deep); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f2f6fd; }
::-webkit-scrollbar-thumb { background: #c3d2ef; border-radius: 99px; border: 2px solid #f2f6fd; }
::-webkit-scrollbar-thumb:hover { background: #9db6e4; }

/* ---------- 3. 背景层 ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 640px at 10% -10%, rgba(0, 80, 240, 0.08), transparent 62%),
    radial-gradient(860px 560px at 95% 2%, rgba(40, 210, 230, 0.10), transparent 60%),
    radial-gradient(760px 520px at 55% 112%, rgba(0, 80, 240, 0.05), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 55%, #ffffff 100%);
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(0, 80, 240, 0.16), transparent),
    radial-gradient(1.2px 1.2px at 78% 12%, rgba(40, 210, 230, 0.2), transparent),
    radial-gradient(1.6px 1.6px at 34% 62%, rgba(0, 80, 240, 0.1), transparent),
    radial-gradient(1.1px 1.1px at 62% 34%, rgba(0, 80, 240, 0.14), transparent),
    radial-gradient(1.3px 1.3px at 88% 72%, rgba(40, 210, 230, 0.16), transparent),
    radial-gradient(1.5px 1.5px at 22% 84%, rgba(0, 80, 240, 0.09), transparent),
    radial-gradient(1.2px 1.2px at 50% 8%, rgba(0, 80, 240, 0.12), transparent),
    radial-gradient(1.4px 1.4px at 8% 48%, rgba(0, 80, 240, 0.1), transparent);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 80, 240, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 80, 240, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

/* ---------- 4. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(0, 80, 240, 0.03) 12%, rgba(0, 80, 240, 0.03) 88%, transparent); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 6px 14px;
  border: 1px solid rgba(0, 80, 240, 0.25);
  border-radius: 99px;
  background: rgba(0, 80, 240, 0.06);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px rgba(0, 80, 240, 0.6);
}

.section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 18px; }
.section-sub { color: var(--text-2); font-size: 17px; max-width: 66ch; }
.section-head--center .section-sub { margin-left: auto; margin-right: auto; }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 0; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s, background .22s, border-color .22s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 12px 30px -12px rgba(0, 80, 240, 0.65); }
.btn--primary:hover { background: var(--brand-deep); box-shadow: 0 16px 38px -12px rgba(0, 80, 240, 0.7); }

.btn--ghost { border: 1px solid var(--line-strong); color: var(--brand); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); background: rgba(0, 80, 240, 0.05); }

.btn--warm { background: var(--grad-warm); color: #4a2500; }
.btn--sm { padding: 10px 20px; font-size: 14px; }

/* ---------- 6. Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -18px rgba(0, 60, 180, 0.25);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* 品牌标识：原色 logo 直接融入白色导航（浅色主题无需底板） */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 4px 0;
}
.brand__logo {
  height: 34px;
  width: auto;
  display: block;
}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 15px;
  border-radius: 99px;
  font-size: 15px;
  color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--brand); background: rgba(0, 80, 240, 0.07); }
.nav__links a.is-active { color: var(--brand); background: rgba(0, 80, 240, 0.1); font-weight: 600; }

.nav__cta { display: flex; align-items: center; gap: 12px; flex: none; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  align-items: center; justify-content: center;
}
.nav__toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  position: relative; transition: .25s;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px; transition: .25s;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle.is-open span { background: transparent; }
.nav__toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav__toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

.drawer {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 89;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 28px var(--gutter) 48px;
  display: none;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.drawer.is-open { display: flex; }
.drawer a {
  padding: 16px 4px;
  font-size: 18px; font-weight: 600;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.drawer .btn { margin-top: 22px; width: 100%; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  min-width: 0;
}
.hero__inner > * { min-width: 0; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 8px;
  border-radius: 99px;
  border: 1px solid rgba(0, 80, 240, 0.22);
  background: rgba(0, 80, 240, 0.05);
  font-size: 13.5px; color: var(--text-2);
  margin-bottom: 26px;
}
.hero__badge b {
  background: var(--brand); color: #fff;
  padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.14;
  margin-bottom: 24px;
}
.hero__lead {
  font-size: 17.5px;
  color: var(--text-2);
  max-width: 56ch;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero__stats .num {
  font-size: 30px; font-weight: 800; line-height: 1.1;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__stats .lbl { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* 星球视觉 */
.planet {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 460px;
  margin: 0 auto;
  justify-self: center;
  display: grid;
  place-items: center;
}
.planet__core {
  width: 46%; aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), transparent 24%),
    radial-gradient(circle at 68% 74%, rgba(40, 210, 230, 0.9), transparent 58%),
    linear-gradient(140deg, #28d2e6, #0050f0 58%, #0038a8);
  box-shadow: 0 24px 70px -18px rgba(0, 80, 240, 0.45), inset -18px -22px 50px rgba(0, 20, 90, 0.35);
  position: relative;
  z-index: 2;
  animation: float 7s ease-in-out infinite;
}
.planet__core::after {
  content: "";
  position: absolute; inset: -14%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 80, 240, 0.25);
  animation: spin 26s linear infinite;
}
@keyframes float { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.planet__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 80, 240, 0.2);
}
.planet__ring--1 { inset: 6%; transform: rotate(-18deg) scaleY(.42); border-color: rgba(0, 80, 240, 0.4); }
.planet__ring--2 { inset: -2%; transform: rotate(22deg) scaleY(.36); border-color: rgba(40, 210, 230, 0.45); }
.planet__ring--3 { inset: 16%; transform: rotate(58deg) scaleY(.5); border-color: rgba(255, 181, 69, 0.4); }

.planet__chip {
  position: absolute;
  z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600;
  color: var(--text);
  box-shadow: 0 10px 30px -12px rgba(0, 60, 180, 0.3);
  animation: float 6s ease-in-out infinite;
}
.planet__chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px rgba(0,80,240,.7); }
.planet__chip--a { top: 12%; left: -2%; }
.planet__chip--b { top: 44%; right: -6%; animation-delay: -2s; }
.planet__chip--c { bottom: 12%; left: 4%; animation-delay: -4s; }
.planet__chip--d { top: 22%; right: 4%; animation-delay: -5s; }

/* ---------- 8. Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
/* 关键：允许网格子项收缩，避免表格/长文本撑破列宽导致横向溢出 */
.grid > * { min-width: 0; }

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 4px 24px -14px rgba(0, 60, 180, 0.12);
  transition: transform .28s cubic-bezier(.2,.8,.3,1), border-color .28s, box-shadow .28s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 220px at var(--mx, 50%) 0%, rgba(0, 80, 240, 0.08), transparent 70%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: rgba(0, 80, 240, 0.35); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(0, 80, 240, 0.08);
  border: 1px solid rgba(0, 80, 240, 0.18);
  color: var(--brand);
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15px; margin: 0; }

.card__num {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  letter-spacing: .1em;
}
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 99px;
  background: rgba(0, 80, 240, 0.05);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.tag--brand { background: rgba(0, 80, 240, 0.09); border-color: rgba(0, 80, 240, 0.25); color: var(--brand); }

/* ---------- 9. 服务条目（长列表） ---------- */
.service-list { display: grid; gap: 14px; }
.service {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 28px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  transition: .28s;
}
.service:hover { border-color: rgba(0, 80, 240, 0.35); background: rgba(0, 80, 240, 0.03); transform: translateX(4px); }
.service__idx { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.service h3 { font-size: 20px; margin-bottom: 8px; }
.service p { color: var(--text-2); font-size: 15px; margin: 0; max-width: 74ch; }
.service__arrow { color: var(--muted); transition: .25s; }
.service:hover .service__arrow { color: var(--brand); transform: translateX(5px); }
.service__arrow svg { width: 22px; height: 22px; }

/* ---------- 10. 时间轴 ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--cyan), transparent);
}
.tl-item { position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 80, 240, 0.1);
}
.tl-item__date { font-family: var(--mono); font-size: 13px; color: var(--brand); letter-spacing: .08em; margin-bottom: 6px; }
.tl-item h3 { font-size: 18px; margin-bottom: 8px; }
.tl-item p { color: var(--text-2); font-size: 15px; margin: 0; max-width: 72ch; }

/* ---------- 11. 数据条 ---------- */
.metric {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, rgba(0, 80, 240, 0.025));
  text-align: center;
  box-shadow: 0 4px 24px -16px rgba(0, 60, 180, 0.14);
}
.metric .num {
  font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric .lbl { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- 12. 表格 ---------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  max-width: 100%;
}
@media (max-width: 700px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 480px; }
  tbody td:first-child { width: 34%; min-width: 120px; }
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
thead th {
  text-align: left;
  padding: 16px 22px;
  background: rgba(0, 80, 240, 0.05);
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 15px 22px; border-bottom: 1px solid rgba(13, 60, 160, 0.07); color: var(--text-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(0, 80, 240, 0.03); }
tbody td:first-child { color: var(--text); font-weight: 600; width: 34%; }
td.mono { font-family: var(--mono); font-size: 13.5px; letter-spacing: .02em; }

/* ---------- 13. 招聘 ---------- */
.job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  transition: .26s;
}
.job:hover { border-color: rgba(0, 80, 240, 0.35); background: rgba(0, 80, 240, 0.03); }
.job__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.job__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.job__side { text-align: right; }
.job__salary { font-size: 17px; font-weight: 800; color: var(--brand); white-space: nowrap; }
.job__city { font-size: 13px; color: var(--muted); margin-top: 4px; }

.perk {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
}
.perk__icon { color: var(--brand); margin-bottom: 14px; }
.perk__icon svg { width: 26px; height: 26px; }
.perk h4 { font-size: 16.5px; margin-bottom: 8px; }
.perk p { font-size: 14px; color: var(--text-2); margin: 0; }

/* ---------- 14. CTA 条（还呗式蓝色渐变大块） ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-l);
  border: 0;
  background:
    radial-gradient(900px 360px at 8% 0%, rgba(40, 210, 230, 0.4), transparent 65%),
    linear-gradient(120deg, #0046d6 0%, #0050f0 45%, #1a86e0 100%);
  color: #fff;
  padding: 60px 56px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 70, 214, 0.65);
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 14px; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 62ch; margin-bottom: 30px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band .btn--primary { background: #fff; color: var(--brand-deep); box-shadow: 0 12px 30px -12px rgba(0, 20, 80, 0.5); }
.cta-band .btn--primary:hover { background: #f0f6ff; }
.cta-band .btn--ghost { border: 1px solid rgba(255, 255, 255, 0.45); color: #fff; background: rgba(255, 255, 255, 0.08); }
.cta-band .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.16); }

/* ---------- 15. 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  transition: .2s;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a5aec2; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 80, 240, 0.12);
}
.field select option { background: #fff; color: var(--text); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- 16. 联系信息 ---------- */
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item__icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px; display: grid; place-items: center;
  background: rgba(0, 80, 240, 0.08); border: 1px solid rgba(0, 80, 240, 0.16); color: var(--brand);
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item .k { font-size: 13px; color: var(--muted); margin-bottom: 3px; }
.contact-item .v { font-size: 15.5px; color: var(--text); font-weight: 600; line-height: 1.6; word-break: break-word; }

/* ---------- 17. Footer（还呗式品牌蓝底白字） ---------- */
.footer {
  border-top: 0;
  background: linear-gradient(160deg, #0046d6 0%, #0050f0 55%, #0a63e8 100%);
  color: #fff;
  padding: 62px 0 30px;
  margin-top: 40px;
}
.footer h5 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin-bottom: 16px; font-weight: 600; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.footer__links { display: grid; gap: 10px; }
.footer__links a { font-size: 14.5px; color: rgba(255, 255, 255, 0.85); transition: color .2s; }
.footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__about p { font-size: 14px; color: rgba(255, 255, 255, 0.65); margin: 16px 0 0; max-width: 42ch; }
/* 蓝色 footer 上的 logo：使用白色版，无需底板 */
.footer .brand { background: none; box-shadow: none; padding: 0; }
.footer .brand:hover { transform: none; box-shadow: none; }
.footer .brand__logo { height: 30px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 13px; color: rgba(255, 255, 255, 0.6);
}
.footer__icp a { color: rgba(255, 255, 255, 0.85); }

/* ---------- 18. 面包屑 / 页头 ---------- */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 16px; }
.page-hero p { color: var(--text-2); font-size: 17px; max-width: 70ch; margin: 0; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.crumb a:hover { color: var(--brand); }

/* ---------- 19. Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab {
  padding: 10px 20px;
  border-radius: 99px;
  border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 600;
  color: var(--text-2);
  background: #fff;
  transition: .22s;
}
.tab:hover { color: var(--brand); border-color: rgba(0, 80, 240, 0.4); }
.tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 22px -10px rgba(0, 80, 240, 0.6); }
.tab-panel { display: none; animation: fadeUp .45s ease both; }
.tab-panel.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 20. Accordion ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc__item + .acc__item { border-top: 1px solid var(--line); }
.acc__head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px;
  font-size: 16.5px; font-weight: 600; text-align: left;
  color: var(--text);
  transition: background .22s;
}
.acc__head:hover { background: rgba(0, 80, 240, 0.04); }
.acc__icon { flex: none; width: 20px; height: 20px; position: relative; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; background: var(--brand); border-radius: 2px;
  transition: transform .28s;
}
.acc__icon::before { left: 0; top: 9px; width: 20px; height: 2px; }
.acc__icon::after { left: 9px; top: 0; width: 2px; height: 20px; }
.acc__item.is-open .acc__icon::after { transform: rotate(90deg); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc__body-inner { padding: 0 26px 24px; color: var(--text-2); font-size: 15px; }

/* ---------- 21. 引用 / 公司介绍 ---------- */
.quote {
  padding: 34px 38px;
  border-radius: var(--radius);
  border-left: 3px solid var(--brand);
  background: linear-gradient(90deg, rgba(0, 80, 240, 0.07), rgba(0, 80, 240, 0.015) 60%);
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.95;
}
.quote strong { color: var(--text); }

/* ---------- 21b. 代码块 / 目录树 ---------- */
pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--mono);
  white-space: pre-wrap;
  word-break: break-word;
}
pre::-webkit-scrollbar { height: 6px; }

/* ---------- 22. 地图（点击加载，避免外部资源阻塞首屏） ---------- */
.map-box {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 240px at 30% 20%, rgba(0, 80, 240, 0.06), transparent 70%),
    radial-gradient(500px 240px at 80% 90%, rgba(40, 210, 230, 0.08), transparent 70%),
    #f7faff;
  min-height: 220px;
}
.map-box--lg { min-height: 320px; border-radius: 20px; }

.map-box__btn {
  width: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 44px 20px;
  color: var(--text-2);
  transition: color .25s, background .25s;
}
.map-box__btn:hover { color: var(--brand); background: rgba(0, 80, 240, 0.04); }
.map-box__btn svg { width: 30px; height: 30px; color: var(--brand); }
.map-box__btn span { font-size: 15px; font-weight: 600; }
.map-box__btn small { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }

.map-box iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  display: block;
}

/* ---------- 23. 动画 ---------- */
/* 仅在 JS 可用时才隐藏初始态，确保脚本被禁用/失败时内容依然可见 */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.3,1), transform .7s cubic-bezier(.2,.8,.3,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }
.js .reveal[data-delay="5"] { transition-delay: .4s; }

/* 最终保险：JS 计时器跑完后，无论动画是否触发，内容一律可见 */
.reveal-done .reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- 24. 悬浮下载按钮 ---------- */
.dl-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 80;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  border-radius: 99px;
  background: var(--brand);
  color: #fff;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 16px 40px -14px rgba(0, 80, 240, 0.75);
  transition: transform .22s, background .22s;
}
.dl-fab:hover { transform: translateY(-3px); background: var(--brand-deep); }
.dl-fab svg { width: 18px; height: 18px; }

/* 返回顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 84px;
  z-index: 80;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px -14px rgba(0, 60, 180, 0.3);
  color: var(--text);
  opacity: 0; pointer-events: none;
  transition: .28s;
}
.to-top.is-show { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--brand); color: var(--brand); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 25. 源码下载区块 ---------- */
.dl-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius-l);
  border: 1px solid rgba(255, 181, 69, 0.4);
  background:
    radial-gradient(700px 280px at 90% 0%, rgba(255, 181, 69, 0.12), transparent 70%),
    #fffdf7;
}
.dl-card h3 { font-size: 24px; margin-bottom: 12px; }
.dl-card p { color: var(--text-2); margin-bottom: 18px; font-size: 15px; }
.dl-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-list span {
  font-family: var(--mono); font-size: 12.5px;
  padding: 5px 12px; border-radius: 8px;
  background: rgba(255, 181, 69, 0.12); border: 1px solid rgba(255, 181, 69, 0.35); color: #9a6200;
}

/* ---------- 26. Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .planet { max-width: 380px; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: flex; }
  .section { padding: 72px 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr auto; grid-template-areas: "idx arrow" "body body"; gap: 10px 18px; }
  .service__idx { grid-area: idx; }
  .service__arrow { grid-area: arrow; }
  .service > div:nth-child(2) { grid-area: body; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .dl-card { grid-template-columns: 1fr; padding: 30px 26px; }
  .cta-band { padding: 44px 28px; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .job { grid-template-columns: 1fr; }
  .job__side { text-align: left; }
  .hero { padding: 56px 0 68px; }
  .quote { padding: 26px 22px; font-size: 15.5px; }
  .dl-fab { right: 14px; bottom: 14px; padding: 11px 16px; font-size: 13px; }
  .to-top { right: 16px; bottom: 72px; }
  .section { padding: 60px 0; }
  .brand { padding: 4px 0; }
  .brand__logo { height: 26px; }

  /* 防止中文长句与固定宽度元素横向溢出 */
  .wrap { padding: 0 18px; }
  .hero__lead, .section-sub, .card p, .service p, .tl-item p, .job__title {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .section-title { line-height: 1.3; }

  /* 星球视觉：缩小并收拢悬浮标签，避免超出视口 */
  .planet { max-width: 300px; }
  .planet__chip { font-size: 11px; padding: 6px 10px; gap: 5px; max-width: 46%; }
  .planet__chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .planet__chip--a { top: 8%; left: 0; }
  .planet__chip--b { top: 42%; right: 0; }
  .planet__chip--c { bottom: 8%; left: 0; }
  .planet__chip--d { top: 18%; right: 0; }
}

/* ---------- 27. 超窄屏（≤380px）---------- */
@media (max-width: 380px) {
  .wrap { padding: 0 14px; }
  .planet { max-width: 260px; }
  .planet__chip { font-size: 10px; padding: 5px 8px; max-width: 50%; }
  .brand__logo { height: 23px; }

  /* 代码块 / 目录树：强制换行，杜绝横向溢出 */
  pre {
    max-width: 100%;
    overflow-x: auto;
    word-break: break-all;
    white-space: pre-wrap;
  }
  .card pre { font-size: 11.5px !important; line-height: 1.85 !important; }

  /* 表格降级为可横向滚动 */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 520px; }

  .job__salary { font-size: 15.5px; }
  .dl-card { padding: 24px 20px; }
}

@media print {
  .bg-layer, .nav, .dl-fab, .to-top, .drawer { display: none !important; }
  body { background: #fff; color: #000; }
  .footer { background: #fff !important; color: #000 !important; }
  .footer * { color: #000 !important; }
}
