/* ============================================================
   纳客攀岩馆收银系统 · 落地页样式表
   结构：0.设计 Token  1.基础与排版  2.通用组件（按钮/卡片/网格）
        3.模块1 头部导航  4.模块2 Banner  5.模块3 适用门店
        6.模块4 买断对比表格  7.模块5 核心功能  8.模块6 售后服务
        9.模块7 客户案例  10.模块8 常见问题  11.模块9 底部 CTA + 页脚
        12.响应式断点
   ============================================================ */

/* ---------- 0. 设计 Token ---------- */
:root {
  /* 品牌色 */
  --green-900: #0B3D2E;      /* 深墨绿：Banner 背景、页脚 */
  --green-700: #0E8A5F;      /* 主绿：标题、图标 */
  --green-500: #12B76A;      /* 亮绿：主按钮、强调 */
  --green-100: #E7F8F0;      /* 浅绿：卡片底、标签底 */
  --accent-orange: #FF8A00;  /* 点缀橙：价格/数据高亮 */
  --accent-blue: #2E7CF6;    /* 次要点缀：资质标签 */

  /* 中性色 */
  --text-900: #16201C;       /* 主文字 */
  --text-600: #5A6B64;       /* 次文字 */
  --line: #E6EFEA;           /* 分割线/描边 */
  --bg-page: #F7FBF9;        /* 页面底色 */
  --white: #FFFFFF;

  /* 阴影 */
  --shadow-card: 0 4px 20px rgba(11, 61, 46, .06);
  --shadow-card-hover: 0 12px 32px rgba(11, 61, 46, .12);
  --shadow-header: 0 4px 16px rgba(11, 61, 46, .08);

  /* 尺寸 */
  --container: 1200px;
  --header-h: 72px;
  --radius: 16px;
  --radius-pill: 999px;
}

/* ---------- 1. 基础与排版 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-900);
  background: var(--bg-page);
  overflow-x: hidden; /* 防止任何横向滚动条 */
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

/* 容器 */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 区块：上下留白 PC 80px；锚点让位吸顶导航 */
.section {
  padding: 80px 0;
  scroll-margin-top: 80px; /* 让位吸顶导航 */
}

/* 区块标题组 */
.section__head { margin-bottom: 48px; }
.section__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: var(--green-900);
  letter-spacing: .5px;
}
.section__subtitle {
  margin-top: 12px;
  font-size: 16px;
  text-align: center;
  color: var(--text-600);
}

/* 数据/价格高亮 */
.hl { color: var(--accent-orange); font-weight: 700; }

/* 无障碍：仅屏幕阅读器可见 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 2. 通用组件 ---------- */

/* 按钮：主按钮绿底白字，次要按钮白底绿描边绿字 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.btn--primary {
  background: var(--green-500);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(18, 183, 106, .24);
}
.btn--primary:hover {
  background: var(--green-700);
  box-shadow: 0 10px 26px rgba(11, 61, 46, .28);
}
.btn--ghost {
  background: var(--white);
  color: var(--green-700);
  border-color: var(--green-500);
}
.btn--ghost:hover { background: var(--green-100); }
.btn--small { padding: 10px 22px; font-size: 15px; }
.btn--large { padding: 18px 48px; font-size: 18px; }
.btn--orange { background: var(--accent-orange); color: var(--white); box-shadow: 0 8px 22px rgba(255, 138, 0, .3); }
.btn--orange:hover { background: #E67C00; }
/* 深色渐变背景上的主按钮：加白色描边保证与背景的边界对比 */
.btn--on-dark { border-color: rgba(255, 255, 255, .6); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(18, 183, 106, .55);
  outline-offset: 2px;
}

/* 卡片：全站统一风格 */
.card {
  position: relative;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* 卡片顶部 4px 绿色渐变装饰条 */
.card--topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--green-500), var(--green-700));
}

/* 卡片左侧 3px 竖条装饰 */
.card--sidebar { border-left: 3px solid var(--green-500); }

/* 标题下方渐变装饰小条 */
.card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.5;
}
.card__text {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-600);
}
.card__text + .card__text { margin-top: 8px; }

/* 圆形绿色图标位 */
.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
}
.icon-badge svg { width: 27px; height: 27px; }

/* 标签 */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--green-100);
  color: var(--green-700);
  font-size: 12.5px;
  line-height: 1.7;
}
.tag--blue { background: rgba(46, 124, 246, .1); color: var(--accent-blue); }

