/* ============================================================
   VFX HUB · Redesign 「暗流 Glow」Design System v1.0
   Lead designer: WorkBuddy
   ============================================================ */

:root {
  /* ---- Color tokens ---- */
  --bg-base: #05070f;
  --bg-deep: #03040a;
  --surface-1: #0b1020;
  --surface-2: #101830;
  --surface-glass: rgba(16, 24, 48, 0.62);
  --line: rgba(148, 163, 184, 0.12);
  --line-strong: rgba(148, 163, 184, 0.22);

  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --violet: #8b5cf6;
  --violet-deep: #6d28d9;
  --amber: #f59e0b;
  --rose: #fb7185;
  --green: #34d399;

  --text-1: #e8edf7;
  --text-2: #aab4c8;
  --text-3: #6b7690;

  --glow-cyan: 0 0 24px rgba(34, 211, 238, 0.35);
  --glow-violet: 0 0 24px rgba(139, 92, 246, 0.35);

  /* ---- Layout ---- */
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 20px;
  /* 全屏面板：不再用固定容器宽度，改为流式两侧留白（随视口伸缩） */
  --gutter: clamp(16px, 2.4vw, 72px);
  --nav-h: 68px;
  /* 兼容旧变量名（news.html 等内联样式引用） */
  --panel: var(--surface-1);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.18s;
  --t-med: 0.35s;
  --t-slow: 0.6s;

  --font-sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  /* global ambient glow */
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 246, 0.13), transparent 60%),
    radial-gradient(800px 480px at -10% 20%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(139, 92, 246, 0.08), transparent 60%);
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: var(--text-1); }
::selection { background: rgba(34, 211, 238, 0.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #1c2742; border-radius: 5px; border: 2px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: #2a3a63; }

/* 全屏面板容器：内容铺满视口，只用流式留白控制呼吸感 */
.container {
  width: 100%; max-width: none; margin: 0;
  padding-inline: var(--gutter);
}

/* ============================================================
   Page transition
   ============================================================ */
.page-enter { animation: pageIn 0.55s var(--ease-out) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(5, 7, 15, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), background var(--t-med);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(5, 7, 15, 0.82); }
.nav-inner {
  width: 100%; max-width: none; margin: 0; padding-inline: var(--gutter);
  height: 100%; display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: 0.5px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: conic-gradient(from 210deg, var(--cyan), var(--violet), var(--amber), var(--cyan));
  display: grid; place-items: center; position: relative;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.4);
  animation: logoSpin 14s linear infinite;
}
@keyframes logoSpin { to { transform: rotate(360deg); } }
.logo-mark::after {
  content: "V"; position: absolute; inset: 3px; border-radius: 7px;
  background: var(--bg-deep); display: grid; place-items: center;
  font-size: 15px; font-weight: 900;
  background-image: linear-gradient(135deg, #0a0f22, #05070f);
  color: var(--cyan);
}
.logo em { font-style: normal; background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 8px;
  color: var(--text-2); font-size: 14.5px; font-weight: 500;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--text-1); background: rgba(148, 163, 184, 0.08); }
.nav-links a.active { color: var(--cyan); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.search-btn {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  color: var(--text-2); border: 1px solid var(--line);
  transition: all var(--t-fast);
}
.search-btn:hover { color: var(--cyan); border-color: rgba(34, 211, 238, 0.5); box-shadow: var(--glow-cyan); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  transition: all var(--t-fast) var(--ease-out); white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan-deep), var(--violet-deep));
  color: #fff; border: 1px solid rgba(34, 211, 238, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(34, 211, 238, 0.35), 0 4px 16px rgba(139, 92, 246, 0.3); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text-2); }
.btn-ghost:hover { color: var(--text-1); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

.hamburger { display: none; width: 40px; height: 40px; place-items: center; color: var(--text-1); }

/* ============================================================
   Hero（左右两栏：文案 × 银河星云）
   ============================================================ */
/* 文案区压暗层：保证星云铺满时文字依然清晰 */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,7,15,0.92) 0%, rgba(5,7,15,0.80) 28%, rgba(5,7,15,0.30) 48%, rgba(5,7,15,0) 62%),
    radial-gradient(ellipse 70% 60% at 50% 120%, rgba(5,7,15,0.55), transparent 70%);
}

/* 首屏高度：随视口自适应但有上下限，避免超高窗口被拉空 */
.hero {
  position: relative;
  min-height: clamp(560px, 84vh, 820px);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 28px) 0 56px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(148,163,184,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 30%, transparent 75%);
}
.hero .container { max-width: none; padding-inline: var(--gutter); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 56px); align-items: center; width: 100%;
}
.hero-content { max-width: 700px; padding-right: clamp(0px, 2vw, 32px); position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px; font-size: 13px; color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.08);
  margin-bottom: 22px; backdrop-filter: blur(8px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; transform: scale(0.8); } }
