/* ==========================================================================
   智政科技官网 · 设计系统与基础样式
   风格：政务蓝 · 科技风
   ========================================================================== */

:root {
  /* 色板 */
  --c-primary: #0b3d91;        /* 政务深蓝 */
  --c-primary-2: #14509e;
  --c-blue: #2b7fff;           /* 科技蓝 */
  --c-cyan: #38bdf8;
  --c-gold: #f5b940;           /* 点缀金 */
  --c-ink: #16233a;            /* 正文深色 */
  --c-ink-2: #4a5a74;          /* 次级文字 */
  --c-line: #e3e9f2;           /* 描边 */
  --c-bg: #f5f8fc;             /* 页面浅底 */
  --c-card: #ffffff;
  --c-deep: #071c3f;           /* 深色区块底 */

  --grad-hero: linear-gradient(135deg, #071c3f 0%, #0b3d91 55%, #1553b5 100%);
  --grad-blue: linear-gradient(135deg, #2b7fff, #38bdf8);

  /* 排版 */
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --fs-h1: clamp(30px, 4.6vw, 52px);
  --fs-h2: clamp(24px, 3vw, 36px);
  --fs-h3: 20px;

  /* 布局 */
  --w-container: 1200px;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(11, 61, 145, .08);
  --shadow-hover: 0 16px 40px rgba(11, 61, 145, .16);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--w-container); margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------------------
   区块通用
   -------------------------------------------------------------------------- */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .2em;
  color: var(--c-blue); text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: var(--fs-h2); line-height: 1.35; color: var(--c-ink); }
.section-head p { margin-top: 14px; color: var(--c-ink-2); }
.section.on-dark .section-head h2 { color: #fff; }
.section.on-dark .section-head p { color: rgba(255, 255, 255, .72); }

/* 深色科技底（网格 + 光晕） */
.tech-bg { position: relative; background: var(--grad-hero); overflow: hidden; }
.tech-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 180, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 255, .09) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 100%);
}
.tech-bg::after {
  content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(56, 189, 248, .25), transparent 65%);
  pointer-events: none;
}
.tech-bg > * { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled, .nav.solid {
  background: rgba(7, 28, 63, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(4, 16, 40, .35);
}
.nav-inner {
  max-width: var(--w-container); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 20px; }
.brand .logo-mark {
  width: 36px; height: 36px; border-radius: 9px; flex: none;
  background: var(--grad-blue); display: grid; place-items: center;
  font-size: 17px; color: #fff; box-shadow: 0 4px 12px rgba(43, 127, 255, .4);
}
.brand small { display: block; font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, .6); letter-spacing: .12em; line-height: 1.2; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: rgba(255, 255, 255, .82); font-size: 15px; padding: 8px 14px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-links a.active { color: #fff; background: rgba(56, 189, 248, .22); }
.nav-cta {
  background: var(--grad-blue); color: #fff !important; font-weight: 600;
  padding: 9px 20px !important; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(43, 127, 255, .45);
}
.lang-toggle {
  min-width: 46px; text-align: center; background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 600;
  padding: 8px 10px !important; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22);
  cursor: pointer; transition: background .2s, color .2s; line-height: 1.2;
}
.lang-toggle:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; width: 42px; height: 42px;
  flex-direction: column; justify-content: center; gap: 6px; align-items: center;
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 999px; font-size: 16px; font-weight: 600;
  border: 0; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: 0 8px 22px rgba(43, 127, 255, .4); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-outline { background: transparent; color: var(--c-primary); border: 1.5px solid var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* --------------------------------------------------------------------------
   卡片
   -------------------------------------------------------------------------- */
.card {
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(43, 127, 255, .35); }

.icon-badge {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(43, 127, 255, .12), rgba(56, 189, 248, .16));
  color: var(--c-blue); margin-bottom: 18px;
}
.icon-badge svg { width: 28px; height: 28px; }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.footer { background: var(--c-deep); color: rgba(255, 255, 255, .72); padding: 64px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px;
}
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer a { display: block; padding: 4px 0; font-size: 14px; color: rgba(255, 255, 255, .62); transition: color .2s; }
.footer a:hover { color: var(--c-cyan); }
.footer .brand { margin-bottom: 16px; }
.footer-desc { font-size: 14px; color: rgba(255, 255, 255, .55); max-width: 320px; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255, 255, 255, .4);
}

/* --------------------------------------------------------------------------
   滚动渐入动效
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   子页 Hero（内页顶部横幅）
   -------------------------------------------------------------------------- */
.page-hero { padding: calc(var(--nav-h) + 64px) 0 64px; text-align: center; color: #fff; }
.page-hero h1 { font-size: var(--fs-h1); line-height: 1.3; }
.page-hero p { max-width: 680px; margin: 16px auto 0; color: rgba(255, 255, 255, .75); font-size: 17px; }
.page-hero .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .25em; color: var(--c-cyan);
  border: 1px solid rgba(56, 189, 248, .45); border-radius: 999px; padding: 5px 16px; margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .section { padding: 60px 0; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(7, 28, 63, .98); flex-direction: column; align-items: stretch;
    padding: 12px 24px 24px; gap: 2px;
    transform: translateY(-130%); transition: transform .3s; box-shadow: 0 16px 30px rgba(0,0,0,.3);
  }
  .nav.open .nav-links { transform: none; }
  .nav-links a { padding: 13px 14px; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn { padding: 12px 26px; font-size: 15px; }
}
