/* ==========================================================================
   君言拓维 · 站点样式
   2026-11
   ========================================================================== */

:root {
  --navy: #0a2145;
  --navy-2: #0d2c5c;
  --blue: #0b63c5;
  --blue-2: #1b87e6;
  --blue-soft: #eaf2fd;
  --orange: #f5a623;
  --ink: #10233d;
  --body: #43566f;
  --muted: #7c8da6;
  --line: #e3eaf4;
  --bg: #f7f9fc;
  --white: #fff;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 61, .05), 0 4px 16px rgba(16, 35, 61, .04);
  --shadow: 0 10px 40px rgba(16, 35, 61, .10);
  --grad: linear-gradient(135deg, #0b63c5 0%, #1b87e6 100%);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--body);
  background: var(--bg);
  font-size: 15.5px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.28;
  margin: 0;
  font-weight: 800;
  letter-spacing: -.3px;
}

p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  border-radius: 8px;
  transition: color .18s, background .18s;
}

.nav-links a:hover { color: var(--blue); background: var(--blue-soft); }
.nav-links a.on { color: var(--blue); font-weight: 700; }
.nav-links a.on::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px;
  background: var(--grad);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(11, 99, 197, .28);
}
.nav-cta:hover { filter: brightness(1.06); background: var(--grad); }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  margin: 3px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: .2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -12%, rgba(27, 135, 230, .14), transparent 62%),
    radial-gradient(700px 480px at 4% 8%, rgba(11, 99, 197, .08), transparent 60%),
    linear-gradient(180deg, #fff, #f7f9fc);
  border-bottom: 1px solid var(--line);
}