.hero h1 {
  /* 半屏列宽下的字号重算：上限 54px，避免大屏溢出与断行失控 */
  font-size: clamp(34px, 3.6vw, 54px); line-height: 1.18; font-weight: 900; letter-spacing: -0.8px;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(92deg, var(--cyan) 10%, var(--violet) 55%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.3));
}
.hero p.lead { font-size: 17px; color: var(--text-2); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.btn-hero { padding: 13px 26px; font-size: 15.5px; border-radius: 12px; }

.hero-stats { display: flex; gap: clamp(28px, 4vw, 52px); flex-wrap: wrap; }
.stat .num {
  font-size: 34px; font-weight: 900; font-family: var(--font-mono);
  background: linear-gradient(90deg, var(--text-1), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* ---- 星云视觉：铺满整个首屏（文案浮于其上），确保任何方向都无边界 ---- */
.hero-visual {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
#galaxyCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ============================================================
   Radar ticker
   ============================================================ */
.radar-bar {
  border-block: 1px solid var(--line);
  background: rgba(11, 16, 32, 0.7);
  overflow: hidden; display: flex; align-items: center; height: 52px;
}
.radar-label {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 0 20px; height: 100%; font-size: 13px; font-weight: 700; color: var(--cyan);
  border-right: 1px solid var(--line); background: rgba(34, 211, 238, 0.06);
}
.radar-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.6s infinite; }
.ticker { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: marquee 46s linear infinite; padding-left: 24px; }
.radar-bar:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.ticker-item .tag { font-family: var(--font-mono); font-size: 11px; padding: 2px 8px; border-radius: 5px; background: rgba(139,92,246,0.15); color: #c4b5fd; }
.ticker-item .hot { color: var(--amber); font-size: 12px; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 88px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.section-head .kicker {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--cyan); display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.5px; }
.section-head .sub { color: var(--text-3); font-size: 14.5px; margin-top: 10px; max-width: 520px; }
.more-link {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2);
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 10px; transition: all var(--t-fast);
}
.more-link:hover { color: var(--cyan); border-color: rgba(34, 211, 238, 0.5); box-shadow: var(--glow-cyan); transform: translateX(3px); }

/* Featured daily panel */
.featured-panel {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.10) 50%, rgba(5, 7, 15, 0.4));
  display: grid; grid-template-columns: 1.2fr 1fr; min-height: 360px;
}
.featured-panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, rgba(34,211,238,0.55), transparent 30%, transparent 65%, rgba(139,92,246,0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.featured-main { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.featured-date { font-family: var(--font-mono); color: var(--cyan); font-size: 13px; letter-spacing: 1.5px; margin-bottom: 16px; }
.featured-main h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.featured-main p { color: var(--text-2); margin-bottom: 28px; max-width: 480px; }
.featured-side { border-left: 1px solid var(--line); padding: 34px 34px; display: flex; flex-direction: column; gap: 4px; justify-content: center; background: rgba(5, 7, 15, 0.35); }
.featured-side h4 { font-size: 13px; color: var(--text-3); letter-spacing: 1.5px; margin-bottom: 14px; font-weight: 600; }
.mini-news {
  display: flex; gap: 12px; padding: 12px 10px; border-radius: 10px;
  transition: all var(--t-fast); align-items: flex-start;
}
.mini-news:hover { background: rgba(34, 211, 238, 0.07); transform: translateX(5px); }
.mini-news .idx { font-family: var(--font-mono); color: var(--violet); font-size: 13px; padding-top: 2px; }
.mini-news .t { font-size: 13.8px; line-height: 1.5; color: var(--text-2); }
.mini-news:hover .t { color: var(--text-1); }

/* Tag filter pills */
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.pill {
  padding: 7px 16px; border-radius: 100px; font-size: 13.5px; color: var(--text-2);
  border: 1px solid var(--line); transition: all var(--t-fast);
}
.pill:hover { color: var(--text-1); border-color: var(--line-strong); }
.pill.active {
  color: #04121a; background: var(--cyan); border-color: var(--cyan); font-weight: 600;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.4);
}

/* News cards —— 自适应列数：视口越宽自动多排，不留侧边空白 */
.card-grid {
  display: grid;
  gap: clamp(16px, 1.3vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.news-card {
  position: relative; border-radius: var(--radius-m); border: 1px solid var(--line);
  background: var(--surface-1); overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-med), box-shadow var(--t-med);
}
.news-card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 24px rgba(34, 211, 238, 0.12); }
.news-thumb { height: clamp(168px, 12.5vw, 230px); position: relative; overflow: hidden; }
.news-thumb .ph {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px;
  transition: transform var(--t-slow) var(--ease-out);
}
.news-thumb .cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.news-card:hover .cover-img { transform: scale(1.08); }
.news-thumb.no-cover .ph { background: linear-gradient(135deg, #0e1a33, #1a1233); color: rgba(34, 211, 238, 0.6); font-size: 34px; }
.news-card:hover .ph { transform: scale(1.08) rotate(-2deg); }
.news-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11, 16, 32, 0.9)); }
.news-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: 6px;
  backdrop-filter: blur(8px); letter-spacing: 0.5px;
}
.news-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { font-size: 16.5px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; transition: color var(--t-fast); }
.news-card:hover .news-body h3 { color: var(--cyan); }
.news-body p { font-size: 13.5px; color: var(--text-3); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-size: 12.5px; color: var(--text-3); }
.news-meta .m { display: inline-flex; align-items: center; gap: 5px; }

/* Works —— 瀑布流：按可用宽度自动增减列，卡片自然参差，无对齐留空 */
.works-grid {
  column-width: clamp(260px, 21vw, 400px);
  column-gap: clamp(16px, 1.3vw, 28px);
}
.works-grid .work-card { break-inside: avoid; margin-bottom: clamp(16px, 1.3vw, 28px); }
/* 首页只展示 3 件作品：固定三栏 + 等高，铺满一行不留空洞 */
.works-grid--home { columns: 3; }
.works-grid--home .work-card { aspect-ratio: 4 / 3; }
.work-card {
  position: relative; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line);
  cursor: pointer; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-med);
}
.work-card:nth-child(4n+1) { aspect-ratio: 4/3; }
.work-card:nth-child(4n+2) { aspect-ratio: 3/4; }
.work-card:nth-child(4n+3) { aspect-ratio: 1/1; }
.work-card:hover { transform: translateY(-6px) scale(1.01); border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 30px rgba(139,92,246,0.15); }
.work-cover { position: absolute; inset: 0; transition: transform var(--t-slow) var(--ease-out); }
.work-card:hover .work-cover { transform: scale(1.07); }
.work-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 4, 10, 0.92));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
  opacity: 0; transition: opacity var(--t-med);
}
.work-card:hover .work-overlay { opacity: 1; }
.work-overlay h3 { font-size: 16px; font-weight: 700; }
.work-overlay .by { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.work-overlay .tools { display: flex; gap: 8px; margin-top: 10px; }
.work-overlay .tools span { font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; border-radius: 5px; background: rgba(34,211,238,0.14); color: var(--cyan); }
.work-like {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #fff;
  padding: 5px 11px; border-radius: 100px; background: rgba(3, 4, 10, 0.55); backdrop-filter: blur(6px);
}
.work-like svg { transition: transform var(--t-fast); }
.work-like:hover svg { transform: scale(1.3); fill: var(--rose); }

/* 列表型板块（问答 / 雷达）：宽屏自动分栏铺满，不再固定窄宽 */
.stack-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
  align-items: start;
}
.stack-grid > * { margin-bottom: 0; }

