/* ===========================================================================
   算数 · 砂粉工厂管理系统 —— 官网样式
   ---------------------------------------------------------------------------
   设计口径：
   - 中文商务风：深蓝墨底 + 砂粉橙点缀，正文 15px / 行高 1.75，标题紧凑；
   - 首屏不依赖任何外部字体与第三方库，静态资源全部同源、可长缓存；
   - 二级导航用「悬停展开的宽面板」（面板内左列链接 + 右列场景图），
     和 servechina.cn 的导航逻辑一致：一屏看清这一组有哪些页。
   =========================================================================== */

:root {
  --ink: #0b1220;
  --ink-2: #1e293b;
  --ink-3: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --paper: #ffffff;
  --paper-2: #f6f8fb;
  --brand: #d97706;
  --brand-2: #b45309;
  --brand-3: #f59e0b;
  --brand-50: #fffbeb;
  --ok: #15803d;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 8px 24px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -28px rgba(15, 23, 42, .35);
  --radius: 14px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font: 15px/1.75 "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
/* HTML 的 width/height 属性是「表现性提示」：只覆盖宽度时，高度仍按属性值（如 900px）算，
   1440×900 的截图就会被拉成竖条。统一 height:auto，让浏览器按原始比例算高度；
   需要固定高度的组件（场景图、导航配图、页脚二维码）在各自规则里再覆盖。 */
img { height: auto; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===================== 顶部导航 + 二级面板 ===================== */
.site-head { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.site-head-in { width: min(1240px, calc(100% - 40px)); margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(145deg, #f59e0b, #b45309); color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 14px -6px rgba(180, 83, 9, .8);
}
.brand-text strong { display: block; font-size: 15px; color: var(--ink); letter-spacing: .01em; }
.brand-text small { display: block; font-size: 10.5px; color: var(--muted-2); letter-spacing: .06em; }

.nav { flex: 1; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-item > a {
  display: inline-flex; align-items: center; gap: 5px; padding: 9px 12px; border-radius: 8px;
  color: var(--ink-3); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.nav-item > a:hover, .nav-item:focus-within > a { background: var(--brand-50); color: var(--brand-2); text-decoration: none; }
.nav-item .caret { width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-1px); opacity: .55; }

/* 悬停展开的宽面板 */
.nav-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  width: min(720px, calc(100vw - 40px)); padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease;
}
.nav-item:hover .nav-panel, .nav-item:focus-within .nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-panel-card { display: grid; grid-template-columns: 1fr 236px; gap: 14px; }
.nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-links a { display: block; padding: 9px 10px; border-radius: 9px; text-decoration: none; }
.nav-links a:hover { background: var(--paper-2); text-decoration: none; }
.nav-links strong { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.nav-links em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.55; }
.nav-feature { display: block; border-radius: 12px; overflow: hidden; background: var(--ink); text-decoration: none; }
.nav-feature:hover { text-decoration: none; }
.nav-feature img { display: block; width: 100%; height: 118px; object-fit: cover; opacity: .92; }
.nav-feature strong { display: block; padding: 10px 12px 0; color: #fff; font-size: 13px; }
.nav-feature em { display: block; padding: 4px 12px 0; font-style: normal; font-size: 11.5px; color: #94a3b8; line-height: 1.6; }
.nav-feature .nav-cta { display: block; padding: 9px 12px 12px; color: var(--brand-3); font-size: 12px; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-tel { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nav-tel b { color: var(--brand-2); font-size: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(145deg, #f59e0b, #c2610a); color: #fff; box-shadow: 0 8px 20px -12px rgba(180, 83, 9, .9); }
.btn-primary:hover { box-shadow: 0 12px 26px -12px rgba(180, 83, 9, .95); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand-3); color: var(--brand-2); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 11px; }
.btn-dark { background: var(--ink); color: #fff; }
.nav-burger { display: none; }

/* ===================== 首屏 ===================== */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 82% -10%, #1e293b 0%, #0b1220 55%, #080e18 100%); color: #e2e8f0; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, .08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 60% 20%, #000 20%, transparent 80%);
}
.hero-in { position: relative; padding: 64px 0 0; display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .16em; color: var(--brand-3); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brand-3); opacity: .8; }
.hero h1 { color: #f8fafc; font-size: clamp(28px, 3.1vw, 42px); line-height: 1.28; margin: 16px 0 0; letter-spacing: -.02em; }
.hero h1 b { color: var(--brand-3); font-weight: 700; }
.tagline { margin-top: 16px; font-size: 15px; line-height: 1.85; color: #b6c2d2; max-width: 620px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { margin-top: 14px; font-size: 12px; color: #8b9bb0; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 40px 0 0; padding: 18px 0 26px; border-top: 1px solid rgba(148, 163, 184, .18); }
.hero-stat b { display: block; font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.hero-stat span { display: block; font-size: 11.5px; color: #8b9bb0; margin-top: 2px; line-height: 1.6; }
.hero-art { position: relative; }
.hero-art img { display: block; width: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); border-radius: 18px; }
.hero-art .float-card {
  position: absolute; background: rgba(15, 23, 42, .82); border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 12px; padding: 9px 12px; font-size: 11.5px; color: #cbd5e1; backdrop-filter: blur(8px);
}
.hero-art .fc-1 { left: -14px; top: 18%; }
.hero-art .fc-2 { right: -8px; bottom: 12%; }
.float-card b { color: var(--brand-3); font-size: 15px; display: block; font-variant-numeric: tabular-nums; }

/* ===================== 通用区块 ===================== */
.section { padding: 72px 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 34px; }
.kicker { display: inline-block; font-size: 11.5px; letter-spacing: .14em; color: var(--brand-2); text-transform: uppercase; margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(22px, 2.2vw, 30px); }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.85; }

/* 痛点 */
.pains { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pain { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); }
.pain .no { font-size: 11px; color: var(--brand-2); font-weight: 700; letter-spacing: .1em; }
.pain h4 { font-size: 14px; margin: 6px 0 6px; }
.pain p { font-size: 12.5px; color: var(--muted); line-height: 1.75; }

/* 场景卡 */
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scene { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease; }
.scene:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.scene-fig { background: var(--ink); }
.scene-fig img { display: block; width: 100%; height: 186px; object-fit: cover; }
.scene-body { padding: 16px 18px 18px; }
.scene-body h3 { font-size: 15.5px; }
.scene-body p { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.scene-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.scene-tags span { font-size: 11.5px; color: var(--ink-3); background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

/* 能力矩阵 */
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mod { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); scroll-margin-top: 96px; }
.mod-head { display: flex; align-items: center; gap: 10px; }
.mod-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-2); font-weight: 700; font-size: 14px; border: 1px solid #fde68a; flex: none; }
.mod h3 { font-size: 15.5px; }
.mod > p { margin-top: 10px; font-size: 12.8px; color: var(--muted); line-height: 1.8; }
.mod ul { margin-top: 12px; display: grid; gap: 7px; }
.mod li { position: relative; padding-left: 16px; font-size: 12.8px; color: var(--ink-3); line-height: 1.72; }
.mod li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-3); }
.mod-link { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 600; }

/* 双栏图文 */
.split { display: grid; grid-template-columns: 1.04fr .96fr; gap: 44px; align-items: center; }
.split.rev > .split-fig { order: -1; }
.split-fig img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.fig-cap { margin-top: 8px; font-size: 11.5px; color: var(--muted-2); text-align: center; }
.split-body h2 { font-size: clamp(20px, 2vw, 27px); }
.split-body > p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.checks { margin-top: 18px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 26px; font-size: 13.5px; color: var(--ink-3); line-height: 1.8; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%;
  background: #ecfdf5; color: var(--ok); font-size: 11px; display: grid; place-items: center; font-weight: 700;
}
.mini-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.mini-kpi { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.mini-kpi b { display: block; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mini-kpi span { font-size: 11.5px; color: var(--muted); }

/* 界面一览画廊 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.gallery figcaption { padding: 8px 12px 10px; font-size: 11.5px; color: var(--muted); }
.gallery .wide { grid-column: span 2; }

/* 交付节奏 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px 16px; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: s; content: "0" counter(s); position: absolute; right: 14px; top: 10px;
  font-size: 22px; font-weight: 700; color: #eef2f7; letter-spacing: -.02em;
}
.step h4 { font-size: 14px; position: relative; }
.step p { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.75; position: relative; }

/* 下载中心 */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); transition: border-color .16s ease, box-shadow .16s ease; }
.dl:hover { text-decoration: none; border-color: var(--brand-3); box-shadow: var(--shadow); }
.dl-ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; flex: none; }
.dl-ico.xls { background: linear-gradient(145deg, #16a34a, #0f7a37); }
.dl-ico.ppt { background: linear-gradient(145deg, #ea580c, #b03a06); }
.dl-ico.doc { background: linear-gradient(145deg, #2563eb, #1a49a8); }
.dl b { display: block; font-size: 14px; color: var(--ink); }
.dl span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.dl em { display: inline-block; margin-top: 8px; font-style: normal; font-size: 11.5px; color: var(--brand-2); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 0 16px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 14px 0; font-size: 14px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-2); font-weight: 400; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 0 16px; font-size: 13.5px; color: var(--muted); line-height: 1.85; }

/* 结尾 CTA */
.end-cta { position: relative; overflow: hidden; background: linear-gradient(120deg, #0b1220, #1e293b 60%, #2a1c09); color: #e2e8f0; padding: 58px 0; }
.end-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.end-cta h2 { color: #fff; font-size: clamp(21px, 2.2vw, 28px); }
.end-cta p { margin-top: 10px; color: #a9b7c9; font-size: 14px; max-width: 620px; }
.end-cta .contact-line { margin-top: 16px; font-size: 13px; color: #cbd5e1; }
.end-cta .contact-line b { color: var(--brand-3); font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* 页脚（对齐 zhubao.zerocod.cn 的页脚排布） */
.s-foot {
  display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap;
  padding: 18px 24px 22px; font-size: 12px; color: var(--muted-2);
  border-top: 1px solid var(--line); background: #fff;
}
.s-foot a { color: var(--muted-2); }
.s-foot a:hover { color: var(--brand-2); }
.s-foot-qr { width: 74px; height: 74px; border-radius: 8px; border: 1px solid var(--line); margin-left: auto; }
.s-foot .sep { opacity: .45; }

/* 水印 */
.wm-layer { position: fixed; inset: 0; z-index: 900; pointer-events: none; overflow: hidden; opacity: .55; }
.wm-tile {
  position: absolute; inset: -25%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; letter-spacing: .12em; color: rgba(100, 116, 139, .12);
  transform: rotate(-24deg); white-space: nowrap;
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 74px, transparent 74px 250px);
          mask-image: repeating-linear-gradient(180deg, #000 0 74px, transparent 74px 250px);
}
.wm-badge {
  position: fixed; right: 12px; bottom: 12px; z-index: 901; pointer-events: none;
  font-size: 10px; color: rgba(71, 85, 105, .5); background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(148, 163, 184, .32); border-radius: 6px; padding: 3px 8px; white-space: nowrap;
}

/* 回到顶部 */
.to-top {
  position: fixed; right: 16px; bottom: 52px; z-index: 902; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .92); color: var(--ink-3); cursor: pointer;
  font-size: 15px; display: none; place-items: center; box-shadow: var(--shadow-sm);
}
.to-top.on { display: grid; }

/* ===================== 响应式 ===================== */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 620px; }
  .pains { grid-template-columns: repeat(3, 1fr); }
  .mods, .scenes { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split.rev > .split-fig { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-panel { left: 0; transform: translate(0, 6px); }
  .nav-item:hover .nav-panel, .nav-item:focus-within .nav-panel { transform: translate(0, 0); }
}
@media (max-width: 860px) {
  .nav-list { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-tel { display: none; }
  .nav.open .nav-list {
    display: block; position: absolute; left: 12px; right: 12px; top: 64px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: var(--shadow-lg);
  }
  .nav.open .nav-list > .nav-item > a { display: flex; justify-content: space-between; }
  .nav-panel { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px; }
  .nav-panel-card { grid-template-columns: 1fr; }
  .nav-feature { display: none; }
  .nav-links { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 48px 0; }
  .wrap { width: calc(100% - 32px); }
  .hero-in { padding-top: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pains, .mods, .scenes, .dl-grid, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: auto; }
  .mini-kpis { grid-template-columns: 1fr 1fr; }
  .end-cta-in { flex-direction: column; align-items: flex-start; }
  .s-foot-qr { margin-left: 0; }
  .hero-art .float-card { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print {
  .site-head, .to-top, .wm-layer, .wm-badge { display: none !important; }
}
