/* ============================================================
   前台页面样式 v2 —— Harness 风格：悬浮胶囊导航 + 无卡片编辑式布局
   ============================================================ */

html { scroll-behavior: smooth; }
section[id], div[id="top"] { scroll-margin-top: calc(96px + var(--announce-h, 0px)); }
body.announce-past section[id], body.announce-past div[id="top"] { scroll-margin-top: 96px; }

/* ============ 加载态 ============ */
.boot-loading { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.boot-logo {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2, var(--ds-color-brand-deep)));
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff;
  animation: bootBounce 1.4s var(--ds-ease) infinite;
  box-shadow: 0 8px 32px var(--ds-card-hover-glow);
}
@keyframes bootBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}
.boot-text { color: var(--ds-color-text-description); font-size: 14px; }
.boot-error { text-align: center; padding: 60px 20px; }
.boot-error h2 { margin-bottom: 12px; }

/* ============================================================
   悬浮胶囊导航（复刻 Harness 官网）
   ============================================================ */
.ds-nav-wrap {
  position: fixed; top: calc(14px + var(--announce-h, 0px)); left: 0; right: 0;
  margin: 0 auto;
  width: min(100% - 36px, 1140px);
  z-index: 200;
  pointer-events: none;
  transition: top .5s var(--ds-ease), opacity .35s ease, visibility .35s ease;
}
/* 滚动越过公告条后，导航回到顶部位置 */
body.announce-past .ds-nav-wrap { top: 14px; }
/* 移动菜单打开时隐藏悬浮导航（菜单头部自带品牌与关闭按钮，避免重复） */
body.menu-open .ds-nav-wrap { opacity: 0; visibility: hidden; }
.ds-nav-bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 8px;
  height: 58px;
  padding: 0 12px 0 18px;
  border-radius: 100px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--ds-nav-bg, rgba(248,247,246,.55)), var(--ds-nav-bg, rgba(248,247,246,.55))) padding-box,
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.25) 35%, rgba(255,255,255,.15) 65%, rgba(255,255,255,.6)) border-box;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 2px 10px rgba(23,28,38,.04), 0 1px 2px rgba(23,28,38,.03);
  transition: box-shadow .4s var(--ds-ease), background .4s ease, transform .4s var(--ds-ease);
  animation: navDrop .8s var(--ds-ease) .15s both;
}
[data-theme="dark"] .ds-nav-bar {
  background:
    linear-gradient(var(--ds-nav-bg, rgba(12,12,12,.5)), var(--ds-nav-bg, rgba(12,12,12,.5))) padding-box,
    linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.06) 35%, rgba(255,255,255,.05) 65%, rgba(255,255,255,.16)) border-box;
  box-shadow: 0 2px 14px rgba(0,0,0,.3);
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
.ds-nav-bar:hover { transform: translateY(-1px); }
.ds-nav-wrap.scrolled .ds-nav-bar {
  --ds-nav-bg: var(--ds-header-bg);
  box-shadow: 0 10px 34px rgba(23,28,38,.12), 0 1px 2px rgba(23,28,38,.06);
}
[data-theme="dark"] .ds-nav-wrap.scrolled .ds-nav-bar { box-shadow: 0 10px 40px rgba(0,0,0,.55); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; font-family: var(--ds-font-display); letter-spacing: -.01em; white-space: nowrap; cursor: pointer; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2, var(--ds-color-brand-deep)));
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #fff;
  box-shadow: 0 4px 14px var(--ds-card-hover-glow);
  transition: transform .35s var(--ds-ease);
  overflow: hidden;
}
.brand-logo.has-image { background: var(--ds-color-bg-surface-2); padding: 3px; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 8px; }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }

/* 版本徽章（Harness 玻璃 chip） */
.brand-chip {
  display: inline-flex; align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: var(--ds-font-mono);
  font-size: 11px; font-weight: 500; line-height: 1;
  color: var(--ds-color-text-secondary);
  background: var(--ds-color-bg-code);
  border: 1px solid var(--ds-color-border-default);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ds-nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.ds-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 14.5px; font-weight: 500;
  color: var(--ds-color-text-secondary);
  transition: color .25s ease, background .25s ease;
}
.ds-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2, var(--ds-color-brand-deep)));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ds-ease);
}
.ds-nav a:hover { color: var(--ds-color-text-primary); background: var(--ds-color-bg-hover); }
.ds-nav a:hover::after { transform: scaleX(1); }
.ds-nav a.active { color: var(--ds-color-text-primary); background: var(--ds-color-bg-hover); }
.ds-nav a.active::after { transform: scaleX(1); }

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

