/* ===============================
   公司官网样式表
   品牌调性：专业、稳健、克制、可信赖
   =============================== */

:root {
  --navy-900: #081c33;
  --navy-800: #0b2545;
  --navy-700: #12315a;
  --navy-600: #1a4272;
  --blue-500: #2e6fb7;
  --blue-400: #4a8bd0;
  --blue-100: #e8f0f9;
  --ink-900: #1c2530;
  --ink-700: #3a4653;
  --ink-500: #5a6675;
  --ink-300: #97a2b0;
  --line: #e2e8f0;
  --bg-soft: #f5f7fa;
  --bg-white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(11, 37, 69, .06), 0 1px 2px rgba(11, 37, 69, .04);
  --shadow-md: 0 6px 24px rgba(11, 37, 69, .08);
  --shadow-lg: 0 16px 48px rgba(11, 37, 69, .12);
  --container: 1180px;
  --header-h: 72px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::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(--ink-700);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-500); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy-700); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }
li { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }

/* ---------- 通用文字 ---------- */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 14px;
}
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-desc { font-size: 1.05rem; color: var(--ink-500); margin: 0; }
.lead { font-size: 1.12rem; color: var(--ink-500); }
.text-muted { color: var(--ink-500); }
.mono-note { font-size: .85rem; color: var(--ink-300); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 6px;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--blue-500); color: #fff; }
.btn--primary:hover { background: var(--navy-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--navy-700); border-color: #c6d2e0; }
.btn--outline:hover { border-color: var(--blue-500); color: var(--blue-500); background: #fff; }
.btn--ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: .9rem; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink-900); }
.brand:hover { color: var(--ink-900); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 9px; flex: 0 0 38px;
  background: linear-gradient(135deg, var(--navy-700), var(--blue-500));
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
}
.brand__name { font-weight: 700; font-size: 1.02rem; line-height: 1.1; white-space: nowrap; }
.brand__sub { display: block; font-size: .7rem; font-weight: 500; color: var(--ink-300); letter-spacing: .06em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 10px 14px;
  color: var(--ink-700);
  font-size: .95rem;
  font-weight: 500;
  border-radius: 6px;
}
.nav a:hover { color: var(--blue-500); background: var(--blue-100); }
.nav a.is-active { color: var(--blue-500); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--blue-500);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; line-height: 1; }
.lang__item { color: var(--ink-500); padding: 6px 2px; }
a.lang__item:hover { color: var(--blue-500); }
.lang__item.is-active { color: var(--navy-700); }
.lang__sep { color: var(--ink-300); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 8px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink-700); margin: 4px auto; transition: .25s; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(1200px 600px at 78% -10%, #3f86c4 0%, transparent 60%),
              linear-gradient(160deg, #1b4573 0%, #21588f 62%, #2c6ba6 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .5; pointer-events: none;
  mask-image: radial-gradient(900px 500px at 70% 0%, #000 0%, transparent 75%);
}
.hero__inner { position: relative; z-index: 2; padding: 104px 0 96px; max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .lead { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 700px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 52px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.hero__meta div { color: rgba(255,255,255,.72); font-size: .9rem; }
.hero__meta strong { display: block; color: #fff; font-size: 1.6rem; font-weight: 700; letter-spacing: .01em; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3dfec; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 48px; padding: 0 12px; border-radius: 12px; margin-bottom: 20px;
  color: var(--blue-500); background: var(--blue-100);
  font-size: 1rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-500); margin-bottom: 0; font-size: .96rem; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: .92rem; }

/* ---------- 特性清单 ---------- */
.feature { display: flex; gap: 16px; }
.feature__dot {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-500);
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.feature h4 { margin-bottom: 6px; }
.feature p { color: var(--ink-500); font-size: .94rem; margin: 0; }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 28px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stat strong { display: block; font-size: 2rem; color: var(--navy-700); letter-spacing: .01em; }
.stat span { font-size: .9rem; color: var(--ink-500); }

/* ---------- 分隔式内容行 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media {
  border-radius: var(--radius-lg); min-height: 300px; padding: 34px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  color: #fff; display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.split__media h3 { color: #fff; }
.split__media p { color: rgba(255,255,255,.78); margin: 0; }
.split__media ul { display: grid; gap: 12px; }
.split__media li { color: rgba(255,255,255,.85); padding-left: 22px; position: relative; }
.split__media li::before { content: "▹"; position: absolute; left: 0; color: var(--blue-400); }

/* ---------- 规格列表（价格/能力） ---------- */
.spec-list { display: grid; gap: 14px; margin: 0 0 22px; }
.spec-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-700); }
.spec-list li::before { content: "●"; color: var(--blue-500); font-size: .7rem; line-height: 1.9; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tag {
  font-size: .82rem; color: var(--navy-700); background: var(--blue-100);
  border: 1px solid #d3e0f0; border-radius: 999px; padding: 5px 14px; font-weight: 500;
}
.price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; }
.price strong { font-size: 1.5rem; color: var(--navy-700); }
.price span { color: var(--ink-500); font-size: .9rem; }

/* ---------- 产品区块 ---------- */
.product { border-top: 1px solid var(--line); padding: 64px 0; }
.product:first-of-type { border-top: 0; }
.product__head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.product__no {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px;
  background: var(--navy-700); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.product__body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; margin-top: 22px; }
.panel {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px;
}
.panel h4 { margin-bottom: 14px; }
.case-quote {
  border-left: 3px solid var(--blue-500); background: var(--blue-100);
  border-radius: 0 8px 8px 0; padding: 18px 22px; color: var(--ink-700); font-size: .95rem;
}
.case-quote strong { color: var(--navy-700); }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding-bottom: 32px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -30px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  border: 3px solid var(--blue-500);
}
.timeline__year { font-weight: 700; color: var(--navy-700); font-size: .95rem; }
.timeline__item p { margin: 4px 0 0; color: var(--ink-500); font-size: .95rem; }

