/* site.css — 页面布局与组件样式（移动优先） */

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--maxw);
  min-height: 64px;
  margin-inline: auto;
  padding-inline: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.main-nav {
  display: none;
  flex: 1;
  align-items: center;
  gap: 28px;
  margin-inline-start: 24px;
}

.main-nav a {
  color: var(--ink);
  font-size: 0.9375rem;
  padding-block: 6px;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--brand);
}

.nav-download {
  display: none;
  align-items: center;
  margin-inline-start: auto;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
}

.nav-download:hover {
  background: var(--brand-dark);
  color: #fff;
}

.nav-menu {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-inline-start: auto;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.nav-menu span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-menu[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-menu[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-shell {
    min-height: 72px;
    padding-inline: 28px;
  }

  .main-nav,
  .nav-download {
    display: flex;
  }

  .nav-menu {
    display: none;
  }
}

/* 移动端展开导航 */
@media (max-width: 767px) {
  .nav-shell {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0 0 12px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
  }

  .main-nav a {
    width: 100%;
    padding: 12px 2px;
    border-bottom: 1px solid var(--bg-soft);
  }

  .nav-shell.is-open .main-nav {
    display: flex;
  }

  .nav-shell.is-open .nav-download {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 0 0 14px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: 56px 64px;
  background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 78%);
}

.hero-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d8e3fb;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin-bottom: 18px;
}

.hero-lede {
  max-width: 34em;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-size: 0.9688rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.18s ease, transform 0.18s ease;
}

.action:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
}

.action-ghost {
  background: #fff;
  color: var(--brand);
  border-color: #c9d8f8;
}

.action-ghost:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.platform {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.action-ghost .platform {
  background: var(--brand-soft);
  color: var(--brand);
}

.text-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero-photo {
  margin-top: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid #dde7fa;
  background: #fff;
  box-shadow: 0 24px 60px -32px rgba(29, 78, 216, 0.45);
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .hero {
    padding-block: 72px 88px;
  }

  .hero-side {
    gap: 48px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-block: 88px 104px;
  }

  .hero-side {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

/* ---------- 通用区块 ---------- */
.section {
  padding-block: 56px;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 36px;
}

.kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-intro p {
  margin-top: 14px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .section {
    padding-block: 80px;
  }

  .section-intro {
    margin-bottom: 48px;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: 96px;
  }
}

/* ---------- 功能卡片 ---------- */
.feature-main {
  background: #fff;
  border-top: 1px solid var(--line);
}

.feature-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-guide article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-guide article:hover {
  border-color: #c9d8f8;
  box-shadow: 0 18px 40px -30px rgba(15, 23, 42, 0.5);
}

.guide-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.guide-line svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--brand);
}

.guide-line h3 {
  margin: 0;
}

.feature-guide p {
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .feature-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .feature-guide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- 数据条带 ---------- */
.proof {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.proof-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}

.proof-item strong {
  display: block;
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .proof-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Story ---------- */
.story .container > div {
  max-width: 720px;
}

.story-head h2 {
  margin-bottom: 18px;
}

.story-body p {
  color: var(--muted);
  margin-bottom: 14px;
}

.story-body p:last-of-type {
  margin-bottom: 0;
}

/* ---------- 下载 CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, #12307f 0%, var(--brand) 100%);
  color: #fff;
}

.cta-band .container {
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9688rem;
}

.cta-band .download-actions {
  justify-content: center;
  margin-top: 28px;
}

.cta-band .action {
  background: #fff;
  color: var(--brand-dark);
}

.cta-band .action:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.cta-band .action .platform {
  background: var(--brand-soft);
  color: var(--brand);
}

.cta-band .action-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.cta-band .action-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cta-band .action-ghost .platform {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ---------- 子页通用 ---------- */
.page-head {
  padding-block: 48px 32px;
  background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin-bottom: 14px;
}

.page-head p {
  max-width: 46em;
  color: var(--muted);
}

.prose h2 {
  margin-top: 40px;
  margin-bottom: 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  margin: 14px 0;
}

.prose ul li {
  position: relative;
  padding-inline-start: 18px;
  margin-bottom: 8px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.dl-row:last-child {
  border-bottom: 0;
}

.dl-row .dl-meta {
  flex: 1 1 220px;
}

.dl-row h3 {
  margin: 0 0 4px;
}

.dl-row p {
  color: var(--muted);
  font-size: 0.875rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  text-align: start;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.faq-q::after {
  content: "+";
  flex: none;
  color: var(--brand);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item.is-open .faq-q::after {
  content: "−";
}

.faq-a {
  display: none;
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.faq-item.is-open .faq-a {
  display: block;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 48px;
  }
}

/* ---------- 资讯卡片 ---------- */
.news {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

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

.news-head h2 {
  margin-top: 6px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: #c9d8f8;
  box-shadow: 0 20px 44px -32px rgba(15, 23, 42, 0.55);
}

.news-card > a {
  display: block;
}

.news-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--brand-soft);
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 22px;
}

.news-tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
}

.news-card h3 {
  font-size: 1.0625rem;
  line-height: 1.5;
}

.news-card h3 a {
  color: var(--ink);
}

.news-card h3 a:hover {
  color: var(--brand);
}

.news-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  color: #8a94a6;
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- 文章页 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  color: var(--muted);
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
}

.article-wrap {
  max-width: 800px;
}

.article-head h1 {
  margin-bottom: 16px;
  font-size: clamp(1.625rem, 3.2vw, 2.25rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.875rem;
}

.article-cover {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.article-body p {
  margin-bottom: 16px;
  color: #3b4451;
}

.article-body h2 {
  margin: 36px 0 14px;
  font-size: 1.3125rem;
}

.article-body h3 {
  margin: 24px 0 10px;
  font-size: 1.0625rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-inline-start: 1.35em;
  color: #3b4451;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body .tip {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-inline-start: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: #3b4451;
  font-size: 0.9375rem;
}

.article-body .tip strong {
  color: var(--ink);
}

.related {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.related h2 {
  margin-bottom: 16px;
  font-size: 1.1875rem;
}

.related ul {
  display: grid;
  gap: 10px;
}

.related a {
  font-weight: 600;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #12307f 0%, var(--brand) 100%);
  color: #fff;
}

.article-cta h2 {
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
}

.article-cta p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
}

.article-cta .action {
  background: #fff;
  color: var(--brand-dark);
}

.article-cta .action:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.article-cta .action .platform {
  background: var(--brand-soft);
  color: var(--brand);
}

/* ---------- Footer ---------- */
.footer {
  padding-block: 48px 32px;
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  gap: 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.0625rem;
}

.footer-brand:hover {
  color: #fff;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
}

.footer p {
  max-width: 40em;
  margin-top: 10px;
  font-size: 0.9375rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer nav a {
  color: rgba(255, 255, 255, 0.82);
}

.footer nav a:hover {
  color: #fff;
}

.footer small {
  display: block;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .footer {
    padding-block: 56px 36px;
  }
}

@media (max-width: 375px) {
  .action {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding-block: 48px;
  }
}