/* 汉堡按钮 */
.nav-burger {
  display: none;
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--ds-color-border-default);
  background: var(--ds-color-bg-surface-2);
  cursor: pointer;
}
.nav-burger span {
  position: absolute; left: 11px; right: 11px; height: 2px;
  border-radius: 2px; background: var(--ds-color-text-primary);
  transition: all .35s var(--ds-ease);
}
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 18px; }
.nav-burger span:nth-child(3) { top: 23px; }
.nav-burger.open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav-burger.open span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

/* ============ 移动端全屏菜单 ============ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 199;
  display: flex; flex-direction: column;
  background: var(--ds-color-bg-page);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transform: translateY(-104%);
  opacity: 0;
  pointer-events: none;
  transition: transform .55s var(--ds-ease), opacity .4s ease;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
}
.mobile-nav { flex: 1; padding: 20px 26px; display: flex; flex-direction: column; }
.mobile-nav a {
  padding: 17px 4px;
  font-family: var(--ds-font-display);
  font-size: 26px; font-weight: 700;
  color: var(--ds-color-text-primary);
  border-bottom: 1px solid var(--ds-color-border-divider);
  display: flex; align-items: center; justify-content: space-between;
  transition: color .25s ease, padding-left .3s var(--ds-ease);
}
.mobile-nav a::after { content: "→"; font-size: 18px; color: var(--ds-color-text-placeholder); transition: transform .3s var(--ds-ease); }
.mobile-nav a:hover { color: var(--brand-text); padding-left: 12px; }
.mobile-nav a:hover::after { transform: translateX(6px); }
.mobile-nav a.active { color: var(--brand-text); padding-left: 12px; }
.mobile-nav a.active::after { transform: translateX(6px); }
.mobile-menu-foot { padding: 24px 26px 40px; display: flex; flex-direction: column; gap: 16px; align-items: stretch; }

/* ============ 公告条 ============ */
.announcement-bar {
  position: relative; z-index: 90;
  background: linear-gradient(90deg, var(--brand), var(--brand-2, var(--ds-color-brand-medium-reverse)));
  color: #fff; font-size: 14px; text-align: center;
  padding: 10px 56px;
  animation: announceDown .5s var(--ds-ease);
}
@keyframes announceDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.announcement-bar .close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff; font-size: 15px; cursor: pointer;
  opacity: .85; width: 28px; height: 28px; border-radius: 50%;
  transition: background .25s ease;
}
.announcement-bar .close:hover { background: rgba(255, 255, 255, .2); }

