/* ============================================================
   上海绿贝乔信息技术有限公司 — 官网样式
   主题色：#2E7D32（绿）
   纯静态站点；字体自托管子集（见下），图标走内联 SVG，无外部 CDN
   ============================================================ */

/* ------------------------------------------------------------
   自托管中文字体：Noto Sans CJK SC 子集（SIL OFL 1.1，可商用/可嵌入/可做商标图样）
   由 scripts/build-fonts.sh 生成，仅含站点实际用到的字符（当前 708 个）。
   ⚠️ 改动页面文案后必须重跑该脚本，否则新增的字会回落到系统字体（字形不一致）。
   字重说明：本设计原用 600/800，但中文系统字体没有这两个字面，
   浏览器会合成加粗 → 跨平台观感不一致。故改用 Noto 真实字重 400/500/700。
   许可全文见 assets/fonts/LICENSE.txt
   ------------------------------------------------------------ */
@font-face {
  font-family: "Noto Sans SC Site";
  src: url("../fonts/noto-sans-sc-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC Site";
  src: url("../fonts/noto-sans-sc-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC Site";
  src: url("../fonts/noto-sans-sc-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --brand: #2E7D32;
  --brand-dark: #1B5E20;
  --brand-mid: #43A047;
  --brand-light: #66BB6A;
  --brand-tint: #E8F5E9;
  --brand-tint-2: #F2F9F3;

  --ink: #1C2A21;
  --ink-soft: #3B4B41;
  --muted: #66756C;
  --line: #E1EAE3;
  --bg: #FFFFFF;
  --bg-alt: #F7FAF8;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(27, 94, 32, .06), 0 2px 8px rgba(27, 94, 32, .05);
  --shadow-md: 0 6px 24px rgba(27, 94, 32, .10);
  --shadow-lg: 0 18px 48px rgba(27, 94, 32, .16);
  --container: 1180px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans SC Site", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { line-height: 1.3; color: var(--ink); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(28px, 4.2vw, 46px); }
h2 { font-size: clamp(22px, 2.6vw, 32px); }
h3 { font-size: clamp(17px, 1.6vw, 20px); }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.15em; }
li { margin: .3em 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

.section { padding: 72px 0; }
.section--tight { padding: 52px 0; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: linear-gradient(180deg, var(--brand-tint-2), #fff); }

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

.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.brand__sub { font-size: 10px; color: var(--muted); letter-spacing: .16em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-soft); font-size: 15px; padding: 8px 14px; border-radius: 10px;
  transition: background .18s, color .18s;
}
.nav a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.nav a.is-active { color: var(--brand-dark); font-weight: 500; background: var(--brand-tint); }
.nav__cta { margin-left: 8px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 500; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: #fff; color: var(--brand-dark); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand-tint); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: 14px; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(115deg, #103A17 0%, var(--brand-dark) 42%, var(--brand) 100%);
  color: #fff;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../img/hero-circuit.png") center right / cover no-repeat;
  opacity: .38; mix-blend-mode: screen;
}
.hero__inner { position: relative; padding: 92px 0 84px; }
.hero h1 { color: #fff; max-width: 15em; }
.hero__lead { font-size: clamp(16px, 1.7vw, 19px); color: rgba(255,255,255,.88); max-width: 44em; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .1em;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; color: #EAF6EB;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.22); }
.hero__point strong { display: block; font-size: 26px; font-weight: 700; color: #fff; }
.hero__point span { font-size: 13px; color: rgba(255,255,255,.78); }

.page-hero {
  background: linear-gradient(115deg, var(--brand-dark), var(--brand));
  color: #fff; padding: 54px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.85); margin: 0; max-width: 60ch; }
.crumbs { font-size: 13px; color: rgba(255,255,255,.72); margin-bottom: 14px; }
.crumbs a { color: rgba(255,255,255,.9); }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #CDE3D1; }
.card h3 { margin-bottom: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); font-size: 15px; }
.card ul { color: var(--ink-soft); font-size: 15px; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-dark); margin-bottom: 14px;
}
.icon-badge svg { width: 24px; height: 24px; }

/* 服务分组（大卡片） */
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.svc__head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.svc__no {
  font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-tint);
  border-radius: 8px; padding: 4px 10px; letter-spacing: .06em;
}
.svc h3 { margin: 0; }
.svc__desc { color: var(--muted); font-size: 14.5px; margin: 8px 0 16px; }
.svc ul { padding-left: 0; list-style: none; margin: 0; }
.svc li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 15px; }
.svc li::before {
  content: ""; position: absolute; left: 4px; top: .68em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--brand-light);
}

/* 特性行 */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint);
  display: grid; place-items: center; color: var(--brand-dark);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* 统计条 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat strong { display: block; font-size: 30px; font-weight: 700; color: var(--brand); }
.stat span { font-size: 13.5px; color: var(--muted); }

/* 时间线 */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--brand-tint); }
.timeline__item { position: relative; padding-bottom: 22px; }
.timeline__item::before {
  content: ""; position: absolute; left: -26px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand-light);
}
.timeline__item h3 { margin-bottom: 2px; font-size: 17px; }
.timeline__item p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* 服务方式 */
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; height: 100%; }
.plan--featured { border-color: var(--brand); box-shadow: var(--shadow-md); position: relative; }
.plan__tag {
  position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .06em;
}
.plan h3 { margin-bottom: 6px; }
.plan__note { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }
.plan li { position: relative; padding-left: 24px; font-size: 15px; color: var(--ink-soft); }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--brand-mid); border-bottom: 2px solid var(--brand-mid); transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; align-items: start; }
.contact-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); display: grid; place-items: center; color: var(--brand-dark); }
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item b { display: block; font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.contact-item span { font-size: 16px; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 15px; color: var(--ink); background: #FCFEFC;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-mid); box-shadow: 0 0 0 3px rgba(67, 160, 71, .14); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.form__hint { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.form__msg { display: none; margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 14px; }
.form__msg.is-ok { display: block; background: var(--brand-tint); color: var(--brand-dark); }

/* 表格（合规信息用） */
.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { padding: 13px 16px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { background: var(--brand-tint-2); color: var(--ink-soft); font-weight: 500; width: 32%; white-space: nowrap; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }

/* 提示条 */
.notice {
  display: flex; gap: 12px; align-items: flex-start; background: var(--brand-tint);
  border-left: 4px solid var(--brand); border-radius: 10px; padding: 16px 18px; color: var(--brand-dark); font-size: 14.5px;
}
.notice p:last-child { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: #12281A; color: rgba(255,255,255,.72); padding: 52px 0 26px; font-size: 14.5px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 12px; }
.footer-brand .brand__name { color: #fff; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin: 6px 0; }
.footer-bottom {
  /* 与 .footer-grid 同列宽同列距：备案号对齐「网站导航」、信用代码对齐「联系方式」，三者左缘一致 */
  margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px 34px;
  font-size: 13px; color: rgba(255,255,255,.55);
}

/* 回到顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 40; border: 0; cursor: pointer;
}
.to-top.is-on { opacity: 1; visibility: visible; }

/* 滚动淡入 */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .section { padding: 52px 0; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 8px; }
  .nav__cta { margin: 8px 10px 0; }
  .hero__inner { padding: 64px 0 56px; }
  .hero__points { gap: 18px; }
  .hero__point strong { font-size: 22px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr; }
  .info-table th { width: 40%; }
}

@media print {
  .site-header, .to-top, .hero__actions { display: none; }
  body { color: #000; }
}
