:root {
  --bg: #f7f1e8;
  --bg-deep: #0f1730;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --text: #1f2430;
  --muted: #5d6474;
  --primary: #ff6f61;
  --primary-strong: #ff4f63;
  --secondary: #0f8b8d;
  --accent: #f9b233;
  --accent-soft: #fff3cf;
  --line: rgba(27, 33, 53, 0.12);
  --shadow: 0 18px 50px rgba(27, 33, 53, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-width: 1180px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 111, 97, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 139, 141, 0.12), transparent 24%),
    linear-gradient(180deg, #fff7ef 0%, #f6f2eb 38%, #eef2f7 100%);
  min-height: 100vh;
}

body.theme-home {
  --hero-bg: linear-gradient(135deg, rgba(15, 23, 48, 0.98), rgba(39, 50, 97, 0.96) 54%, rgba(255, 111, 97, 0.95));
  --hero-text: #fffdf7;
}

body.theme-guide {
  --hero-bg: linear-gradient(135deg, rgba(255, 246, 232, 0.98), rgba(255, 255, 255, 0.96) 56%, rgba(249, 178, 51, 0.18));
  --hero-text: #1f2430;
}

body.theme-faq {
  --hero-bg: linear-gradient(135deg, rgba(16, 25, 54, 0.98), rgba(17, 117, 133, 0.95) 54%, rgba(255, 111, 97, 0.88));
  --hero-text: #ffffff;
}

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

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 999px;
  background: #111;
  color: #fff;
}

.skip-link:focus {
  left: 12px;
}

.site-header,
.site-footer,
.section,
.hero {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-top: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(20, 24, 35, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(255, 111, 97, 0.28);
}

.brand span {
  font-size: 1.05rem;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

.nav-toggle i {
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 999px;
  display: inline-block;
}

.nav-toggle i::before,
.nav-toggle i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: inherit;
}

.nav-toggle i::before {
  top: -6px;
}

.nav-toggle i::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(15, 139, 141, 0.08);
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-1px);
}

.button {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 16px 28px rgba(255, 111, 97, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border-color: rgba(15, 23, 48, 0.08);
}

.button-ghost {
  background: transparent;
  color: var(--hero-text);
  border-color: rgba(255, 255, 255, 0.26);
}

.hero {
  margin-top: 18px;
  padding: 34px;
  border-radius: 36px;
  background: var(--hero-bg);
  color: var(--hero-text);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.hero::before {
  width: 220px;
  height: 220px;
  right: -60px;
  top: -40px;
  background: rgba(255, 255, 255, 0.12);
}

.hero::after {
  width: 180px;
  height: 180px;
  right: 40px;
  bottom: -80px;
  background: rgba(249, 178, 51, 0.18);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  max-width: 54ch;
}

body.theme-guide .hero p,
body.theme-guide .hero .eyebrow,
body.theme-guide .hero .hero-note,
body.theme-guide .hero .stat-value,
body.theme-guide .hero .stat-label {
  color: #24304d;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-note {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.note-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.hero-visual {
  display: grid;
  gap: 14px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.feature-card,
.content-card,
.download-card,
.info-card,
.faq-item,
.quote-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px;
}

.stat-value {
  display: block;
  margin-bottom: 8px;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
}

.stat-label {
  color: var(--muted);
  line-height: 1.6;
}

.preview-panel {
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 40px rgba(11, 16, 34, 0.18);
}

.preview-panel .panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 800;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-shot {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(16, 23, 42, 0.08);
}

.preview-shot img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
}

.preview-shot figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.section {
  margin-top: 24px;
  padding: 8px 0 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2,
.section-head h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid,
.content-grid,
.link-grid,
.quote-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.content-card,
.download-card,
.info-card,
.faq-item,
.quote-card {
  padding: 20px;
}

.feature-icon,
.content-icon,
.info-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255, 111, 97, 0.16), rgba(15, 139, 141, 0.16));
  color: var(--primary-strong);
  font-size: 1.15rem;
  font-weight: 800;
}

.feature-card h3,
.content-card h3,
.download-card h3,
.faq-item summary,
.quote-card h3,
.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.feature-card p,
.content-card p,
.download-card p,
.info-card p,
.quote-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 139, 141, 0.08);
  color: #0b5c5d;
  font-size: 0.86rem;
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery figure {
  margin: 0;
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(16, 23, 42, 0.08);
  box-shadow: var(--shadow);
}

.gallery img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.gallery figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  line-height: 1.6;
}

.content-grid {
  grid-template-columns: 1fr 1fr;
}

.link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 243, 207, 0.66));
  border: 1px solid rgba(255, 111, 97, 0.1);
  box-shadow: var(--shadow);
}

.link-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.link-card span {
  color: var(--muted);
  line-height: 1.6;
}

.link-arrow {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.2rem;
}

.quote-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-card {
  position: relative;
}

.quote-card::before {
  content: "“";
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(255, 111, 97, 0.14);
  font-family: serif;
}

.quote-card .quote-source {
  margin-top: 14px;
  color: #7a8090;
  font-size: 0.9rem;
  font-weight: 700;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 48, 0.96), rgba(255, 111, 97, 0.92));
  color: #fff;
}

.download-card p,
.download-card .mini-note {
  color: rgba(255, 255, 255, 0.82);
}

.download-card .button-secondary {
  background: rgba(255, 255, 255, 0.94);
}

.mini-note {
  margin-top: 10px;
  font-size: 0.92rem;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 111, 97, 0.12);
  color: var(--primary-strong);
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-item[open] summary::after {
  content: "–";
  transform: rotate(180deg);
  background: rgba(15, 139, 141, 0.12);
}

.faq-item .faq-content {
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.8;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(16, 23, 42, 0.08);
  box-shadow: var(--shadow);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 900;
}

.step-card h3 {
  margin: 0 0 10px;
}

.callout {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(15, 139, 141, 0.08);
  border: 1px solid rgba(15, 139, 141, 0.12);
  color: #134f55;
  line-height: 1.8;
}

.site-footer {
  margin-top: 28px;
  padding: 22px 0 36px;
  color: var(--muted);
}

.footer-card {
  padding: 20px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 23, 42, 0.08);
  box-shadow: var(--shadow);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.disclaimer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 23, 42, 0.08);
  line-height: 1.8;
}

.jsonld {
  display: none;
}

@media (max-width: 1100px) {
  .hero-grid,
  .feature-grid,
  .gallery,
  .quote-grid,
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: min(var(--content-width), calc(100% - 20px));
    padding: 12px 14px;
    border-radius: 24px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 12px;
    top: 70px;
    width: min(260px, calc(100vw - 28px));
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(16, 23, 42, 0.08);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    background: rgba(15, 139, 141, 0.05);
  }

  .hero,
  .section {
    width: min(var(--content-width), calc(100% - 20px));
  }

  .hero {
    padding: 22px 18px;
    border-radius: 28px;
  }

  .hero-grid,
  .feature-grid,
  .gallery,
  .quote-grid,
  .step-grid,
  .stats-row,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .download-card,
  .footer-top,
  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .button,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }

  .preview-shot img {
    max-width: 100%;
  }
}

