/* ==========================================================================
   方块世界 前台样式 · Docusaurus 简约风格
   亮色为主 + 可切换深色模式，浅阴影、圆角、主色链接
   首页保留「滚动图片特效」（.hero-* / .content-overlay 区块）
   主题变量由后台「外观主题」注入覆盖（见 src/middleware.js）
   ========================================================================== */

:root {
  /* —— 品牌令牌（可被后台覆盖） —— */
  --primary: #2e8555;
  --primary-dark: #237a4a;
  --accent: #3578e5;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --text: #1c1e21;
  --muted: #525860;
  --border: #dadde1;
  --radius: 6px;

  /* —— 派生令牌 —— */
  --primary-light: #3ba55d;
  --primary-hover: #237a4a;
  --link: var(--primary);
  --link-hover: var(--primary-dark);
  --input-bg: #ffffff;
  --code-bg: #f6f8fa;
  --code-inline-bg: #f6f8fa;
  --hover-bg: rgba(0, 0, 0, 0.05);
  --active-bg: rgba(0, 0, 0, 0.07);
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 22px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.3);
  --radius-lg: 0.8rem;
  --notice-bg: #fff8e6;
  --notice-text: #7a5b00;
  --gold: #c99700;

  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 60px;
  --container: 1140px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* —— 深色模式（专有选择器权重高于 :root，可覆盖后台注入的浅色） —— */
html[data-theme="dark"] {
  --bg: #1b1b1d;
  --surface: #242526;
  --surface-2: #2a2c2e;
  --text: #e3e3e3;
  --muted: #9aa0a6;
  --border: #3a3d40;
  --primary-light: #3fb950;
  --link: var(--primary-light);
  --link-hover: #56d364;
  --input-bg: #1b1b1d;
  --code-bg: #212121;
  --code-inline-bg: rgba(255, 255, 255, 0.1);
  --hover-bg: rgba(255, 255, 255, 0.06);
  --active-bg: rgba(255, 255, 255, 0.09);
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 22px rgba(0, 0, 0, 0.5);
  --notice-bg: #2e2a1c;
  --notice-text: #e2b93b;
  --gold: #e0b13c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--link-hover); }

h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }

code {
  font-family: var(--mono); font-size: 0.875em;
  background: var(--code-inline-bg); border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.66); padding: 1px 6px;
}
hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
mark { background: rgba(255, 214, 0, 0.32); color: inherit; border-radius: 3px; padding: 0 3px; }
::selection { background: color-mix(in srgb, var(--primary) 26%, transparent); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.page-wrap { padding-bottom: 72px; }

/* ============================== 按钮 ==================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  background: var(--primary); color: #fff;
  font-family: inherit; font-size: 0.875rem; font-weight: 700; line-height: 1.25;
  letter-spacing: 0.01em; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease),
    color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.08s var(--ease);
}
.btn:hover { background: var(--primary-hover); color: #fff; box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--link); border-color: var(--border); }
.btn-ghost:hover { background: var(--hover-bg); color: var(--link); border-color: var(--primary); }
.btn-danger { background: #d1242f; color: #fff; }
.btn-danger:hover { background: #b41f29; color: #fff; }

.btn-sm { padding: 7px 14px; font-size: 0.8125rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }

.link-btn {
  background: none; border: 0; padding: 0; color: var(--link);
  font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.link-btn:hover { color: var(--link-hover); }

/* ============================== 表单 ==================================== */

.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field-label i { color: var(--muted); font-style: normal; font-weight: 400; font-size: 0.75rem; }
.field-hint { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.field input[type="text"], .field input[type="password"], .field input[type="number"],
.field input[type="search"], .field input[type="url"], .field input[type="email"],
.field select, .field textarea {
  width: 100%; padding: 10px 12px; background: var(--input-bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit;
  font-size: 0.875rem; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea { resize: vertical; line-height: 1.65; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.field--switch { display: flex; align-items: center; gap: 10px; }
.field--switch input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex: none; }
.field--switch > span { font-size: 0.875rem; font-weight: 500; }
.field--sm .field-label { font-size: 0.75rem; }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ============================== 顶部导航 ================================ */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.site-header.is-scrolled { box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12); }
html[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }

.announce-bar { background: var(--primary); color: #fff; font-size: 0.8125rem; }
.announce-inner { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.announce-inner a, .announce-inner span { color: #fff; font-weight: 500; }
.announce-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: none; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-logo { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }
.brand-mark {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 16px; font-weight: 700; border-radius: 6px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1rem; font-weight: 700; }
.brand-text em { font-size: 0.6875rem; color: var(--muted); font-style: normal; letter-spacing: 0.06em; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 12px; border-radius: var(--radius);
  color: var(--text); font-size: 0.9375rem; font-weight: 500;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav-link:hover { color: var(--primary); background: var(--hover-bg); }
.nav-link.is-active { color: var(--primary); font-weight: 700; }
.nav-search { color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* 颜色模式切换 */
.theme-toggle {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border: 0; background: transparent; color: var(--muted);
  border-radius: 50%; cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.theme-toggle:hover { background: var(--hover-bg); color: var(--text); }
.theme-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.menu-toggle {
  display: none; width: 38px; height: 38px; border: 0; border-radius: var(--radius);
  background: transparent; cursor: pointer; padding: 0;
  transition: background-color 0.15s var(--ease);
}
.menu-toggle:hover { background: var(--hover-bg); }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--text); transition: transform 0.22s var(--ease), opacity 0.22s var(--ease); }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================== Hero =================================== */
/* 滚动驱动特效（保留）：
   .hero-bg 固定铺满视口 → .hero-inner 随滚动上移视差 →
   .hero-content 淡出缩小 → .hero-screenshot 放大铺满 →
   .content-overlay 带着毛玻璃遮罩覆盖其上 */

.hero { position: relative; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.hero-bg {
  position: fixed; top: 0; left: 0; right: 0;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  height: 100dvh;
  z-index: 0; overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  background:
    radial-gradient(ellipse 70% 80% at 18% 4%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 62%),
    radial-gradient(ellipse 60% 70% at 86% 12%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--bg));
}
@supports (height: 100dvh) {
  .hero-bg { height: 100dvh; }
}
html[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 70% 80% at 18% 4%, color-mix(in srgb, var(--primary) 46%, transparent), transparent 62%),
    radial-gradient(ellipse 60% 70% at 86% 12%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(ellipse 90% 90% at 50% 128%, color-mix(in srgb, var(--primary) 30%, transparent), transparent 62%),
    linear-gradient(180deg, #1a1f26, #10151b);
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 40%, var(--bg)); pointer-events: none; }
.hero-grid-bg {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--text) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 8%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 12%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 12%, transparent 72%);
}
.hero-inner {
  position: relative; z-index: 1; width: 100%;
  padding: calc(var(--header-h) + 40px) 20px 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  will-change: transform;
}
/* 文案层：随滚动淡出并缩小 */
.hero-content {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 24px; margin-bottom: 24px; flex-shrink: 0;
  transform-origin: center top;
  will-change: transform, opacity;
}
/* 截图层：随滚动放大铺满屏幕 */
.hero-screenshot { width: 95%; max-width: 1200px; will-change: transform; }
.screenshot-img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
/* 占位层：为特效预留滚动行程（真实高度由脚本计算） */
.hero-spacer { position: relative; pointer-events: none; height: 100vh; }
/* 内容层：滚动到位后覆盖固定 Hero，顶部用毛玻璃 + 遮罩过渡 */
.content-overlay {
  position: relative; z-index: 2;
  padding-top: 200px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--bg) 30%, transparent) 0,
    color-mix(in srgb, var(--bg) 88%, transparent) 140px,
    var(--bg) 260px);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.5) 60px, #000 220px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.5) 60px, #000 220px);
}

.hero-logo {
  width: min(112px, 34vw); height: auto; margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero-logo.brand-mark { display: grid; place-items: center; font-size: 44px; width: min(112px, 34vw); height: min(112px, 34vw); }
.hero-badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary-light);
  background: color-mix(in srgb, var(--primary) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 48%, transparent);
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(30px, 5vw, 52px); font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 14px; color: var(--text);
}
.hero-subtitle {
  font-size: clamp(15px, 1.6vw, 18px); color: var(--muted);
  max-width: 620px; margin: 0 auto 22px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.hero-tag {
  font-size: 0.8125rem; font-weight: 500; color: var(--text);
  padding: 5px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--text) 6%, transparent); border: 1px solid var(--border);
}