/* QA list */
.qa-item {
  border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface-1);
  padding: 24px 26px; margin-bottom: 16px; transition: all var(--t-med) var(--ease-out);
}
.qa-item:hover { border-color: rgba(52, 211, 153, 0.35); transform: translateX(6px); }
.qa-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.qa-badge { font-size: 11.5px; padding: 3px 10px; border-radius: 6px; font-weight: 600; }
.qa-badge.solved { color: var(--green); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); }
.qa-badge.open { color: var(--amber); background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); }
.qa-badge.cat { color: var(--cyan); background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.25); font-family: var(--font-mono); }
.qa-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.qa-item .excerpt { font-size: 13.5px; color: var(--text-3); margin-bottom: 14px; }
.qa-foot { display: flex; gap: 18px; font-size: 12.5px; color: var(--text-3); align-items: center; }
.qa-foot .avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--violet)); display: inline-grid; place-items: center; font-size: 10px; color: #fff; font-weight: 700; }

/* Assets */
.asset-card {
  border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface-1);
  overflow: hidden; transition: all var(--t-med) var(--ease-out); cursor: pointer;
}
.asset-card:hover { transform: translateY(-6px); border-color: rgba(245, 158, 11, 0.45); box-shadow: 0 18px 44px rgba(0,0,0,0.5), 0 0 24px rgba(245,158,11,0.1); }
.asset-thumb { height: 150px; position: relative; display: grid; place-items: center; font-size: 42px; }
.asset-body { padding: 20px 22px; }
.asset-body h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.asset-body p { font-size: 13px; color: var(--text-3); }
.asset-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 12.5px; }
.asset-foot .license { color: var(--green); display: inline-flex; gap: 5px; align-items: center; }
.asset-foot .dl { color: var(--text-3); font-family: var(--font-mono); }

/* Creator banner */
.creator-banner {
  border-radius: var(--radius-l); border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(120deg, rgba(34,211,238,0.10), rgba(139,92,246,0.12) 55%, rgba(245,158,11,0.07));
  display: flex; align-items: center; gap: 34px; padding: 44px; flex-wrap: wrap;
}
.creator-avatar {
  width: 96px; height: 96px; border-radius: 24px; flex-shrink: 0;
  background: conic-gradient(from 120deg, var(--cyan), var(--violet), var(--amber), var(--cyan));
  padding: 3px; box-shadow: 0 0 34px rgba(34, 211, 238, 0.35);
}
.creator-avatar > div {
  width: 100%; height: 100%; border-radius: 21px; background: var(--surface-2);
  display: grid; place-items: center; font-size: 34px;
}
.creator-info { flex: 1; min-width: 260px; }
.creator-info h3 { font-size: 24px; font-weight: 800; }
.creator-info .title { color: var(--cyan); font-size: 14px; margin: 4px 0 12px; font-weight: 600; }
.creator-info p { color: var(--text-2); font-size: 14px; max-width: 560px; }
.creator-stats { display: flex; gap: 34px; }
.creator-stats .s { text-align: center; }
.creator-stats .s b { display: block; font-size: 24px; font-family: var(--font-mono); color: var(--cyan); }

/* ============================================================
   Article page
   ============================================================ */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; z-index: 200; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--amber));
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7); transition: width 0.08s linear; }
/* 阅读页：铺满视口的双栏面板，正文列吃满剩余宽度，右侧为目录/相关阅读 */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(236px, 16vw, 340px);
  gap: clamp(24px, 2.2vw, 56px);
  align-items: start;
  width: 100%; max-width: none; margin: 0;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 0;
}
.article-card {
  border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface-1);
  padding: clamp(24px, 3vw, 76px);
  min-width: 0;
}
.article-hero .news-tag { position: static; display: inline-block; margin-bottom: 18px; }
/* 标题按面板宽度放大，宽屏不会显得空 */
.article-hero h1 {
  font-size: clamp(26px, 2.9vw, 54px); font-weight: 800; line-height: 1.24;
  margin-bottom: 22px; letter-spacing: -0.5px; max-width: 24em;
}
.article-meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--text-3); font-size: 13.5px; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
/* 正文：字号随视口增长，长行用两端对齐保持阅读节奏 */
.article-body {
  font-size: clamp(15.5px, 0.42rem + 0.6vw, 18.5px);
  line-height: 1.82; color: #c9d2e3; max-width: 1680px;
  text-align: justify; text-justify: inter-ideograph;
}
/* 抓取来的正文常是一句一段，段落留白收紧，避免整页被拆得七零八落 */
.article-body p { margin-bottom: 0.72em; }
.article-body p + p { margin-top: 0; }
.article-body h2 { font-size: clamp(20px, 1.5vw, 27px); margin: 2.1em 0 0.75em; padding-left: 14px; border-left: 3px solid var(--cyan); }
.article-body h3 { font-size: 17.5px; margin: 30px 0 14px; color: var(--text-1); }
.article-body ul { margin: 0 0 20px 22px; color: #c9d2e3; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 3px solid var(--violet); background: rgba(139, 92, 246, 0.08);
  padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 24px 0; color: var(--text-2); font-size: 14.5px;
}
.article-body code { font-family: var(--font-mono); font-size: 13px; background: rgba(34, 211, 238, 0.1); color: var(--cyan); padding: 2px 7px; border-radius: 5px; }
.toc { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; font-size: 13.5px; }
.toc h4 { font-size: 12px; letter-spacing: 2px; color: var(--text-3); margin-bottom: 14px; text-transform: uppercase; }
.toc a { display: block; color: var(--text-3); padding: 7px 0 7px 16px; border-left: 2px solid var(--line); transition: all var(--t-fast); }
.toc a:hover, .toc a.active { color: var(--cyan); border-left-color: var(--cyan); text-shadow: 0 0 12px rgba(34, 211, 238, 0.5); }
/* 阅读页侧栏：始终有线可看，避免正文无小标题时右侧空成一片 */
.art-side { display: flex; flex-direction: column; gap: 30px; }
.side-link { display: block; color: var(--text-3); font-size: 13.5px; padding: 7px 0; transition: all var(--t-fast); }
.side-link:hover { color: var(--cyan); transform: translateX(4px); }
.related-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px 22px; background: var(--surface-1); transition: all var(--t-fast); margin-top: 14px; }
.related-card:hover { border-color: rgba(34, 211, 238, 0.4); transform: translateX(5px); }
.related-card .rt { font-size: 14.5px; font-weight: 600; }
.related-card .rm { font-size: 12px; color: var(--text-3); margin-top: 5px; }

