/* =====================================================
   厦门经纬度软件科技有限公司 · 2026 全新官网
   现代纯静态 H5 设计系统（无任何第三方依赖）
   ===================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌色：新品牌橙 */
  --brand-50:  #FFF4EA;
  --brand-100: #FFE6D1;
  --brand-300: #FFB066;
  --brand-400: #FF8A3D;
  --brand-500: #FF6A00;
  --brand-600: #F25C05;
  --brand-700: #D14A00;
  --grad-brand: linear-gradient(135deg, #FF8A00 0%, #FF4D00 100%);

  /* 中性色（暖色调） */
  --bg:      #FBF8F4;
  --surface: #FFFFFF;
  --ink:     #221B15;
  --ink-2:   #4A4239;
  --muted:   #6E655C;
  --line:    #EDE4DA;
  --line-2:  #E2D6C8;

  /* 功能色 */
  --ok:   #0E9F6E;
  --warn: #D97706;
  --err:  #DC2626;

  /* 圆角 / 阴影 / 间距 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgb(34 27 21 / .05), 0 2px 8px rgb(34 27 21 / .05);
  --shadow-md: 0 4px 16px rgb(34 27 21 / .08), 0 12px 32px rgb(34 27 21 / .06);
  --shadow-lg: 0 8px 24px rgb(255 106 0 / .16), 0 24px 64px rgb(34 27 21 / .10);

  --header-h: 72px;
  --container: 1200px;

  /* 字体 */
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
               -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

/* 暗色模式（跟随系统） */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #17110C;
    --surface: #211A13;
    --ink:     #F5EEE5;
    --ink-2:   #D8CEC2;
    --muted:   #A79B8D;
    --line:    #382D22;
    --line-2:  #46382A;
    --brand-50: #2A1C0E;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-md: 0 4px 16px rgb(0 0 0 / .45);
    --shadow-lg: 0 8px 24px rgb(255 106 0 / .18), 0 24px 64px rgb(0 0 0 / .5);
  }
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(15px, 1vw + 12px, 16.5px);
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { line-height: 1.25; text-wrap: balance; margin: 0 0 .5em; }

p { margin: 0 0 1em; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; cursor: pointer; }

