:root {
  --cfd-ink: #0c1222;
  --cfd-mid: #1e3a5f;
  --cfd-teal: #14b8a6;
  --cfd-gold: #fbbf24;
  --cfd-rose: #fb7185;
  --cfd-frost: rgba(255, 255, 255, 0.12);
  --cfd-glass: rgba(12, 18, 34, 0.72);
  --cfd-radius: 18px;
  --cfd-shadow: 0 18px 48px rgba(8, 15, 35, 0.28);
  --cfd-font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --cfd-max: 1120px;
  --cfd-nav-h: 58px;
  --cfd-sticky-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--cfd-font);
  background: var(--cfd-ink);
  color: #e8edf5;
  line-height: 1.78;
  font-size: 16px;
  overflow-x: hidden;
}

body.cfd-nav-lock { overflow: hidden; }

body.cfd-sticky-on { padding-top: var(--cfd-sticky-h); }

a { color: var(--cfd-teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cfd-gold); }

img { max-width: 100%; height: auto; display: block; }

.cfd-wrap { width: min(var(--cfd-max), 92vw); margin: 0 auto; }

/* Header */
.cfd-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--cfd-nav-h);
  background: var(--cfd-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cfd-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.cfd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.cfd-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.cfd-menu-pc {
  display: none;
  gap: 22px;
}

.cfd-menu-pc a {
  color: #cbd5e1;
  font-size: 0.92rem;
}

.cfd-menu-pc a[aria-current="page"] { color: var(--cfd-gold); }

.cfd-burger {
  width: 42px;
  height: 42px;
  border: none;
  background: var(--cfd-frost);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.cfd-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s;
}

.cfd-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(82vw, 300px);
  height: 100vh;
  background: linear-gradient(165deg, #152238 0%, #0c1222 100%);
  z-index: 950;
  padding: 72px 28px 28px;
  transition: right 0.32s ease;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
}

.cfd-drawer.cfd-open { right: 0; }

.cfd-drawer a {
  display: block;
  padding: 14px 0;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 1rem;
}

.cfd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 940;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cfd-overlay.cfd-open { opacity: 1; pointer-events: auto; }

/* Sticky download bar */
.cfd-float-dl {
  position: fixed;
  top: var(--cfd-nav-h);
  left: 0;
  right: 0;
  z-index: 850;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.25);
  padding: 8px 12px;
  transform: translateY(-110%);
  transition: transform 0.35s ease;
}

.cfd-float-dl.cfd-show { transform: translateY(0); }

.cfd-float-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-width: var(--cfd-max);
  margin: 0 auto;
}

.cfd-float-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 10px;
}

.cfd-float-item img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cfd-float-item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* Promo zone */
.cfd-promo-wrap {
  padding: 12px 0 4px;
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.08) 0%, transparent 100%);
}

#cfd-promo-slot {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cfd-promo-cell {
  width: 70px;
  text-align: center;
}

.cfd-promo-cell img {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.cfd-promo-cap {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hero */
.cfd-aurora {
  position: relative;
  padding: 48px 0 56px;
  overflow: hidden;
}

.cfd-aurora::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(20, 184, 166, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(251, 113, 133, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(251, 191, 36, 0.2) 0%, transparent 45%);
  animation: cfd-shift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes cfd-shift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-3%, 2%) rotate(2deg); }
}

.cfd-hero-grid {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
}

.cfd-hero-grid h1 {
  font-size: clamp(1.55rem, 5vw, 2.15rem);
  line-height: 1.35;
  background: linear-gradient(120deg, #fff 30%, var(--cfd-teal) 70%, var(--cfd-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.cfd-lead {
  color: #b8c5d9;
  font-size: 1.02rem;
  margin-bottom: 20px;
}

.cfd-hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cfd-frost);
  border: 1px solid rgba(20, 184, 166, 0.4);
  font-size: 0.82rem;
  color: var(--cfd-teal);
  margin-bottom: 14px;
}

