/* 页面样式 */
.wrap { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: 20px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  display: flex; align-items: center; gap: 28px;
  height: var(--nav-h);
  max-width: var(--content); margin-inline: auto; padding-inline: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand em { font-style: normal; color: var(--primary-dark); margin-left: 2px; font-size: .86rem; font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 26px; margin-inline: auto; }
.main-nav a { color: var(--ink-muted); font-size: .95rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary-dark); border-bottom-color: var(--primary); }

.nav-download {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  padding: 9px 18px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: .93rem;
}
.nav-download:hover { background: var(--primary-dark); color: #fff; }

.nav-menu {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.nav-menu span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-menu span::before, .nav-menu span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-menu span::before { top: -6px; }
.nav-menu span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 88px; background: linear-gradient(180deg, var(--primary-soft), #fff 78%); }
.hero-side { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero-side > * { min-width: 0; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--primary-dark); background: #fff; border: 1px solid #cfe8f5;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy h1 em { font-style: normal; color: var(--primary-dark); }
.hero-lede { color: var(--ink-muted); font-size: 1.05rem; max-width: 560px; margin-bottom: 28px; }

.download-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.platform {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: #fff;
  padding: 12px 22px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: .98rem; border: 1px solid var(--primary);
}
.platform:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.platform.is-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.platform.is-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.platform .os { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.platform .arrow { font-size: .95rem; }

.text-link { font-weight: 600; font-size: .95rem; }

.hero-photo {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 24px 60px -32px rgba(18, 34, 46, .45);
  background: #fff; margin-inline: auto; width: 100%;
}
.hero-photo img { width: 100%; margin-inline: auto; }

/* ---------- Section common ---------- */
.section { padding: 92px 0; }
.section.is-alt { background: var(--bg-alt); }
.section-intro { max-width: 720px; margin-bottom: 44px; }
.section-intro.is-center { margin-inline: auto; text-align: center; }
.kicker {
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary-dark); margin-bottom: 12px;
}
.section-intro h2 { margin-bottom: 14px; }
.section-intro p { color: var(--ink-muted); }

/* ---------- Feature grid ---------- */
.feature-guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-guide article {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 26px 24px;
}
.guide-line { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.guide-icon {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary-dark);
  border-radius: var(--radius-icon);
}
.feature-guide p { color: var(--ink-muted); font-size: .94rem; }

/* ---------- Story ---------- */
.story { padding: 84px 0; background: var(--bg-alt); }
.story-head, .story-body { max-width: 760px; margin-inline: auto; }
.story-head h2 { margin: 10px 0 20px; }
.story-body p { color: var(--ink-muted); margin-bottom: 16px; }
.story-body p:last-of-type { margin-bottom: 18px; }

/* ---------- Proof ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.proof-grid div {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 22px; text-align: center;
}
.proof-grid strong { display: block; font-size: 1.6rem; color: var(--primary-dark); line-height: 1.2; }
.proof-grid span { font-size: .9rem; color: var(--ink-muted); }

/* ---------- Download CTA ---------- */
.cta { padding: 88px 0; }
.cta-box {
  background: linear-gradient(135deg, #229ed9, #166b9c);
  color: #fff; border-radius: 20px; padding: 56px 40px; text-align: center;
}
.cta-box h2 { color: #fff; margin-bottom: 12px; }
.cta-box p { color: rgba(255, 255, 255, .88); margin-bottom: 28px; }
.cta-box .download-actions { justify-content: center; }
.cta-box .platform { background: #fff; color: var(--primary-dark); border-color: #fff; }
.cta-box .platform:hover { background: #eaf6fc; color: var(--primary-dark); }
.cta-box .platform.is-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-box .platform.is-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- Page head (sub pages) ---------- */
.page-head { padding: 64px 0 48px; background: linear-gradient(180deg, var(--primary-soft), #fff); }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.page-head p { color: var(--ink-muted); max-width: 720px; }
.crumb { font-size: .85rem; color: var(--ink-muted); margin-bottom: 16px; }
.crumb a { color: var(--ink-muted); }
.crumb a:hover { color: var(--primary-dark); }

/* ---------- Content blocks ---------- */
.prose { max-width: 820px; }
.prose h2 { margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 10px; }
.prose p { color: var(--ink-muted); margin-bottom: 14px; }
.prose ul { margin: 0 0 18px; padding-left: 0; }
.prose ul li { color: var(--ink-muted); padding-left: 22px; position: relative; margin-bottom: 8px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 34px; }
.card-grid article { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; background: #fff; }
.card-grid article p { color: var(--ink-muted); font-size: .95rem; margin-top: 10px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin: 26px 0; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }
td { color: var(--ink-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 20px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary-dark); font-weight: 700; font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-muted); padding-bottom: 18px; font-size: .95rem; }

/* ---------- News 列表 / 首页资讯 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.news-card:hover { border-color: #b9dcef; box-shadow: 0 14px 34px -26px rgba(18, 34, 46, .5); }
.news-cat { font-size: .76rem; font-weight: 700; letter-spacing: .08em; color: var(--primary-dark); }
.news-card h3 { margin: 10px 0 10px; font-size: 1.04rem; line-height: 1.5; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--primary-dark); }
.news-card p { color: var(--ink-muted); font-size: .92rem; flex: 1; }
.news-card time { display: block; margin-top: 16px; font-size: .8rem; color: #8a97a4; }
.news-more { text-align: center; margin-top: 34px; }

/* ---------- 文章页 ---------- */
.post-head { padding: 52px 0 40px; background: linear-gradient(180deg, var(--primary-soft), #fff); }
.post-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 14px 0 0; max-width: 860px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .85rem; color: var(--ink-muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-lead { margin-top: 18px; max-width: 780px; color: #3d4b57; font-size: 1.02rem; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; align-items: start; }
.post-body { max-width: 820px; }
.post-body h2 { margin: 40px 0 14px; font-size: 1.45rem; scroll-margin-top: 88px; }
.post-body h3 { margin: 26px 0 10px; font-size: 1.1rem; }
.post-body p { color: #46535f; margin-bottom: 16px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 0; }
.post-body ul li, .post-body ol li { color: #46535f; padding-left: 22px; position: relative; margin-bottom: 8px; }
.post-body ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.post-body ol { counter-reset: item; }
.post-body ol li { counter-increment: item; }
.post-body ol li::before { content: counter(item) "."; position: absolute; left: 0; color: var(--primary-dark); font-weight: 700; }

.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 28px 0; }
.toc strong { display: block; font-size: .9rem; margin-bottom: 10px; color: var(--ink); }
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.toc li { counter-increment: toc; padding: 0; margin: 0 0 8px; }
.toc li::before { content: none; }
.toc a { color: var(--ink-muted); font-size: .92rem; }
.toc a::before { content: counter(toc) ". "; color: var(--primary-dark); font-weight: 600; }
.toc a:hover { color: var(--primary-dark); }

.callout {
  border-left: 3px solid var(--primary); background: var(--primary-soft);
  border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 24px 0;
  color: #2a3b47; font-size: .95rem;
}
.post-side { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px; background: #fff; }
.post-side h2 { font-size: 1rem; margin-bottom: 14px; }
.post-side ul li { margin-bottom: 12px; font-size: .9rem; line-height: 1.5; }
.post-side ul li a { color: var(--ink-muted); }
.post-side ul li a:hover { color: var(--primary-dark); }

.relate { border-top: 1px solid var(--line); margin-top: 46px; padding-top: 26px; }
.relate h2 { font-size: 1.15rem; margin-bottom: 14px; }
.relate ul li { margin-bottom: 10px; }
.relate ul li a { font-size: .95rem; }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: var(--footer-ink); padding: 56px 0 30px; margin-top: 0; }
.footer-inner { max-width: var(--content); margin-inline: auto; padding-inline: 20px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.footer-brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer p { color: var(--footer-ink); font-size: .93rem; max-width: 620px; margin-bottom: 22px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 24px; }
.footer nav a { color: #fff; font-size: .93rem; opacity: .9; }
.footer nav a:hover { color: var(--primary); opacity: 1; }
.footer small { display: block; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; font-size: .84rem; color: rgba(207, 220, 229, .75); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .feature-guide { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; gap: 36px; }
  .post-side { position: static; }
  .hero-side { gap: 36px; }
  .hero { padding: 56px 0 64px; }
  .section, .cta, .story { padding: 68px 0; }
}

@media (max-width: 767px) {
  .nav-shell { gap: 12px; }
  .main-nav {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 14px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav-download { margin-left: auto; padding: 8px 14px; font-size: .88rem; }
  .nav-menu { display: inline-flex; }

  .hero-side { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 520px; justify-self: center; text-align: center; }
  .download-actions { flex-direction: column; align-items: stretch; }
  .platform { justify-content: center; }
  .feature-guide, .proof-grid, .card-grid, .news-grid { grid-template-columns: 1fr; }
  .section-intro { text-align: left; }
  .cta-box { padding: 40px 22px; }
  .footer { padding: 44px 0 26px; }
}

@media (max-width: 375px) {
  body { font-size: .96rem; }
  .wrap, .nav-shell, .footer-inner { padding-inline: 14px; }
  .hero { padding: 40px 0 48px; }
  .section, .cta, .story { padding: 52px 0; }
  .feature-guide article, .card-grid article { padding: 20px; }
  .hero-copy h1 { font-size: 1.75rem; }
}