::selection { background: var(--brand-500); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 跨文档视图过渡（Chrome 126+ 渐进增强，其他浏览器自动忽略） */
@view-transition { navigation: auto; }

/* 跳转链接（无障碍） */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 999;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  background: var(--brand-600); color: #fff; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- 3. 布局工具 ---------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }

/* 区块标题 */
.sec-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.sec-head--left { text-align: left; margin-inline: 0; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  color: var(--brand-600); text-transform: uppercase;
  margin-bottom: 12px;
}
.sec-eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
}
.sec-title { font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; letter-spacing: .01em; }
.sec-sub { color: var(--muted); font-size: clamp(14.5px, 1.2vw, 17px); }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15.5px; line-height: 1;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-solid {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 6px 18px rgb(255 106 0 / .32);
}
.btn-solid:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgb(255 106 0 / .4); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-600); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--brand-700); }
.btn-outline-light { border-color: rgb(255 255 255 / .55); color: #fff; }
.btn-outline-light:hover { background: rgb(255 255 255 / .12); color: #fff; }

/* ---------- 5. 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 106;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgb(34 27 21 / .06);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 11px;
  color: var(--ink); flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand-logo { width: 42px; height: 42px; flex-shrink: 0; filter: drop-shadow(0 3px 8px rgb(255 106 0 / .3)); }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name b { font-size: 17.5px; font-weight: 800; letter-spacing: .02em; }
.brand-name small { font-size: 10px; letter-spacing: .14em; color: var(--muted); font-weight: 600; }

.site-nav { margin-inline-start: auto; }
/* 大屏（≥1100px）：导航链接与 CTA 同行排布，防止按钮换行叠到内容上 */
@media (min-width: 1100px) {
  .site-nav { display: flex; align-items: center; gap: 10px; }
  .site-nav ul { gap: 0; flex-wrap: nowrap; }
}
.site-nav ul { display: flex; gap: 4px; }
.site-nav a:not(.btn) {
  position: relative; display: block; padding: 9px 15px;
  border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 15.5px;
  white-space: nowrap; /* 防止窄屏下导航文字折行成两行 */
  transition: color .2s, background .2s;
}
.site-nav a:not(.btn):hover { color: var(--brand-600); background: var(--brand-50); }
.site-nav a[aria-current="page"] { color: var(--brand-600); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 1px;
  width: 16px; height: 3px; border-radius: 3px;
  transform: translateX(-50%); background: var(--grad-brand);
}
.header-tel {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-weight: 800; font-size: 16px; color: var(--ink);
  padding: 8px 14px; border-radius: 12px;
}
.header-tel svg { width: 18px; height: 18px; color: var(--brand-500); }
.header-tel:hover { color: var(--brand-600); }

/* 汉堡按钮 */
.nav-toggle {
  display: none; position: relative; z-index: 110; pointer-events: auto;
  width: 44px; height: 44px; border: 1px solid var(--line-2);
  border-radius: 12px; background: var(--surface);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .25s, opacity .2s;
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after  { transform: translate(-50%, 5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 96px);
  background: #241A11;
  color: #CBBFAF;
}
.site-footer .footer-main {
  display: grid; gap: 40px;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr;
  padding: clamp(48px, 6vw, 72px) 0 40px;
}
.footer-brand .brand-name b { color: #fff; }
.footer-brand .brand-name small { color: #9A8C7B; }
.footer-desc { font-size: 14.5px; margin-top: 16px; max-width: 320px; }
.footer-col h3 {
  font-size: 15px; font-weight: 700; color: #fff;
  letter-spacing: .06em; margin-bottom: 18px;
}
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: #CBBFAF; font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--brand-400); }
.footer-contact li {
  display: flex; gap: 10px; font-size: 14.5px; margin-bottom: 14px; color: #CBBFAF;
}
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; color: var(--brand-400); }
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / .1);
  padding: 20px 0; font-size: 13px; color: #9A8C7B;
}
.footer-bottom .container {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--brand-400); }

/* ---------- 7. Hero（首页） ---------- */
.hero {
  position: relative; overflow: clip;
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
  background:
    radial-gradient(56rem 30rem at 88% -12%, rgb(255 138 0 / .14), transparent 60%),
    radial-gradient(40rem 26rem at -8% 108%, rgb(255 77 0 / .10), transparent 55%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  color: var(--brand-700); font-weight: 700; font-size: 13.5px;
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 8%, transparent); }
}
.hero h1 {
  font-size: clamp(32px, 5vw, 58px); font-weight: 900;
  letter-spacing: .01em; margin-bottom: 20px;
}
.hero h1 .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--brand-500);
}
.hero-lede { font-size: clamp(15.5px, 1.4vw, 18.5px); color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Hero 数据 */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: clamp(36px, 4vw, 52px);
  border-top: 1px solid var(--line); padding-top: 26px;
}
.hero-stat b {
  display: block; font-size: clamp(22px, 2.6vw, 34px); font-weight: 900;
  color: var(--brand-600); font-variant-numeric: tabular-nums; line-height: 1.2;
}
.hero-stat span { font-size: 13px; color: var(--muted); }

