/* 23 黑瓜吃料 · 外部样式表 */
:root {
  --primary: #4338ca;
  --primary-light: #6366f1;
  --primary-deep: #3730a3;
  --accent: #818cf8;
  --primary-rgb: 67, 56, 202;
  --page-head-grad-a: #eef2ff;
  --page-head-grad-b: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --panel: #ffffff;
  --panel-line: #eef2f7;
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #94a3b8;
  --nav-glass: rgba(255, 255, 255, .86);
  --nav-shadow: rgba(15, 23, 42, .1);
  --dot: #cbd5e1;
  --avatar-ring: #ffffff;
  --scroll-track: #f1f5f9;
}
body.dark {
  --bg: #0b1120;
  --bg-soft: #0f172a;
  --panel: #101a30;
  --panel-line: #1e2b45;
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --text-muted: #8aa0c0;
  --nav-glass: rgba(11, 17, 32, .82);
  --nav-shadow: rgba(0, 0, 0, .45);
  --dot: #334155;
  --avatar-ring: #1e2b45;
  --scroll-track: #0f172a;
}

/* ---------- 基础 ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
::selection { background: rgba(var(--primary-rgb), .18); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), .35); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ---------- 语义类 ---------- */
.panel { background: var(--panel); border: 1px solid var(--panel-line); }
.bg-soft { background: var(--bg-soft); }
.t-soft { color: var(--text-soft); }
.t-muted { color: var(--text-muted); }
.line-soft { border-color: var(--panel-line); }
.ring-soft { --tw-ring-color: var(--panel); }

/* ---------- 按钮 ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 2.1rem; border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff !important; font-weight: 600; font-size: 1rem;
  box-shadow: 0 12px 30px -10px rgba(var(--primary-rgb), .55);
  transition: all .3s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(var(--primary-rgb), .65); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 2.1rem; border-radius: 9999px;
  background: var(--panel); color: var(--text) !important; font-weight: 600; font-size: 1rem;
  border: 1px solid var(--panel-line);
  transition: all .3s ease;
}
.btn-secondary:hover { border-color: var(--primary-light); color: var(--primary) !important; transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(15, 23, 42, .25); }

.btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 2.2rem; border-radius: 9999px;
  background: #fff; color: var(--primary) !important; font-weight: 700; font-size: 1rem;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, .35);
  transition: all .3s ease;
}
.btn-white:hover { transform: translateY(-2px) scale(1.02); }

/* ---------- 小组件 ---------- */
.badge-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem 1.1rem; border-radius: 9999px;
  background: rgba(var(--primary-rgb), .08);
  color: var(--primary-deep); font-size: .85rem; font-weight: 600;
  border: 1px solid rgba(var(--primary-rgb), .15);
}
body.dark .badge-pill { color: var(--primary-light); }
.section-tag {
  display: inline-block; padding: .4rem 1.15rem; border-radius: 9999px;
  background: rgba(var(--primary-rgb), .08); color: var(--primary-deep);
  font-size: .85rem; font-weight: 700; letter-spacing: .06em;
}
body.dark .section-tag { color: var(--primary-light); }
.gradient-text {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.icon-box {
  width: 3.6rem; height: 3.6rem; border-radius: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 28px -10px rgba(var(--primary-rgb), .5);
}
.feature-card {
  background: var(--panel); border-radius: 1.5rem; padding: 2.2rem;
  border: 1px solid var(--panel-line); transition: all .35s ease; height: 100%;
  position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-8px); border-color: transparent; box-shadow: 0 28px 56px -18px rgba(0, 0, 0, .25); }
.feature-card .icon-box { transition: transform .35s ease; position: relative; z-index: 1; }
.feature-card:hover .icon-box { transform: scale(1.08) rotate(-4deg); }
.feature-card h3, .feature-card p, .feature-card a { position: relative; z-index: 1; }
.feat-num { position: absolute; top: .4rem; right: 1.4rem; font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--panel-line); }
.feat-hot { position: absolute; top: 1.5rem; right: 1.5rem; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: .7rem; font-weight: 700; padding: .28rem .65rem; border-radius: 9999px; }

/* ---------- 导航 ---------- */
#navbar { background: transparent; transition: all .3s ease; }
#navbar.scrolled { background: var(--nav-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 30px -12px var(--nav-shadow); }
.nav-link { position: relative; font-weight: 500; color: var(--text-soft); transition: color .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 3px;
  border-radius: 99px; background: var(--primary);
}
#mobileMenu { display: none; }
#mobileMenu.open { display: block; }

