/* ═══════════════════════════════════════════════════════════════════
   Store V3 — 基架组件样式（清水科技·品牌红版）
   阶段3-F01：nav / hero / cards / cta-band / footer 全量组件
   零 jQuery 依赖，纯 CSS + 少量原生 JS（移动端菜单切换）
   所有色值/字号/间距引用 tokens.css，禁止本文件内硬编码
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ── Layout Utilities ── */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--gray);
  font-size: var(--fs-body);
  margin-bottom: 44px;
  max-width: 640px;
}

/* ═══════════════════════════════════════════════════════════════════
   Zone 1: NAV — 粘性导航
   ═══════════════════════════════════════════════════════════════════ */
header[data-page-zone="nav"] {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
  height: var(--nav-height);
}

header[data-page-zone="nav"] .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: .5px;
  flex-shrink: 0;
}

.logo span {
  color: var(--brand);
}

nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  transition: color var(--transition);
}

nav a:hover {
  color: var(--brand);
}

.nav-cta {
  background: var(--brand);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius-btn);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: background var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--brand-dark);
  color: var(--white) !important;
}

/* 移动端汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 51;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 32px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 49;
    font-size: 18px;
  }

  .nav-open nav ul {
    transform: translateX(0);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Zone 2: HERO — 首屏
   ═══════════════════════════════════════════════════════════════════ */
section[data-page-zone="hero"] {
  padding: 110px 0 90px;
  background: linear-gradient(180deg, var(--mist) 0%, var(--white) 100%);
}

/* T2 次级 Hero（能力分类页/列表页）：更紧凑的高度 */
section[data-page-zone="hero"].hero--secondary {
  padding: 72px 0 56px;
}

.hero-kicker {
  color: var(--brand);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

section[data-page-zone="hero"] h1 {
  font-size: var(--fs-hero);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ink);
}

section[data-page-zone="hero"].hero--secondary h1 {
  font-size: clamp(28px, 4vw, 40px);
}

.hero-sub {
  font-size: var(--fs-body);
  color: var(--gray);
  max-width: 560px;
  margin: 24px 0 36px;
  line-height: 1.7;
}

/* ── Hero 双栏：左文案 + 右门店实拍 ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.hero-photos {
  position: relative;
}

.hero-photo-main {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(11, 31, 58, .16);
}

/* ── 按钮系统 ── */
.btn-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--white);
  padding: 15px 34px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-body);
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
  line-height: 1.4;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 15px 34px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-body);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  background: transparent;
  cursor: pointer;
  line-height: 1.4;
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(214, 37, 42, .04);
}

/* ── 认证徽章（复用组件：hero / brand / footer） ── */
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 9px 18px;
  background: var(--white);
  font-size: 13.5px;
  color: var(--gray);
}

.auth-badge b {
  color: var(--ink);
  font-weight: 600;
}

.auth-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   Zone 3: TRUST — 信任锚点（内嵌 Hero 底部）
   ═══════════════════════════════════════════════════════════════════ */
div[data-page-zone="trust"] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 80px;
}

.trust-item {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.trust-item b {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
}

.trust-item b em {
  font-style: normal;
  color: var(--brand);
}

.trust-item p {
  color: var(--gray);
  font-size: var(--fs-small);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   Zone 4: CAPABILITY — 能力展示
   ═══════════════════════════════════════════════════════════════════ */
section[data-page-zone="capability"] {
  padding: var(--space-sec) 0;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-card);
}

/* ── 能力卡片 ── */
.cap-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 34px 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  background: var(--white);
}

.cap-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.cap-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.cap-card h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.cap-card p {
  color: var(--gray);
  font-size: 14.5px;
  line-height: 1.65;
}

.cap-card .more {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--brand);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: opacity var(--transition);
}

.cap-card:hover .more {
  opacity: .8;
}

/* ── FAQ 网格（Zone 4 后半段，⭐ GEO 五星） ── */
.faq-wrap {
  margin-top: 64px;
}

