/* ==========================================================================
   纳客收银系统 · 行业选型指南导航页
   单站样式表（无任何外部依赖，图标全部内联 SVG）
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --primary: #0F9D58;
  --primary-dark: #0B7A43;
  --primary-light: #E8F7EF;
  --accent: #D4A72C;
  --accent-soft: #FBF3DC;
  --ink: #10231A;
  --muted: #5B6F64;
  --bg: #F7FBF8;
  --white: #FFFFFF;
  --line: #E4EEE8;
  --line-strong: #CFE2D6;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-xs: 0 1px 2px rgba(16, 35, 26, .05);
  --shadow-sm: 0 2px 10px rgba(16, 35, 26, .06);
  --shadow-md: 0 12px 30px rgba(16, 35, 26, .09);
  --shadow-lg: 0 22px 54px rgba(11, 122, 67, .18);

  --header-h: 68px;
  --container: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
}

/* ---------- 2. 基础重置 ---------- */
*, *::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.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }

/* 统一的键盘可达焦点环 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(15, 157, 88, .45);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

/* 锚点跳转时避让吸顶导航 */
section[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ---------- 3. 按钮 ---------- */
.btn {
  --btn-bg: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 157, 88, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(15, 157, 88, .34); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255, 255, 255, .72);
  border-color: var(--line-strong);
  color: var(--primary-dark);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-gold {
  background: linear-gradient(135deg, #E7BE4E 0%, var(--accent) 100%);
  color: #3A2A05;
  box-shadow: 0 10px 24px rgba(212, 167, 44, .35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(212, 167, 44, .42); }

.btn-lg { min-height: 52px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-nav { min-height: 42px; padding: 0 20px; font-size: 14px; }

/* ---------- 4. 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease),
              border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(16, 35, 26, .07);
}

.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; flex: 0 0 auto; }
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-dark) 70%);
  box-shadow: 0 6px 16px rgba(15, 157, 88, .3);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { font-size: 17px; font-weight: 700; letter-spacing: .3px; }

.nav-desktop { display: flex; align-items: center; gap: 10px; }

/* 桌面端导航：业务栏目平铺 */
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 0 14px; min-height: 40px;
  border-radius: 10px;
  font-size: 15px; font-weight: 500;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.nav-list .nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px;
  height: 2px; border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0); transform-origin: center;
  transition: transform .24s var(--ease);
}
.nav-list .nav-link:hover { color: var(--primary-dark); }
.nav-list .nav-link:hover::after { transform: scaleX(1); }
.nav-divider { width: 1px; height: 22px; background: var(--line-strong); margin: 0 6px 0 4px; }

.nav-mobile-title {
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 10px; padding-left: 4px;
}

.menu-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 500;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.menu-link:hover { background: var(--primary-light); color: var(--primary-dark); transform: translateX(2px); }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle .bar {
  height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端面板 */
.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding-block: 18px 24px;
  animation: sheet-in .26s var(--ease);
}
.nav-mobile-list { display: grid; gap: 2px; margin-bottom: 18px; }
.nav-mobile .menu-link { padding: 13px 12px; font-size: 15.5px; }

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 5. Hero（紧凑版，高度约为原来的一半） ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(22px, 3vw, 34px)) 0 clamp(26px, 3.4vw, 38px);
  background:
    radial-gradient(1000px 520px at 14% -8%, rgba(15, 157, 88, .18), transparent 62%),
    radial-gradient(760px 420px at 88% 4%, rgba(212, 167, 44, .14), transparent 60%),
    linear-gradient(180deg, #EAF8F0 0%, var(--bg) 76%);
}
/* 细网格纹理 + 装饰光斑 */
.hero-decor {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 157, 88, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 157, 88, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(78% 68% at 50% 26%, #000 12%, transparent 78%);
  mask-image: radial-gradient(78% 68% at 50% 26%, #000 12%, transparent 78%);
}
.hero-decor::before,
.hero-decor::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px);
}
.hero-decor::before {
  width: 340px; height: 340px; left: -90px; top: 40px;
  background: rgba(15, 157, 88, .22);
}
.hero-decor::after {
  width: 300px; height: 300px; right: -70px; top: 120px;
  background: rgba(212, 167, 44, .2);
}

.hero-inner { position: relative; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
  font-size: 13px; font-weight: 600; letter-spacing: .6px;
  color: var(--primary-dark);
  backdrop-filter: blur(6px);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 157, 88, .18);
}

