/* ============================================================
   styles.css — 30871秒查查官网样式
   配色体系：工业蓝 #1B3A57 + 安全黄 #FFD700
   ============================================================ */

:root {
  --blue-dark: #1B3A57;
  --blue-mid: #234E72;
  --blue-light: #2E6DA4;
  --yellow: #FFD700;
  --yellow-dark: #E6C200;
  --bg-page: #F4F7FA;
  --bg-white: #FFFFFF;
  --bg-soft: #F7FAFC;
  --text-primary: #18354F;
  --text-body: #3D5166;
  --text-muted: #6B7E91;
  --border: #D8E3EC;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 14px rgba(27,58,87,0.08);
  --shadow-md: 0 12px 36px rgba(27,58,87,0.12);
  --max-width: 1160px;
  --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 84px 0; }
.section-alt { background: var(--bg-white); }
.section-dark { background: var(--blue-dark); color: #fff; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 12px;
}
.section-dark .section-label { color: var(--yellow); }
.section-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 14px;
}
.section-dark .section-title { color: #fff; }
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 760px;
}
.section-dark .section-sub { color: rgba(255,255,255,0.72); }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(24, 53, 79, 0.94);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  min-height: var(--nav-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: #fff; }
.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-cta,
.nav-ghost,
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s ease;
}
.nav-cta,
.btn-primary {
  background: var(--yellow);
  color: var(--blue-dark);
}
.nav-ghost,
.btn-outline {
  border: 1px solid rgba(255,255,255,0.24);
  color: #fff;
}
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.nav-cta:hover,
.btn-primary:hover { background: var(--yellow-dark); }
.nav-ghost:hover,
.btn-secondary:hover,
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  display: block;
}

.hero {
  background: linear-gradient(160deg, #18354F 0%, #234E72 58%, #2E6DA4 100%);
  color: #fff;
  padding: 72px 0 88px;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 36px;
  align-items: stretch;
}
.hero-inner {
  max-width: 760px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.24);
  color: var(--yellow);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  margin-bottom: 22px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero-title-brand {
  display: block;
}
.hero-title-subline {
  display: block;
  margin-top: 10px;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.3;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.8);
  max-width: 700px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-fact-tag {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}
.hero-panel {
  display: grid;
  gap: 16px;
}
.hero-panel-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.hero-brand-visual {
  padding: 16px;
}
.hero-brand-image {
  width: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}
.hero-panel-card h2 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--yellow);
}
.hero-panel-card p,
.hero-panel-card a {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

.fact-section {
  background: var(--bg-white);
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.fact-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}
.fact-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.fact-item strong,
.fact-item strong a {
  color: var(--text-primary);
  font-size: 15px;
}

.trust-snapshot-grid,
.features-grid,
.screens-grid,
.report-grid,
.scenarios-grid,
.trust-detail-grid,
.contact-grid {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}
.trust-snapshot-grid,
.trust-detail-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.features-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.screens-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.report-grid {
  grid-template-columns: 1.2fr 0.8fr;
}
.scenarios-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.screen-card,
.report-card,
.contact-card,
.snapshot-card,
.trust-detail-card,
.feature-card,
.scenario-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.section-dark .scenario-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  box-shadow: none;
}
.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(35, 78, 114, 0.08);
  color: var(--blue-mid);
  margin-bottom: 16px;
}
.icon-badge.dark {
  background: rgba(255,255,255,0.1);
  color: var(--yellow);
}
.icon-badge svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-title,
.snapshot-card h3,
.scenario-title,
.trust-detail-card h3,
.contact-card h3,
.report-card h3,
.screen-meta strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.feature-desc,
.snapshot-card p,
.report-card p,
.trust-detail-card p,
.contact-card p,
.screen-meta p {
  font-size: 14px;
  color: var(--text-body);
}
.section-dark .scenario-title { color: #fff; }
.section-dark .scenario-desc { color: rgba(255,255,255,0.72); font-size: 14px; }

.screen-image,
.report-image,
.qrcode-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #EAF0F5;
}
.qrcode-image {
  max-width: 220px;
}
.screen-meta,
.report-meta {
  margin-top: 14px;
  color: var(--text-body);
  font-size: 14px;
}
.report-text-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.report-text-card p + p { margin-top: 10px; }

.steps-wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.step {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--yellow);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.step-desc { font-size: 14px; color: var(--text-body); }

.faq-list {
  margin-top: 36px;
  display: grid;
  gap: 14px;
}
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  color: var(--text-primary);
  font-weight: 700;
}
.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px 20px;
  color: var(--text-body);
  font-size: 14px;
}

.cta-section {
  padding: 84px 0 96px;
  background: linear-gradient(180deg, #F4F7FA 0%, #EAF1F7 100%);
}
.cta-layout {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 36px;
}
.contact-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.contact-card p + p { margin-top: 8px; }

.footer {
  background: #10283D;
  color: rgba(255,255,255,0.8);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}
.footer-text {
  font-size: 14px;
  margin-top: 6px;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-links a { color: rgba(255,255,255,0.78); }
.footer-meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .hero-layout,
  .report-grid,
  .features-grid,
  .scenarios-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-snapshot-grid,
  .trust-detail-grid,
  .contact-grid,
  .screens-grid,
  .steps-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .nav-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .nav-toggle { display: flex; }
  .nav-links,
  .nav-actions {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    background: #18354F;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px;
    gap: 12px;
  }
  .hero,
  .section,
  .cta-section { padding: 64px 0; }
  .hero-layout,
  .fact-grid,
  .features-grid,
  .screens-grid,
  .report-grid,
  .scenarios-grid,
  .trust-snapshot-grid,
  .trust-detail-grid,
  .contact-grid,
  .steps-wrap {
    grid-template-columns: 1fr;
  }
  .cta-layout { padding: 24px; }
}
