/**
 * 飞影财税管家官网 — Clear Ledger tokens & layout
 */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap");

:root {
  --brand: #0066ff;
  --brand-deep: #0052cc;
  --ink: #0b1f33;
  --ink-muted: #5b6b7c;
  --paper: #f5f8fc;
  --stage: #ffffff;
  --settle: #0f766e;
  --line: #d8e0ea;
  --shadow: 0 18px 48px rgba(11, 31, 51, 0.1);
  --radius: 3px;
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --max: 1080px;
  --nav-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

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

/* —— atmosphere —— */
.bg_mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(0, 102, 255, 0.14), transparent 60%),
    radial-gradient(700px 420px at 92% 8%, rgba(15, 118, 110, 0.1), transparent 55%),
    linear-gradient(180deg, #eef3fa 0%, var(--paper) 42%, var(--paper) 100%);
}

.bg_mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(11, 31, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 51, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

/* —— layout —— */
.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.section_head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section_eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--settle);
  margin: 0 0 10px;
}

.section_title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section_lead {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

/* —— nav —— */
.site_nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  backdrop-filter: blur(12px);
  background: rgba(245, 248, 252, 0.86);
  border-bottom: 1px solid rgba(216, 224, 234, 0.8);
}

.site_nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav_brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.nav_brand:hover {
  color: var(--ink);
}

.nav_brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(11, 31, 51, 0.12);
}

.nav_links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-block: 0;
}

.nav_links a {
  display: block;
  padding: 8px 12px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
}

.nav_links a:hover,
.nav_links a.is_active {
  color: var(--brand);
  background: rgba(0, 102, 255, 0.06);
}

.nav_cta {
  flex-shrink: 0;
}

.nav_toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stage);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.nav_toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

/* —— buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn_primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.28);
}

.btn_primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn_ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn_ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(0, 102, 255, 0.04);
}

.btn_lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 15px;
}

.btn_block {
  width: 100%;
}

/* —— hero —— */
.hero {
  position: relative;
  padding: 56px 0 80px;
  overflow: hidden;
}

.hero_grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero_brand {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--brand);
}

.hero_latin {
  display: block;
  margin-top: 6px;
  font-size: 0.38em;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero_title {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hero_lead {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.hero_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero_visual {
  position: relative;
  min-height: 360px;
}

.hero_stage {
  position: relative;
  height: 100%;
  min-height: 360px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, #f0f7fe 0%, #ffffff 48%, #eef8f6 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 22px;
}

.hero_stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.12), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(15, 118, 110, 0.1), transparent 42%);
  pointer-events: none;
}

.hero_chrome {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.hero_dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5d0de;
}

.hero_chrome_title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
}

.hero_mock {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  height: calc(100% - 40px);
}

.hero_side {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 10px;
}

.hero_side_item {
  height: 10px;
  border-radius: 2px;
  background: #e8eef6;
  margin-bottom: 10px;
}

.hero_side_item.active {
  background: rgba(0, 102, 255, 0.2);
  width: 78%;
}

.hero_main {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero_row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: #f7fafc;
  border: 1px solid #eef2f7;
}

.hero_thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #d9ecff, #ffe8d6);
  flex-shrink: 0;
}

.hero_row_lines {
  flex: 1;
  min-width: 0;
}

.hero_line {
  height: 8px;
  border-radius: 2px;
  background: #e2eaf3;
  margin-bottom: 6px;
}

.hero_line.short {
  width: 42%;
  margin-bottom: 0;
}

.hero_float_badge {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(11, 31, 51, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: var(--settle);
  animation: floatY 4.5s ease-in-out infinite;
}

.hero_float_badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--settle);
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* —— pain —— */
.pain_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
  padding: 0;
  margin: 0;
}

.pain_list li {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.pain_list li:last-child {
  border-right: none;
}

.pain_num {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 10px;
}

.pain_list h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.pain_list p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* —— chain —— */
.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 4px;
  padding: 28px;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(11, 31, 51, 0.04);
}

.chain_step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f0f7fe;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
}

.chain_step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.chain_arrow {
  color: var(--ink-muted);
  font-size: 18px;
  padding: 0 4px;
  user-select: none;
}

/* —— platforms —— */
.plat_row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.plat_badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
}

.plat_badge[data-plat="taobao"] {
  background: #ffe8d6;
  color: #a14b12;
}

.plat_badge[data-plat="1688"] {
  background: #d9ecff;
  color: #0b5cad;
}