.cfd-hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--cfd-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cfd-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(20, 184, 166, 0.15));
  pointer-events: none;
}

/* Main content */
.cfd-main { padding-bottom: 64px; }

.cfd-section {
  padding: 40px 0;
}

.cfd-section h2 {
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  color: #f1f5f9;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 4px solid var(--cfd-teal);
}

.cfd-section h3 {
  font-size: 1.12rem;
  color: var(--cfd-gold);
  margin: 22px 0 10px;
}

.cfd-section p {
  color: #c4cede;
  margin-bottom: 14px;
  text-align: justify;
}

.cfd-prose { max-width: 780px; }

.cfd-split {
  display: grid;
  gap: 28px;
  align-items: center;
  margin: 32px 0;
}

.cfd-shot {
  border-radius: var(--cfd-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.cfd-shot figcaption {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Cards */
.cfd-card-row {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

.cfd-glass-card {
  background: var(--cfd-frost);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--cfd-radius);
  padding: 22px 20px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.cfd-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(20, 184, 166, 0.12);
}

.cfd-glass-card h3 { margin-top: 0; }

.cfd-glass-card p { margin-bottom: 0; font-size: 0.95rem; }

.cfd-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.cfd-tile {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.cfd-tile img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.cfd-tile span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  font-size: 0.78rem;
}

/* Timeline */
.cfd-flow {
  position: relative;
  padding-left: 28px;
  margin: 24px 0;
}

.cfd-flow::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--cfd-teal), var(--cfd-rose));
}

.cfd-flow-item {
  position: relative;
  margin-bottom: 22px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

.cfd-flow-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cfd-teal);
  box-shadow: 0 0 12px var(--cfd-teal);
}

/* CTA */
.cfd-cta-band {
  text-align: center;
  padding: 44px 24px;
  margin: 40px 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18) 0%, rgba(251, 113, 133, 0.12) 100%);
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.cfd-dl-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cfd-teal), #0d9488);
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cfd-dl-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(20, 184, 166, 0.45);
  color: #fff !important;
}

/* Breadcrumb */
.cfd-crumb {
  padding: 16px 0 8px;
  font-size: 0.88rem;
  color: #64748b;
}

.cfd-crumb a { color: var(--cfd-teal); }

.cfd-crumb span { color: #94a3b8; }

/* Legal pages */
.cfd-legal h2 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: #e2e8f0;
  border-left: none;
  padding-left: 0;
}

.cfd-legal ul, .cfd-legal ol {
  margin: 10px 0 16px 22px;
  color: #b8c5d9;
}

.cfd-legal li { margin-bottom: 8px; }

/* Error pages */
.cfd-error {
  text-align: center;
  padding: 60px 20px 80px;
}

.cfd-error-code {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cfd-teal), var(--cfd-rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.cfd-error h1 { font-size: 1.4rem; margin: 16px 0 10px; color: #f1f5f9; }

.cfd-error p { color: #94a3b8; margin-bottom: 20px; }

/* Footer */
.cfd-foot {
  padding: 32px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.cfd-foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 22px;
  margin-bottom: 16px;
}

.cfd-foot-nav a { color: #94a3b8; font-size: 0.9rem; }

.cfd-copy { font-size: 0.82rem; color: #64748b; }

/* Responsive */
@media (min-width: 768px) {
  .cfd-menu-pc { display: flex; }
  .cfd-burger { display: none; }
  .cfd-hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .cfd-split { grid-template-columns: 1fr 1fr; }
  .cfd-card-row { grid-template-columns: repeat(3, 1fr); }
  .cfd-float-grid { grid-template-columns: repeat(8, 1fr); }
  .cfd-float-item img { width: 56px; height: 56px; }
}

@media (min-width: 1024px) {
  .cfd-tile-grid { grid-template-columns: repeat(4, 1fr); }
}
