/* 发芽 · product-first layout */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --ink: #0f1720;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #1a73e8;
  --accent-hover: #1557b0;
  --accent-soft: #e8f0fe;
  --accent-ink: #174ea6;
  --green: #1e8e3e;
  --max: 1160px;
  --header-h: 70px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
  --shadow: 0 14px 40px rgba(15, 23, 32, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
.container { width: min(100% - 2.8rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(15,23,32,0.04);
}
.nav { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--ink); flex-shrink: 0; text-decoration: none !important;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: none;
  color: var(--ink);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; align-items: center; line-height: 1; }
.brand-text strong { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.22em; }

.menu-toggle {
  margin-left: auto; display: none; background: none; border: 0;
  width: 42px; height: 42px; cursor: pointer; padding: 0.4rem;
}
.menu-toggle span { display: block; height: 2px; margin: 7px 0; background: var(--ink); }

.nav-panel { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; }
.nav-center {
  display: flex; align-items: center; gap: 0.1rem;
  margin: 0 auto; padding: 0; list-style: none;
  flex: 1; justify-content: center;
}
.nav-center > li { position: relative; }
.nav-center > li > a,
.nav-group-label {
  display: block; padding: 0.5rem 0.8rem;
  color: var(--ink-soft); font-size: 0.92rem; font-weight: 500;
  border-radius: 0; text-decoration: none !important; cursor: pointer;
  background: none; border: 0; font-family: inherit; line-height: inherit;
}
.nav-center > li > a:hover,
.nav-center > li > a[aria-current="page"],
.nav-group:hover .nav-group-label,
.nav-group.is-open .nav-group-label {
  color: var(--accent-ink); background: var(--accent-soft);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 0.45rem 0 0;
  list-style: none;
  z-index: 80;
}
.nav-dropdown::before {
  content: "";
  display: block;
  height: 0.45rem;
}
.nav-dropdown-inner {
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
}
.nav-group:hover .nav-dropdown,
.nav-group.is-open .nav-dropdown,
.nav-group:focus-within .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 0.7rem 0.85rem; border-radius: 0;
  color: var(--ink-soft); font-size: 0.9rem; font-weight: 500;
  text-decoration: none !important;
}
.nav-dropdown a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-dropdown a small {
  display: block; margin-top: 0.15rem;
  color: var(--muted); font-size: 0.75rem; font-weight: 400;
}
.nav-actions { display: flex; align-items: center; flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0.7rem 1.35rem; border-radius: 0;
  font-size: 0.94rem; font-weight: 600; border: 1px solid transparent;
  text-decoration: none !important;
  transition: transform 0.2s var(--ease), background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: #fff !important;
  box-shadow: 0 8px 20px rgba(26,115,232,0.25);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff !important; }