/* ============================================================
   Hero（支持可更换背景图）
   首屏自适应：min-height 用视口单位（100svh），不设固定高度，
   内容垂直居中，任何屏幕尺寸下首屏都只显示 Hero，
   下一区块自然位于首屏之外（下滑才能看到）。
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 150px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(58% 42% at 50% 0%, var(--brand-soft), transparent 72%),
    radial-gradient(30% 26% at 12% 88%, var(--hero-orb-3), transparent 70%),
    radial-gradient(26% 22% at 88% 80%, var(--hero-orb-2), transparent 70%);
  pointer-events: none;
}
/* 可更换背景图 */
.hero-bg {
  position: absolute; inset: -40px;
  background-size: cover; background-position: center;
  filter: blur(var(--hero-blur, 0px));
  transform: scale(1.04);
  opacity: var(--hero-img-opacity, 1);
  transition: opacity .6s ease;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--hero-mask-top, rgba(248,247,246,.86)) 0%, rgba(248,247,246, calc(var(--hero-overlay, .6))) 55%, var(--ds-color-bg-page) 100%);
}
[data-theme="dark"] .hero-bg::after {
  background: linear-gradient(180deg, rgba(10,10,10,.82) 0%, rgba(10,10,10, calc(var(--hero-overlay, .72))) 55%, #0a0a0a 100%);
}
.hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  opacity: .55;
  animation: orbDrift 24s ease-in-out infinite alternate;
}
.orb-1 { width: 480px; height: 480px; top: -140px; left: 6%; background: radial-gradient(circle, var(--hero-orb-1), transparent 62%); }
.orb-2 { width: 380px; height: 380px; top: 30%; right: 2%; background: radial-gradient(circle, var(--hero-orb-2), transparent 62%); animation-delay: -8s; }
.orb-3 { width: 300px; height: 300px; bottom: -80px; left: 40%; background: radial-gradient(circle, var(--hero-orb-3), transparent 62%); animation-delay: -16s; }
@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(50px, 36px) scale(1.18); }
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 880px; margin: 0 auto; }
.hero-badge { margin-bottom: 26px; animation: fadeDown .8s var(--ds-ease) both; }
.hero h1 {
  font-family: var(--ds-font-display);
  font-size: clamp(40px, 6.6vw, 70px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--ds-color-text-primary) 30%, var(--brand-text) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp .9s var(--ds-ease) .08s both;
}
.hero .hero-sub {
  margin: 22px auto 0; max-width: 620px;
  font-size: 17.5px; color: var(--ds-color-text-secondary);
  animation: fadeUp .9s var(--ds-ease) .16s both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }

/* 无卡片状态区 */
.hero-status {
  margin: 44px auto 0; max-width: 720px;
  text-align: left;
  animation: fadeUp .9s var(--ds-ease) .28s both;
}
.status-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.status-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: var(--ds-radius-pill);
  font-size: 13.5px; font-weight: 700;
}
.status-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #9ca3af; }
.status-badge.online { background: rgba(34, 197, 94, .12); color: #16a34a; border: 1px solid rgba(34, 197, 94, .3); }
.status-badge.online .dot { background: #22c55e; animation: dotPulse 2s ease-in-out infinite; }
[data-theme="dark"] .status-badge.online { color: #4ade80; }
.status-badge.offline { background: rgba(245, 158, 11, .12); color: #b45309; border: 1px solid rgba(245, 158, 11, .34); }
.status-badge.offline .dot { background: #f59e0b; }
[data-theme="dark"] .status-badge.offline { color: #fbbf24; border-color: rgba(251, 191, 36, .4); }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); }
  50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}
.hero-ip {
  font-family: var(--ds-font-mono);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ds-color-text-primary);
}
.hero-ip .ip-copy {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 10px; padding: 6px 16px;
  font-family: var(--ds-font-body);
  font-size: 13px; font-weight: 600;
  border-radius: var(--ds-radius-pill);
  border: 1px solid var(--ds-card-hover-border);
  background: var(--brand-soft);
  color: var(--brand-text);
  cursor: pointer;
  transition: all .25s var(--ds-ease);
  vertical-align: middle;
}
[data-theme="dark"] .hero-ip .ip-copy { background: rgba(103, 153, 254, .22); border-color: rgba(103, 153, 254, .5); }
.hero-ip .ip-copy:hover { transform: translateY(-1px); box-shadow: 0 4px 14px var(--ds-card-hover-glow); }
.status-stats {
  margin-top: 22px;
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  font-size: 14.5px; color: var(--ds-color-text-secondary);
}
.status-stats .stat { display: flex; align-items: baseline; gap: 8px; padding: 0 20px; border-right: 1px solid var(--ds-color-border-default); }
.status-stats .stat:last-child { border-right: none; }
.stat-num { font-family: var(--ds-font-display); font-size: 22px; font-weight: 700; color: var(--ds-color-text-primary); }
.stat-label { font-size: 13px; color: var(--ds-color-text-description); }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.status-error { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--ds-color-text-placeholder); }
.status-note {
  margin-top: 16px; text-align: center;
  font-size: 13px; font-weight: 500;
  color: #b45309;
}
[data-theme="dark"] .status-note { color: #fbbf24; }

/* ============ 区块通用 ============ */
.site-section { padding: clamp(64px, 9vw, 96px) 0; position: relative; }
.site-section.tinted { background: radial-gradient(52% 40% at 50% 0%, var(--brand-soft), transparent 72%); }

/* ============ 分隔行列表（无卡片布局核心） ============ */
.split-list { max-width: 900px; margin: 0 auto; }
.split-row {
  display: flex; align-items: flex-start; gap: 26px;
  padding: 30px 12px;
  border-bottom: 1px solid var(--ds-color-border-divider);
  position: relative;
  transition: background .3s ease, padding-left .35s var(--ds-ease);
}
.split-row::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2, var(--ds-color-brand-deep)));
  opacity: 0; transform: scaleY(.3);
  transition: opacity .35s ease, transform .4s var(--ds-ease);
}
.split-row:hover { background: var(--ds-color-bg-hover); padding-left: 22px; }
.split-row:hover::before { opacity: 1; transform: scaleY(1); }
.split-row:first-child { border-top: 1px solid var(--ds-color-border-divider); }
.split-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 15px;
  background: var(--brand-soft);
  border: 1px solid var(--ds-card-hover-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  transition: transform .4s var(--ds-ease), box-shadow .4s ease;
}
.split-row:hover .split-icon { transform: scale(1.08) rotate(-6deg); box-shadow: 0 6px 18px var(--ds-card-hover-glow); }
.split-main { flex: 1; min-width: 0; }
.split-main h3 { font-family: var(--ds-font-display); font-size: 19px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.split-main p { font-size: 15px; color: var(--ds-color-text-description); max-width: 640px; }
.split-side { flex-shrink: 0; align-self: center; }
.split-side .num-tag {
  font-family: var(--ds-font-mono);
  font-size: 12px; letter-spacing: .05em;
  background: var(--ds-color-bg-surface-3);
  color: var(--ds-color-text-secondary);
  border-color: var(--ds-color-border-default);
}

/* ============ 玩法双列 ============ */
.mode-cols { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.mode-item { padding: 26px 4px 26px 0; border-bottom: 1px solid var(--ds-color-border-divider); position: relative; min-height: 150px; }
.mode-item::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2, var(--ds-color-brand-deep)));
  transition: width .5s var(--ds-ease);
}
.mode-item:hover::after { width: 100%; }
.mode-item .m-icon { font-size: 30px; margin-bottom: 10px; display: inline-block; transition: transform .4s var(--ds-ease); }
.mode-item:hover .m-icon { transform: translateY(-3px) scale(1.12); }
.mode-item h3 { font-family: var(--ds-font-display); font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mode-item p { margin-top: 8px; font-size: 14.5px; color: var(--ds-color-text-description); }

/* ============ 公告时间线 ============ */
.posts-list { max-width: 760px; margin: 0 auto; }
.post { position: relative; padding: 0 0 36px 32px; border-left: 2px solid var(--ds-color-border-default); }
.post::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ds-color-bg-page);
  border: 2.5px solid var(--ds-color-border-strong);
  transition: all .3s ease;
}
.post:hover::before { border-color: var(--brand); box-shadow: 0 0 0 5px var(--ds-card-hover-glow); }
.post.pinned::before { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ds-card-hover-glow); }
.post:last-child { border-left-color: transparent; }
.post-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.post-date { font-family: var(--ds-font-mono); font-size: 12.5px; color: var(--ds-color-text-placeholder); }
.post-title { font-size: 18px; font-weight: 700; font-family: var(--ds-font-display); }
.post .post-body { font-size: 14.5px; color: var(--ds-color-text-secondary); }
.post .post-body p { margin: 6px 0; }
.post .post-body ul { margin: 6px 0 6px 4px; padding-left: 22px; }
.post .post-body li { margin: 3px 0; }
.post .post-body code { background: var(--ds-color-bg-code); border: 1px solid var(--ds-color-border-default); border-radius: 5px; padding: 1px 6px; font-family: var(--ds-font-mono); font-size: 13px; }
.post .post-body strong { color: var(--ds-color-text-primary); }