/* ============================================================
   Modals
   ============================================================ */
.modal-mask {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px;
  background: rgba(3, 4, 10, 0.72); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity var(--t-med);
}
.modal-mask.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 460px; border-radius: var(--radius-l);
  border: 1px solid var(--line-strong); background: linear-gradient(165deg, #0e1528, #090d1c);
  padding: 36px; position: relative; transform: translateY(26px) scale(0.96); opacity: 0;
  transition: all var(--t-med) var(--ease-spring);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal-mask.open .modal { transform: none; opacity: 1; }
.modal.wide { max-width: 640px; }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; color: var(--text-3); transition: all var(--t-fast);
}
.modal-close:hover { color: var(--text-1); background: rgba(148, 163, 184, 0.12); rotate: 90deg; }
.modal h3 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.modal .sub { color: var(--text-3); font-size: 13.5px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 14px;
  background: rgba(5, 7, 15, 0.6); border: 1px solid var(--line-strong); outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.field textarea { min-height: 110px; resize: vertical; }
.modal-foot { display: flex; gap: 12px; margin-top: 26px; }
.modal-foot .btn { flex: 1; padding: 12px; }
.oauth-row { display: flex; gap: 12px; margin-top: 22px; }
.oauth-row button {
  flex: 1; padding: 11px; border-radius: 10px; border: 1px solid var(--line-strong);
  color: var(--text-2); font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--t-fast);
}
.oauth-row button:hover { color: var(--text-1); border-color: var(--cyan); }

/* Lightbox */
.lightbox .modal { max-width: 880px; padding: 0; overflow: hidden; background: var(--bg-deep); }
.lightbox-media { aspect-ratio: 16/9; position: relative; display: grid; place-items: center; font-size: 90px; }
.lightbox-info { padding: 26px 32px 30px; }
.lightbox-info h3 { font-size: 20px; }
.lightbox-info .meta { color: var(--text-3); font-size: 13px; margin-top: 6px; }
.lightbox-info .desc { color: var(--text-2); font-size: 14px; margin-top: 14px; }

/* ---- Auth modal ---- */
.auth-tabs {
  display: flex; gap: 6px; padding: 5px; border-radius: 12px;
  background: rgba(5, 7, 15, 0.6); border: 1px solid var(--line); margin-bottom: 20px;
  margin-right: 42px; /* 给右上角关闭按钮留位，避免 ✕ 挤在 Tab 里 */
}
.auth-tab {
  flex: 1; padding: 9px 0; border-radius: 9px; font-size: 14px; font-weight: 600;
  color: var(--text-3); transition: all var(--t-fast);
}
.auth-tab:hover { color: var(--text-1); }
.auth-tab.active {
  color: #05070f; background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 6px 18px -8px rgba(34, 211, 238, 0.8);
}
.auth-pane { display: none; }
.auth-pane.active { display: block; }
.auth-alert {
  display: none; margin-bottom: 16px; padding: 11px 14px; border-radius: 10px;
  font-size: 13px; line-height: 1.65;
  background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.35); color: #fda4af;
}
.auth-alert.show { display: block; }
.auth-alert.ok { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.35); color: #6ee7b7; }
.auth-hint { font-size: 12px; color: var(--text-3); margin-top: 8px; line-height: 1.6; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 62px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--text-3); padding: 6px 9px; border-radius: 7px; transition: all var(--t-fast);
}
.pw-eye:hover { color: var(--cyan); background: rgba(148, 163, 184, 0.12); }
.code-row { display: flex; gap: 10px; align-items: stretch; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { flex-shrink: 0; padding: 0 16px; font-size: 13px; }
.btn:disabled { cursor: not-allowed; }

/* ---- Nav: logged-in chip ---- */
.nav-user { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 9px; padding: 5px 11px 5px 5px;
  border-radius: 100px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  transition: all var(--t-fast); color: var(--text-1);
}
.nav-user-btn:hover { border-color: rgba(34, 211, 238, 0.45); box-shadow: var(--glow-cyan); }
.nav-user-btn img, .nav-user-btn .av {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.nav-user-btn .av {
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #04121a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}
.nav-user-btn .nm {
  font-size: 13.5px; font-weight: 600; max-width: 132px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-user-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 208px; padding: 8px;
  border-radius: 14px; background: rgba(11, 16, 32, 0.98); border: 1px solid var(--line-strong);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.62); z-index: 120;
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: all var(--t-fast);
}
.nav-user.open .nav-user-menu { opacity: 1; transform: none; pointer-events: auto; }
.nav-user-menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.nav-user-menu .who b { display: block; font-size: 14px; color: var(--text-1); }
.nav-user-menu .who span { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.nav-user-menu a, .nav-user-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px;
  border-radius: 9px; font-size: 13.5px; color: var(--text-2); text-align: left; transition: all var(--t-fast);
}
.nav-user-menu a:hover, .nav-user-menu button:hover { background: rgba(34, 211, 238, 0.1); color: var(--cyan); }

/* ============================================================
   互动层：点赞 / 收藏 / 评论 / 浮层列表
   ============================================================ */
.engage-bar {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin: 42px 0 6px; padding-top: 28px; border-top: 1px solid var(--line);
}
.engage-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 11px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  color: var(--text-2); transition: all var(--t-fast);
}
.engage-btn:hover { color: var(--text-1); border-color: var(--line-strong); transform: translateY(-2px); }
.engage-btn .ico { font-size: 15px; line-height: 1; }
.engage-btn .n { font-family: var(--font-mono); font-size: 13px; }
.engage-btn.on {
  color: var(--rose); border-color: rgba(251, 113, 133, 0.5);
  background: rgba(251, 113, 133, 0.1); box-shadow: 0 0 18px rgba(251, 113, 133, 0.18);
}
.engage-btn[data-engage="star"].on {
  color: var(--amber); border-color: rgba(245, 158, 11, 0.5); background: rgba(245, 158, 11, 0.1);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.16);
}
.engage-btn.is-busy { opacity: 0.6; }

