/* ============================================================
   855886.xyz — 主样式
   设计：深色克制玻璃 / 蓝紫强调 / 轻动效
   红线：不用大面积 filter:blur；backdrop-filter 仅导航与少量浮层
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  /* 深色基调 */
  --bg: #08080c;
  --bg-elev: #0e0e14;
  --bg-elev-2: #14141c;
  --fg: #f2f2f5;
  --fg-soft: #b4b4c0;
  --muted: #7a7a8a;
  --muted-2: #55555f;

  /* 线与玻璃 */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-bd: rgba(255, 255, 255, 0.10);

  /* 强调色（蓝紫） */
  --blue: #4d7cfe;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --grad: linear-gradient(115deg, var(--blue), var(--indigo) 50%, var(--violet));
  --grad-soft: linear-gradient(115deg, rgba(77,124,254,.16), rgba(139,92,246,.16));

  /* 尺寸 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-full: 999px;
  --maxw: 1120px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 静态网格背景（预渲染，零重绘成本） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* 极轻的静态渐变辉光（radial-gradient，无 blur，不重绘） */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 78% -8%, rgba(99,102,241,.13), transparent 70%),
    radial-gradient(760px 420px at 6% 104%, rgba(139,92,246,.10), transparent 70%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 导航（唯一大面积 backdrop-filter 处） ---------- */
.nav-shell {
  position: sticky; top: 0; z-index: 100;
  padding: 14px 0;
  background: rgba(8,8,12,.62);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav-shell.scrolled {
  border-bottom-color: var(--line);
  background: rgba(8,8,12,.86);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 650; font-size: 15.5px; letter-spacing: -.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--grad);
  position: relative; flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(99,102,241,.35);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 5px;
  border-radius: 3px;
  background: var(--bg);
  opacity: .55;
}
.brand-name:empty { display: none; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 13px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 500; color: var(--fg-soft);
  transition: color .18s var(--ease), background .18s var(--ease);
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,.055); }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--grad);
}

.nav-tools { display: flex; align-items: center; gap: 10px; }

/* 语言切换 */
.lang {
  display: inline-flex; padding: 3px; border-radius: var(--r-full);
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
}
.lang button {
  border: 0; background: none; cursor: pointer;
  padding: 5px 11px; border-radius: var(--r-full);
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  transition: .18s var(--ease);
}
.lang button:hover { color: var(--fg-soft); }
.lang button.on {
  background: rgba(255,255,255,.10); color: var(--fg);
  box-shadow: 0 1px 6px rgba(0,0,0,.3);
}

/* 移动端菜单按钮 */
.menu-btn {
  display: none;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: rgba(255,255,255,.05);
  cursor: pointer; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.menu-btn span {
  display: block; width: 15px; height: 1.5px; border-radius: 2px;
  background: var(--fg-soft); transition: .2s var(--ease);
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* 移动端抽屉 */
.nav-drawer {
  display: none;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 10px;
  flex-direction: column;
  gap: 2px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  padding: 11px 14px; border-radius: var(--r-sm);
  font-size: 15px; color: var(--fg-soft);
}
.nav-drawer a:hover, .nav-drawer a.active {
  background: rgba(255,255,255,.06); color: var(--fg);
}

/* ---------- 通用容器 ---------- */
main { flex: 1 0 auto; }

section { padding: 62px 0; }
.section-head { margin-bottom: 30px; }
.section-head .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 11px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 650; letter-spacing: -.03em; line-height: 1.2;
}
.section-head p.lead {
  margin-top: 11px; color: var(--fg-soft); font-size: 15.5px; max-width: 620px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: var(--r-full);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .16s var(--ease), opacity .16s var(--ease),
              background .16s var(--ease), border-color .16s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--fg); color: #0a0a0e; }
.btn-primary:hover { opacity: .88; }
.btn-ghost {
  background: rgba(255,255,255,.05); border-color: var(--line-strong); color: var(--fg);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 68px; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: var(--r-full);
  background: var(--glass); border: 1px solid var(--glass-bd);
  font-size: 12.5px; font-weight: 600; color: var(--fg-soft);
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--grad);
  box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}
