/* ============================================================
   指至官网首页 · style.css
   设计规范见 桌面《指至官网_首页设计方案_v1.md》§8
   ============================================================ */

:root {
  --brand:   #2563eb;
  --brand-2: #06b6d4;
  --ink:     #0b1a30;
  --paper:   #f5f7fb;
  --card:    #ffffff;
  --text:    #0e1b2e;
  --muted:   #5d6e85;
  --line:    #e4eaf2;

  --radius-card: 14px;
  --radius-btn:  10px;

  --pad-y-desktop: 88px;
  --pad-y-mobile:  64px;

  --maxw: 1160px;

  --font-en: 'Space Grotesk', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --font-zh: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-zh);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-en); font-weight: 600; line-height: 1.2; margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: var(--pad-y-desktop) 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow--light { color: #9fd8ff; }

.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head h2,
.split__text h2,
.privacy__head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.section__head p { color: var(--muted); font-size: 17px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 500; font-size: 15px;
  padding: 11px 22px; border-radius: var(--radius-btn);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: #1d4fd0; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37,99,235,.28); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--brand); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

.link-arrow { color: var(--brand); font-weight: 500; }
.link-arrow:hover { color: var(--brand-2); }

/* ---------- grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11,26,48,.08); }

/* ============================================================
   01 导航栏
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,247,251,.72);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(245,247,251,.88); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-size: 15px; color: var(--muted); transition: color .15s ease; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; padding: 8px 24px 18px; background: rgba(245,247,251,.96); border-bottom: 1px solid var(--line); }
.nav__mobile a { padding: 12px 0; color: var(--text); border-bottom: 1px solid var(--line); }
.nav__mobile a:last-child { border-bottom: none; }

/* ============================================================
   02 Hero
   ============================================================ */
.hero { padding: clamp(56px, 8vw, 96px) 0 var(--pad-y-desktop); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(34px, 5.2vw, 60px); font-weight: 700; letter-spacing: -0.01em; }
.hero__sub { color: var(--muted); font-size: 18px; margin: 22px 0 18px; max-width: 540px; }
.hero__invite {
  display: inline-block; font-family: var(--font-mono); font-size: 13px;
  color: var(--brand); background: rgba(37,99,235,.08);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 26px;
}
.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(11,26,48,.10);
}

/* ============================================================
   03 四大核心
   ============================================================ */
.pillars { padding-bottom: var(--pad-y-desktop); }
.pillar__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  color: var(--brand); background: rgba(37,99,235,.08); margin-bottom: 16px;
}
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 19px; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* ============================================================
   04 私域远程（图文分栏）
   ============================================================ */
.split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__text p { color: var(--muted); font-size: 17px; margin-bottom: 22px; }
.split__media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius-card); border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(11,26,48,.08);
}

/* ============================================================
   05 隐私保护（蓝色高亮区）
   ============================================================ */
