:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --line: #d9dee8;
  --text: #14305f;
  --muted: #61708a;
  --accent: #e31b23;
  --soft: #eef2f8;
  --navy: #10213d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--navy);
  background: linear-gradient(180deg, #f7f8fb 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(1140px, 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, .path-copy p, .hot-copy p { color: var(--muted); line-height: 1.8; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 251, 0.96);
  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); }
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  border-radius: 999px;
  padding: 10px 16px;
}

.hero, .library, .path, .hot, .faq-section, .related-searches, .cta-band { padding: 72px 0; }
.hero-grid, .path-grid, .hot-grid, .cta-inner { display: grid; gap: 28px; align-items: center; }
.hero-grid { grid-template-columns: 1fr 0.9fr; }
.hero-media img {
  max-height: 360px;
  margin: 0 auto;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 22px 50px rgba(16, 33, 61, 0.08);
}
.search-visual {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.search-visual span { color: var(--muted); }

.library-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.library-grid article,
.path-list article,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.library-grid article {
  padding: 22px 18px;
  text-align: center;
}
.library-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(227, 27, 35, 0.08);
  color: var(--accent);
  font-weight: 700;
}

.path-grid { grid-template-columns: 0.9fr 1.1fr; }
.path-list { display: grid; gap: 16px; }
.path-list article {
  padding: 18px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
}
.path-list span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.hot-grid { grid-template-columns: 1fr 0.84fr; }
.hot-grid img {
  max-height: 260px;
  margin: 0 auto;
  padding: 18px;
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.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;
  color: var(--navy);
  padding: 20px 22px;
  cursor: pointer;
}
.faq-answer { display: none; padding: 0 22px 20px; }
.faq-item.open .faq-answer { display: block; }

.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pill-cloud span {
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}

.cta-band { padding-top: 0; }
.cta-inner {
  grid-template-columns: 1fr auto;
  background: linear-gradient(135deg, #ffffff, #f1f5fb);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

@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, .library-grid, .path-grid, .hot-grid, .cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1140px); }
  .hero, .library, .path, .hot, .faq-section, .related-searches, .cta-band { padding: 56px 0; }
  .hero-media img, .library-grid article, .path-list article, .hot-grid img, .faq-item, .cta-inner { border-radius: 18px; }
}

.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;
}
