@import url("tokens.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--flame); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 247, 235, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 1;
  min-width: 0;
}
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand-text strong { display: block; font-size: 17px; letter-spacing: 0.02em; }
.brand-text span { font-size: 11px; color: var(--muted); }
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  flex-wrap: wrap;
}
.nav-links a { color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--flame); }
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.25;
  min-height: 40px;
}
.btn:hover { text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.btn-primary {
  background: linear-gradient(135deg, var(--flame), var(--amber));
  color: #fff;
  box-shadow: 0 8px 24px rgba(230, 74, 25, 0.25);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 160, 80, 0.22), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flame);
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  margin: 12px 0 16px;
  font-weight: 700;
}
.hero-lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 520px;
}
.hero-quote {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: var(--muted);
}
.hero-ctas { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  text-align: center;
}
.hero-logo-large {
  width: min(280px, 80%);
  filter: drop-shadow(0 20px 40px rgba(230, 74, 25, 0.15));
}
.hero-tagline {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.2em;
}

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--white); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.section-eyebrow {
  font-size: 12px;
  color: var(--flame);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 8px 0 12px;
}
.section-head p { color: var(--muted); font-size: 16px; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  opacity: 0.65;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 24px 0 0;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .num {
  font-size: 12px;
  color: var(--flame);
  font-weight: 700;
  margin-bottom: 8px;
}

.platform-diagram {
  background: linear-gradient(135deg, var(--white), var(--cream-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.platform-layers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.layer {
  text-align: center;
  padding: 16px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}
.layer strong { display: block; color: var(--flame); font-size: 13px; }
.layer span { font-size: 12px; color: var(--muted); }

.journey {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.journey-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  position: relative;
}
.journey-step .idx {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--flame);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.journey-step h4 { margin: 0 0 6px; font-size: 14px; }
.journey-step p { margin: 0; font-size: 11px; color: var(--muted); }

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-copy h3 { font-size: 24px; margin: 0 0 10px; }
.feature-copy p { color: var(--muted); font-size: 15px; }
.feature-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: 14px;
  color: var(--ink-soft);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flame);
}

.xfi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.xfi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  text-align: center;
}
.xfi-card .pct { font-size: 28px; color: var(--flame); font-weight: 700; }
.xfi-card h4 { margin: 8px 0 4px; font-size: 15px; }
.xfi-card p { margin: 0; font-size: 12px; color: var(--muted); }

.honesty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.honesty-col {
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--line);
}
.honesty-col.yes { background: rgba(123, 174, 127, 0.08); }
.honesty-col.no { background: rgba(122, 111, 98, 0.08); }
.honesty-col h3 { margin-top: 0; }
.honesty-col ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-soft); }

.models {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.model-chip {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
}
.model-chip.hot {
  border-color: var(--flame);
  color: var(--flame);
  font-weight: 600;
}

.cases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.case-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
}
.case-card .tag { font-size: 11px; color: var(--flame); font-weight: 700; }
.case-card h4 { margin: 6px 0; }
.case-card p { margin: 0; font-size: 13px; color: var(--muted); }

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

.footer-cta {
  background: linear-gradient(135deg, var(--flame-deep), var(--flame));
  color: #fff;
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius-lg);
}
.footer-cta h2 { margin: 0 0 12px; font-size: 28px; }
.footer-cta p { opacity: 0.9; margin-bottom: 24px; }
.footer-cta .btn-primary { background: #fff; color: var(--flame); }

.site-footer {
  padding: 32px 0 48px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero-grid, .feature-block, .cards-3, .platform-layers, .journey, .xfi-grid, .honesty-grid, .cases {
    grid-template-columns: 1fr;
  }
  .feature-block.reverse { direction: ltr; }
  .nav-links { display: none; }
  .container {
    width: min(var(--max), calc(100% - 32px));
  }
}

/* 顶栏：避免「登录」等按钮被 flex 挤压变形 */
@media (max-width: 768px) {
  .nav-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 0;
  }
  .brand img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .brand-text strong {
    font-size: 16px;
  }
  .brand-text span {
    display: none;
  }
  .nav-actions {
    margin-left: auto;
  }
  .nav-actions .btn {
    padding: 9px 16px;
    font-size: 13px;
    min-height: 38px;
  }
}

@media (max-width: 520px) {
  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .brand {
    flex-shrink: 0;
  }
  .brand-text span {
    display: block;
    font-size: 10px;
  }
  .nav-actions {
    margin-left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
  }
  .nav-actions .btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    width: 100%;
  }
}

@media print {
  .site-nav { position: static; }
  section { break-inside: avoid; page-break-inside: avoid; }
}
