/* ==========================================================================
   星桥科技 · StarBridge Tech — 主样式表
   纯 CSS / 无外部 CDN 依赖（国内访问稳定、离线可预览）
   修改品牌色：搜索 --brand 统一替换即可
   ========================================================================== */

:root {
  --brand: #5f7136;
  --brand-dark: #47552a;
  --brand-soft: #eef1e4;
  --ink: #0e1424;
  --ink-2: #3d4a63;
  --ink-3: #6b7891;
  --line: #e4e8f2;
  --bg: #ffffff;
  --bg-2: #f6f8fd;
  --bg-3: #20241a;
  --ok: #17a673;
  --warn: #e8890c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(14, 20, 36, .06), 0 4px 12px rgba(14, 20, 36, .05);
  --shadow: 0 2px 6px rgba(14, 20, 36, .07), 0 18px 40px rgba(14, 20, 36, .09);
  --max: 1160px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { 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; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-2); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 253, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.06rem; color: var(--ink); letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; }
.brand small { display: block; font-size: .68rem; font-weight: 500; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2); padding: 8px 13px; border-radius: 8px;
  font-size: .95rem; font-weight: 500; transition: .16s;
}
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav .cta {
  margin-left: 10px; background: var(--brand); color: #fff; font-weight: 600; padding: 9px 18px;
}
.nav .cta:hover { background: var(--brand-dark); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px 0; border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 12px 14px; gap: 2px; display: none;
  }
  .nav.open { display: flex; }
  .nav .cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: .97rem;
  border: 1px solid transparent; cursor: pointer; transition: .16s; font-family: inherit;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.btn--light:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 460px at 82% -12%, rgba(95, 113, 54, .14), transparent 62%),
    radial-gradient(760px 420px at 6% 108%, rgba(176, 137, 104, .16), transparent 60%),
    linear-gradient(180deg, #fbfcf7, #f1f2e8);
  border-bottom: 1px solid var(--line);
}
.hero__inner { padding: 84px 0 76px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 34em; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600;
  color: var(--brand); background: #fff; border: 1px solid #dbe0c9;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
}

/* 数据卡（Hero 右侧） */
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metric {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: var(--shadow-sm);
}
.metric b { display: block; font-size: 1.75rem; color: var(--brand); letter-spacing: -.02em; }
.metric span { font-size: .84rem; color: var(--ink-3); }

/* ---------- 区块 ---------- */
.section { padding: 76px 0; }
.section--tint { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--bg-3); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #b9c2d6; }
.section__head { max-width: 700px; margin-bottom: 42px; }
.section__head.center { margin-left: auto; margin-right: auto; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: .18s;
}
/* 只有作为网格直接子元素时才拉齐高度；堆叠排列的卡片（FAQ、联系信息）保持内容高度，
   否则 height:100% 会把它们撑成整列高度，页面出现大片空白 */
.grid > .card { height: 100%; }
.card + .card { margin-top: 14px; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfd9ef; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .95rem; }
.card__icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card__icon svg { width: 21px; height: 21px; stroke: var(--brand); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 列表 ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 15px; height: 9px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

/* ---------- 流程步骤 ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.step::before {
  content: "0" counter(s); display: block; font-size: .8rem; font-weight: 800;
  color: var(--brand); letter-spacing: .1em; margin-bottom: 10px;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .9rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 案例 ---------- */
.case { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.case__body { padding: 24px; }
.case__tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.case__kpi { display: flex; gap: 24px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.case__kpi b { display: block; font-size: 1.25rem; color: var(--ink); }
.case__kpi span { font-size: .8rem; color: var(--ink-3); }
.case__cover { height: 210px; overflow: hidden; background: linear-gradient(135deg, #eef1e4, #f8f6f0); display: grid; place-items: center; }
.case__cover span { font-size: 1.6rem; font-weight: 800; color: #b6bd9e; letter-spacing: .18em; }
.case__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.case:hover .case__cover img { transform: scale(1.04); }
.case--full { max-width: 900px; margin: 0 auto 30px; }
.case__hero { overflow: hidden; }
.case__hero img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 140px; object-fit: cover; border-radius: 9px; display: block; }
.gallery figcaption { font-size: .78rem; color: var(--ink-3); margin-top: 6px; line-height: 1.45; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img { height: 110px; }
}
.narrow-wide { max-width: 920px; margin-left: auto; margin-right: auto; }

/* ---------- 轻提示（桌面端点电话时复制号码） ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(16px);
  background: rgba(24, 28, 20, .94); color: #fff; font-size: .92rem; line-height: 1.5;
  padding: 12px 20px; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.22);
  z-index: 200; max-width: 88vw; text-align: center; pointer-events: none;
  opacity: 0; transition: opacity .22s ease, transform .22s ease;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 新闻 ---------- */
.post { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post__date { flex: 0 0 92px; font-size: .85rem; color: var(--ink-3); padding-top: 2px; }
.post__body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.post__body p { margin: 0; font-size: .92rem; }

/* ---------- 表单 ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(95, 113, 54, .18);
}
.field textarea { min-height: 132px; resize: vertical; }
.form__note { font-size: .82rem; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- 资讯条 / 提示 ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff8ec; border: 1px solid #f6e0b8; border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: .9rem; color: #7a5310;
}
.notice b { color: #5f3d02; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-3); color: #b3b9a8; padding: 56px 0 26px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .92rem; margin-bottom: 14px; letter-spacing: .02em; }
.footer a { color: #b3b9a8; display: block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand small { color: #8e9682; }
.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid #1d2740;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .84rem; color: #8e9682;
}
.footer__bottom a { display: inline; }

/* ---------- 页面头（内页） ---------- */
.page-head { background: linear-gradient(180deg, #f8f9f2, #fff); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.crumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }

/* ---------- CTA 块 ---------- */
.cta-block {
  background: linear-gradient(120deg, var(--brand), #7d8f52 55%, #b08968);
  border-radius: 18px; padding: 52px 44px; color: #fff; text-align: center;
}
.cta-block h2 { color: #fff; }
.cta-block p { color: rgba(255, 255, 255, .88); max-width: 620px; margin: 0 auto 26px; }

/* ---------- 工具类 ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 18px; } .mt-6 { margin-top: 30px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink);
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

@media print {
  .topbar, .footer, .cta-block, .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
}