.comment-block { margin-top: 36px; }
.cmt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cmt-head h3 { font-size: 19px; font-weight: 800; }
.cmt-count { color: var(--cyan); font-family: var(--font-mono); font-size: 14px; margin-left: 6px; }
.cmt-tip { font-size: 12.5px; color: var(--text-3); }
.cmt-editor {
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: rgba(5, 7, 15, 0.5); padding: 14px 16px; margin-bottom: 26px;
}
.cmt-editor textarea {
  width: 100%; border: none; background: transparent; outline: none; resize: vertical;
  font-size: 14.5px; line-height: 1.75; color: var(--text-1); min-height: 76px;
}
.cmt-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.cmt-hint { font-size: 12.5px; color: var(--rose); }
.cmt-item { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.cmt-item.solution {
  background: rgba(52, 211, 153, 0.06); border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 12px; padding: 16px; margin: 10px 0;
}
.cmt-av {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #04121a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}
.cmt-av img { width: 100%; height: 100%; object-fit: cover; }
.cmt-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cmt-meta b { font-size: 13.5px; }
.cmt-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 6px;
  color: var(--green); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3);
}
.cmt-time { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); }
.cmt-text { font-size: 14.5px; line-height: 1.8; color: var(--text-2); }
.cmt-empty { padding: 22px 0; color: var(--text-3); font-size: 13.5px; }
.cmt-more { text-align: center; margin-top: 18px; }

.sheet-list { max-height: 52vh; overflow: auto; margin-top: 6px; }
.sheet-row { display: flex; flex-direction: column; gap: 4px; padding: 13px 14px; border-radius: 11px; transition: all var(--t-fast); }
.sheet-row:hover { background: rgba(34, 211, 238, 0.08); }
.sheet-t { font-size: 14.5px; color: var(--text-1); line-height: 1.6; }
.sheet-m { font-size: 12px; color: var(--text-3); }
.pf-stats { display: flex; gap: 22px; flex-wrap: wrap; margin: 18px 0 4px; font-size: 13px; color: var(--text-3); }
.pf-stats b { color: var(--cyan); font-family: var(--font-mono); font-size: 15px; margin-left: 4px; }
.work-like.on { color: var(--rose); }
.work-like.on svg { fill: var(--rose); }

/* Toast */
.toast-wrap { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  padding: 12px 22px; border-radius: 12px; font-size: 14px; color: var(--text-1);
  background: rgba(16, 24, 48, 0.92); border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 211, 238, 0.15);
  backdrop-filter: blur(10px);
  animation: toastIn 0.4s var(--ease-spring) both;
}
.toast.out { animation: toastOut 0.3s var(--ease-out) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(0.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(14px) scale(0.95); } }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); margin-top: 60px; background: rgba(3, 4, 10, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 44px; }
.footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 18px; color: var(--text-1); }
.footer a { display: block; color: var(--text-3); font-size: 13.5px; padding: 5px 0; transition: all var(--t-fast); }
.footer a:hover { color: var(--cyan); transform: translateX(4px); }
.footer .desc { color: var(--text-3); font-size: 13.5px; margin-top: 14px; max-width: 320px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text-3); font-size: 12.5px; }

/* Back to top */
.backtop {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text-2);
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: all var(--t-med) var(--ease-out);
}
.backtop.show { opacity: 1; pointer-events: auto; transform: none; }
.backtop:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow-cyan); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: calc(var(--nav-h) + 26px);
  }
  .toc { display: none; }
}
@media (max-width: 1024px) {
  .featured-panel { grid-template-columns: 1fr; }
  .featured-side { border-left: none; border-top: 1px solid var(--line); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .works-grid--home { columns: 2; }
}
@media (max-width: 680px) {
  .nav-links { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: rgba(5,7,15,0.97); border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 6px; }
  .nav-links.open { display: flex; }
  .hamburger { display: grid; }
  .hero-stats { gap: 30px; }
  .featured-main, .featured-side { padding: 28px; }
  .creator-banner { padding: 30px; }
  .section { padding: 64px 0; }
  .article-body { text-align: left; }
  .works-grid--home { columns: 1; }
  /* 手机端登录胶囊只留头像，避免挤掉汉堡菜单 */
  .nav-user-btn .nm { display: none; }
  .nav-user-btn { padding: 5px; gap: 0; }
  .nav-user-menu { right: -6px; }
}

/* ============================================================
   P1–P3 新增面板（发布 / 我的内容 / 作者主页 / 管理后台 / 粒子工坊）
   ============================================================ */

/* ---- 页面级骨架 ---- */
.page-wrap { padding: calc(var(--nav-h) + 40px) var(--gutter) 80px; min-height: 100vh; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.page-head h1 { font-size: clamp(26px, 3vw, 42px); line-height: 1.2; letter-spacing: -0.02em; }
.page-head .sub { color: var(--text-3); font-size: 14px; margin-top: 10px; max-width: 60ch; }
.page-head .acts { display: flex; gap: 10px; flex-wrap: wrap; }

.panel { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(18px, 2vw, 32px); }
.panel + .panel { margin-top: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.panel-head h2 { font-size: 18px; }
.panel-head .hint { font-size: 12.5px; color: var(--text-3); }

/* ---- 分段选择（用 .pill-row + .pill 复用现有风格） ---- */
.pill-row--tight { margin-bottom: 18px; }

/* ---- 表单栅格 ---- */
.form-grid { display: grid; gap: 0 clamp(18px, 2vw, 34px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }
.field .tip { font-size: 12px; color: var(--text-3); margin-top: 7px; line-height: 1.6; }
.field .req { color: var(--rose); margin-left: 3px; }
.field input:disabled, .field textarea:disabled, .field select:disabled { opacity: .55; cursor: not-allowed; }
.counter { float: right; font-size: 12px; color: var(--text-3); font-weight: 400; }
.counter.over { color: var(--rose); }

/* ---- 类型选择卡 ---- */
.type-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; margin-bottom: 26px; }
.type-pick button {
  text-align: left; padding: 15px 16px; border-radius: var(--radius-m); cursor: pointer;
  background: rgba(255,255,255,.025); border: 1px solid var(--line); color: var(--text-2);
  transition: all var(--t-fast) var(--ease-out);
}
.type-pick button .ico { font-size: 20px; display: block; margin-bottom: 8px; }
.type-pick button b { display: block; font-size: 14.5px; color: var(--text-1); margin-bottom: 3px; }
.type-pick button span { font-size: 12px; line-height: 1.5; }
.type-pick button:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.type-pick button.on { border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.08); box-shadow: var(--glow-cyan); }

/* ---- 上传框 ---- */
.upload-box {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-m);
  border: 1px dashed var(--line-strong); background: rgba(255,255,255,.02); transition: all var(--t-fast);
}
.upload-box:hover { border-color: rgba(34,211,238,.5); }
.upload-box .ub-ico { font-size: 22px; flex-shrink: 0; }
.upload-box .ub-main { flex: 1; min-width: 0; }
.upload-box .ub-title { font-size: 13.5px; color: var(--text-1); }
.upload-box .ub-meta { font-size: 12px; color: var(--text-3); margin-top: 3px; word-break: break-all; }
.upload-box .ub-bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); margin-top: 9px; overflow: hidden; }
.upload-box .ub-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .2s linear; }
.upload-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }

/* ---- 数据表 ---- */
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { text-align: left; font-weight: 600; color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.data-table .t-title { color: var(--text-1); font-weight: 500; max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table .num { font-variant-numeric: tabular-nums; color: var(--text-2); }
.table-scroll { overflow-x: auto; }

/* ---- 状态徽标 ---- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.badge--ok { background: rgba(52,211,153,.14); color: var(--green); }
.badge--warn { background: rgba(245,158,11,.15); color: var(--amber); }
.badge--bad { background: rgba(251,113,133,.15); color: var(--rose); }
.badge--info { background: rgba(34,211,238,.13); color: var(--cyan); }
.badge--mute { background: rgba(148,163,184,.13); color: var(--text-3); }

/* ---- 统计卡 ---- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-card { padding: 18px; border-radius: var(--radius-m); border: 1px solid var(--line); background: rgba(255,255,255,.022); }
.stat-card b { display: block; font-size: clamp(22px, 2.2vw, 30px); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-card span { font-size: 12px; color: var(--text-3); }

/* ---- 列表行（我的内容 / 管理后台） ---- */
.row-list { display: flex; flex-direction: column; gap: 10px; }
.row-item {
  display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-m); border: 1px solid var(--line);
  background: rgba(255,255,255,.018); transition: all var(--t-fast);
}
.row-item:hover { border-color: var(--line-strong); background: rgba(255,255,255,.035); }
.row-item .thumb { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; font-size: 20px; }
.row-item .rt { font-size: 15px; color: var(--text-1); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row-item .rm { font-size: 12px; color: var(--text-3); margin-top: 5px; display: flex; gap: 12px; flex-wrap: wrap; }
.row-item .ra { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) { .row-item { grid-template-columns: 44px minmax(0,1fr); } .row-item .ra { grid-column: 1 / -1; justify-content: flex-start; } }

.btn-xs { padding: 5px 11px; font-size: 12px; border-radius: 8px; }

/* ---- 作者主页 ---- */
.author-hero { display: flex; gap: clamp(18px, 2.4vw, 34px); align-items: center; flex-wrap: wrap; }
.author-hero .av-big { width: 92px; height: 92px; border-radius: 26px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; font-size: 34px; font-weight: 700; color: var(--cyan); border: 1px solid var(--line-strong); }
.author-hero h1 { font-size: clamp(24px, 2.6vw, 34px); }
.author-hero .meta { color: var(--text-3); font-size: 13px; margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; }
.author-hero .bio { color: var(--text-2); font-size: 14px; margin-top: 12px; max-width: 70ch; line-height: 1.75; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tag-row span { font-size: 12px; padding: 3px 10px; border-radius: 99px; background: rgba(34,211,238,.1); color: var(--cyan); border: 1px solid rgba(34,211,238,.25); }

/* ---- 管理后台 ---- */
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.admin-tabs button {
  padding: 11px 16px; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-3); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all var(--t-fast);
}
.admin-tabs button:hover { color: var(--text-1); }
.admin-tabs button.on { color: var(--cyan); border-bottom-color: var(--cyan); }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin-bottom: 0; }
.mini-input { width: 92px; padding: 7px 10px; }
.mono-box {
  width: 100%; font-family: var(--font-mono); font-size: 12px; line-height: 1.6;
  background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text-2);
  min-height: 120px; resize: vertical;
}
.gate { text-align: center; padding: 80px 20px; }
.gate .ico { font-size: 46px; margin-bottom: 18px; }
.gate h2 { font-size: 22px; margin-bottom: 12px; }
.gate p { color: var(--text-3); margin-bottom: 26px; line-height: 1.8; }