/* ============ 截图墙 ============ */
.gallery-grid { columns: 3; column-gap: 18px; }
@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 560px) { .gallery-grid { columns: 1; } }
.g-item {
  break-inside: avoid; margin-bottom: 18px; position: relative;
  border-radius: 16px; overflow: hidden; cursor: zoom-in;
  transition: transform .45s var(--ds-ease), box-shadow .45s var(--ds-ease);
}
.g-item:hover { transform: translateY(-5px); box-shadow: var(--ds-shadow-float); }
.g-item img { width: 100%; height: auto; transition: transform .6s var(--ds-ease); }
.g-item:hover img { transform: scale(1.045); }
.g-item .g-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
  color: #fff; font-size: 13.5px; opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s var(--ds-ease);
}
.g-item:hover .g-cap { opacity: 1; transform: none; }
/* 触屏设备：无 hover，图注常显 */
@media (hover: none) {
  .g-item .g-cap { opacity: 1; transform: none; padding: 30px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .68)); }
}

/* ============ 团队行 ============ */
.team-list { max-width: 860px; margin: 0 auto; }
.team-row {
  display: flex; align-items: center; gap: 24px;
  padding: 26px 12px;
  border-bottom: 1px solid var(--ds-color-border-divider);
  transition: background .3s ease, padding-left .35s var(--ds-ease);
}
.team-row:first-child { border-top: 1px solid var(--ds-color-border-divider); }
.team-row:hover { background: var(--ds-color-bg-hover); padding-left: 24px; }
.team-avatar {
  flex-shrink: 0;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; color: #fff;
  box-shadow: 0 6px 20px var(--ds-card-hover-glow);
  transition: transform .4s var(--ds-ease);
}
.team-row:hover .team-avatar { transform: scale(1.08) rotate(-5deg); }
.team-main { flex: 1; min-width: 0; }
.team-main h3 { font-size: 17px; font-weight: 700; font-family: var(--ds-font-display); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.team-main p { margin-top: 4px; font-size: 14px; color: var(--ds-color-text-description); }
.team-side { flex-shrink: 0; }

/* ============ 手风琴（无盒子） ============ */
.acc-list { max-width: 800px; margin: 0 auto; }
.acc-item { border-bottom: 1px solid var(--ds-color-border-divider); }
.acc-item:first-child { border-top: 1px solid var(--ds-color-border-divider); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 10px;
  background: none; border: none; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--ds-color-text-primary);
  font-family: var(--ds-font-body); text-align: left;
  transition: color .25s ease, padding-left .3s var(--ds-ease);
}
.acc-item:hover .acc-head { color: var(--brand-text); padding-left: 18px; }
.acc-head .chev {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ds-color-bg-hover); display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--ds-color-text-description);
  transition: transform .4s var(--ds-ease), background .3s ease, color .3s ease;
}
[data-theme="dark"] .acc-head .chev { background: hsla(0, 0%, 100%, .14); color: hsla(0, 0%, 100%, .8); }
.acc-item.open .chev { transform: rotate(180deg); background: var(--brand-soft); color: var(--brand-text); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .5s var(--ds-ease); }
.acc-body-inner { padding: 2px 10px 22px; font-size: 14.5px; color: var(--ds-color-text-secondary); }
.acc-body-inner .num { font-family: var(--ds-font-mono); color: var(--brand-text); margin-right: 8px; font-weight: 700; }

/* ============ 赞助档位（行式排版） ============ */
.store-notice {
  max-width: 640px; margin: 0 auto 36px; text-align: center;
  font-size: 13.5px; color: var(--ds-color-text-description);
}
.tier-list { max-width: 900px; margin: 0 auto; }
.tier-row {
  display: flex; align-items: center; gap: 28px;
  padding: 30px 12px;
  border-bottom: 1px solid var(--ds-color-border-divider);
  position: relative;
  transition: background .3s ease, padding-left .35s var(--ds-ease);
}
.tier-row:first-child { border-top: 1px solid var(--ds-color-border-divider); }
.tier-row:hover { background: var(--ds-color-bg-hover); padding-left: 24px; }
.tier-row.highlight::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2, var(--ds-color-brand-deep)));
  box-shadow: 0 0 14px var(--ds-card-hover-glow);
}
.tier-row.highlight { background: linear-gradient(90deg, var(--brand-soft), transparent 55%); }
.tier-name { font-size: 18px; font-weight: 700; font-family: var(--ds-font-display); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tier-price { font-family: var(--ds-font-display); font-size: 40px; font-weight: 700; letter-spacing: -.02em; color: var(--brand-text); line-height: 1; }
.tier-desc { margin-top: 6px; font-size: 13.5px; color: var(--ds-color-text-description); }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.tier-features li { display: flex; gap: 10px; font-size: 14px; color: var(--ds-color-text-secondary); }
.tier-features .tick { color: var(--brand-text); font-weight: 700; flex-shrink: 0; }
.tier-side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 150px; }

