:root {
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --line: #d5dde8;
  --text: #182535;
  --muted: #657485;
  --accent: #e31b23;
  --accent-dark: #b9151c;
  --steel: #6d8099;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f8fa 0%, var(--bg) 100%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.contain-image { object-fit: contain; object-position: center; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.section-heading { max-width: 760px; margin-bottom: 26px; }
.section-heading h2, .hero h1, .cta-inner h2 { margin: 0 0 14px; line-height: 1.14; }
.section-heading p, .hero p, .faq-answer p, .compare-copy p { color: var(--muted); line-height: 1.8; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand img { height: 34px; object-fit: contain; }
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--accent); }
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
}

.hero, .device-entry, .precheck, .compare, .faq-section, .related-searches, .cta-band { padding: 72px 0; }
.hero-grid, .compare-grid, .cta-inner { display: grid; gap: 28px; align-items: center; }
.hero-grid { grid-template-columns: 1fr 0.95fr; }
.hero {
  background:
    radial-gradient(circle at top right, rgba(108, 128, 153, 0.18), transparent 28%),
    linear-gradient(180deg, #f8f8f9 0%, var(--bg) 100%);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 700;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 16px 34px rgba(227, 27, 35, 0.18); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid #c6cfdb; }

.hero-visual {
  background: linear-gradient(135deg, #dde5ef 0%, #f7f9fc 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  overflow: hidden;
}
.device-stack {
  position: relative;
  min-height: 360px;
}
.app-shot {
  position: absolute;
  left: 16px;
  bottom: 0;
  max-height: 300px;
  z-index: 2;
}
.desktop-shot {
  position: absolute;
  right: 0;
  top: 12px;
  max-height: 260px;
  width: 74%;
}

.entry-cards, .check-grid { display: grid; gap: 18px; }
.entry-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entry-cards article,
.check-grid article,
.compare-panel,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.entry-cards article { padding: 24px; }

.check-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.check-grid article { padding: 22px; }
.check-grid span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(227, 27, 35, 0.1);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

.compare-grid { grid-template-columns: 1fr 0.82fr; }
.compare-panel { padding: 26px; display: grid; gap: 16px; }
.compare-panel div + div { padding-top: 16px; border-top: 1px solid var(--line); }
.compare-panel strong { display: block; margin-bottom: 8px; color: var(--steel); }

.faq-list { display: grid; gap: 16px; }
.faq-item { overflow: hidden; }
.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 700;
  padding: 20px 22px;
  cursor: pointer;
}
.faq-answer { display: none; padding: 0 22px 20px; }
.faq-item.open .faq-answer { display: block; }

.related-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 24px;
  align-items: start;
}
.related-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.related-columns span {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  font-weight: 600;
}

.cta-band { padding-top: 0; }
.cta-inner {
  grid-template-columns: 1fr auto;
  background: linear-gradient(135deg, #1f2833, #596d88);
  color: #fff;
  border-radius: 28px;
  padding: 34px;
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
  }
  .nav.open { display: flex; }
  .hero-grid, .entry-cards, .check-grid, .compare-grid, .related-grid, .related-columns, .cta-inner { grid-template-columns: 1fr; }
  .device-stack { min-height: 320px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1160px); }
  .hero, .device-entry, .precheck, .compare, .faq-section, .related-searches, .cta-band { padding: 56px 0; }
  .hero-visual, .entry-cards article, .check-grid article, .compare-panel, .faq-item, .cta-inner { border-radius: 18px; }
  .device-stack { min-height: 270px; }
  .app-shot { left: 0; max-height: 230px; }
  .desktop-shot { width: 84%; top: 26px; }
}

.site-logo,
.logo img,
.brand img,
.header-logo img,
.nav-logo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-height: 40px !important;
  max-width: 180px !important;
  object-fit: contain !important;
}

.brand,
.logo,
.header-logo,
.nav-logo {
  overflow: visible !important;
}

.site-header .brand,
header .brand,
header .logo,
header .header-logo,
header .nav-logo {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
