/* site.css — 页面样式（移动优先） */

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 28px;
  margin-inline: auto;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.main-nav a {
  position: relative;
  padding-block: 6px;
  transition: color 0.18s ease;
}

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

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.nav-download {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: background 0.18s ease, transform 0.18s ease;
}

.nav-download:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

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

.nav-menu span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  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);
}

/* 移动端展开的导航面板 */
.main-nav.is-open {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0;
  padding: 8px 24px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.main-nav.is-open a {
  width: 100%;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.main-nav.is-open a:last-child {
  border-bottom: 0;
}

/* ---------- Buttons ---------- */
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.platform {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.platform:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.platform .os {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
}

.platform .action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}

.platform.is-ios .os {
  background: var(--ink-soft);
}

.platform.is-light {
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.platform.is-light .action {
  color: var(--ink);
}

.platform.is-light .os {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand);
}

.text-link:hover {
  color: var(--brand-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 48px 56px;
  background:
    radial-gradient(900px 420px at 88% -10%, var(--brand-soft), transparent 70%),
    var(--surface);
}

.hero-side {
  display: grid;
  gap: 36px;
  align-items: center;
}

.side-caption {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero-lede {
  margin-top: 16px;
  max-width: 46ch;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.hero-copy .download-actions {
  margin-top: 26px;
}

.hero-copy .text-link {
  margin-top: 20px;
}

.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand-soft);
  box-shadow: var(--shadow-md);
}

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

/* ---------- Sections ---------- */
.section {
  padding-block: 56px;
}

.section.is-alt {
  background: var(--surface-alt);
}

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

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

.section h2 {
  font-size: clamp(1.5rem, 3vw, 1.9375rem);
  line-height: 1.3;
  font-weight: 700;
}

.section-intro p {
  margin-top: 12px;
  color: var(--ink-soft);
}

.feature-guide {
  display: grid;
  gap: 18px;
}

.feature-guide article {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-guide article:hover {
  transform: translateY(-3px);
  border-color: #cfe6f7;
  box-shadow: var(--shadow-md);
}

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

.guide-line svg {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--brand);
}

.guide-line h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.feature-guide p {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* Story */
.story {
  padding-block: 64px;
}

.story-inner {
  max-width: 720px;
  margin-inline: auto;
}

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

.story-body p {
  color: var(--ink-soft);
}

.story-body p + p {
  margin-top: 14px;
}

.story-body .text-link {
  margin-top: 22px;
}

/* Social proof */
.proof {
  padding-block: 44px;
  background: var(--ink);
  color: #fff;
}

.proof-inner {
  display: grid;
  gap: 26px;
  align-items: center;
}

.proof h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.proof-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.proof-item span {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--footer-ink);
}

/* Download CTA */
.cta {
  padding-block: 60px;
}

.cta-box {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 36px 28px;
  text-align: center;
  align-items: center;
  background: linear-gradient(160deg, #eaf5fd, #f8fbfe);
  border: 1px solid #d9ecfa;
  border-radius: var(--radius-lg);
}

.cta-box h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
}

.cta-box p {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.cta-box .download-actions {
  justify-content: center;
}

.cta-note {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.footer {
  padding-block: 46px 30px;
  background: var(--footer-bg);
  color: var(--footer-ink);
}

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

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

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

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

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.9375rem;
}

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

.footer small {
  display: block;
  padding-top: 22px;
  font-size: 0.8125rem;
  color: #8b99a7;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Sub page ---------- */
.page-hero {
  padding-block: 46px 40px;
  background:
    radial-gradient(760px 340px at 82% -20%, var(--brand-soft), transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  font-weight: 700;
}

.page-hero p {
  max-width: 62ch;
  margin-top: 14px;
  color: var(--ink-soft);
}

.page-hero .download-actions {
  margin-top: 26px;
}

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

.prose h2 + p,
.prose h3 + p {
  color: var(--ink-soft);
}

.prose p + h2,
.prose p + h3 {
  margin-top: 36px;
}

.prose h3 {
  margin-top: 30px;
  font-size: 1.125rem;
  font-weight: 600;
}

.prose ul {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.prose ul li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.spec-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.spec-table th,
.spec-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.spec-table th {
  width: 34%;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-alt);
}

.spec-table td {
  color: var(--ink-soft);
}

.steps {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 22px 24px 22px 62px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 50%;
}

.steps h3 {
  margin: 0;
  font-size: 1.0625rem;
}

.steps p {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-answer {
  padding: 0 22px 20px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-shell {
    min-height: 68px;
  }

  .section {
    padding-block: 76px;
  }

  .hero {
    padding-block: 64px 72px;
  }

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

  .proof-inner {
    grid-template-columns: 0.9fr 2.1fr;
  }

  .cta-box {
    padding: 48px 40px;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .footer nav {
    justify-content: flex-end;
  }

  .footer small {
    grid-column: 1 / -1;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .main-nav,
  .nav-download {
    display: inline-flex;
  }

  .main-nav.is-open {
    position: static;
    flex-direction: row;
    gap: 28px;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .main-nav.is-open a {
    width: auto;
    padding-block: 6px;
    border-bottom: 0;
  }

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

  .feature-guide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .proof-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .container,
  .nav-shell {
    padding-inline: 32px;
  }
}

@media (max-width: 375px) {
  .container,
  .nav-shell {
    padding-inline: 16px;
  }

  .download-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .platform {
    width: 100%;
  }

  .platform .action {
    flex: 1;
    justify-content: space-between;
  }

  .proof-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- 最新资讯列表 ---------- */
.news-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.news-grid {
  display: grid;
  gap: 18px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: #cfe6f7;
  box-shadow: var(--shadow-md);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
}

.news-card h2 {
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 600;
}

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

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

.news-card p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.news-card .text-link {
  margin-top: 2px;
  font-size: 0.875rem;
}

/* ---------- 文章页 ---------- */
.crumbs {
  padding-block: 18px 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #b9c3cd;
}

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

.post {
  padding-block: 26px 0;
}

.post-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.post-head h1 {
  margin-top: 10px;
  font-size: clamp(1.625rem, 3.4vw, 2.25rem);
  line-height: 1.35;
}

.post-meta {
  margin-top: 14px;
}

.post-body {
  padding-block: 26px;
}

.post-body .lede {
  padding: 18px 20px;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface-alt);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-body h2 {
  margin-top: 34px;
  font-size: 1.3125rem;
  line-height: 1.4;
}

.post-body h2 + p {
  margin-top: 12px;
}

.post-body p {
  margin-top: 12px;
  color: #3d4854;
}

.post-body ul {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}

.post-body ul li {
  position: relative;
  padding-left: 20px;
  color: #3d4854;
}

.post-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.post-note {
  margin-top: 30px;
  padding: 20px 22px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.post-related {
  padding-block: 8px 12px;
}

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

.post-cta {
  margin-block: 30px 56px;
  padding: 30px 26px;
  text-align: center;
  background: linear-gradient(160deg, #eaf5fd, #f8fbfe);
  border: 1px solid #d9ecfa;
  border-radius: var(--radius-lg);
}

.post-cta h2 {
  font-size: 1.25rem;
}

.post-cta p {
  margin-block: 10px 18px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.post-cta .download-actions {
  justify-content: center;
}

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

  .post-body {
    max-width: 760px;
  }
}

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