/* ============ 赞助感谢墙 ============ */
.donations { max-width: 1000px; margin: 64px auto 0; text-align: center; }
.donations-title { font-family: var(--ds-font-display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.donations-sub { margin-top: 6px; font-size: 13.5px; color: var(--ds-color-text-description); }
.donations-row { margin-top: 38px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.don-chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 9px;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-color-bg-surface-2);
  border: 1px solid var(--ds-color-border-subtle);
  backdrop-filter: blur(var(--ds-blur-glass)); -webkit-backdrop-filter: blur(var(--ds-blur-glass));
  cursor: default;
  transition: transform .35s var(--ds-ease), border-color .35s ease, box-shadow .35s ease;
}
.don-chip:hover, .don-chip:focus-visible, .don-chip.open {
  transform: translateY(-4px);
  border-color: var(--ds-card-hover-border);
  box-shadow: var(--ds-shadow-float), 0 0 24px var(--ds-card-hover-glow);
  outline: none;
}
.don-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2, var(--ds-color-brand-deep)));
  overflow: hidden;
}
.don-avatar img { width: 100%; height: 100%; object-fit: cover; }
.don-name { font-size: 14px; font-weight: 600; color: var(--ds-color-text-primary); }
.don-amount {
  font-family: var(--ds-font-mono);
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
  color: var(--brand-text);
  background: var(--brand-soft);
  border: 1px solid var(--ds-card-hover-border);
  padding: 3px 10px; border-radius: var(--ds-radius-pill);
  white-space: nowrap;
}
/* 悬浮详情卡 */
.don-pop {
  position: absolute; bottom: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(6px) scale(.97);
  width: 228px;
  background: var(--ds-color-bg-overlay);
  border: 1px solid var(--ds-color-border-default);
  border-radius: 14px;
  padding: 11px 14px;
  box-shadow: var(--ds-shadow-float);
  text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ds-ease), transform .3s var(--ds-ease), visibility .3s;
  z-index: 40;
}
.don-chip:hover .don-pop, .don-chip:focus-visible .don-pop, .don-chip.open .don-pop {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1);
}
/* 第一行胶囊：悬浮卡向下展开，避免遮挡区块标题 */
.don-chip.pop-down .don-pop { bottom: auto; top: calc(100% + 14px); }
.don-chip.pop-down .don-pop::after {
  top: auto; bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--ds-color-bg-overlay);
}
.don-pop::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--ds-color-bg-overlay);
}
.don-pop-head { display: flex; align-items: center; gap: 9px; }
.don-pop-head .don-avatar { width: 28px; height: 28px; font-size: 14px; }
.don-pop-id { display: flex; align-items: center; gap: 7px; min-width: 0; }
.don-pop-id b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.don-pop-id .ds-tag { font-size: 10.5px; padding: 1px 7px; flex-shrink: 0; }
.don-pop-time { margin-top: 9px; font-size: 11.5px; color: var(--ds-color-text-description); font-family: var(--ds-font-mono); }
.don-pop-msg { margin-top: 5px; font-size: 12.5px; color: var(--ds-color-text-secondary); line-height: 1.65; }
/* 触屏设备：点按切换详情 */
@media (hover: none) {
  .don-chip { cursor: pointer; }
  .don-pop { display: none; }
  .don-chip.open .don-pop { display: block; }
}

/* ============ 赞助声明（无营业执照） ============ */
.store-disclaimer {
  max-width: 760px; margin: 44px auto 0;
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(245, 158, 11, .07);
  border: 1px solid rgba(245, 158, 11, .22);
  font-size: 12.5px; line-height: 1.9;
  color: var(--ds-color-text-secondary);
  text-align: center;
}
[data-theme="dark"] .store-disclaimer { border-color: rgba(251, 191, 36, .28); }

