/* ==========================================================
   北京智百源科技有限公司 — 官网首页样式
   设计语言：纸感米白 × 机车蓝，编辑排版风
   ========================================================== */

:root {
  --brand: #0178b4;
  --brand-deep: #01608f;
  --brand-dark: #02456b;
  --ink: #1d2126;
  --ink-soft: #525a61;
  --ink-faint: #848c93;
  --paper: #f7f9fa;
  --paper-warm: #ecf1f4;
  --paper-card: #fdfeff;
  --line: rgba(29, 33, 38, 0.12);
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1120px, calc(100% - clamp(2rem, 6vw, 5rem)));
  margin-inline: auto;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  width: min(1120px, calc(100% - clamp(2rem, 6vw, 5rem)));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--brand-deep); }

.nav-cta {
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.88rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
  transition: background 0.25s;
}

.nav-cta:hover { background: var(--brand-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(7rem, 14vh, 10rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: 62vh;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 1.22;
  letter-spacing: 0.02em;
}

.hero-title em {
  font-style: normal;
  color: var(--brand-deep);
  position: relative;
}

.hero-title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.28em;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  z-index: -1;
}

.hero-sub {
  max-width: 34em;
  margin-top: 1.6rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.btn {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--brand-deep);
  color: #f2f9fe;
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--ink); }

/* Hero 视觉：轨道环绕 logo */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 420px);
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.hero-mark {
  width: 42%;
  filter: drop-shadow(0 18px 40px color-mix(in srgb, var(--brand) 30%, transparent));
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--brand) 38%, transparent);
}

.orbit-outer {
  inset: 3%;
  animation: spin 46s linear infinite;
}

.orbit-inner {
  inset: 16%;
  border-style: solid;
  border-color: var(--line);
  animation: spin 30s linear infinite reverse;
}

.orbit-outer::before,
.orbit-inner::before {
  content: "";
  position: absolute;
  top: 50%; left: -5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand);
}

.orbit-inner::before { background: var(--ink); width: 7px; height: 7px; }

@keyframes spin { to { transform: rotate(360deg); } }

.track-line {
  position: absolute;
  bottom: 6%;
  left: 8%; right: 8%;
  height: 5px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 18px, transparent 18px 30px);
  opacity: 0.16;
  border-radius: 3px;
}

/* ---------- 跑马灯 ---------- */
.ticker {
  margin-top: clamp(3rem, 7vh, 5rem);
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 0.9rem 0;
  background: var(--paper-warm);
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker-inner span {
  font-family: var(--serif);
  font-size: 0.98rem;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.ticker-inner i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 通用 Section ---------- */
.section { padding: clamp(4.5rem, 10vh, 7.5rem) 0; }

.section-tinted { background: var(--paper-warm); }

.section-head { margin-bottom: clamp(2.5rem, 6vh, 4rem); }

.section-index {
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  color: var(--brand-deep);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.section-sub {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  max-width: 36em;
}

/* ---------- Bento 核心能力 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.cell {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.9rem 1.7rem;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.35s;
}

.cell:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  box-shadow: 0 22px 44px -22px color-mix(in srgb, var(--brand-dark) 28%, transparent);
}

.cell-hero {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(120% 130% at 12% 0%,
      color-mix(in srgb, var(--brand) 13%, transparent), transparent 55%),
    var(--paper-card);
}

.cell-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand-deep);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  margin-bottom: 1.2rem;
}

.cell-icon svg { width: 23px; height: 23px; }

.cell h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  letter-spacing: 0.03em;
}

.cell-hero h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

.cell p {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.cell-hero p { max-width: 34em; font-size: 0.98rem; }

/* ---------- 产品平台 ---------- */
.platform-single {
  max-width: 780px;
}

.platform-points {
  list-style: none;
  margin-top: 2.2rem;
  display: grid;
  gap: 1.4rem;
}

.platform-points li {
  display: grid;
  gap: 0.25rem;
  padding-left: 1.3rem;
  border-left: 3px solid var(--brand);
}

.platform-points strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.platform-points span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- 应用场景 ---------- */
.scenario-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.scenario {
  border-top: 2px solid var(--ink);
  padding: 1.8rem 0.2rem 0.4rem;
  transition: border-color 0.3s;
}

.scenario:hover { border-top-color: var(--brand); }

.scenario-no {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--brand-deep);
}

.scenario h3 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 0.7rem 0 0.6rem;
  letter-spacing: 0.05em;
}

.scenario p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 30em;
}

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-lead {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 2;
  letter-spacing: 0.02em;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}

.facts dd {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
}

/* ---------- 联系我们 ---------- */
.contact {
  background:
    radial-gradient(90% 120% at 50% 115%,
      color-mix(in srgb, var(--brand) 20%, transparent), transparent 60%),
    var(--ink);
  color: var(--paper);
}

.contact-inner {
  text-align: center;
  display: grid;
  justify-items: center;
}

.contact-mark {
  width: 52px;
  margin-bottom: 1.6rem;
}

.contact-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: 0.04em;
}

.contact-sub {
  margin-top: 1rem;
  max-width: 34em;
  color: color-mix(in srgb, var(--paper) 72%, var(--ink));
}

.contact-line {
  margin-top: 2.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--paper) 60%, var(--ink));
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 55%, var(--ink));
  border-top: 1px solid rgba(250, 247, 242, 0.12);
  padding: 1.6rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--paper) 80%, var(--ink));
}

.footer-icp {
  justify-self: center;
  text-decoration: none;
  color: color-mix(in srgb, var(--paper) 62%, var(--ink));
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.footer-icp:hover { color: var(--paper); }

.footer-meta {
  justify-self: end;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orbit, .hero-mark, .ticker-inner { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { max-width: 300px; margin-top: 1rem; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell-hero { grid-column: span 2; grid-row: auto; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out);
  }
  .nav-links.open { max-height: 260px; }
  .nav-links a { padding: 0.9rem clamp(1rem, 5vw, 2rem); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .bento, .scenario-list { grid-template-columns: 1fr; }
  .cell-hero { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; }
  .footer-icp,
  .footer-meta { justify-self: start; }
}