.faq-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--ink);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.faq-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 26px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color var(--transition);
  background: var(--white);
}

.faq-card:hover {
  border-color: var(--brand);
}

.faq-card h3 {
  font-size: var(--fs-body);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.faq-card h3::after {
  content: "+";
  color: var(--brand);
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
}

.faq-card p {
  color: var(--gray);
  font-size: var(--fs-small);
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.faq-more {
  display: inline-block;
  margin-top: 20px;
  color: var(--brand);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition);
}

.faq-more:hover {
  opacity: .8;
}

/* ═══════════════════════════════════════════════════════════════════
   Zone 5: EVIDENCE — 案例/证据
   ═══════════════════════════════════════════════════════════════════ */
section[data-page-zone="evidence"] {
  padding: var(--space-sec) 0;
  background: var(--mist);
}

.ev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-card);
}

.ev-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}

.ev-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.ev-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--placeholder-start), var(--placeholder-end));
  overflow: hidden;
}

.ev-body {
  padding: 22px 24px 26px;
}

.ev-tag {
  display: inline-block;
  font-size: var(--fs-tiny);
  color: var(--brand);
  background: var(--accent-blue-bg);
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 10px;
  font-weight: 500;
}

.ev-body h3 {
  font-size: 16.5px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
}

.ev-body p {
  color: var(--gray);
  font-size: 13.5px;
  margin-top: 8px;
  line-height: 1.6;
}

/* 列表卡片发布时间戳（mountContentSlots 自动注入） */
.item-publish-date {
  display: block;
  margin-top: 10px;
  font-size: var(--fs-tiny);
  line-height: 1.5;
  color: var(--gray);
}

/* ── 专题网格（Zone 5 子区块，⭐ GEO 五星） ── */
.ft-wrap {
  margin-top: 56px;
}

.ft-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--ink);
}

.ft-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-card);
}

.ft-main {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 38px 36px;
  text-decoration: none;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}

.ft-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(11, 31, 58, .2);
}

.ft-main .ft-tag {
  display: inline-block;
  font-size: var(--fs-tiny);
  background: rgba(255, 255, 255, .14);
  color: var(--white);
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.ft-main h3 {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
}

.ft-main p {
  color: var(--featured-body);
  font-size: 14.5px;
  margin-top: 12px;
  line-height: 1.6;
}

.ft-main .more {
  display: inline-block;
  margin-top: 18px;
  color: var(--featured-link);
  font-size: var(--fs-small);
  font-weight: 600;
}

.ft-side {
  display: grid;
  gap: var(--space-card);
}

.ft-side-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid var(--line);
  transition: border-color var(--transition), transform var(--transition);
}

.ft-side-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.ft-side-card .ft-tag {
  display: inline-block;
  font-size: var(--fs-tiny);
  color: var(--brand);
  background: var(--accent-blue-bg);
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 10px;
  font-weight: 500;
}

.ft-side-card h3 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
}

.ft-side-card p {
  color: var(--gray);
  font-size: 13.5px;
  margin-top: 8px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   CTA Band — 中段转化带
   ═══════════════════════════════════════════════════════════════════ */
section.cta-band {
  background: linear-gradient(100deg, var(--brand), var(--brand-dark));
  color: var(--white);
  padding: 56px 0;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-row h2 {
  font-size: 26px;
  font-weight: 700;
}

.cta-row p {
  color: var(--cta-sub);
  margin-top: 6px;
  font-size: var(--fs-body);
  max-width: 480px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  color: var(--brand);
  padding: 15px 34px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-body);
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}

/* ═══════════════════════════════════════════════════════════════════
   Zone 6: BRAND — 品牌/关于
   ═══════════════════════════════════════════════════════════════════ */
section[data-page-zone="brand"] {
  padding: var(--space-sec) 0;
  background: var(--white);
}

.brand-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.brand-img {
  height: 320px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand-pld-start), var(--brand-pld-end));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-pld-text);
  font-size: var(--fs-small);
  overflow: hidden;
}