/* Hero 代码卡片 */
.hero-visual { position: relative; }
.code-card {
  background: #1D150E; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid rgb(255 138 0 / .18);
  transform: rotate(1.2deg);
  transition: transform .35s;
}
.code-card:hover { transform: rotate(0deg) translateY(-4px); }
.code-card-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 18px; border-bottom: 1px solid rgb(255 255 255 / .08);
}
.code-card-bar i { width: 11px; height: 11px; border-radius: 50%; }
.code-card-bar i:nth-child(1) { background: #FF5F57; }
.code-card-bar i:nth-child(2) { background: #FEBC2E; }
.code-card-bar i:nth-child(3) { background: #28C840; }
.code-card-bar span { margin-left: 10px; font: 600 12px var(--font-mono); color: #8A7A66; }
.code-card pre {
  margin: 0; padding: 20px 22px 24px;
  font: 12.8px/1.85 var(--font-mono);
  color: #E8DCCB; overflow-x: auto;
}
.tk-key { color: #FF9A4D; } .tk-str { color: #9FD98A; }
.tk-num { color: #6EC3FF; } .tk-cmt { color: #7A6B58; }
.code-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 700; color: var(--ink);
  border: 1px solid var(--line);
}
.code-chip svg { width: 17px; height: 17px; color: var(--brand-500); }
.code-chip--1 { top: -16px; right: 6%; animation: float 5s ease-in-out infinite; }
.code-chip--2 { bottom: -14px; left: -4%; animation: float 6s ease-in-out 1s infinite; }
@keyframes float { 50% { transform: translateY(-9px); } }

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

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 28px;
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.8px; margin-bottom: 0; }

/* 服务卡 */
.svc-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--brand-50); color: var(--brand-600);
  margin-bottom: 20px;
  transition: background .28s, color .28s, transform .28s;
}
.svc-icon svg { width: 27px; height: 27px; }
.card:hover .svc-icon { background: var(--grad-brand); color: #fff; transform: scale(1.06) rotate(-4deg); }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-weight: 700; font-size: 14.5px;
}
.card-link svg { width: 15px; height: 15px; transition: transform .2s; }
.card-link:hover svg { transform: translateX(4px); }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; }
.step {
  position: relative; text-align: center; padding: 26px 10px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  counter-increment: step;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font: 800 13px var(--font-mono);
  color: var(--brand-500); letter-spacing: .1em; margin-bottom: 8px;
}
.step b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.step span { font-size: 12.8px; color: var(--muted); line-height: 1.5; display: block; }

/* 案例卡 */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.case-card {
  position: relative; display: block; border-radius: var(--r-lg);
  overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-card .pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-50); }
.case-card .pic img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.case-card:hover .pic img { transform: scale(1.06); }
.case-card figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 18px;
}
.case-card figcaption b { font-size: 15px; color: var(--ink); }
.case-card figcaption em {
  font-style: normal; flex-shrink: 0;
  font-size: 12px; color: var(--brand-600);
  background: var(--brand-50); border-radius: 999px; padding: 3px 11px; font-weight: 700;
}

/* 新闻卡 */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card .pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-50); }
.news-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .pic img { transform: scale(1.05); }
.news-card .pad { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.news-card time {
  font: 700 12.5px var(--font-mono); color: var(--brand-600);
  letter-spacing: .06em; margin-bottom: 8px;
}
.news-card h3 { font-size: 15.5px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--brand-600); }
.news-card p {
  font-size: 13.5px; color: var(--muted); margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .more {
  margin-top: auto; font-size: 13.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
}
.news-card .more svg { width: 14px; height: 14px; }

/* CTA 横幅 */
.cta-band {
  position: relative; overflow: clip;
  border-radius: var(--r-xl);
  background: var(--grad-brand);
  color: #fff; text-align: center;
  padding: clamp(48px, 6vw, 76px) 28px;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 1.5px solid rgb(255 255 255 / .18);
}
.cta-band::before { width: 340px; height: 340px; right: -100px; top: -140px; }
.cta-band::after  { width: 220px; height: 220px; left: -70px; bottom: -110px; }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 38px); font-weight: 900; }
.cta-band p { color: rgb(255 255 255 / .85); max-width: 36em; margin-inline: auto; }
.cta-band .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* 页内 Hero（子页） */
.page-hero {
  position: relative; overflow: clip;
  padding: clamp(56px, 7vw, 88px) 0 clamp(44px, 5vw, 64px);
  background:
    radial-gradient(50rem 24rem at 90% -20%, rgb(255 138 0 / .13), transparent 60%),
    radial-gradient(36rem 22rem at -6% 120%, rgb(255 77 0 / .08), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-600); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 900; }
.page-hero .en {
  font: 800 clamp(13px, 1.4vw, 15px) var(--font-mono);
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--brand-500); margin-bottom: 12px; display: block;
}
.page-hero .lede { color: var(--muted); font-size: clamp(15px, 1.3vw, 17.5px); max-width: 40em; }

/* 清单（特性列表） */
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list .tick {
  flex-shrink: 0; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-600);
  margin-top: 3px;
}
.feature-list .tick svg { width: 12px; height: 12px; }