/* ---------- Hero ---------- */
.blob { position: absolute; border-radius: 9999px; filter: blur(90px); pointer-events: none; }
.hero-img-wrap { position: relative; }
.float-card {
  position: absolute; background: var(--panel); border-radius: 1.1rem; padding: .8rem 1.1rem;
  box-shadow: 0 24px 48px -14px rgba(0, 0, 0, .3);
  display: flex; align-items: center; gap: .65rem;
  font-size: .88rem; font-weight: 700; color: var(--text);
  animation: floaty 4.5s ease-in-out infinite; z-index: 5;
}
.float-card .fc-ico {
  width: 2.2rem; height: 2.2rem; border-radius: .7rem; flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.avatar-ring { border: 3px solid var(--avatar-ring); box-shadow: 0 4px 10px rgba(15, 23, 42, .15); }

/* ---------- 数据统计 ---------- */
.stat-band { background: linear-gradient(120deg, var(--primary-deep), var(--primary) 45%, var(--accent)); }

/* ---------- 评价 ---------- */
.t-viewport { overflow: hidden; }
.t-track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.t-slide { flex: 0 0 100%; padding: 0 .75rem; }
@media (min-width: 1024px) { .t-slide { flex: 0 0 33.3333%; } }
.t-card {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 1.5rem;
  padding: 2rem; height: 100%; display: flex; flex-direction: column; gap: 1.1rem;
  transition: all .3s ease;
}
.t-card:hover { box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .28); transform: translateY(-4px); }
.t-dot { width: 10px; height: 10px; border-radius: 9999px; background: var(--dot); transition: all .3s ease; cursor: pointer; border: none; padding: 0; }
.t-dot.active { width: 30px; background: var(--primary); }
.t-arrow {
  width: 2.9rem; height: 2.9rem; border-radius: 9999px; background: var(--panel);
  border: 1px solid var(--panel-line); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s ease; cursor: pointer;
}
.t-arrow:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 手机模型 ---------- */
.phone-frame {
  position: relative; width: 300px; max-width: 100%; height: 620px; margin: 0 auto;
  background: #0f172a; border-radius: 3.2rem; padding: 12px;
  box-shadow: 0 48px 90px -24px rgba(15, 23, 42, .45), inset 0 0 0 2px rgba(255, 255, 255, .07);
}
body.dark .phone-frame { box-shadow: 0 48px 90px -24px rgba(0, 0, 0, .8), inset 0 0 0 2px rgba(255, 255, 255, .12); }
.phone-screen { width: 100%; height: 100%; object-fit: cover; border-radius: 2.5rem; display: block; background: #e2e8f0; }
.phone-notch { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 122px; height: 28px; background: #0f172a; border-radius: 9999px; z-index: 2; }
@media (max-width: 639px) { .phone-frame { height: 480px; } }

/* ---------- FAQ ---------- */
.faq-item { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 1.25rem; overflow: hidden; transition: all .3s ease; }
.faq-item.open { border-color: var(--primary-light); box-shadow: 0 16px 40px -16px rgba(var(--primary-rgb), .3); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 1.6rem; font-weight: 700; text-align: left; color: var(--text); cursor: pointer; }
.faq-icon { color: var(--primary); transition: transform .3s ease; flex: none; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a-inner { padding: 0 1.6rem 1.4rem; color: var(--text-soft); line-height: 1.9; }

/* ---------- CTA ---------- */
.cta-card { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--primary-deep), var(--primary) 50%, var(--accent)); }
.cta-card::before { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(255, 255, 255, .12); top: -140px; right: -90px; }
.cta-card::after { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .08); bottom: -120px; left: -70px; }

/* ---------- 子页页头 ---------- */
.page-header { position: relative; overflow: hidden; padding: 9.5rem 0 4.5rem; background: linear-gradient(180deg, var(--page-head-grad-a), var(--page-head-grad-b)); }

/* ---------- 步骤 ---------- */
.step-num {
  width: 3.2rem; height: 3.2rem; border-radius: 9999px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 26px -10px rgba(var(--primary-rgb), .5);
}

/* ---------- 滚动入场 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
.reveal.d5 { transition-delay: .5s; } .reveal.d6 { transition-delay: .6s; }

/* ---------- 返回顶部 ---------- */
#toTop {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 60;
  width: 3rem; height: 3rem; border-radius: 9999px;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  box-shadow: 0 14px 30px -8px rgba(var(--primary-rgb), .55);
  opacity: 0; pointer-events: none; transform: translateY(14px); transition: all .3s ease;
}
#toTop.show { opacity: 1; pointer-events: auto; transform: none; }
#toTop:hover { transform: translateY(-3px); }

/* ---------- 页脚 ---------- */
.footer-link { color: #94a3b8; transition: color .2s ease; }
.footer-link:hover { color: #fff; }