.btn-ghost {
  background: #fff; color: var(--ink) !important; border-color: var(--line);
}
.btn-ghost:hover { background: var(--accent-soft); border-color: #c9daf8; color: var(--accent-ink) !important; }
.btn-lg { min-height: 52px; padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ========== Home hero: product first ========== */
.hero {
  padding: 3.2rem 0 2.5rem;
  background:
    radial-gradient(800px 360px at 85% 0%, rgba(26,115,232,0.1), transparent 55%),
    linear-gradient(180deg, #f7f9fc 0%, #ffffff 70%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-kicker {
  display: inline-block; margin: 0 0 0.85rem;
  color: var(--accent-ink); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
}
.brand-hero {
  margin: 0 0 0.75rem;
  font-size: clamp(2.6rem, 5.5vw, 3.6rem);
  font-weight: 700; letter-spacing: 0.18em; line-height: 1;
}
.brand-hero span {
  background: linear-gradient(100deg, var(--accent), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 700; line-height: 1.3; letter-spacing: -0.02em;
}
.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--ink-soft); font-size: 1.05rem; max-width: 34rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.4rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.chip {
  display: inline-flex; align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 0;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem; font-weight: 500;
}

.hero-products {
  display: grid; gap: 1rem;
}
.product-tile {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 8px 28px rgba(15,23,32,0.05);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.product-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}
.product-logo {
  display: grid; place-items: center;
  min-height: 130px;
  background: transparent;
  border-right: 1px solid var(--line);
}
.product-logo img,
.product-logo svg {
  width: 48px; height: 48px; display: block;
}
.product-logo.apple img,
.product-logo.apple svg { width: 42px; height: 42px; }
.product-tile-body { padding: 1.15rem 1.2rem; display: flex; flex-direction: column; justify-content: center; }
.product-tile-body .tag {
  color: var(--accent-ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 0.35rem;
}
.product-tile-body h2 {
  margin: 0 0 0.3rem; font-size: 1.2rem; font-weight: 700; color: var(--ink);
}
.product-tile-body p { margin: 0 0 0.55rem; color: var(--muted); font-size: 0.9rem; }
.product-tile-body .go { color: var(--accent); font-weight: 600; font-size: 0.88rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-muted { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 2rem; }
.section-kicker {
  display: inline-block; margin-bottom: 0.5rem;
  color: var(--accent-ink); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
}
.section-head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 700; letter-spacing: -0.02em;
}
.section-lead { margin: 0; color: var(--muted); max-width: 38rem; font-size: 1.02rem; }

.core-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}
.core-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.core-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}
.core-visual {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(145deg, #f3f6fb 0%, #e8eef6 100%);
}
.core-visual::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(to top, rgba(15,23,32,0.18), transparent);
  pointer-events: none;
  z-index: 1;
}
.core-visual img.core-bg {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  transform: scale(1.02);
  transition: transform 0.55s var(--ease);
}
.core-card:hover .core-visual img.core-bg { transform: scale(1.07); }
.core-visual-logo {
  position: absolute;
  left: 16px; bottom: 16px;
  width: auto; height: auto;
  display: grid; place-items: center;
  background: none;
  border: 0;
  box-shadow: none;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(15,23,32,0.18));
}
.core-visual-logo img {
  width: 28px; height: 28px;
}
.core-card.is-apple .core-visual-logo img {
  width: 24px; height: 24px;
  filter: none;
}
.core-card-body { padding: 1.45rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.core-card h3 { margin: 0 0 0.45rem; font-size: 1.35rem; font-weight: 700; }
.core-card p { margin: 0 0 1rem; color: var(--muted); flex: 1; }
.core-card .go {
  align-self: flex-start;
  color: var(--accent); font-weight: 600;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.more-item {
  padding: 1.25rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.more-item:hover {
  border-color: #c9daf8;
  box-shadow: 0 8px 24px rgba(15,23,32,0.05);
  color: inherit;
}
.more-item strong { display: block; margin-bottom: 0.3rem; font-size: 1rem; color: var(--ink); }
.more-item span { color: var(--muted); font-size: 0.88rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.step {
  padding: 1.5rem 1.35rem;
  border-radius: 0;
  background: #fff;
  border: 1px solid var(--line);
}
.step-index {
  display: inline-block; margin-bottom: 0.75rem;
  color: var(--accent); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em;
}
.step strong { display: block; margin-bottom: 0.4rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); }

.faq-list { max-width: 780px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 1.05rem;
  list-style: none; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: "+"; display: inline-block; width: 1.45rem; color: var(--accent);
}
.faq-list details[open] summary::before { content: "–"; }
.faq-list details p { margin: 0.65rem 0 0 1.45rem; color: var(--muted); }

/* ========== Inner pages ========== */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex; align-items: flex-end;
  padding: 4.5rem 0 2.4rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% center;
  filter: saturate(1.05) contrast(1.02);
}
.page-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.82) 34%, rgba(255,255,255,0.38) 66%, rgba(255,255,255,0.12) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; margin-bottom: 0.55rem;
  color: var(--accent-ink); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
}
.page-hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  max-width: 12ch;
}
.page-lead { margin: 0; max-width: 38rem; color: var(--ink-soft); font-size: 1.05rem; }

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.5rem;
  align-items: start;
  padding: 2.8rem 0 4rem;
}
.prose { max-width: none; padding: 0; }
.prose h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.28rem; font-weight: 700;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.15rem; }

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin: 1.2rem 0 1.6rem;
}
.option-card {
  padding: 1.2rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-soft);
}
.option-card strong {
  display: block; margin-bottom: 0.35rem;
  font-size: 1.02rem; color: var(--ink);
}
.option-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.option-card a { color: inherit; text-decoration: none !important; }
.option-card a:hover { color: var(--accent); }
.prose a { color: var(--accent); }