/* ---------- 面包屑 / 内页头 ---------- */
.page-hero {
  background: linear-gradient(160deg, #1b4573, #21588f);
  color: #fff; padding: 76px 0 64px;
}
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 720px; margin: 0; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }

/* ---------- 锚点导航 ---------- */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.anchor-nav a {
  font-size: .9rem; color: var(--navy-700); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 500;
}
.anchor-nav a:hover { border-color: var(--blue-500); color: var(--blue-500); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); color: var(--ink-900); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list .ico {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px;
  background: var(--blue-100); color: var(--blue-500); display: grid; place-items: center; font-weight: 700;
}
.contact-list strong { display: block; color: var(--ink-900); margin-bottom: 2px; }
.contact-list span { color: var(--ink-500); font-size: .95rem; }
.contact-list .qr { width: 132px; height: 132px; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px; }
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.form label { font-size: .9rem; font-weight: 600; color: var(--ink-900); display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 11px 14px; border: 1px solid #cfd9e6; border-radius: 8px;
  font: inherit; color: var(--ink-900); background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(46,111,183,.12); }
.form textarea { min-height: 120px; resize: vertical; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- 提示条 ---------- */
.notice {
  background: #fffaf0; border: 1px solid #f2e2c0; color: #8a6d1f;
  border-radius: var(--radius); padding: 16px 20px; font-size: .9rem;
}
.section--navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .section-desc { color: rgba(255,255,255,.78); }
.section--navy .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.section--navy .card h3 { color: #fff; }
.section--navy .card p { color: rgba(255,255,255,.75); }

.cta-band { background: var(--navy-800); color: #fff; border-radius: var(--radius-lg); padding: 52px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .98rem; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,.72); font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 10px; font-size: .93rem; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; color: #fff; }
.footer-brand .brand__mark { background: linear-gradient(135deg, var(--blue-500), var(--blue-400)); }
.footer-desc { font-size: .92rem; max-width: 320px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .84rem; color: rgba(255,255,255,.5);
}
.footer-copy { margin-left: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .product__body { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .brand__name { font-size: .9rem; }
  .brand__sub { display: none; }
  .nav a { padding: 10px 10px; font-size: .88rem; }
  .header-actions .btn { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; border-radius: 6px; }
  .nav a.is-active::after { display: none; }
  .header-actions .btn { display: none; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .hero__inner { padding: 72px 0 68px; }
  .cta-band { padding: 36px 24px; }
}

@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form .row-2 { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .brand__name { font-size: .98rem; white-space: normal; line-height: 1.2; }
  .brand__mark { width: 32px; height: 32px; flex-basis: 32px; font-size: .9rem; }
  .lang { font-size: .8rem; gap: 4px; }
}

/* ============================================================
   动态效果（ADDITIVE）
   回退：整段删除本区块即可（配合移除 assets/js/effects.js 引用）
   ============================================================ */

/* 1) 首屏背景层：多点渐变/纯色轮换，缓慢淡入淡出 */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__bg-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 2.2s ease-in-out; }
.hero__bg-layer.is-active { opacity: 1; }
.hero__bg-layer--1 {
  background: radial-gradient(1200px 600px at 78% -10%, #3f86c4 0%, transparent 60%),
              linear-gradient(160deg, #1b4573 0%, #21588f 62%, #2c6ba6 100%);
}
.hero__bg-layer--2 {
  background: radial-gradient(1150px 620px at 18% -12%, #4f95d2 0%, transparent 62%),
              linear-gradient(160deg, #173f6b 0%, #1d5084 56%, #3070aa 100%);
}
.hero__bg-layer--3 {
  background: radial-gradient(1250px 640px at 58% -6%, #5aa3da 0%, transparent 60%),
              linear-gradient(160deg, #1a4c7c 0%, #245f95 58%, #3577b4 100%);
}
.hero::after { z-index: 1; }

/* 2) 首屏文字依次淡入上移 */
.js-effects .hero__inner > * { animation: heroUp .85s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes heroUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 3) 滚动进入视口的淡入上移（用 translate，避免与卡片 hover 的 transform 冲突） */
.js-effects .reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity .7s ease, translate .7s cubic-bezier(.22, .61, .36, 1);
}
.js-effects .reveal.is-visible { opacity: 1; translate: 0 0; }

/* 4) 页头滚动投影 */
.site-header { transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(11, 37, 69, .10); }

/* 5) 返回顶部按钮 */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--navy-700);
  font-size: 1.05rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .2s ease, color .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }

@media (max-width: 560px) {
  .to-top { right: 14px; bottom: 14px; width: 38px; height: 38px; }
}

/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  .js-effects .hero__inner > *,
  .js-effects .reveal {
    opacity: 1 !important; translate: none !important; transform: none !important;
    transition: none !important; animation: none !important;
  }
  .hero__bg-layer { transition: none; }
  .to-top { transition: none; }
}