/* ============ 页脚 ============ */
.ds-footer { border-top: 1px solid var(--ds-color-border-subtle); padding: 44px 0 36px; margin-top: 60px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--ds-font-display); }
.footer-brand .brand-logo { width: 30px; height: 30px; font-size: 14px; }
.footer-social { display: flex; gap: 10px; }
.social-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--ds-radius-pill);
  background: var(--ds-color-bg-surface-2); border: 1px solid var(--ds-color-border-subtle);
  font-size: 13.5px; font-weight: 600; color: var(--ds-color-text-secondary);
  backdrop-filter: blur(var(--ds-blur-glass));
  transition: all .3s ease;
}
.social-chip:hover { color: var(--brand-text); border-color: var(--ds-card-hover-border); transform: translateY(-2px); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-top: 26px; }
.footer-links a { font-size: 13.5px; font-weight: 500; color: var(--ds-color-text-secondary); transition: color .25s ease; }
.footer-links a:hover { color: var(--brand-text); }
.footer-meta { margin-top: 22px; text-align: center; font-size: 12.5px; color: var(--ds-color-text-description); }
.footer-meta a { color: var(--ds-color-text-placeholder); transition: color .25s ease; }
.footer-meta a:hover { color: var(--brand-text); }
.footer-meta .sep { margin: 0 8px; opacity: .5; }

/* ============ 灯箱 ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  animation: lbFade .3s ease;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 88vw; max-height: 78vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: lbZoom .35s var(--ds-ease); }
@keyframes lbZoom { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lb-cap { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; background: rgba(0, 0, 0, .5); padding: 8px 18px; border-radius: var(--ds-radius-pill); }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, transform .25s var(--ds-ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, .25); transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 22px; } .lb-next { right: 22px; }
.lb-close { position: absolute; top: 22px; right: 22px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 16px; cursor: pointer; transition: all .25s ease; }
.lb-close:hover { background: rgba(255, 255, 255, .25); transform: rotate(90deg); }

/* ============ 返回顶部 ============ */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 300;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ds-color-border-default);
  background: var(--ds-color-bg-overlay);
  color: var(--ds-color-text-primary);
  font-size: 17px; cursor: pointer;
  box-shadow: var(--ds-shadow-float);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ds-ease), box-shadow .3s ease;
}
.back-top:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(23, 28, 38, .2); }
[data-theme="dark"] .back-top:hover { box-shadow: 0 18px 44px rgba(0, 0, 0, .6); }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .ds-nav { display: none; }
  .nav-burger { display: block; }
  .nav-join { display: none; }
  .hero { padding: 130px 0 90px; }
  .site-section { padding: 70px 0; }
  .mode-cols { grid-template-columns: 1fr; column-gap: 0; }
  .tier-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .tier-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}
@media (max-width: 600px) {
  .ds-nav-wrap { top: calc(10px + var(--announce-h, 0px)); width: min(100% - 20px, 1140px); }
  body.announce-past .ds-nav-wrap { top: 10px; }
  .ds-nav-bar { height: 54px; padding: 0 8px 0 12px; }
  .brand-name { font-size: 15px; }
  .brand-chip { display: none; }
  .hero { padding: 116px 0 80px; }
  .hero-ip { font-size: 18px; }
  .status-stats .stat { padding: 0 12px; }
  .hero-cta .ds-btn { width: 100%; }
  .orb-1 { width: 320px; height: 320px; }
  .orb-2 { width: 260px; height: 260px; }
  .split-row { gap: 16px; padding: 24px 8px; }
  /* 移动端触控热区 ≥44px */
  .theme-switch { height: 40px; }
  .theme-switch button { min-width: 44px; font-size: 15px; }
  .back-top { right: 16px; bottom: 16px; }
  /* 移动菜单：收紧导航项，让核心 CTA 一屏可见 */
  .mobile-nav { padding: 12px 22px; }
  .mobile-nav a { padding: 12px 4px; font-size: 23px; }
  .mobile-menu-foot { padding: 18px 22px 32px; }
}