/* 服务器地址框 */
.server-address { display: flex; flex-direction: column; align-items: center; gap: 9px; margin: 6px auto 22px; width: 100%; }
.server-address-label { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.server-address-row {
  display: flex; align-items: stretch; max-width: 100%;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.server-address-icon {
  width: 52px; display: grid; place-items: center; flex: none;
  font-size: 20px; font-weight: 700; color: #fff; background: var(--surface-2);
  border-right: 1px solid var(--border);
}
img.server-address-icon { object-fit: cover; }
.server-address-code {
  display: flex; align-items: center; flex: 1; min-width: 0;
  font-family: var(--mono); font-size: clamp(16px, 2.6vw, 22px); font-weight: 600;
  color: var(--text); letter-spacing: 0.02em; padding: 14px 22px;
  background: transparent; border: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.server-address .btn { border-radius: 0 var(--radius) var(--radius) 0; }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 30px; }

/* 实时状态条 */
.hero-status {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  width: 100%; max-width: 720px; margin: 0 auto;
}
.hero-status-item { background: var(--surface); padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hero-status-label { font-size: 0.75rem; color: var(--muted); }
.hero-status-value { font-size: 1.25rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.hero-status-value small { font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.hero-status-more { width: 100%; max-width: 720px; margin: 14px auto 0; }
.hero-status-more .status-bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.hero-status-more .status-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); transition: width 0.6s var(--ease); }

.status-state { display: inline-flex; align-items: center; gap: 6px; font-size: 1.125rem; font-weight: 700; }
.status-state i { width: 8px; height: 8px; border-radius: 50%; }
.status-state--on { color: var(--primary); }
.status-state--on i { background: var(--primary-light); animation: pulse 1.8s infinite; }
.status-state--off { color: #d1242f; font-size: 1rem; }
.status-state--off i { background: #d1242f; }
.status-motd { font-size: 0.8125rem; color: var(--muted); margin: 0 0 4px; word-break: break-word; }
.status-updated { font-size: 0.6875rem; color: var(--muted); margin: 0; opacity: 0.9; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; list-style: none; margin: 8px 0 0; padding: 0; justify-content: center; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.625rem; font-weight: 800; color: var(--gold); }
.hero-stats span { font-size: 0.8125rem; color: var(--muted); }
.hero-scroll {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  font-size: 0.75rem; color: var(--muted); letter-spacing: 0.14em; z-index: 2;
  animation: floaty 2.4s infinite;
}
@keyframes floaty { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* 兼容：旧版状态卡（若被模块复用） */
.status-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.status-glow { display: none; }
.status-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.status-favicon { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--border); }
.status-favicon-fallback { display: grid; place-items: center; font-size: 22px; background: var(--surface-2); }
.status-heading { display: flex; flex-direction: column; gap: 3px; }
.status-label { font-size: 0.75rem; color: var(--muted); }
.status-players { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.status-online { font-size: 2.75rem; font-weight: 800; line-height: 1; color: var(--primary); }
.status-players-meta { display: flex; flex-direction: column; }
.status-players-meta span { font-size: 0.8125rem; font-weight: 600; }
.status-players-meta small { font-size: 0.75rem; color: var(--muted); }
.status-meta { display: flex; gap: 20px; font-size: 0.8125rem; color: var(--muted); margin-bottom: 16px; }
.status-meta b { color: var(--text); }
.status-ip { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.status-ip code { flex: 1; padding: 10px 12px; font-size: 0.875rem; font-weight: 600; text-align: center; }

/* ============================== 通用区块 ================================ */

.section { padding: 72px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 40px; max-width: 760px; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.section-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.section-desc { color: var(--muted); margin: 0; }

/* ============================== 轮播 =================================== */

.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.carousel-track { display: flex; transition: transform 0.6s var(--ease); }
.carousel-slide { flex: 0 0 100%; position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.slide-media { position: relative; overflow: hidden; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); }
.slide-media::before {
  content: ""; position: absolute; inset: -20px;
  background-image: var(--slide-bg, none); background-size: cover; background-position: center;
  filter: blur(24px) brightness(0.6); transform: scale(1.1); z-index: 0; opacity: 0; transition: opacity 0.3s ease;
}
.slide-media img {
  position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; object-position: center center; display: block; transition: transform 0.7s var(--ease);
}
.carousel-slide.is-active .slide-media img { transform: scale(1.03); }
.carousel[data-fit="cover"] .slide-media::before { opacity: 0; }
.carousel[data-fit="cover"] .slide-media img { width: 100%; height: 100%; object-fit: cover; }
.carousel[data-fit="contain"] .slide-media::before { opacity: 1; }
.carousel[data-fit="contain"] .slide-media img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.carousel[data-fit="width"] .slide-media::before { opacity: 0; }
.carousel[data-fit="width"] .slide-media { height: auto; }
.carousel[data-fit="width"] .slide-media img { width: 100%; height: auto; object-fit: contain; }
.carousel[data-fit="height"] .slide-media::before { opacity: 0; }
.carousel[data-fit="height"] .slide-media img { width: auto; height: 100%; object-fit: contain; }
.slide-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 10px; background: var(--surface-2); }
.slide-body h3 { font-size: 1.5rem; margin: 0; color: var(--text); }
.slide-body p { color: var(--muted); margin: 0 0 8px; }
.slide-body .btn { align-self: flex-start; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); color: var(--text); cursor: pointer;
  display: grid; place-items: center; z-index: 3;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.carousel-arrow::before { content: ""; width: 10px; height: 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.carousel-prev::before { transform: rotate(-135deg); margin-left: 3px; }
.carousel-next::before { transform: rotate(45deg); margin-right: 3px; }
.carousel-arrow:hover { border-color: var(--primary); color: var(--primary); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 7px; z-index: 3; }
.carousel-dot { width: 9px; height: 9px; border: 0; border-radius: 999px; padding: 0; background: rgba(255, 255, 255, 0.55); cursor: pointer; transition: width 0.25s var(--ease), background-color 0.25s var(--ease); }
.carousel-dot.is-active { width: 26px; background: #fff; }

/* ============================== 特色 / 亮点卡 =========================== */

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.feature-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  font-size: 20px; border-radius: var(--radius);
  color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.feature-body { min-width: 0; }
.feature-card h3 { font-size: 1.0625rem; margin: 0 0 6px; color: var(--text); }
.feature-card p { color: var(--muted); font-size: 0.875rem; margin: 0; }

/* ============================== Y币排行榜 ============================== */

.section-head--row .leaderboard-total {
  font-size: 0.8125rem; color: var(--muted); padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.leaderboard { display: flex; flex-direction: column; gap: 10px; max-width: 660px; margin: 0 auto; }
.lb-item {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center;
  padding: 15px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: box-shadow 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.lb-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.lb-rank {
  display: grid; place-items: center; width: 32px; height: 32px;
  font-weight: 700; font-size: 0.875rem; border-radius: 50%;
  background: var(--surface-2); color: var(--muted);
}
.lb-item[data-rank="1"] .lb-rank { background: linear-gradient(135deg, #ffd700, #e0930f); color: #4a3400; }
.lb-item[data-rank="2"] .lb-rank { background: linear-gradient(135deg, #d8d8d8, #a2a2a2); color: #333; }
.lb-item[data-rank="3"] .lb-rank { background: linear-gradient(135deg, #cd7f32, #9c5a1f); color: #fff; }
.lb-player { font-weight: 600; font-size: 0.9375rem; }
.lb-balance { font-weight: 700; font-size: 1rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.lb-balance::after { content: " Y"; font-size: 0.75rem; font-weight: 400; color: var(--muted); margin-left: 2px; }
.lb-item--skeleton .lb-player, .lb-item--skeleton .lb-balance { background: var(--surface-2); border-radius: 6px; animation: lb-pulse 1.4s ease-in-out infinite; }
.lb-item--skeleton .lb-player { min-width: 100px; height: 16px; }
.lb-item--skeleton .lb-balance { min-width: 70px; height: 18px; }
@keyframes lb-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.lb-error { text-align: center; padding: 30px; color: var(--muted); font-size: 0.875rem; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg); }

/* ============================== 文档卡 ================================= */

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.doc-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  color: var(--text);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.doc-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-md); color: var(--text); }
.doc-card-cat { align-self: flex-start; font-size: 0.6875rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.doc-card h3 { font-size: 1.0625rem; margin: 0; color: var(--text); }
.doc-card p { color: var(--muted); font-size: 0.875rem; margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.doc-card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.doc-card-arrow { color: var(--primary); font-size: 1rem; transition: transform 0.2s var(--ease); }
.doc-card:hover .doc-card-arrow { transform: translateX(4px); }

/* ============================== 加入 / 步骤卡 =========================== */

.join-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.join-card {
  position: relative; padding: 24px 24px 24px 74px; min-height: 118px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.join-index {
  position: absolute; left: 20px; top: 22px; width: 38px; height: 38px;
  display: grid; place-items: center; font-size: 0.9375rem; font-weight: 700; border-radius: var(--radius);
  color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.join-card h3 { font-size: 1rem; color: var(--text); font-weight: 600; margin-bottom: 10px; }
.join-value { display: flex; align-items: stretch; gap: 0; margin-bottom: 10px; }
.join-value code {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 11px 12px; font-size: 0.9375rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius); color: var(--text);
}
.join-value .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.join-hint { font-size: 0.8125rem; color: var(--muted); margin: 0; }
.social-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.social-chip {
  display: flex; flex-direction: column; padding: 15px 22px; min-width: 156px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  color: var(--text); transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
a.social-chip:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.social-chip strong { font-size: 0.875rem; }
.social-chip span { font-size: 0.75rem; color: var(--muted); }

/* 提示 / 公告框（供文档或模块复用） */
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 18px; background: var(--notice-bg); border-left: 4px solid var(--notice-text);
  border-radius: var(--radius); color: var(--notice-text); font-size: 0.875rem;
}
.notice strong { color: inherit; }
.tip {
  padding: 14px 18px; background: var(--surface-2); border-left: 4px solid var(--primary);
  border-radius: var(--radius); color: var(--text); font-size: 0.875rem;
}

/* ============================== 页脚 =================================== */

.site-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo { width: 30px; height: 30px; border-radius: 6px; }
.footer-title strong { font-size: 1rem; color: var(--text); }
.footer-desc { color: var(--muted); font-size: 0.8125rem; max-width: 320px; }
.footer-col h4 { font-size: 0.875rem; margin-bottom: 14px; color: var(--text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col li { font-size: 0.8125rem; color: var(--muted); }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between;
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--muted);
}

.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.24s var(--ease); z-index: 50;
}
.to-top::before { content: ""; width: 10px; height: 10px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(45deg) translate(2px, 2px); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--primary); border-color: var(--primary); }

/* ====================== 内页 Hero / 面包屑 ============================== */

.page-hero { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 48px 0 40px; margin-bottom: 36px; }
.page-hero--slim { padding: 36px 0 30px; }
.page-hero h1 { font-size: clamp(24px, 3vw, 34px); margin: 10px 0 8px; color: var(--text); }
.page-hero p { color: var(--muted); margin: 0; max-width: 680px; }
.page-hero-meta { display: flex; gap: 18px; margin-top: 14px; font-size: 0.8125rem; color: var(--muted); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb em { color: var(--text); font-style: normal; font-weight: 600; }

.search-form { display: flex; gap: 10px; margin-top: 20px; max-width: 620px; }
.search-form input {
  flex: 1; padding: 11px 16px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 0.9375rem; font-family: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.search-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }

/* ============================== 文档布局 =============================== */

.docs-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr) 240px; gap: 32px; align-items: start; }
.docs-layout--index { grid-template-columns: 300px minmax(0, 1fr); }
.docs-layout--right { grid-template-columns: 240px minmax(0, 1fr) 300px; }
.docs-layout--right .docs-sidebar { order: 3; }

.docs-sidebar { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-right: 4px; }
.docs-search { position: relative; margin-bottom: 18px; }
.docs-search input { width: 100%; padding: 9px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 0.875rem; font-family: inherit; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.docs-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.docs-search-icon { display: none; }
.docs-tree-home { display: block; padding: 8px 12px; font-weight: 600; font-size: 0.875rem; color: var(--text); margin-bottom: 14px; border-radius: var(--radius); }
.docs-tree-home:hover { background: var(--hover-bg); color: var(--text); }
.docs-tree-home.is-active { background: var(--active-bg); color: var(--primary); }
.docs-group { margin-bottom: 18px; }
.docs-group-title { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; padding: 0 12px 8px; }
.docs-group-count { font-size: 0.6875rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0 8px; }
.docs-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.docs-group a { display: block; padding: 7px 12px; font-size: 0.875rem; font-weight: 500; color: var(--muted); border-radius: var(--radius); }
.docs-group a:hover { background: var(--hover-bg); color: var(--text); }
.docs-group a.is-active { background: var(--active-bg); color: var(--primary); }
.docs-group-empty { font-size: 0.8125rem; color: var(--muted); padding: 0 12px; margin: 0; opacity: 0.7; }
.docs-sidebar-toggle, .docs-sidebar-mask, .docs-sidebar-open { display: none; }
.docs-sidebar-toggle::before {
  content: ""; width: 13px; height: 13px;
  background: linear-gradient(currentColor, currentColor) center / 13px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 13px no-repeat;
  transform: rotate(45deg);
}

.docs-main { min-width: 0; }
.docs-toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; font-size: 0.8125rem; }
.toc-title { font-size: 0.75rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 10px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.docs-toc a { display: block; padding: 5px 0 5px 12px; color: var(--muted); line-height: 1.5; }
.docs-toc a:hover { color: var(--primary); }
.docs-toc a.is-active { color: var(--primary); font-weight: 600; }
.docs-toc .toc-level-3 a { padding-left: 24px; font-size: 0.75rem; }
.docs-toc .toc-level-4 a { padding-left: 34px; font-size: 0.75rem; }

.docs-category { margin-bottom: 44px; }
.docs-category-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.docs-category-head h2 { font-size: 1.375rem; margin: 0; color: var(--text); }
.docs-category-head span { font-size: 0.75rem; color: var(--muted); }

.doc-article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 38px; box-shadow: var(--shadow-xs); }
.doc-header { padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.doc-header h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; color: var(--text); }
.doc-summary { color: var(--muted); font-size: 0.9375rem; margin: 0 0 16px; }
.doc-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.75rem; color: var(--muted); }
.doc-meta-spacer { flex: 1; }
.doc-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.doc-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.doc-nav-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.doc-nav-item span { font-size: 0.75rem; color: var(--muted); }
.doc-nav-item strong { font-size: 0.875rem; }
.doc-nav-item:hover { border-color: var(--primary); color: var(--text); box-shadow: var(--shadow-sm); }
.doc-nav-item--next { text-align: right; }
.doc-nav-item.is-disabled { opacity: 0.45; cursor: default; box-shadow: none; border-color: var(--border); }
.doc-help { margin-top: 18px; font-size: 0.75rem; color: var(--muted); text-align: center; }

/* ============================== 搜索结果 =============================== */

.search-summary { margin-bottom: 18px; color: var(--muted); font-size: 0.875rem; }
.search-results { display: flex; flex-direction: column; gap: 12px; }
.search-item { display: block; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease); }
.search-item:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.search-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.search-item-head h3 { font-size: 1rem; margin: 0; color: var(--text); }
.search-item-cat { font-size: 0.6875rem; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); flex: none; }
.search-item p { color: var(--muted); font-size: 0.875rem; margin: 0 0 8px; }
.search-item-url { font-size: 0.75rem; color: var(--primary); font-family: var(--mono); }

/* ============================== 空状态 / 错误页 ========================= */

.empty-state { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty-state span { font-size: 44px; display: block; margin-bottom: 14px; }
.empty-state h3 { font-size: 1.125rem; color: var(--text); margin-bottom: 8px; }
.empty-state p { margin: 0; font-size: 0.875rem; }

.error-page { text-align: center; padding: 72px 20px; }
.error-code { font-size: clamp(64px, 14vw, 120px); font-weight: 800; line-height: 1; color: var(--primary); letter-spacing: -0.03em; margin-bottom: 8px; }
.error-page h1 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 10px; }
.error-page > p { color: var(--muted); margin: 0 0 26px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.error-docs { margin-top: 48px; text-align: left; }
.error-docs h3 { font-size: 1.125rem; margin-bottom: 16px; }

/* 图片灯箱 */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, 0.86); display: grid; place-items: center; padding: 40px; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius-lg); }

/* ============================== 响应式 ================================= */

@media (max-width: 1080px) {
  .docs-layout, .docs-layout--index, .docs-layout--right { grid-template-columns: 260px minmax(0, 1fr); }
  .docs-toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 56px; }
  .menu-toggle { display: block; }
  .hide-sm { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 14px 20px 22px; background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all 0.24s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; margin-left: 0;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { padding: 12px 14px; font-size: 1rem; }
  .nav-search { text-align: left; }

  .hero-inner { padding: calc(var(--header-h) + 28px) 20px 28px; }
  .hero-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-overlay { padding-top: 160px; }
  .feature-grid { grid-template-columns: 1fr; }

  .docs-layout, .docs-layout--index, .docs-layout--right { grid-template-columns: minmax(0, 1fr); }
  .docs-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 290px; max-height: none; z-index: 90;
    background: var(--surface); border-right: 1px solid var(--border); padding: 22px 18px;
    transform: translateX(-102%); transition: transform 0.28s var(--ease);
  }
  .docs-sidebar.is-open { transform: translateX(0); }
  .docs-sidebar-toggle { display: grid; place-items: center; position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--text); cursor: pointer; }
  .docs-sidebar-mask { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 80; opacity: 0; visibility: hidden; transition: all 0.26s var(--ease); }
  .docs-sidebar-mask.is-open { opacity: 1; visibility: visible; }
  .docs-sidebar-open { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font-size: 0.8125rem; font-weight: 600; cursor: pointer; }

  .carousel-slide { grid-template-columns: 1fr; min-height: 0; }
  .slide-media { aspect-ratio: 16 / 9; }
  .slide-body { padding: 22px; }
  .doc-article { padding: 24px 20px; }
  .doc-nav { grid-template-columns: 1fr; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 52px 0; }
}

@media (max-width: 640px) {
  .hero-content { padding: 0 16px; margin-bottom: 16px; }
  .hero-screenshot { width: 100%; max-width: none; }
  .content-overlay { padding-top: 110px; }
  /* 移动端 Hero 截图放大时允许向两侧溢出，增强沉浸感 */
  .hero-inner { overflow: visible; }
  .hero-screenshot {
    overflow: hidden;
    border-radius: var(--radius-lg);
  }
  .hero-title { font-size: clamp(26px, 7.5vw, 38px); }
  .hero-subtitle { font-size: 14px; margin-bottom: 16px; }
  .hero-tags { margin-bottom: 18px; gap: 8px; }
  .hero-tag { font-size: 0.75rem; padding: 4px 12px; }
  .hero-badge { margin-bottom: 12px; font-size: 0.7rem; }
  .hero-buttons { margin-bottom: 20px; gap: 10px; }
  .hero-buttons .btn { font-size: 0.9rem; padding: 10px 18px; }
  /* 移动端 Hero 滚动提示：更靠上，避免被浏览器工具栏遮挡 */
  .hero-scroll { bottom: 12px; font-size: 0.7rem; }
}

@media (max-width: 560px) {
  .server-address-row { flex-direction: column; width: 100%; }
  .server-address-icon { width: 100%; height: 44px; border-right: 0; border-bottom: 1px solid var(--border); }
  .server-address-code { justify-content: center; padding: 14px 12px; }
  .server-address .btn { width: 100%; }
  .hero-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join-card { padding-left: 24px; padding-top: 70px; }
  .join-index { left: 20px; top: 20px; }
  .status-online { font-size: 2.25rem; }
  .doc-meta { gap: 10px; }
}

/* 打印：去掉装饰，保留正文 */
@media print {
  .site-header, .site-footer, .to-top, .docs-sidebar, .docs-toc, .hero-bg, .hero-spacer { display: none !important; }
  .content-overlay { padding-top: 0; backdrop-filter: none; mask-image: none; background: none; }
}