/* 3 列 / 2 列网格 */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 3. 模块 1：头部导航（sticky） ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .9);
  /* 顶部 4px 品牌色带 */
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--green-900), var(--green-500), var(--green-700)) 1;
  transition: background-color .25s ease, box-shadow .25s ease;
}
/* 滚动吸顶变色（由 JS 添加 .is-scrolled） */
.header.is-scrolled {
  background: var(--white);
  box-shadow: var(--shadow-header);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  flex: none;
  font-size: 19px;
  font-weight: 500;
  color: var(--text-900);
  letter-spacing: .5px;
}
.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 9px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  transform: translateY(4px);
}
.logo__brand { color: var(--green-700); font-weight: 700; }

/* 主导航 */
.nav__list { display: flex; align-items: center; gap: 28px; }
.nav__link {
  position: relative;
  font-size: 15.5px;
  color: var(--text-900);
  padding: 6px 0;
  transition: color .25s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green-500);
  opacity: 0; /* 无过渡动画：hover 直接显示下划线 */
}
.nav__link:hover { color: var(--green-700); }
.nav__link:hover::after { opacity: 1; }

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  flex: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--green-900);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 下拉菜单内的「免费体验」按钮：桌面端隐藏，仅折叠导航时使用 */
.nav__mobile-cta { display: none; }

/* ---------- 4. 模块 2：Banner ---------- */
.banner {
  position: relative;
  padding: 80px 0 72px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #0B3D2E 0%, #0E8A5F 100%);
}
/* 径向光晕增加质感（纯 CSS） */
.banner::before,
.banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.banner::before {
  top: -220px; right: -140px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(18, 183, 106, .55) 0%, rgba(18, 183, 106, 0) 70%);
}
.banner::after {
  bottom: -260px; left: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(231, 248, 240, .18) 0%, rgba(231, 248, 240, 0) 70%);
}
.banner .container { position: relative; z-index: 1; }

.banner__title {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(30px, 5.2vw, 58px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 1px;
}
.banner__subtitle {
  margin: 18px auto 0;
  font-size: clamp(15px, 1.6vw, 19px);
  text-align: center;
  color: rgba(255, 255, 255, .86);
}

/* 三枚数据高亮块 */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 36px auto 0;
}
.stats__item {
  flex: 1 1 240px;
  max-width: 320px;
  padding: 20px 24px;
  text-align: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  transition: transform .25s ease, background-color .25s ease;
}
.stats__item:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .16); }
.stats__num {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-orange);
}
.stats__label { margin-top: 6px; font-size: 14.5px; color: rgba(255, 255, 255, .88); }

/* Banner 按钮组 */
.banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

/* 资质卡片区：半透明白底 + 白色描边 */
.quali {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 48px auto 0;
}
.quali__card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 62px;
  padding: 14px 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius);
  transition: transform .25s ease, background-color .25s ease;
}
.quali__card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .18); }
.quali__card svg { flex: none; width: 18px; height: 18px; color: var(--accent-orange); }

/* 资质说明块 */
.banner__note {
  margin-top: 24px;
  padding: 22px 26px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  border-left: 3px solid var(--accent-orange);
  border-radius: var(--radius);
}

/* ---------- 5. 模块 3：适用门店（复用通用卡片 .card--sidebar 与标签 .tag，无专属样式） ---------- */

/* ---------- 6. 模块 4：买断对比表格 ---------- */
.compare__section-title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  color: var(--green-900);
}
.compare__block + .compare__block { margin-top: 48px; }