/* ---- 粒子工坊 ---- */
.forge-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 980px) { .forge-grid { grid-template-columns: 1fr; } }
.forge-stage { position: relative; overflow: hidden; border-radius: var(--radius-l); border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0%, rgba(139,92,246,.18), transparent 65%), var(--surface-1); padding: clamp(20px, 2.4vw, 34px); }
.forge-core { display: grid; place-items: center; padding: 26px 0 30px; }
.forge-core .orb {
  width: clamp(110px, 13vw, 168px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #67e8f9, #6d28d9 62%, #1e1b4b 88%);
  box-shadow: 0 0 60px rgba(139,92,246,.55), inset 0 0 40px rgba(255,255,255,.18);
  animation: orbPulse 5.2s ease-in-out infinite;
}
@keyframes orbPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.055); } }
.forge-stage .stage-name { text-align: center; font-size: 15px; color: var(--text-2); }
.forge-stage .stage-name b { display: block; font-size: 22px; color: var(--text-1); margin-bottom: 6px; }
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.mat-card { padding: 14px; border-radius: var(--radius-m); border: 1px solid var(--line); background: rgba(255,255,255,.022); }
.mat-card .mn { font-size: 13px; color: var(--text-1); }
.mat-card .mc { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; }
.mat-card .mp { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.recipe-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-m); border: 1px solid var(--line); margin-bottom: 10px; }
.recipe-item .rn { font-size: 13.5px; }
.recipe-item .rc { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.stage-dots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.stage-dots button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text-3); cursor: pointer; font-size: 13px; }
.stage-dots button.on { border-color: rgba(34,211,238,.6); color: var(--cyan); background: rgba(34,211,238,.1); }
.stage-dots button.locked { opacity: .4; cursor: not-allowed; }

/* ---- 主题切换按钮 ---- */
.icon-btn { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text-2); cursor: pointer; transition: all var(--t-fast); }
.icon-btn:hover { color: var(--text-1); border-color: var(--line-strong); transform: translateY(-1px); }
@media (max-width: 620px) { .nav-publish { display: none; } }

/* ---- 浅色主题 ---- */
html[data-theme="light"] {
  --bg-base: #f6f7fb;
  --bg-deep: #eceff6;
  --surface-1: #ffffff;
  --surface-2: #f1f4fa;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.20);
  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #7c879b;
  --glow-cyan: 0 0 22px rgba(8, 145, 178, 0.22);
  --glow-violet: 0 0 22px rgba(109, 40, 217, 0.18);
}
html[data-theme="light"] body::before { opacity: .35; }
html[data-theme="light"] .article-body { color: #334155; }
html[data-theme="light"] .article-body strong { color: #0f172a; }
html[data-theme="light"] .mono-box { background: rgba(15, 23, 42, .04); }
html[data-theme="light"] .row-item,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .mat-card,
html[data-theme="light"] .upload-box,
html[data-theme="light"] .type-pick button { background: rgba(15, 23, 42, .025); }
html[data-theme="light"] .data-table tr:hover td { background: rgba(15, 23, 42, .03); }
html[data-theme="light"] .icon-btn { background: rgba(15, 23, 42, .05); }
html[data-theme="light"] #galaxy { filter: invert(1) hue-rotate(180deg); opacity: .42; }
html[data-theme="light"] .nav { background: rgba(246, 247, 251, .82); }
html[data-theme="light"] .footer { background: var(--bg-deep); }

/* ---- 阅读页侧栏统计 ---- */
.side-stat-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-3); padding: 7px 0; border-bottom: 1px dashed var(--line); }
.side-stat-row:last-child { border-bottom: none; }
.side-stat-row b { color: var(--text-1); font-variant-numeric: tabular-nums; }