.hero-title {
  margin-top: 14px;
  font-size: clamp(26px, 4.4vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.4px;
}
.hero-sub {
  max-width: 720px;
  margin: 10px auto 0;
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.65;
  color: var(--muted);
}

.hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  backdrop-filter: blur(4px);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s var(--ease), color .22s var(--ease), background-color .22s var(--ease);
}
.chip .chip-idx { font-size: 10.5px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.chip:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--primary);
  color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(15, 157, 88, .16);
}
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.is-active .chip-idx { color: rgba(255, 255, 255, .8); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
  max-width: 620px;
  margin: clamp(18px, 2.6vw, 26px) auto 0;
  padding: clamp(10px, 1.4vw, 14px) clamp(12px, 1.6vw, 18px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 800; line-height: 1.25;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
}
.stat-num .unit { font-size: 12px; font-weight: 700; margin-left: 2px; color: var(--accent); }
.stat-label { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

/* ---------- 6. 行业栏目 ---------- */
.industries { padding-top: clamp(18px, 2.6vw, 30px); }

.industry {
  padding: clamp(30px, 4.4vw, 52px) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.industry:nth-of-type(even) { background: var(--white); }
.industry:nth-of-type(even) .card { background: var(--bg); }
.industry:nth-of-type(even) .card:hover { background: var(--white); }

.section-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2.2vw, 22px);
  margin-bottom: clamp(18px, 2.6vw, 28px);
  padding-bottom: clamp(14px, 1.8vw, 18px);
  border-bottom: 1px solid var(--line);
}
.section-index {
  flex: 0 0 auto;
  display: grid; place-items: center;
  min-width: 50px; height: 42px;
  padding-inline: 10px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--primary-light) 0%, #fff 100%);
  border: 1px solid var(--line-strong);
  font-size: 15px; font-weight: 800;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}
.section-head h2 {
  font-size: clamp(19px, 2.5vw, 25px);
  line-height: 1.35;
  font-weight: 750;
  letter-spacing: -.2px;
}
.section-head .section-desc {
  margin-top: 7px;
  max-width: 820px;
  font-size: clamp(13px, 1.4vw, 14.5px);
  color: var(--muted);
}
.section-tag {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px;
  color: var(--accent);
}

/* 卡片网格：紧凑小卡（约原来 1/4 大小），整卡可点击跳转到具体页面
   —— 桌面 6 张一行 / 平板 3 列 / 手机 2 列，新增卡片自动续排，无需改样式 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
  gap: 12px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 94px;
  padding: 13px 26px 13px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease), background-color .25s var(--ease);
}
/* 右下角箭头，提示整卡可点击 */
.card::before {
  content: "→";
  position: absolute; right: 11px; bottom: 12px;
  font-size: 13px; line-height: 1;
  color: var(--primary);
  opacity: .45;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  background: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.card:hover::before { opacity: 1; transform: translateX(3px); }
.card:active { transform: translateY(-1px); }

.card h3 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.1px;
  transition: color .25s var(--ease);
}
.card:hover h3 { color: var(--primary-dark); }
.card p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* ---------- 7. CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6.4vw, 80px) 0;
  background:
    radial-gradient(720px 360px at 12% 10%, rgba(15, 157, 88, .5), transparent 60%),
    radial-gradient(600px 320px at 90% 90%, rgba(212, 167, 44, .28), transparent 62%),
    linear-gradient(140deg, #08351F 0%, #0B7A43 62%, #0F9D58 100%);
}
.cta-decor {
  position: absolute; inset: 0; pointer-events: none;
  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: 54px 54px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 10%, transparent 75%);
}