/* 移动端横向滚动容器 */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 15px;
}
.table caption { text-align: left; }
.table th,
.table td {
  padding: 15px 22px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.table thead th {
  background: var(--green-900);
  color: var(--white);
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
}
.table tbody tr:nth-child(even) { background: #F2F7F5; }
.table tbody tr:hover { background: var(--green-100); }
.table__dim {
  font-weight: 600;
  color: var(--text-900);
  white-space: nowrap;
}
/* 买断制列：浅绿底 + 加粗高亮 */
.table .col-buy {
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 700;
}
.table tbody tr:hover .col-buy { background: #D8F3E6; }
.tick { margin-right: 6px; color: var(--green-700); font-weight: 700; }
.table__total td { font-weight: 700; font-size: 15.5px; }

.compare__conclusion {
  margin-top: 28px;
  padding: 22px 26px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.85;
  color: var(--green-900);
  background: var(--green-100);
  border: 1px solid #CFEEDD;
  border-left: 3px solid var(--green-500);
  border-radius: var(--radius);
}

/* ---------- 7. 模块 5：核心功能 ---------- */
.feature__tags { margin-top: 16px; }

/* ---------- 8. 模块 6：售后服务 ---------- */
.service .card__title { font-size: 20px; }
.service__grid { grid-template-columns: repeat(2, 1fr); }

/* ---------- 9. 模块 7：客户案例 ---------- */
/* 顶部预留一行高度，保证右上角类型标签与馆名永不重叠 */
.case { padding-top: 58px; }
.case__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: var(--radius-pill);
}
.case__name {
  font-size: 19px;
  font-weight: 700;
  color: var(--green-900);
}
.case__rows { margin-top: 16px; }
.case__row { padding: 12px 0 12px 14px; border-left: 3px solid var(--line); }
.case__row + .case__row { margin-top: 8px; }
.case__row--pain { border-left-color: #D9E2DE; }
.case__row--plan { border-left-color: var(--green-500); }
.case__row--result { border-left-color: var(--accent-orange); background: rgba(255, 138, 0, .05); border-radius: 0 10px 10px 0; }
.case__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--green-700);
}
.case__row--result .case__label { color: var(--accent-orange); }
.case__desc { margin-top: 3px; font-size: 15px; color: var(--text-600); }

/* ---------- 10. 模块 8：常见问题（全部平铺可见，不折叠） ---------- */
.faq__grid { grid-template-columns: repeat(2, 1fr); }
.faq__card { padding: 24px 26px; }
.faq__q {
  display: flex;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--green-900);
}
.faq__q-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.faq__a {
  margin-top: 10px;
  padding-left: 34px;
  font-size: 15px;
  color: var(--text-600);
}

/* ---------- 11. 模块 9：底部 CTA + 页脚 ---------- */
.cta {
  padding: 84px 0 72px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  scroll-margin-top: 80px;
}
.cta__title {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.35;
}
.cta__subtitle {
  margin-top: 14px;
  font-size: clamp(15px, 1.6vw, 19px);
  color: rgba(255, 255, 255, .86);
}
.cta__actions { margin-top: 34px; }
.cta__points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.cta__point {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 15px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: var(--radius-pill);
  transition: transform .25s ease, background-color .25s ease;
}
.cta__point:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .17); }
.cta__point svg { flex: none; width: 17px; height: 17px; color: var(--green-100); }

/* 页脚 */
.footer {
  padding: 26px 0;
  text-align: center;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  background: var(--green-900);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer__brand { margin-top: 4px; color: rgba(255, 255, 255, .6); font-size: 13px; }

/* ---------- 12. 响应式断点 ---------- */
/* 平板 768–1199px */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .faq__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__list { gap: 18px; }
  .nav__link { font-size: 14.5px; }
  .quali { grid-template-columns: repeat(2, 1fr); }
}

/* 移动端 <768px：单列 */
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section__head { margin-bottom: 28px; }
  .container { padding: 0 18px; }
  .grid--3,
  .faq__grid,
  .service__grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  /* .card 简写会重置 padding-top，此处补回案例卡片顶部留白 */
  .case { padding-top: 54px; }
  .banner { padding: 48px 0 48px; }
  .quali { grid-template-columns: 1fr; margin-top: 32px; }
  .stats__item { flex: 1 1 100%; max-width: none; }
  .banner__actions .btn { width: 100%; }
  .banner__note { padding: 18px 20px; }
  .table th, .table td { padding: 13px 16px; }
  .compare__conclusion { padding: 18px 20px; font-size: 15px; }
  .faq__card { padding: 20px; }
  .cta { padding: 56px 0 48px; }
  .cta__actions .btn { width: 100%; }
  .cta__point { flex: 1 1 100%; justify-content: flex-start; }
}

/* 导航折叠为汉堡菜单（≤991px，含平板竖屏） */
@media (max-width: 991px) {
  .nav-toggle { display: flex; }
  .header__cta { display: none; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(11, 61, 46, .1);
  }
  .nav.is-open { display: block; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 12px;
  }
  .nav__item + .nav__item { border-top: 1px solid var(--line); }
  .nav__link { display: block; padding: 14px 0; font-size: 16px; }
  .nav__link::after { display: none; }
  .nav__mobile-cta { display: block; padding: 0 18px 18px; }
  .nav__mobile-cta .btn { width: 100%; }
}

/* 尊重系统「减弱动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: .01ms !important; }
  .card:hover,
  .stats__item:hover,
  .quali__card:hover,
  .cta__point:hover { transform: none; }
}