.hero h1 {
  font-size: clamp(2.15rem, 5.6vw, 3.6rem);
  font-weight: 680; line-height: 1.07; letter-spacing: -.038em;
  max-width: 860px; text-wrap: balance;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p.sub {
  margin-top: 22px; font-size: 17px; line-height: 1.72;
  color: var(--fg-soft); max-width: 560px;
}
.hero .ctas { display: flex; gap: 13px; margin-top: 34px; flex-wrap: wrap; }

/* Hero 下方的指标条 */
.hero-stats {
  display: flex; gap: 40px; margin-top: 52px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.stat .num {
  font-size: 26px; font-weight: 680; letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; line-height: 1.1;
}
.stat .lbl { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

/* ---------- 项目卡片 ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.proj-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: transform .22s var(--ease), border-color .22s var(--ease),
              background .22s var(--ease);
  overflow: hidden;
}
.proj-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: var(--grad); opacity: 0;
  transition: opacity .22s var(--ease);
}
.proj-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--bg-elev-2);
}
.proj-card:hover::before { opacity: .9; }

.proj-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.proj-name { font-size: 17px; font-weight: 650; letter-spacing: -.02em; line-height: 1.3; }
.proj-status {
  flex-shrink: 0;
  font-size: 11px; font-weight: 650; letter-spacing: .02em;
  padding: 4px 9px; border-radius: var(--r-full);
  white-space: nowrap;
}
.proj-status.released { color: #6ee7a8; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.22); }
.proj-status.developing { color: #fbbf6e; background: rgba(251,191,110,.10); border: 1px solid rgba(251,191,110,.20); }
.proj-status.planned { color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--line); }

.proj-desc { font-size: 14px; line-height: 1.66; color: var(--fg-soft); flex: 1; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.proj-tag {
  font-size: 11.5px; font-weight: 550; color: var(--muted);
  padding: 4px 9px; border-radius: 6px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.proj-foot { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.proj-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--fg-soft);
  transition: color .18s var(--ease), gap .18s var(--ease);
}
.proj-link:hover { color: var(--fg); gap: 9px; }
.proj-link .arr { font-size: 14px; }
.proj-link.disabled { color: var(--muted-2); cursor: default; }

/* ---------- 空状态 ---------- */
.empty {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 52px 24px;
  text-align: center;
  background: rgba(255,255,255,.016);
}
.empty-ico {
  width: 46px; height: 46px; margin: 0 auto 15px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.045); border: 1px solid var(--line);
  color: var(--muted); font-size: 20px;
}
.empty h3 { font-size: 15.5px; font-weight: 620; color: var(--fg-soft); margin-bottom: 7px; }
.empty p { font-size: 13.5px; color: var(--muted); max-width: 380px; margin: 0 auto; }

/* ---------- 内容面板（重点区块用玻璃） ---------- */
.panel {
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-bd);
  padding: 30px;
}
.panel-glass {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- 关于页 / 正文排版 ---------- */
.prose { max-width: 720px; }
.prose h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem); font-weight: 650;
  letter-spacing: -.028em; margin: 42px 0 16px; line-height: 1.25;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; font-weight: 640; margin: 28px 0 11px; letter-spacing: -.015em; }
.prose p { color: var(--fg-soft); font-size: 15.5px; line-height: 1.78; margin-bottom: 15px; }
.prose ul { margin: 0 0 16px 0; padding-left: 0; list-style: none; }
.prose ul li {
  position: relative; padding-left: 20px; margin-bottom: 9px;
  color: var(--fg-soft); font-size: 15px; line-height: 1.7;
}
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 6px; height: 6px; border-radius: 2px; background: var(--grad);
}
.prose strong { color: var(--fg); font-weight: 620; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; padding: 2px 7px; border-radius: 6px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  color: #c8b6ff;
}

/* 页面头部 */
.page-head { padding: 58px 0 34px; border-bottom: 1px solid var(--line); margin-bottom: 46px; }
.page-head .eyebrow {
  font-size: 12px; font-weight: 650; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: block;
}
.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 680;
  letter-spacing: -.034em; line-height: 1.12;
}
.page-head p { margin-top: 14px; color: var(--fg-soft); font-size: 16px; max-width: 620px; }

/* ---------- 文档 / 公告列表 ---------- */
.list-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 22px; border-radius: var(--r-md);
  background: var(--bg-elev); border: 1px solid var(--line);
  transition: border-color .2s var(--ease), background .2s var(--ease);
  margin-bottom: 12px;
}
.list-item:hover { border-color: var(--line-strong); background: var(--bg-elev-2); }
.list-date {
  flex-shrink: 0; font-size: 12.5px; color: var(--muted);
  font-variant-numeric: tabular-nums; padding-top: 2px; min-width: 88px;
}
.list-body h3 { font-size: 16px; font-weight: 620; letter-spacing: -.015em; margin-bottom: 6px; }
.list-body p { font-size: 14px; color: var(--fg-soft); line-height: 1.66; }

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 40px 0 46px;
  flex-shrink: 0;
}
.foot {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 28px; flex-wrap: wrap;
}
.foot-brand { max-width: 280px; }
.foot-brand .brand { margin-bottom: 10px; }
.foot-brand p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.foot-links { display: flex; gap: 44px; flex-wrap: wrap; }
.foot-col h4 {
  font-size: 12px; font-weight: 650; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px;
}
.foot-col a {
  display: block; font-size: 13.5px; color: var(--fg-soft);
  padding: 4px 0; transition: color .16s var(--ease);
}
.foot-col a:hover { color: var(--fg); }
.foot-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted-2);
}

/* ---------- 入场动效（轻） ---------- */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  section { padding: 48px 0; }
  .hero { padding: 64px 0 50px; }
  .hero-stats { gap: 28px; }
  .stat .num { font-size: 22px; }
  .foot { flex-direction: column; gap: 30px; }
  .foot-links { gap: 36px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.5rem); }
  .proj-grid { grid-template-columns: 1fr; }
  .panel { padding: 22px; }
  .list-item { flex-direction: column; gap: 8px; }
  .list-date { min-width: 0; }
}

/* ---------- 无障碍 / 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 屏幕阅读器专用 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}