/* CTA 面板：去表单后改为单列居中排版 */
.cta-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.2vw, 20px);
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(28px, 4.4vw, 46px) clamp(22px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.cta-badge {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(212, 167, 44, .18);
  border: 1px solid rgba(231, 190, 78, .45);
  color: #F3D383;
}
.cta-badge svg { width: 24px; height: 24px; }

.cta-panel h2 {
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -.3px;
}
.cta-panel > p {
  max-width: 560px;
  font-size: clamp(14.5px, 1.7vw, 16.5px);
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
}
.cta-points {
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: left;
}
.cta-points li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, .88);
}
.cta-points li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: rgba(212, 167, 44, .22);
  border: 1px solid rgba(243, 211, 131, .6);
}
.cta-points li::after {
  content: "";
  position: absolute; left: 4px; top: calc(.5em + 4px);
  width: 6px; height: 3px;
  border-left: 2px solid #F3D383;
  border-bottom: 2px solid #F3D383;
  transform: rotate(-45deg);
}

/* 注册引导：仅一个按钮，无表单 */
.cta-action {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 4px;
}
.cta-action .btn { min-width: min(100%, 260px); }
.cta-hint { font-size: 12.5px; color: rgba(255, 255, 255, .68); }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  background: #0A1F16;
  color: rgba(255, 255, 255, .72);
  padding-top: clamp(44px, 6vw, 70px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(30px, 4vw, 44px);
}
.brand-light .brand-text { color: #fff; }
.brand-light .brand-mark { box-shadow: none; }
.footer-brand p { margin-top: 16px; max-width: 340px; font-size: 14px; line-height: 1.8; }

.footer-title {
  margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px;
  color: rgba(255, 255, 255, .55);
  text-transform: uppercase;
}
.footer-links { display: grid; gap: 9px; font-size: 14px; }
.footer-links a, .footer-links-item { color: rgba(255, 255, 255, .78); transition: color .2s var(--ease), transform .2s var(--ease); }
.footer-links a:hover, .footer-links-item:hover { color: #6FE0A6; transform: translateX(2px); }
.footer-links li, .footer-links-item { display: block; }
.footer-contact li { line-height: 1.75; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}
.to-top { color: rgba(255, 255, 255, .72); font-weight: 600; }
.to-top:hover { color: #6FE0A6; }

/* ---------- 9. 响应式 ---------- */
/* 中等宽度：导航文字收紧，避免与品牌区拥挤 */
@media (min-width: 901px) and (max-width: 1120px) {
  .nav-link { padding: 0 9px; font-size: 14px; }
  .nav-list .nav-link::after { left: 9px; right: 9px; }
  .nav-divider { margin: 0 2px; }
  .btn-nav { padding: 0 14px; }
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 62px; }
  body { font-size: 15px; }
  .brand-text { font-size: 15.5px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand-mark svg { width: 19px; height: 19px; }

  .section-head { flex-direction: column; gap: 14px; }
  .section-index { min-width: 52px; height: 44px; font-size: 16px; }

  /* 手机：2 列小卡 */
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* 数据条保持单行三栏，避免首屏变高 */
  .hero-stats { gap: 6px; padding-inline: 10px; }
  .stat-label { font-size: 11px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* 超小屏进一步优化间距 */
@media (max-width: 380px) {
  .chip { font-size: 13px; padding: 8px 13px; }
  .card { padding: 12px 24px 12px 12px; }
}

/* ---------- 10. 动效偏好与打印 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .nav-mobile, .hero-decor, .cta-decor { display: none !important; }
  body { background: #fff; }
  .industry, .cta { break-inside: avoid; }
}