/* 标签 chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.chip:hover { border-color: var(--brand-500); color: var(--brand-600); background: var(--brand-50); transform: translateY(-2px); }

/* 筛选 tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.tab-btn {
  padding: 10px 24px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--surface);
  font-weight: 700; font-size: 14.5px; color: var(--ink-2);
  transition: all .2s;
}
.tab-btn:hover { border-color: var(--brand-400); color: var(--brand-600); }
.tab-btn[aria-selected="true"] {
  background: var(--grad-brand); border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px rgb(255 106 0 / .3);
}
.tab-panel[hidden] { display: none; }

/* 空状态 */
.empty-note {
  padding: 48px 24px; text-align: center; color: var(--muted);
  border: 1.5px dashed var(--line-2); border-radius: var(--r-lg);
  font-size: 15px;
}

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.contact-item + .contact-item { margin-top: 14px; }
.contact-item:hover { border-color: var(--brand-300); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.contact-item .ico {
  flex-shrink: 0; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--brand-50); color: var(--brand-600);
}
.contact-item .ico svg { width: 22px; height: 22px; }
.contact-item b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.contact-item span, .contact-item a { font-size: 14.5px; color: var(--muted); word-break: break-all; }
.contact-item a:hover { color: var(--brand-600); }

/* 表单 */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 38px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.field label em { color: var(--err); font-style: normal; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 14%, transparent);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .err-msg { display: none; color: var(--err); font-size: 12.8px; margin-top: 5px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); }
.field.is-invalid .err-msg { display: block; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* 提交成功 toast */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 200;
  transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: #1D150E; color: #fff; font-weight: 600; font-size: 14.5px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: #7F1D1D; }
.toast--error svg { color: #FCA5A5; }
.toast svg { width: 18px; height: 18px; color: #4ADE80; }

/* ---------- 预约演示弹窗（原生 <dialog>） ---------- */
dialog.modal {
  border: none; padding: 0;
  border-radius: var(--r-xl);
  background: var(--surface); color: var(--ink);
  width: min(92vw, 400px);
  box-shadow: var(--shadow-lg);
  overscroll-behavior: contain;
}
dialog.modal::backdrop {
  background: rgb(20 14 8 / .58);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
dialog.modal[open] { animation: modalIn .3s cubic-bezier(.2, .8, .3, 1); }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.modal-pad { position: relative; padding: 38px 32px 30px; text-align: center; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--muted);
  display: grid; place-items: center; font-size: 20px; line-height: 1;
  transition: color .2s, border-color .2s, transform .2s;
}
.modal-close:hover { color: var(--brand-600); border-color: var(--brand-300); transform: rotate(90deg); }
.modal-eyebrow {
  display: inline-block; font: 800 11.5px var(--font-mono);
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--brand-500); margin-bottom: 8px;
}
.modal-pad h3 {
  font-size: clamp(22px, 3vw, 27px); font-weight: 900; margin-bottom: 12px;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--brand-500);
}
.modal-text { color: var(--ink-2); font-size: 15px; line-height: 1.85; }
.modal-text b { color: var(--brand-600); }
.modal-qr {
  display: block; width: min(62vw, 218px); aspect-ratio: 1;
  margin: 20px auto 14px; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  background: #fff; object-fit: cover;
}
.modal-qr-tip { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.modal-alt {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 13.5px; color: var(--muted);
}
.modal-alt a { font-weight: 700; }
@media (max-width: 480px) {
  dialog.modal { width: min(94vw, 400px); }
  .modal-pad { padding: 30px 22px 24px; }
}

/* 关于页 */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card {
  position: relative; padding: 34px 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  overflow: clip; transition: transform .28s, box-shadow .28s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-card .num {
  font: 900 44px/1 var(--font-mono);
  color: transparent; -webkit-text-stroke: 1.5px var(--brand-300);
  margin-bottom: 14px; display: block;
}
.value-card h3 { font-size: 18.5px; }
.about-prose { max-width: 46em; color: var(--ink-2); font-size: 16px; }
.about-prose strong { color: var(--brand-600); }

/* 解决方案文章列表 */
.article-list { display: grid; gap: 14px; }
.article-item {
  display: flex; align-items: center; gap: 22px;
  padding: 20px 24px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.article-item:hover { transform: translateX(6px); border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.article-item time {
  flex-shrink: 0; text-align: center; min-width: 64px;
  font: 800 13px/1.3 var(--font-mono); color: var(--brand-600);
  border-right: 1px solid var(--line); padding-right: 20px;
}
.article-item time b { display: block; font-size: 22px; }
.article-item h3 { font-size: 16px; margin: 0 0 3px; }
.article-item h3 a { color: var(--ink); }
.article-item h3 a:hover { color: var(--brand-600); }
.article-item p { margin: 0; font-size: 13.5px; color: var(--muted); }
.article-item .arrow { margin-left: auto; flex-shrink: 0; color: var(--brand-500); }
.article-item .arrow svg { width: 18px; height: 18px; }

/* 服务行业 */
.industry-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.industry-item {
  display: grid; place-items: center; gap: 8px;
  padding: 22px 8px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  font-weight: 700; font-size: 14.5px; color: var(--ink-2);
  transition: transform .2s, border-color .2s, color .2s, box-shadow .2s;
}
.industry-item svg { width: 26px; height: 26px; color: var(--brand-500); }
.industry-item:hover { transform: translateY(-4px); border-color: var(--brand-300); box-shadow: var(--shadow-sm); color: var(--brand-600); }

/* ---------- 9. 滚动显现动画 ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .65, .3, 1), transform .7s cubic-bezier(.2, .65, .3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 10. 返回顶部 ---------- */
.back-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--brand-600);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s, color .2s;
}
.back-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { background: var(--grad-brand); color: #fff; border-color: transparent; }
.back-top svg { width: 20px; height: 20px; }

/* ---------- 11. 响应式 ----------
   断点降序：1249 → 1099（导航收进抽屉）→ 1024 → 768 → 480 */

/* 大屏（≥1250px）空间充足时才显示顶部电话，避免与导航争抢宽度 */
@media (max-width: 1249px) {
  .header-tel { display: none; }
}

/* 中小屏（<1100px）：导航切换为汉堡抽屉，彻底避免链接拥挤；
   CTA 让位并在抽屉内保留 */
@media (max-width: 1099px) {
  .nav-toggle { display: block; margin-inline-start: auto; }

  .site-nav {
    position: fixed; inset: 0 0 0 auto; z-index: 105;
    width: min(78vw, 360px); height: 100dvh;
    padding: calc(var(--header-h) + 24px) 28px 40px;
    background: var(--surface);
    box-shadow: -18px 0 48px rgb(34 27 21 / .18);
    transform: translateX(105%);
    transition: transform .32s cubic-bezier(.2, .7, .3, 1);
    overflow-y: auto;
  }
  .site-nav.is-open { transform: none; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a:not(.btn) {
    padding: 13px 14px; border-radius: 12px;
    font-size: 16.5px; border-bottom: 1px solid var(--line);
  }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav a[aria-current="page"] { background: var(--brand-50); }
  .site-nav .nav-cta { margin-top: 22px; width: 100%; }

  .nav-backdrop {
    position: fixed; inset: 0; z-index: 104;
    background: rgb(20 14 8 / .45);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav-backdrop.is-show { opacity: 1; pointer-events: auto; }
}

/* 平板：网格降为两列，Hero 单列 */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .grid-4, .case-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .industry-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-main { grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr; }
  .site-footer .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-3, .grid-2, .value-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 8px; }
  .code-chip--2 { left: 2%; }
  .site-footer .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .article-item { flex-wrap: wrap; gap: 12px; }
  .article-item time { border-right: 0; padding-right: 0; }
  .article-item .arrow { display: none; }
}

@media (max-width: 480px) {
  .grid-4, .case-grid, .news-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 12. 无障碍：减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 13. 打印 ---------- */
@media print {
  .site-header, .back-top, .cta-band .btns, .nav-backdrop { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =====================================================
   14. CMS 扩展：分页 / 详情正文 / 元信息
   ===================================================== */

/* ---------- 分页 ---------- */
.jwd-pager { margin-top: 44px; }
.jwd-pager ul {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px; list-style: none; padding: 0; margin: 0;
}
.jwd-pager li { list-style: none; }
.jwd-pager a, .jwd-pager > ul > li > span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink-2);
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  transition: transform .25s, border-color .25s, color .25s, box-shadow .25s;
}
.jwd-pager a:hover {
  border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-2px);
}
.jwd-pager li.is-active > span {
  background: var(--grad-brand); border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px rgb(255 106 0 / .28);
}
.jwd-pager li.is-disabled > span { opacity: .4; }
.jwd-pager .jwd-pager-total {
  border: 0; background: none; color: var(--muted); font-weight: 500; min-width: 0;
}

/* ---------- 详情页 ---------- */
.detail-wrap { max-width: 880px; margin: 0 auto; }
.detail-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.detail-meta span { display: inline-flex; align-items: center; gap: 7px; }
.detail-meta svg { width: 16px; height: 16px; color: var(--brand-500); }
.detail-meta .tag {
  padding: 4px 12px; border-radius: 999px; background: var(--brand-50);
  color: var(--brand-700); font-weight: 600; font-size: 13px;
}
.detail-cover { margin-bottom: 32px; border-radius: var(--r-md); overflow: hidden; background: var(--brand-50); }
.detail-cover img { width: 100%; display: block; }

/* 正文富文本 */
.prose { font-size: 16px; line-height: 1.95; color: var(--ink-2); word-wrap: break-word; }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--ink); line-height: 1.4; font-weight: 700;
  margin: 1.9em 0 .7em; position: relative;
}
.prose h1 { font-size: 26px; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18.5px; }
.prose h4 { font-size: 16.5px; }
.prose h2::before, .prose h3::before {
  content: ""; display: inline-block; width: 4px; height: .95em;
  background: var(--grad-brand); border-radius: 4px;
  margin-right: 10px; vertical-align: -.09em;
}
.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-700); }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose ul { list-style: none; }
.prose ul > li::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-500); margin: 0 10px 2px -16px;
}
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--brand-600); font-weight: 700; }
.prose img { max-width: 100%; height: auto; display: block; margin: 1.6em auto; border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.prose blockquote {
  margin: 1.6em 0; padding: 16px 22px; border-left: 4px solid var(--brand-500);
  background: var(--brand-50); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
  font-family: var(--font-mono); font-size: .9em; padding: 2px 7px;
  background: var(--brand-50); color: var(--brand-700); border-radius: 6px;
}
.prose pre {
  margin: 1.6em 0; padding: 18px 20px; overflow: auto;
  background: #241C15; color: #F5EEE5; border-radius: var(--r-md);
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75;
}
.prose pre code { background: none; color: inherit; padding: 0; }
.prose table {
  width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 14.5px;
  border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden;
}
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--brand-50); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }

/* ---- 历史正文内联样式兜底（兼容 sdsos 1.9.5 迁移的公众号排版内容）----
   1) 覆盖正文里 text-wrap:nowrap / white-space:nowrap 导致的中文长段落不换行；
   2) 约束内联固定像素宽度（770/1000/1130px 等）不得超过容器，避免窄屏横向溢出。
   white-space 是 text-wrap-mode 的简写，故 !important 可覆盖内联 text-wrap。 */
.prose p, .prose span, .prose div, .prose li, .prose dd, .prose dt,
.prose td, .prose th, .prose section, .prose article, .prose blockquote,
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6,
.prose strong, .prose em, .prose b, .prose i, .prose u, .prose font,
.prose a, .prose label, .prose figure, .prose figcaption {
  white-space: normal !important;
  text-wrap: wrap !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100% !important;
  box-sizing: border-box;
}
/* 内联固定宽度容器在窄屏改为自适应 */
@media (max-width: 900px) {
  .prose [style*="width"] { width: auto !important; max-width: 100% !important; }
  .prose [style*="padding"] { padding-left: 0 !important; padding-right: 0 !important; }
}
/* pre/code 保留等宽与可横向滚动，不被上面的规则影响 */
.prose pre { white-space: pre !important; text-wrap: initial !important; max-width: 100%; }
.prose pre code { white-space: inherit !important; }
.prose img { max-width: 100% !important; height: auto !important; }

/* 详情页上/下一篇 */
.detail-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.detail-nav a {
  display: block; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface); text-decoration: none;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.detail-nav a:hover { transform: translateY(-3px); border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.detail-nav small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.detail-nav b { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.5; display: block; }
.detail-nav .next { text-align: right; }

/* 列表空态 */
.empty-note {
  padding: 40px 24px; text-align: center; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-md);
}
.empty-note a { color: var(--brand-600); font-weight: 600; }

@media (max-width: 720px) {
  .jwd-pager a, .jwd-pager > ul > li > span { min-width: 38px; height: 38px; padding: 0 11px; font-size: 14px; }
  .detail-nav { grid-template-columns: 1fr; }
  .detail-nav .next { text-align: left; }
}