.hero-in {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 76px 0 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 32px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .16s, box-shadow .16s, filter .16s;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(11, 99, 197, .30);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: #c6d6ea; transform: translateY(-2px); }

.hero-visual { position: relative; }
.hero-visual .shot {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(10, 33, 69, .22);
  border: 1px solid rgba(255, 255, 255, .7);
  background: #dbe6f4;
}
.hero-visual .shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.float-card {
  position: absolute;
  left: -26px;
  bottom: -26px;
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-width: 190px;
}
.float-card .n {
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
  letter-spacing: -.5px;
}
.float-card .t { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  box-shadow: var(--shadow-sm);
}
.chip b { color: var(--blue); }

/* ---------- 数字带 ---------- */
.stats {
  background: linear-gradient(120deg, #08203f, #0d2c5c 55%, #103a75);
  color: #fff;
  padding: 54px 0;
  position: relative;
  overflow: hidden;
}
.stats::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 300px at 85% 0%, rgba(27, 135, 230, .35), transparent 65%);
  pointer-events: none;
}
.stats .wrap { position: relative; z-index: 1; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.stat .n {
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 800;
  letter-spacing: -.8px;
  line-height: 1.1;
  background: linear-gradient(120deg, #fff, #9fd0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .n small { font-size: .55em; font-weight: 700; margin-left: 2px; }
.stat .t { font-size: 12.5px; color: #a9c2e0; margin-top: 8px; line-height: 1.6; }

/* ---------- 通用区块 ---------- */
section { padding: 84px 0; }
section.tight { padding: 64px 0; }
.sec-head { max-width: 720px; margin-bottom: 46px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 14px; }
.sec-head p { color: var(--body); font-size: 16px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-white { background: #fff; }
.bg-soft { background: var(--bg); }
.bg-navy { background: linear-gradient(120deg, #08203f, #0d2c5c); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .sec-head p { color: #b7cbe4; }

/* ---------- 业务网格 ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.biz {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  color: inherit;
}
.biz:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3e1f3; }

.biz-img { height: 210px; overflow: hidden; background: #e9f0f9; }
.biz-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.biz:hover .biz-img img { transform: scale(1.05); }

.biz-body { padding: 24px 26px 26px; }
.biz-tag {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 1.4px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.biz h3 { font-size: 21px; margin-bottom: 10px; }
.biz p { font-size: 14.5px; color: var(--body); line-height: 1.8; }
.biz .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.biz .more::after { content: "→"; transition: transform .2s; }
.biz:hover .more::after { transform: translateX(4px); }

/* ---------- 特性列表 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.feature .ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature p { font-size: 13.8px; line-height: 1.8; color: var(--body); }

/* ---------- 左右图文 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.rev > .split-media { order: 2; }
.split-media img {
  border-radius: 18px;
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}
.split-body h2 { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 16px; }
.split-body p { margin-bottom: 16px; font-size: 15.5px; }

.ticks { display: grid; gap: 10px; margin-top: 8px; }
.ticks li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.75;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1.5px rgba(11, 99, 197, .35);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5px; top: 12px;
  width: 6px; height: 3px;
  border-left: 1.6px solid var(--blue);
  border-bottom: 1.6px solid var(--blue);
  transform: rotate(-45deg);
}

/* ---------- 产品行 ---------- */
.prod {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.prod:first-of-type { border-top: 0; }
.prod.rev .prod-media { order: 2; }
.prod-media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e9f0f9;
}
.prod-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.prod-num {
  font-size: 12.5px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--blue-2);
  margin-bottom: 10px;
}
.prod h3 { font-size: 22px; margin-bottom: 12px; }
.prod p { font-size: 15px; margin-bottom: 16px; }

.kpi-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.kpi {
  background: var(--blue-soft);
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 108px;
}
.kpi .n { font-size: 19px; font-weight: 800; color: var(--blue); line-height: 1.2; }
.kpi .t { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14.2px; min-width: 640px; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  background: #f2f6fc;
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .4px;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcff; }
td strong { color: var(--ink); }

/* ---------- 作品墙 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}
.gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0d2c5c;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .22s, box-shadow .22s;
}
.gallery figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 12px 10px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(6, 18, 38, .88));
  line-height: 1.5;
}

/* ---------- 引言 / 背书 ---------- */
.quote-band {
  background: linear-gradient(120deg, #08203f, #0d2c5c);
  color: #fff;
  padding: 66px 0;
}
.quote-band blockquote {
  margin: 0 auto;
  max-width: 860px;
  text-align: center;
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 1.7;
  font-weight: 700;
  letter-spacing: -.3px;
}
.quote-band .src { text-align: center; color: #9db8d8; font-size: 13.5px; margin-top: 20px; }

.media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.media-row span {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 15px;
}

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), rgba(27, 135, 230, .15));
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -26px; top: 7px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--blue);
}
.tl-item .when { font-size: 12.5px; font-weight: 700; color: var(--blue); letter-spacing: .5px; }
.tl-item h4 { font-size: 16.5px; margin: 4px 0 6px; }
.tl-item p { font-size: 14px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.contact-card .k { font-size: 12px; letter-spacing: 1.4px; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.contact-card .v { font-size: 18px; font-weight: 700; color: var(--ink); word-break: break-all; }
.contact-card a.v:hover { color: var(--blue); }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--grad);
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.cta-in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 32px); margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .86); font-size: 15.5px; }
.cta-band .btn-ghost { background: #fff; border: 0; color: var(--blue); font-weight: 700; }

/* ---------- 页脚 ---------- */
.footer {
  background: #071a33;
  color: #93a9c4;
  padding: 58px 0 26px;
  font-size: 13.5px;
}
.footer-in {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer h5 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  margin: 0 0 14px;
  font-weight: 700;
}
.footer a { color: #93a9c4; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .fbrand img {
  height: 42px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.footer .fbrand p { line-height: 1.8; max-width: 300px; }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #6d84a2;
}

/* ---------- 杂项 ---------- */
.note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.tag-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag-line span {
  font-size: 12px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 6px;
  padding: 4px 10px;
  font-weight: 600;
}
.page-head {
  background:
    radial-gradient(800px 380px at 85% -20%, rgba(27, 135, 230, .16), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 62px 0 56px;
}
.page-head h1 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 16px; }
.page-head p { max-width: 720px; font-size: 16px; }
.crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; letter-spacing: .3px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--blue); }

/* ---------- 滚动动画 ---------- */
/* 只有 JS 可用时才隐藏待动画元素，避免脚本失效导致正文永久不可见 */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

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

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .hero-in { gap: 36px; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(10, 33, 69, .08);
    transform: translateY(-130%);
    transition: transform .28s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px 10px; border-radius: 8px; }
  .nav-links a.on::after { display: none; }
  .burger { display: block; }
  .nav-cta { display: none; }

  .hero-in { grid-template-columns: 1fr; padding: 48px 0 64px; }
  .float-card { left: auto; right: 12px; bottom: -20px; }
  .biz-grid { grid-template-columns: 1fr; }
  .split, .prod { grid-template-columns: 1fr; gap: 28px; }
  .split.rev > .split-media, .prod.rev .prod-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero .lead { font-size: 15px; }
  .btn { width: 100%; justify-content: center; }
  .cta-in { flex-direction: column; align-items: flex-start; }
}