.check-list {
  margin: 1rem 0 1.5rem; padding: 0; list-style: none;
}
.check-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 1rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
}

.side-rail {
  position: sticky; top: calc(var(--header-h) + 1rem);
  padding: 1.35rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15,23,32,0.04);
}
.side-rail h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem; font-weight: 700;
}
.side-rail p {
  margin: 0 0 1rem;
  color: var(--muted); font-size: 0.9rem;
}
.side-rail .rail-links {
  margin: 1.1rem 0 0; padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.side-rail .rail-links li { margin: 0.4rem 0; }
.side-rail .rail-links a {
  color: var(--ink-soft); font-size: 0.9rem; text-decoration: none !important;
}
.side-rail .rail-links a:hover { color: var(--accent); }

.contact-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-soft);
}
.contact-panel h2 { margin: 0 0 0.75rem; font-size: 1.35rem; }
.contact-panel ul { margin: 0 0 1.4rem; padding-left: 1.15rem; color: var(--ink-soft); }

/* Footer */
.site-footer {
  margin-top: 1rem;
  background: var(--bg-soft);
  color: var(--muted);
  padding: 2.8rem 0 2rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem 1.4rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}
.site-footer .brand { color: var(--ink); }
.footer-blurb { margin: 0.9rem 0 0; max-width: 26rem; font-size: 0.92rem; }
.site-footer h3 {
  margin: 0 0 0.75rem; color: var(--ink);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.4rem 0; }
.site-footer a { color: var(--muted); text-decoration: none !important; font-size: 0.92rem; }
.site-footer a:hover { color: var(--accent); }
.footer-note { padding-top: 1.25rem; font-size: 0.78rem; line-height: 1.65; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav-panel {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 0.85rem 1.2rem 1.2rem; box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch; gap: 0.75rem;
  }
  .nav-panel.is-open { display: flex; }
  .nav-center, .nav-actions {
    display: flex; flex-direction: column; align-items: stretch;
    margin: 0; padding: 0;
  }
  .nav-dropdown {
    position: static; display: block; padding: 0 0 0 0.35rem;
  }
  .nav-dropdown::before { display: none; }
  .nav-dropdown-inner {
    box-shadow: none; border: 0; padding: 0; background: transparent;
  }
  .nav-group-label {
    display: block; width: 100%; text-align: left;
    font-size: 0.8rem; color: var(--muted); padding: 0.45rem 0.8rem 0.2rem;
  }
  .hero-grid, .core-grid, .page-shell, .option-grid, .footer-grid { grid-template-columns: 1fr; }
  .more-grid, .steps { grid-template-columns: 1fr 1fr; }
  .product-tile { grid-template-columns: 96px 1fr; }
  .product-logo { min-height: 110px; }
  .product-logo img, .product-logo svg { width: 44px; height: 44px; }
  .side-rail { position: static; }
  .page-hero { min-height: 220px; padding-top: 3.2rem; }
  .core-visual { height: 200px; }
}

@media (max-width: 640px) {
  .more-grid, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 2.2rem; }
  .product-tile { grid-template-columns: 1fr; }
  .product-logo { min-height: 88px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
