/* ============================================================
   浮光 FULIGHT — 设计系统
   亮色纸感 / 柔光弥散 / 大圆角 / 轻阴影
   ============================================================ */

:root {
  --paper: #fbfaf7;
  --paper-2: #f4f1e9;
  --card: #ffffff;
  --ink: #17161b;
  --ink-2: #4b4841;
  --ink-3: #8b867c;
  --ink-4: #b3aea4;
  --line: rgba(23, 22, 27, 0.07);
  --line-2: rgba(23, 22, 27, 0.13);
  --blue: #6b87ff;
  --blue-soft: #eef2ff;
  --coral: #ff8a66;
  --coral-soft: #fff1ec;
  --mint: #4fc3a1;
  --mint-soft: #ecfbf5;
  --lilac: #b0a0ff;
  --up: #e5484d;
  --down: #12a06a;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow-xs: 0 1px 2px rgba(40, 34, 20, 0.04);
  --shadow-sm: 0 2px 10px rgba(40, 34, 20, 0.05);
  --shadow: 0 24px 60px -28px rgba(58, 48, 28, 0.28), 0 2px 8px rgba(40, 34, 20, 0.04);
  --shadow-lg: 0 40px 90px -40px rgba(58, 48, 28, 0.35), 0 4px 14px rgba(40, 34, 20, 0.05);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC",
    "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 柔光背景 */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 38% at 12% 6%, rgba(255, 196, 168, 0.42), transparent 70%),
    radial-gradient(44% 40% at 88% 2%, rgba(176, 196, 255, 0.4), transparent 72%),
    radial-gradient(50% 42% at 70% 78%, rgba(168, 232, 208, 0.34), transparent 72%),
    radial-gradient(40% 34% at 18% 92%, rgba(214, 200, 255, 0.3), transparent 70%);
}

::selection { background: rgba(107, 135, 255, 0.22); }

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

button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }

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

.wrap {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* ------------------------------- 导航 ------------------------------- */

.nav-shell {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 28px));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 36px -18px rgba(58, 48, 28, 0.4), inset 0 0 0 1px rgba(23, 22, 27, 0.04);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 6px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #fff, #eaf0ff);
  border: 1px solid rgba(23, 22, 27, 0.06);
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px -4px rgba(60, 60, 120, 0.3);
  overflow: hidden;
}

.brand-name {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-name small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--ink-4);
  font-weight: 600;
  line-height: 1;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}

.nav-links a svg { width: 15px; height: 15px; stroke-width: 1.7; opacity: 0.85; }

.nav-links a span { font-size: 10.5px; letter-spacing: 0.02em; }

.nav-links a:hover { background: rgba(23, 22, 27, 0.05); color: var(--ink); transform: translateY(-1px); }

.nav-links a.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 10px -4px rgba(58, 48, 28, 0.3), inset 0 0 0 1px rgba(23, 22, 27, 0.05);
}

.nav-links a.active svg { opacity: 1; color: var(--blue); }

.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}

.pill-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.pill-btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }

.pill-btn--ink:hover { background: #2a2833; }

/* 在线状态点 */
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(79, 195, 161, 0.6);
  animation: pulseDot 2.4s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(79, 195, 161, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(79, 195, 161, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 195, 161, 0); }
}

/* ------------------------------- 通用 ------------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--ink-4);
}

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

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.sec-head h2 {
  margin: 12px 0 6px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.sec-head p { margin: 0; color: var(--ink-2); max-width: 42ch; font-size: 14.5px; }

.sec-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.25s var(--ease);
}

.sec-link:hover { background: #fff; color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(23, 22, 27, 0.05);
  color: var(--ink-2);
}

.tag--blue { background: var(--blue-soft); color: #4a5ed0; }
.tag--coral { background: var(--coral-soft); color: #d2623c; }
.tag--mint { background: var(--mint-soft); color: #1e8f6d; }

.up { color: var(--up); }
.down { color: var(--down); }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* 入场动效 */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------- 页脚 ------------------------------- */

.footer {
  margin-top: 40px;
  padding: 46px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand { max-width: 320px; }

.footer-brand p { margin: 10px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.8; }

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }

.footer-col h4 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  text-transform: uppercase;
  font-weight: 600;
}

.footer-col a, .footer-col span {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-4);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ------------------------------- 响应式 ------------------------------- */

@media (max-width: 1080px) {
  .nav-links a { padding: 7px 8px; }
  .nav-links a span { font-size: 9.5px; }
  .brand-name small { display: none; }
}

@media (max-width: 900px) {
  .wrap { width: calc(100% - 32px); }
  .nav-shell { top: 10px; padding: 7px 8px; gap: 6px; }
  .nav-links { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a span { display: none; }
  .nav-links a { padding: 9px; }
  .nav-links a svg { width: 17px; height: 17px; }
  .brand-name { font-size: 13px; }
  .nav-right .pill-btn { height: 34px; padding: 0 13px; font-size: 12px; }
  .nav-right .pill-btn span.lbl { display: none; }
  .section { padding: 64px 0; }
  .footer-cols { gap: 32px; }
}

/* ------------------------------- 提示条 ------------------------------- */

.fl-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 14px);
  z-index: 200;
  max-width: min(88vw, 420px);
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(23, 22, 27, 0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 18px 40px -18px rgba(23, 22, 27, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  backdrop-filter: blur(8px);
}

.fl-toast.show { opacity: 1; transform: translate(-50%, 0); }

.fl-toast[data-type="error"] { background: rgba(198, 62, 56, 0.95); }

/* ---------------------------- 内页通用头部 ---------------------------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}

.page-head h1 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 3.8vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.page-head p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 46ch; }

.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mini-btn {
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.8);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.mini-btn:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.mini-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, #f1efea 25%, #f8f7f3 37%, #f1efea 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

[hidden] { display: none !important; }

.empty {
  padding: 40px 20px;
  text-align: center;
  border-radius: 22px;
  border: 1px dashed var(--line-2);
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .nav-links a { padding: 8px 9px; }
  .nav-links a svg { width: 18px; height: 18px; }
}