.privacy {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(6,182,212,.18), transparent 60%),
    linear-gradient(160deg, #0b1a30 0%, #102a52 100%);
  color: #eaf2ff;
}
.privacy__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.privacy__head h2 { color: #fff; }
.privacy__lead { font-size: clamp(20px, 2.6vw, 28px); font-weight: 500; color: #cfe4ff; margin-top: 10px; }
.privacy__cards { max-width: 920px; margin: 0 auto; }
.card--privacy {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  text-align: center; padding: 30px 22px;
}
.card--privacy:hover { box-shadow: 0 14px 34px rgba(0,0,0,.25); border-color: rgba(159,216,255,.5); }
.card--privacy h3 { color: #fff; font-size: 18px; }
.privacy__foot { text-align: center; color: #aac4e6; font-size: 15px; margin-top: 36px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ============================================================
   06 工具箱
   ============================================================ */
.chips { display: flex; flex-wrap: wrap; gap: 14px; }
.chip {
  font-size: 15px; color: var(--text);
  background: var(--card); border: 1px solid var(--line);
  padding: 12px 20px; border-radius: 999px;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ============================================================
   07 软件定制
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding-top: 30px; }
.step__num {
  position: absolute; top: -18px; left: 26px;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px rgba(37,99,235,.3);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.custom__foot { text-align: center; color: var(--muted); font-size: 17px; margin-top: 36px; }

/* ============================================================
   08' 动态 / 资讯
   ============================================================ */
.news { background: #fff; }
.news__grid { gap: 40px; }
.news__coltitle { font-size: 18px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.timeline { position: relative; }
.tl { position: relative; padding: 0 0 24px 22px; border-left: 2px solid var(--line); }
.tl:last-child { padding-bottom: 0; }
.tl::before {
  content: ""; position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); border: 2px solid #fff;
}
.tl__date { font-family: var(--font-mono); font-size: 12px; color: var(--brand-2); }
.tl__title { font-weight: 500; margin: 4px 0 4px; }
.tl__desc { color: var(--muted); font-size: 14px; }

/* ============================================================
   08 CTA
   ============================================================ */
.cta {
  background: linear-gradient(135deg, var(--brand) 0%, #1741b8 100%);
  color: #fff; text-align: center;
  padding: var(--pad-y-desktop) 0;
}
.cta__inner { max-width: 680px; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.85); font-size: 18px; margin-bottom: 28px; }
.cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta__invite { margin-top: 22px; font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.7); }

/* ============================================================
   09 页脚
   ============================================================ */
.footer { background: var(--ink); color: #c5d2e6; padding: 56px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__logo { height: 28px; margin-bottom: 16px; }
.footer__slogan { max-width: 420px; font-size: 14px; color: #93a4bf; margin-bottom: 10px; }
.footer__company { font-size: 14px; color: #c5d2e6; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-size: 14px; color: #93a4bf; transition: color .15s ease; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: #7b8aa3;
}

/* ============================================================
   动效：滚动淡入上移（尊重 reduced-motion）
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .chip { transition: none; }
  .btn:hover, .card:hover, .chip:hover { transform: none; }
}

/* 键盘可达：焦点可见 */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 6px;
}

/* ============================================================
   登录 modal（方案②）
   ============================================================ */
.login-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-modal[hidden] { display: none; }
.login-modal__mask { position: absolute; inset: 0; background: rgba(11,26,48,.55); backdrop-filter: blur(3px); }
.login-modal__dialog {
  position: relative; width: 100%; max-width: 400px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 30px 28px 24px; box-shadow: 0 30px 80px rgba(11,26,48,.30);
  animation: loginPop .2s ease;
}
@keyframes loginPop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.login-modal__x {
  position: absolute; top: 12px; right: 14px; width: 32px; height: 32px;
  border: none; background: transparent; color: var(--muted); font-size: 24px; line-height: 1;
  cursor: pointer; border-radius: 8px;
}
.login-modal__x:hover { background: var(--paper); color: var(--text); }
.login-modal__title { font-size: 22px; margin-bottom: 6px; }
.login-modal__hint { font-size: 13px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.login-modal form label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.login-modal form input {
  width: 100%; font-size: 15px; font-family: var(--font-zh);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: var(--paper); color: var(--text); transition: border-color .15s ease;
}
.login-modal form input:focus { outline: none; border-color: var(--brand); background: #fff; }
.login-modal__submit { width: 100%; margin-top: 20px; }
.login-modal__msg { margin-top: 14px; padding: 9px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.login-modal__msg[hidden] { display: none; }
.login-modal__msg.info { background: rgba(37,99,235,.08); color: var(--brand); }
.login-modal__msg.ok   { background: rgba(6,182,212,.10); color: #0e7490; }
.login-modal__msg.err  { background: rgba(225,90,90,.10); color: #d23a3a; }
.login-modal__foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }
.login-modal__foot a { color: var(--brand); }
.login-modal__foot a:hover { color: var(--brand-2); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; max-width: 460px; }
  .split__inner { grid-template-columns: 1fr; gap: 32px; }
  .split__media { order: -1; }
}

@media (max-width: 760px) {
  .section { padding: var(--pad-y-mobile) 0; }
  .hero { padding: 40px 0 var(--pad-y-mobile); }
  .pillars { padding-bottom: var(--pad-y-mobile); }
  .cta { padding: var(--pad-y-mobile) 0; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__mobile { display: flex; }

  .grid--4, .grid--3, .grid--2, .steps, .news__grid { grid-template-columns: 1fr; }
  .privacy__cards { gap: 16px; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .hero__btns .btn, .cta__btns .btn { flex: 1 1 auto; }
}
