/* =========================================================
   美卡指南 · 虚拟美卡推广页
   轻量、无外部依赖、优先可读性与 Core Web Vitals
   ========================================================= */

:root {
  --bg: #f6faf8;
  --surface: #ffffff;
  --surface-soft: #fbfdfc;
  --ink: #12211c;
  --text: #33473f;
  --muted: #667a72;
  --muted-2: #84958e;
  --line: #dfeae4;
  --mint: #0fa37c;
  --mint-deep: #087a5d;
  --mint-soft: #e6f7f0;
  --shadow-sm: 0 1px 2px rgba(18, 50, 38, .04), 0 10px 30px -24px rgba(18, 50, 38, .35);
  --shadow-md: 0 24px 60px -38px rgba(8, 60, 44, .42);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 620px at 88% -12%, rgba(15, 163, 124, .10), transparent 62%),
    radial-gradient(760px 520px at -8% 18%, rgba(92, 124, 255, .06), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid rgba(15, 163, 124, .45);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 16px;
  text-decoration: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 250, 248, .82);
  border-bottom: 1px solid rgba(223, 234, 228, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #14b98d, #087a5d);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 22px -14px rgba(8, 122, 93, .9);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .01em;
}

.brand-text small {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--muted-2);
}

.nav {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 26px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

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

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid #d3efe4;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.6;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(15, 163, 124, .12);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.2rem, 4.6vw, 3.55rem);
  line-height: 1.14;
  letter-spacing: -.025em;
  font-weight: 800;
  color: var(--ink);
}

.hl {
  background-image: linear-gradient(180deg, transparent 62%, rgba(47, 196, 150, .30) 62%);
  background-repeat: no-repeat;
  padding: 0 .06em;
}

.lede {
  max-width: 33em;
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

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

.btn--primary {
  background: linear-gradient(135deg, #13b88d, #0a8f6c);
  color: #fff;
  box-shadow: 0 16px 34px -18px rgba(10, 143, 108, .75);
}

.btn--primary:hover {
  box-shadow: 0 20px 40px -18px rgba(10, 143, 108, .85);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: #b9e4d4;
  color: var(--mint-deep);
}

.btn--onDark {
  background: #fff;
  color: #0b6b52;
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, .35);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9fc7b7;
}

.hero-note {
  max-width: 34em;
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted-2);
}

/* ---------- Virtual card visual ---------- */

.card-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.card-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, rgba(47, 208, 162, .34), rgba(47, 208, 162, 0) 66%);
  filter: blur(12px);
}

.vcard {
  position: relative;
  width: min(100%, 392px);
  aspect-ratio: 1.586;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 22px;
  color: #eafff7;
  background:
    radial-gradient(120% 90% at 90% -10%, rgba(104, 255, 210, .38), transparent 55%),
    linear-gradient(135deg, #0a2b23 0%, #0b5443 44%, #0fa37c 100%);
  box-shadow:
    0 34px 70px -34px rgba(5, 56, 42, .72),
    inset 0 1px 0 rgba(255, 255, 255, .2);
  transform: rotate(-3.5deg);
  overflow: hidden;
  animation: card-float 7s ease-in-out infinite;
}

.vcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .18), transparent 36%, transparent 64%, rgba(255, 255, 255, .06));
  pointer-events: none;
}

.vcard-top,
.vcard-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vcard-brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.vcard-type {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  color: rgba(234, 255, 247, .85);
}

.vcard-mid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0;
}

.vcard-chip {
  width: 42px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f2dfa8, #c9a84f 58%, #f4e8b8);
  box-shadow: inset 0 0 0 1px rgba(90, 66, 15, .25);
}

.vcard-wave {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(234, 255, 247, .55);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
}

.vcard-num {
  position: relative;
  z-index: 1;
  font-size: clamp(15px, 2.4vw, 18px);
  font-weight: 600;
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
  color: rgba(240, 255, 250, .94);
}

.vcard-bottom {
  font-size: 9px;
  letter-spacing: .2em;
  color: rgba(220, 250, 239, .66);
}

.vcard-mark {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .9);
}

.float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: var(--shadow-md);
}

.float-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(15, 163, 124, .12);
}

.float-badge--1 {
  top: 6%;
  left: 0;
  animation: bob 6.4s ease-in-out infinite;
}

.float-badge--2 {
  right: 0;
  bottom: 9%;
  animation: bob 7.2s ease-in-out infinite .8s;
}

@keyframes card-float {
  0%, 100% { transform: translateY(0) rotate(-3.5deg); }
  50% { transform: translateY(-9px) rotate(-2.6deg); }
}

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

