/* Fonleader 对外首页 · 样式
 * 无构建链：手写 CSS，全部走 CSS 变量，不依赖任何前端框架。
 * 设计令牌与 studio.css 保持一致，客户从首页点进网页版时视觉不跳。
 */

:root {
  --bg-app: #050505;
  --bg-panel: #0a0a0a;
  --bg-card: #141414;
  --bg-elevated: #18181c;
  --bg-input: #16161a;

  --text: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;

  --border: #27272a;
  --border-soft: rgba(255, 255, 255, 0.08);

  --accent: #22d3ee;
  --accent-hover: #06b6d4;
  --accent-soft: rgba(34, 211, 238, 0.1);
  --accent-border: rgba(34, 211, 238, 0.25);

  --ok: #22c55e;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-pop: 0 20px 60px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(34, 211, 238, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-app);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

.home {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 0;
}

/* ---------- 顶部导航 ---------- */
.home-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  margin: 0 -24px;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent) 0%, #a855f7 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #04191d;
  font-size: 15px;
  flex: none;
}

.home-links {
  display: flex;
  gap: 22px;
  margin-left: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.home-links a:hover { color: var(--text); }

.home-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-soft);
  background: var(--bg-input);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover { border-color: var(--accent-border); }

.btn-primary {
  background: var(--accent);
  border-color: rgba(34, 211, 238, 0.3);
  color: #04191d;
  font-weight: 700;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
  font-weight: 500;
}

.btn-ghost:hover { color: var(--text); }

.btn-lg {
  height: 46px;
  padding: 0 26px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
  margin-top: 20px;
}

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
  padding: 84px 0 76px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.accent { color: var(--accent); }

.hero-sub {
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 520px;
}

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

.hero-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* 首屏右侧的斜卡装饰，与网页版空态同一套视觉 */
.hero-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 40px 0;
  background:
    radial-gradient(520px 300px at 50% 0%, rgba(34, 211, 238, 0.09), transparent 70%),
    radial-gradient(420px 260px at 80% 100%, rgba(168, 85, 247, 0.06), transparent 70%);
}

.art-cards {
  display: flex;
  align-items: center;
}

.art-card {
  width: 96px;
  height: 120px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #1c1c22 0%, #101014 100%);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  margin: 0 -11px;
  transition: transform 0.28s ease;
}

.art-card.is-1 { transform: rotate(-12deg); }
.art-card.is-2 {
  transform: rotate(-4deg) translateY(-8px);
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  background: linear-gradient(150deg, var(--accent) 0%, #a855f7 100%);
  opacity: 0.85;
}
.art-card.is-3 { transform: rotate(6deg) translateY(-8px); }
.art-card.is-4 { transform: rotate(12deg); }

.hero-art:hover .art-card.is-1 { transform: rotate(-6deg); }
.hero-art:hover .art-card.is-2 { transform: rotate(0deg) translateY(-8px); }
.hero-art:hover .art-card.is-3 { transform: rotate(0deg) translateY(-8px); }
.hero-art:hover .art-card.is-4 { transform: rotate(6deg); }

.art-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.art-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
  box-shadow: var(--shadow-glow);
}

/* ---------- 通用分区 ---------- */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border-soft);
}

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

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.section-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ---------- 功能 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  background: linear-gradient(180deg, #141418 0%, #0d0d10 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: border-color 0.18s, transform 0.18s;
}

.feature:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}

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

/* ---------- 价格 ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #16161a 0%, #0d0d10 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
}

.price-card.is-featured {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow-pop);
  background: linear-gradient(180deg, #172026 0%, #0d1013 100%);
}

.price-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #04191d;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.price-card h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 8px;
}

.price-num {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.price-unit {
  font-size: 13px;
  color: var(--text-muted);
}

.price-desc {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  min-height: 20px;
}

.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
}

.price-list li {
  position: relative;
  padding-left: 16px;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--accent);
  opacity: 0.7;
}

.price-list b { color: var(--text); font-weight: 700; }

/* ---------- 加油包 ---------- */
.topup {
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.topup-head h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.topup-head p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.topup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.topup-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}

.topup-points {
  font-size: 13px;
  color: var(--text-secondary);
}

.topup-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.faq-item[open] { border-color: var(--accent-border); }

.faq-item summary {
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  flex: none;
}

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

.faq-item p {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ---------- 底部行动区 ---------- */
.cta {
  text-align: center;
  padding: 72px 24px;
  border-top: 1px solid var(--border-soft);
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(34, 211, 238, 0.08), transparent 70%);
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
}

.cta p {
  margin: 0 0 26px;
  font-size: 15px;
  color: var(--text-secondary);
}

/* ---------- 页脚 ---------- */
.home-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 32px;
  padding: 36px 0 44px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-muted);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

.foot-desc { margin: 0; }

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  justify-content: flex-start;
}

.foot-links a:hover { color: var(--text); }

/* 法律文件入口（2026-10-22 补）：合同 / 隐私政策 / 收费与退款规则。
   单独占一行、压在版权行之上 —— 客户找条款时习惯先看页脚，混在版权行里会看不见。 */
.foot-legal-links {
  grid-column: 1 / -1;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.foot-legal-links a:hover { color: var(--text); }

.foot-legal {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
}

.foot-icp:hover { color: var(--text-secondary); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topup { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .home { padding: 0 18px; }
  .home-nav { gap: 12px; margin: 0 -18px; padding: 0 18px; }
  .home-links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 48px 0 40px; }
  .hero-art { padding: 20px 0 0; }
  .art-card { width: 74px; height: 92px; }
  .art-card.is-2 { width: 74px; height: 74px; }
  .section { padding: 44px 0; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .topup-grid { grid-template-columns: minmax(0, 1fr); }
  .home-foot { grid-template-columns: minmax(0, 1fr); }
  .foot-links { align-items: flex-start; }
  .cta { padding: 48px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  .art-card, .feature, .btn { transition: none; }
}