.plat_badge[data-plat="pdd"] {
  background: #ffe0eb;
  color: #a1164d;
}

.plat_note {
  margin: 16px 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* —— trust —— */
.trust_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.trust_item {
  padding: 22px 24px;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust_item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.trust_item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* —— credits —— */
.credits_panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.credits_cell {
  background: var(--stage);
  padding: 28px 24px;
}

.credits_cell strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.credits_cell p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* —— cta band —— */
.cta_band {
  margin: 24px 0 0;
  padding: 48px 40px;
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(0, 102, 255, 0.95), rgba(0, 82, 204, 0.92)),
    linear-gradient(180deg, #0066ff, #0052cc);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta_band h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.cta_band p {
  margin: 0;
  opacity: 0.9;
  max-width: 36em;
}

.cta_band .btn_primary {
  background: #fff;
  color: var(--brand);
  box-shadow: none;
}

.cta_band .btn_primary:hover {
  background: #f0f7fe;
  color: var(--brand-deep);
}

/* —— download page —— */
.download_hero {
  padding: 56px 0 40px;
  text-align: center;
}

.download_hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
}

.download_hero p {
  margin: 0 auto;
  max-width: 34em;
  color: var(--ink-muted);
}

.download_cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0 0 28px;
}

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

.download_card {
  padding: 32px 28px;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(11, 31, 51, 0.05);
  text-align: center;
}

.download_card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.download_card .meta {
  margin: 0 0 24px;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.download_notes {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 28px;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.download_notes h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.download_notes ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.download_notes li {
  margin-bottom: 6px;
}

.download_notes li:last-child {
  margin-bottom: 0;
}

/* —— support —— */
.support_panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(11, 31, 51, 0.05);
}

.support_copy h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.support_copy p {
  margin: 0 0 14px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.support_copy_gap {
  margin-top: 28px !important;
}

.support_qr_card {
  margin: 0;
  justify-self: center;
  text-align: center;
}

.support_qr_card img {
  width: min(220px, 100%);
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.support_qr_card figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

.support_modal[hidden] {
  display: none !important;
}

.support_modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}

.support_modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 51, 0.45);
}

.support_modal_dialog {
  position: relative;
  z-index: 1;
  width: min(360px, calc(100% - 32px));
  padding: 28px 24px 24px;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.support_modal_dialog h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.support_modal_dialog p {
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.support_modal_dialog img {
  width: min(240px, 100%);
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.support_modal_close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
}

@media (max-width: 900px) {
  .support_panel {
    grid-template-columns: 1fr;
  }
}

/* —— footer —— */
.site_footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--ink-muted);
  font-size: 13px;
}

.site_footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer_links {
  display: flex;
  gap: 16px;
}

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

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

/* —— motion（无 JS 时仍可见；有 JS 时再做入场） —— */
.reveal {
  opacity: 1;
  transform: none;
}

html.js-motion .reveal:not(.is_in) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js-motion .reveal.is_in {
  opacity: 1;
  transform: none;
}

.hero_copy .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.hero_copy .reveal:nth-child(2) {
  transition-delay: 0.14s;
}
.hero_copy .reveal:nth-child(3) {
  transition-delay: 0.22s;
}
.hero_copy .reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.hero_visual.reveal {
  transition-delay: 0.18s;
}

/* —— responsive —— */
@media (max-width: 900px) {
  .hero_grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero_visual {
    min-height: 300px;
    order: -1;
  }

  .hero_stage {
    min-height: 300px;
  }

  .pain_list {
    grid-template-columns: 1fr;
  }

  .pain_list li {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .pain_list li:last-child {
    border-bottom: none;
  }

  .trust_grid,
  .credits_panel,
  .download_cards {
    grid-template-columns: 1fr;
  }

  .nav_toggle {
    display: inline-flex;
  }

  .nav_links,
  .nav_cta {
    display: none;
  }

  .site_nav.is_open .nav_links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 16px;
    background: rgba(245, 248, 252, 0.98);
    border-bottom: 1px solid var(--line);
    margin-left: 0;
  }

  .site_nav.is_open .nav_cta {
    display: block;
    position: absolute;
    top: calc(var(--nav-h) + 160px);
    left: 20px;
    right: 20px;
    padding-bottom: 16px;
  }

  .site_nav.is_open .nav_cta .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 56px 0;
  }

  .cta_band {
    padding: 32px 24px;
  }

  .hero_mock {
    grid-template-columns: 1fr;
  }

  .hero_side {
    display: none;
  }
}
