:root {
  --coral: #ff6b6b;
  --sunset: #ff8e53;
  --peach: #ffb88c;
  --gold: #ffd166;
  --cream: #fff8f0;
  --ink: #2d1b1b;
  --ink-soft: #5c4040;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 48px rgba(255, 107, 107, 0.18);
  --radius: 1.25rem;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "DM Serif Display", "Noto Serif SC", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sunset); text-decoration: underline; }

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 107, 107, 0.15);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}
.brand b { color: var(--coral); font-weight: 700; }
.brand img { border-radius: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--coral), var(--sunset));
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

/* ── Ads (from ads.html) ── */
.ads-top-bar {
  padding: 0.6rem 0;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 142, 83, 0.2);
}
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 10px 0;
  gap: 0.5rem;
}
#ads > div,
#ads .ads-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}
#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}
#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}
#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}
#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
.applist-title {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ── Hero (full-width sunset) ── */
.hero-sunset {
  width: 100%;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 45%, #ffd166 100%);
  color: var(--white);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-sunset::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 50%);
  pointer-events: none;
}
.hero-sunset .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.hero-sunset h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin: 0 0 1.25rem;
  font-weight: 400;
}
.hero-sunset .lead {
  font-size: 1.05rem;
  opacity: 0.95;
  margin: 0;
}
.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 4px solid rgba(255, 255, 255, 0.35);
}

.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
}
.wave-divider svg { display: block; width: 100%; height: 48px; }

/* ── Partner links ── */
.partner-strip {
  width: 100%;
  background: var(--white);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 107, 107, 0.12);
}
.partner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.partner-row a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(255, 209, 102, 0.15));
  border: 1px solid rgba(255, 107, 107, 0.25);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.partner-row a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.15);
  color: var(--coral);
  text-decoration: none;
}

/* ── Anchor pills ── */
.anchor-pills {
  width: 100%;
  background: var(--cream);
  padding: 1.25rem 0;
  overflow-x: auto;
}
.pill-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
}
.pill-scroll a {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  background: var(--white);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  box-shadow: 0 2px 8px rgba(45, 27, 27, 0.06);
  text-decoration: none;
}
.pill-scroll a:hover {
  background: linear-gradient(135deg, var(--coral), var(--sunset));
  color: var(--white);
}

/* ── Full-width sections ── */
.section-band {
  width: 100%;
  padding: 3.5rem 0;
}
.section-band.cream { background: var(--cream); }
.section-band.white { background: var(--white); }
.section-band.peach {
  background: linear-gradient(180deg, #fff5eb 0%, #ffe8d6 100%);
}
.section-band.sunset-soft {
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.06) 0%, rgba(255, 209, 102, 0.1) 100%);
}

.section-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--ink);
  margin: 0 0 1.25rem;
  font-weight: 400;
}
.prose { max-width: 72ch; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }

.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }
.split-row img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Feature cards grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(255, 107, 107, 0.1);
  transition: transform 0.25s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card img { width: 100%; height: 160px; object-fit: cover; }
.feature-card .card-body { padding: 1.15rem 1.25rem 1.35rem; }
.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ── FAQ accordion style ── */
.faq-list { margin-top: 1.5rem; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 16px rgba(45, 27, 27, 0.05);
}
.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--coral);
}
.faq-item p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ── Page hero (inner pages) ── */
.page-hero {
  width: 100%;
  background: linear-gradient(135deg, var(--coral), var(--sunset));
  color: var(--white);
  padding: 2.5rem 0;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.5rem 0 0;
  font-weight: 400;
}
.breadcrumb { font-size: 0.88rem; opacity: 0.9; }
.breadcrumb a { color: var(--white); }

/* ── Error pages ── */
.error-wrap {
  text-align: center;
  padding: 4rem 0 5rem;
}
.error-wrap .code {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--coral);
  margin: 0;
  line-height: 1;
}
.error-wrap h1 { margin: 0.5rem 0 1rem; }

/* ── Footer ── */
.site-footer {
  width: 100%;
  background: linear-gradient(135deg, #3d2020 0%, #2d1b1b 100%);
  color: rgba(255, 248, 240, 0.75);
  padding: 2rem 0;
  font-size: 0.88rem;
  text-align: center;
}
.site-footer a { color: var(--peach); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}
.footer-links a { text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 107, 107, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }
  .site-nav.is-open { max-height: 280px; }
  .site-nav ul {
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
  }
  .hero-sunset .container,
  .split-row { grid-template-columns: 1fr; }
  .split-row.reverse { direction: ltr; }
  .header-row { position: relative; }
  .ads-top-bar .container { width: 100%; padding-inline: 0.75rem; }
}