/* ---- 资讯页 RSS 入口（复用 .sub-tab 外观） ---- */
a.sub-tab { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

/* ---- 浅色主题：把硬编码的深色底逐个翻过来（图片上的遮罩保持不变，白字仍清晰） ---- */
html[data-theme="light"] .nav { background: rgba(246, 247, 251, 0.72); }
html[data-theme="light"] .nav.scrolled { background: rgba(246, 247, 251, 0.92); }
html[data-theme="light"] .hero::after {
  background:
    linear-gradient(90deg, rgba(246,247,251,0.96) 0%, rgba(246,247,251,0.88) 30%, rgba(246,247,251,0.38) 50%, rgba(246,247,251,0) 64%),
    radial-gradient(ellipse 70% 60% at 50% 120%, rgba(236,239,246,0.75), transparent 70%);
}
html[data-theme="light"] .radar-bar { background: rgba(255, 255, 255, 0.78); }
html[data-theme="light"] .featured-panel {
  background: linear-gradient(135deg, rgba(34,211,238,0.07), rgba(139,92,246,0.08) 50%, rgba(255,255,255,0.9));
}
html[data-theme="light"] .featured-side { background: rgba(15, 23, 42, 0.03); }
html[data-theme="light"] .field input,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .field select { background: #ffffff; border-color: var(--line-strong); }
html[data-theme="light"] .auth-alert { background: rgba(15, 23, 42, 0.04); }
html[data-theme="light"] .nav-user-menu { background: #ffffff; box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16); }
html[data-theme="light"] .cmt-editor textarea { background: #ffffff; }
html[data-theme="light"] .sheet { background: #ffffff; box-shadow: 0 30px 70px rgba(15, 23, 42, 0.2); }
html[data-theme="light"] .footer { background: rgba(236, 239, 246, 0.8); }
html[data-theme="light"] .modal { background: #ffffff; }
html[data-theme="light"] .modal-mask { background: rgba(15, 23, 42, 0.42); }
html[data-theme="light"] .modal-foot .btn-ghost { background: rgba(15, 23, 42, 0.04); }
@media (max-width: 820px) {
  html[data-theme="light"] .nav-links { background: rgba(246, 247, 251, 0.98); }
}

/* ============================================================
   表单控件全局基线 · 后台表格重设计
   修复：表格内 <input> 没有背景规则，沿用浏览器默认白底，
        而文字色继承 var(--text-1)（近白）→ 白底白字，完全看不清。
   做法：给所有控件一个低特异的深色基线（不覆盖 .field 的既有样式），
        再用 .mini-input / .cell-input / .unit-input 做表格内紧凑版。
   ============================================================ */
:root { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

input,
textarea,
select {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-1);
  background: rgba(5, 7, 15, 0.62);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 9px 11px;
  outline: none;
  max-width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
input::placeholder,
textarea::placeholder { color: var(--text-3); opacity: 1; }
input:hover:not(:disabled):not(:focus),
textarea:hover:not(:disabled):not(:focus),
select:hover:not(:disabled):not(:focus) { border-color: rgba(34, 211, 238, 0.36); }
input:focus,
textarea:focus,
select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15); }
input:disabled,
textarea:disabled,
select:disabled { opacity: 0.55; cursor: not-allowed; }

/* 勾选框 / 单选：撤销基线里的内边距和背景，避免变成小方块 */
input[type="checkbox"],
input[type="radio"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  box-shadow: none !important;
  accent-color: var(--cyan);
  cursor: pointer;
  vertical-align: -2px;
}

/* 数字输入去掉浏览器默认的上下微调按钮（表格里太挤） */
.data-table input[type="number"]::-webkit-outer-spin-button,
.data-table input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.data-table input[type="number"] { -moz-appearance: textfield; }

/* ---- 表格内紧凑输入 ---- */
.data-table .mini-input,
.data-table .cell-input {
  width: 100%;
  min-width: 92px;
  padding: 7px 10px;
  font-size: 13px;
  border-radius: 8px;
  background: rgba(5, 7, 15, 0.55);
}
.data-table .cell-input[type="text"] { min-width: 150px; }
.data-table .mini-input:focus,
.data-table .cell-input:focus { background: rgba(5, 7, 15, 0.88); }

/* ---- 带单位后缀的输入（经验 / 积分） ---- */
.unit-input {
  display: inline-flex;
  align-items: stretch;
  background: rgba(5, 7, 15, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.unit-input:hover { border-color: rgba(34, 211, 238, 0.36); }
.unit-input:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
  background: rgba(5, 7, 15, 0.88);
}
.unit-input input,
.unit-input input:focus,
.unit-input input:hover {
  border: 0;
  background: none;
  box-shadow: none;
  width: 104px;
  padding: 7px 8px 7px 10px;
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.unit-input em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-3);
  padding: 0 10px 0 7px;
  border-left: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  user-select: none;
  white-space: nowrap;
}

/* ---- 用户管理 ---- */
.data-table--users td { vertical-align: middle; }
.ta-r { text-align: right; }
.data-table th.ta-r { text-align: right; }
.mono-dim { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.data-table .dim { color: var(--text-3); font-size: 12.5px; white-space: nowrap; }
.u-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.u-ava {
  width: 30px; height: 30px; flex: none; border-radius: 9px; overflow: hidden;
  display: grid; place-items: center;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.22);
}
.u-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.u-ava-fallback { font-size: 12.5px; font-weight: 700; color: var(--cyan); }
.u-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.u-name {
  color: var(--cyan); font-size: 13px; line-height: 1.25;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.u-meta .u-sub { font-size: 11.5px; color: var(--text-3); }

.role-select {
  min-width: 116px;
  padding: 7px 30px 7px 10px;
  font-size: 12.5px;
  border-radius: 8px;
  background-color: rgba(5, 7, 15, 0.55);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%236b7690' stroke-width='1.7' stroke-linecap='round'><path d='M1 1.6 6 6.4l5-4.8'/></svg>");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 10px 7px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.role-select:focus { background-color: rgba(5, 7, 15, 0.88); }

/* 行内编辑器 */
.edit-row > td { padding: 0 !important; background: rgba(34, 211, 238, 0.045); border-bottom: 1px solid var(--line); }
.data-table tr.edit-row:hover td { background: rgba(34, 211, 238, 0.045); }
.row-editor {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px;
  padding: 16px 18px 18px;
  border-left: 3px solid var(--cyan);
}
.row-editor-head { display: flex; flex-direction: column; gap: 3px; min-width: 170px; }
.row-editor-head b { font-size: 13px; color: var(--text-1); }
.row-editor-head .hint { font-size: 11.5px; }
.row-editor-fields { display: flex; gap: 14px; flex-wrap: wrap; }
.row-editor-fields .field { margin-bottom: 0; }
.row-editor-fields .field label { font-size: 12px; margin-bottom: 6px; }
.row-editor-fields .field input { width: 152px; padding: 8px 10px; font-size: 13px; }
.row-editor-actions { display: flex; gap: 8px; margin-left: auto; }

/* ---- 等级阶梯 ---- */
.data-table--levels td { vertical-align: middle; }
.lv-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 54px; padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
}
.lv-gap { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-gap.is-bad { color: #f87171; font-weight: 600; }
.data-table .cell-input.is-bad { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12); }
.data-table .unit-input.is-bad { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12); }

/* ---- 浅色主题覆盖 ---- */
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  /* 注意：这里必须用 background-color 而不是 background 简写，
     否则会把 .role-select 的箭头 background-size / repeat 一并重置成默认值 */
  background-color: #ffffff;
  color: var(--text-1);
  border-color: var(--line-strong);
}
html[data-theme="light"] .data-table .mini-input,
html[data-theme="light"] .data-table .cell-input { background: #ffffff; }
html[data-theme="light"] .unit-input { background: #ffffff; }
html[data-theme="light"] .unit-input input { background: none; }
html[data-theme="light"] .role-select { background-color: #ffffff; }
html[data-theme="light"] .edit-row > td,
html[data-theme="light"] .data-table tr.edit-row:hover td { background: rgba(34, 211, 238, 0.07); }
html[data-theme="light"] .u-ava { background: rgba(34, 211, 238, 0.16); border-color: rgba(34, 211, 238, 0.3); }
html[data-theme="light"] .lv-chip { background: rgba(8, 145, 178, 0.12); border-color: rgba(8, 145, 178, 0.28); color: #0e7490; }
html[data-theme="light"] .u-name { color: #0e7490; }
html[data-theme="light"] .role-select {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23475569' stroke-width='1.7' stroke-linecap='round'><path d='M1 1.6 6 6.4l5-4.8'/></svg>");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 10px 7px;
}

/* Keep the mobile menu reachable alongside both library destinations. */
@media (max-width: 680px) { .nav-inner { gap: 12px; } .nav-actions { gap: 6px; } }

.nav-links a.mobile-publish { display: none; }
@media (max-width: 680px) { .nav-links a.mobile-publish { display: block; } .nav-actions .nav-publish { display: none; } }