.brand-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-txt h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--ink);
}

.brand-txt p {
  color: var(--gray);
  margin-bottom: var(--space-md);
  font-size: var(--fs-body);
  line-height: 1.75;
}

.brand-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--fs-body);
  transition: opacity var(--transition);
}

.brand-link:hover {
  opacity: .8;
}

/* ═══════════════════════════════════════════════════════════════════
   Zone 7: CONTACT + FOOTER
   ═══════════════════════════════════════════════════════════════════ */
section[data-page-zone="contact"] {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0 0;
}

.c-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 60px;
}

.c-grid h3 {
  font-size: var(--fs-body);
  margin-bottom: var(--space-md);
  color: var(--footer-heading);
  font-weight: 600;
}

.c-grid p,
.c-grid a {
  color: var(--footer-text);
  font-size: 15px;
  text-decoration: none;
  line-height: 2;
}

.c-grid a:hover {
  color: var(--white);
}

.c-phone {
  font-size: 30px;
  font-weight: 700;
  color: var(--white) !important;
  line-height: 1.4;
}

footer[data-page-zone="footer"] {
  border-top: 1px solid var(--footer-divider);
  padding: 22px 0;
  font-size: 13px;
  color: var(--footer-muted);
}

footer[data-page-zone="footer"] .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

footer[data-page-zone="footer"] a {
  color: var(--footer-muted);
  text-decoration: none;
  transition: color var(--transition);
}

footer[data-page-zone="footer"] a:hover {
  color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════════
   Responsive — 移动端适配
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .wrap {
    padding: 0 20px;
  }

  /* Hero */
  section[data-page-zone="hero"] {
    padding: 60px 0 48px;
  }

  section[data-page-zone="hero"].hero--secondary {
    padding: 44px 0 36px;
  }

  section[data-page-zone="hero"] h1 {
    font-size: 34px;
  }

  section[data-page-zone="hero"].hero--secondary h1 {
    font-size: 26px;
  }

  .hero-sub {
    font-size: var(--fs-body);
    margin: 16px 0 24px;
  }

  /* Hero 双栏移动端：文案在上、照片在下 */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }

  /* Trust */
  div[data-page-zone="trust"] {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
  }

  /* Capability */
  .cap-grid {
    grid-template-columns: 1fr;
  }

  section[data-page-zone="capability"] {
    padding: 56px 0;
  }

  .section-sub {
    margin-bottom: 28px;
  }

  /* FAQ */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-wrap {
    margin-top: 40px;
  }

  /* Evidence */
  .ev-grid {
    grid-template-columns: 1fr;
  }

  section[data-page-zone="evidence"] {
    padding: 56px 0;
  }

  /* Featured */
  .ft-grid {
    grid-template-columns: 1fr;
  }

  .ft-main {
    padding: 28px 24px;
  }

  .ft-main h3 {
    font-size: 20px;
  }

  .ft-wrap {
    margin-top: 36px;
  }

  /* CTA */
  .cta-row {
    flex-direction: column;
    text-align: center;
  }

  .cta-row h2 {
    font-size: 22px;
  }

  .cta-row p {
    max-width: 100%;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }

  /* Brand */
  .brand-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .brand-img {
    height: 220px;
  }

  .brand-txt h2 {
    font-size: 24px;
  }

  section[data-page-zone="brand"] {
    padding: 56px 0;
  }

  /* Contact */
  .c-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }

  section[data-page-zone="contact"] {
    padding: 56px 0 0;
  }

  .c-phone {
    font-size: 24px;
  }

  footer[data-page-zone="footer"] .wrap {
    flex-direction: column;
    text-align: center;
  }
}

/* ── 中等屏幕（平板） ── */
@media (min-width: 861px) and (max-width: 1080px) {
  .cap-grid,
  .ev-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .c-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-row {
    gap: 36px;
  }
}