/* ---------- Sections ---------- */

.section {
  padding: 84px 0;
  scroll-margin-top: 92px;
}

.section--tint {
  background: linear-gradient(180deg, rgba(230, 247, 240, .62), rgba(246, 250, 248, .2));
  border-top: 1px solid rgba(223, 234, 228, .5);
  border-bottom: 1px solid rgba(223, 234, 228, .5);
}

.section-head {
  max-width: 680px;
  margin-bottom: 38px;
}

.section-head h2 {
  margin: 14px 0 12px;
  font-size: clamp(1.62rem, 3vw, 2.15rem);
  line-height: 1.28;
  letter-spacing: -.02em;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}

.section-head .eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
}

.section-head--left {
  margin-bottom: 0;
}

.section-note {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted-2);
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

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

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}

.feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
}

/* ---------- Channels ---------- */

.channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.channel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.channel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0));
  opacity: .85;
}

.channel:hover {
  transform: translateY(-4px);
  border-color: var(--tint);
  box-shadow: var(--shadow-md);
}

.channel-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.monogram {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--accent-deep);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(0, 0, 0, .035);
}

.channel h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
}

.channel-kicker {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted-2);
}

.channel-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6faf8;
  color: #5c6f68;
  font-size: 11.5px;
  line-height: 1.6;
  white-space: nowrap;
}

.channel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.channel-link span {
  transition: transform .2s ease;
}

.channel-link:hover {
  background: var(--accent-deep);
  color: #fff;
  text-decoration: none;
}

.channel-link:hover span {
  transform: translate(2px, -2px);
}

/* ---------- Compare table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}

thead {
  background: #f4f9f6;
}

th,
td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: middle;
}

thead th {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

tbody tr + tr {
  border-top: 1px solid var(--line);
}

tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

td {
  color: var(--muted);
}

td a {
  font-weight: 600;
  color: var(--mint-deep);
  text-decoration: none;
  white-space: nowrap;
}

td a:hover {
  text-decoration: underline;
}

/* ---------- Choose / steps ---------- */

.choose-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 56px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
}

.steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease;
}

.faq-list details[open] {
  border-color: #c9e9dc;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--mint);
  transition: transform .2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 19px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- CTA panel ---------- */

.cta-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 46px 48px;
  border-radius: 28px;
  background:
    radial-gradient(520px 280px at 88% 0%, rgba(104, 255, 210, .22), transparent 66%),
    linear-gradient(135deg, #0a2f26, #0b6b52 56%, #0fa37c);
  box-shadow: 0 30px 70px -40px rgba(6, 60, 44, .75);
  overflow: hidden;
}

.cta-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.3;
  letter-spacing: -.02em;
  color: #fff;
}

.cta-panel p {
  margin: 0;
  max-width: 34em;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .78);
}

.cta-panel .btn {
  flex: 0 0 auto;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 52px 0 44px;
  border-top: 1px solid var(--line);
  background: #eef6f2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 48px;
  align-items: start;
}

.brand--footer {
  margin-bottom: 14px;
}

.footer-brand > p {
  max-width: 26em;
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted-2);
}

.disclaimer h2 {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted-2);
}

.disclaimer p {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.85;
  color: #7d8f87;
}

.copyright {
  font-size: 12px !important;
  color: var(--muted-2) !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-grid {
    gap: 36px;
  }
}

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

  .hero {
    padding: 52px 0 40px;
  }

  .card-visual {
    min-height: 360px;
  }

  .choose-grid,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 68px 0;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 38px 32px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand-text {
    font-size: 14px;
  }

  .nav {
    gap: 16px;
    font-size: 13px;
  }

  .nav a:first-child,
  .nav a:nth-child(3) {
    display: none;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .lede {
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .btn {
    padding: 12px 19px;
    font-size: 14.5px;
  }

  .card-visual {
    min-height: 300px;
  }

  .vcard {
    padding: 20px;
    border-radius: 19px;
  }

  .float-badge {
    padding: 8px 13px;
    font-size: 12px;
  }

  .features,
  .channels {
    grid-template-columns: 1fr;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section {
    padding: 56px 0;
  }

  .table-wrap {
    overflow-x: visible;
  }

  table {
    min-width: 0;
  }

  th,
  td {
    padding: 13px 14px;
  }

  /* 窄屏去掉「入口」列：上方渠道卡片已有同样的直达链接，避免表格横向滚动 */
  th:last-child,
  td:last-child {
    display: none;
  }

  .cta-panel {
    padding: 32px 24px;
    border-radius: 22px;
  }

  .site-footer {
    padding: 40px 0 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
