/* 词光 WordGlow · 基础样式与布局（默认简约风） */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8f7;
  --surface: #ffffff;
  --surface-2: #f1f4f2;
  --surface-3: #e9eeeb;
  --text: #1b2320;
  --text-dim: #69756f;
  --text-faint: #98a29d;
  --border: #e3e8e5;
  --border-strong: #cfd8d3;
  --primary: #0e7a5a;
  --primary-strong: #0a5f46;
  --primary-soft: #e7f3ee;
  --primary-ink: #ffffff;
  --accent: #16a574;
  --accent-soft: #e4f6ee;
  --warn: #c9700f;
  --warn-soft: #fdf3e6;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  /* 语义点缀色：成功 / 信息 / 收藏 / 热门（深色主题自动换亮色，见 themes.css） */
  --success: #16a34a;
  --success-soft: #e6f6ec;
  --info: #2563eb;
  --info-soft: #e8f0fe;
  --star: #d97706;
  --star-soft: #fdf1dc;
  --hot: #e04f7d;
  --hot-soft: #fde7ef;
  /* 过渡色：按钮 / 海报 / 进度条的渐变中调 */
  --primary-mid: #0c8f68;
  --accent-mid: #2ec68f;
  /* 海报深浅档（默认简约风；其余 15 款主题见 themes.css，各自跟随主色）
     1=榜单(中深) 2=黑胶(中) 3=文章(浅) 4=节日(极浅) */
  --poster-bg-1: #5ba58f;
  --poster-bg-2: #8ec0b1;
  --poster-bg-3: #b9d8cf;
  --poster-bg-4: #d8eae5;
  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 10px;
  --gap: 16px;
  --shadow-sm: 0 1px 2px rgba(18, 38, 33, 0.05);
  --shadow: 0 6px 22px rgba(18, 38, 33, 0.07);
  --shadow-lg: 0 22px 60px rgba(18, 38, 33, 0.16);
  --font: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-en: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --headline-font: var(--font);
  --header-blur: saturate(180%) blur(12px);
  --header-bg: rgba(255, 255, 255, 0.82);
  --body-pattern: none;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image: var(--body-pattern);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--headline-font); margin: 0; font-weight: 700; letter-spacing: 0.2px; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }

p { margin: 0 0 10px; }

.en, .word-en { font-family: var(--font-en); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--primary); color: var(--primary-ink);
  display: grid; place-items: center;
  font-weight: 700; font-size: 17px;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 16px; }
.brand-sub { font-size: 11px; color: var(--text-faint); }

.main-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav-item {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--primary); color: var(--primary-ink); }

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

.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
}
.user-chip:hover { border-color: var(--border-strong); }
.user-chip img, .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-3);
  object-fit: cover;
}

.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 15px;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.icon-btn.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* ---------- 主体 ---------- */
.page {
  flex: 1;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 18px 60px;
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-desc { color: var(--text-dim); font-size: 13.5px; }

.grid { display: grid; gap: var(--gap); }
.grid.two { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.card.pad-lg { padding: 22px 24px; border-radius: var(--radius-lg); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.card-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.card-sub { color: var(--text-dim); font-size: 13px; }
.tint { background: var(--bg-soft); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.16s ease, background 0.16s ease;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn.soft { background: var(--primary-soft); color: var(--primary-strong); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.tiny { padding: 3px 9px; font-size: 12px; border-radius: 8px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn.block { width: 100%; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--text-dim); }
.input, .textarea, .select {
  width: 100%;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.textarea { resize: vertical; min-height: 86px; }
.input.en { font-family: var(--font-en); font-size: 16px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary-soft); color: var(--primary-strong); border-color: var(--primary); font-weight: 600; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 12px;
}
.tag.ok { background: var(--primary-soft); color: var(--primary-strong); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.accent { background: var(--accent-soft); color: var(--accent); }
.tag.success { background: var(--success-soft); color: var(--success); }
.tag.info { background: var(--info-soft); color: var(--info); }
.tag.star { background: var(--star-soft); color: var(--star); }
.tag.hot { background: var(--hot-soft); color: var(--hot); }

/* 身份标签：站主（蓝）/ 管理员（绿）/ 普通用户（灰）/ 已注销（红） */
.tag.owner { background: #e7efff; color: #1d4ed8; }
.tag.admin { background: #e6f7ee; color: #0f7a4a; }
.tag.user { background: var(--surface-2); color: var(--text-dim); }
.tag.canceled, .tag.err { background: var(--danger-soft); color: var(--danger); }

/* ---------- 进度条 ---------- */
.progress { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-mid), var(--accent)); border-radius: 999px; transition: width 0.3s ease; }

/* ---------- 吐司 & 弹窗 ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--text);
  color: var(--bg);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.22s ease;
}
.toast.err { background: var(--danger); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.modal-mask {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(16, 30, 26, 0.42);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: min(560px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.2s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal.wide { width: min(820px, 100%); }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px;
  text-align: center;
  color: var(--text-faint);
  font-size: 12.5px;
  background: var(--bg-soft);
}
.site-footer a { color: var(--text-dim); }
.footer-beian { margin-top: 6px; }
.footer-beian a { color: var(--text-faint); text-decoration: none; }
.footer-beian a:hover { text-decoration: underline; color: var(--text-dim); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid.two, .grid.three { grid-template-columns: minmax(0, 1fr); }
    .header-inner { flex-wrap: wrap; gap: 8px; }
    /* flex: 0 0 100%：桌面那条 .main-nav{flex:1} 的 flex-basis 是 0%，
       会把这里的 width:100% 顶掉，导致窄屏导航被挤成一条几十像素的缝。
       这里显式给满宽，导航才会独占一行、横向滑动。 */
    .main-nav { order: 3; flex: 0 0 100%; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
    .main-nav::-webkit-scrollbar { display: none; }
    .nav-item { flex: 0 0 auto; }
  }

@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .page { padding: 14px 12px 48px; }
  h1 { font-size: 22px; }
  .card { padding: 16px; }
  .brand-sub { display: none; }
}

/* ================= 全站整体美化增强（2026-10-03） =================
   只增不改：在既有设计系统之上叠加质感，兼容 10 款主题与个人背景 */

/* 页面背景：顶部柔和光晕，让白底不单调（个人背景 data-bg 优先级更高） */
body {
  background-image:
    radial-gradient(1100px 460px at 12% -8%, var(--primary-soft) 0%, transparent 62%),
    radial-gradient(880px 400px at 90% -12%, var(--accent-soft) 0%, transparent 58%),
    var(--body-pattern);
  background-attachment: fixed;
}

/* 顶部导航：更精致的毛玻璃与层次 */
.site-header {
  box-shadow: 0 1px 0 rgba(18, 38, 33, .04), 0 10px 30px -22px rgba(18, 38, 33, .22);
}
.brand-mark {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 140%);
  box-shadow: 0 4px 12px -5px var(--primary);
}
.brand-name { letter-spacing: .2px; }
.nav-item { font-weight: 500; transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease; }
.nav-item:hover { transform: translateY(-1px); }
.nav-item.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 130%);
  box-shadow: 0 4px 12px -5px var(--primary);
}
.user-chip { box-shadow: var(--shadow-sm); transition: box-shadow .16s ease, border-color .16s ease; }
.user-chip:hover { box-shadow: var(--shadow); }

/* 卡片：圆角统一、阴影更有层次，hover 微微上浮 */
.card {
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(18, 38, 33, .04), 0 10px 28px -18px rgba(18, 38, 33, .14);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 2px 4px rgba(18, 38, 33, .05), 0 18px 40px -20px rgba(18, 38, 33, .20);
}
.card.pad-lg { border-radius: 20px; }

/* 按钮：主按钮渐变质感 + 微上浮动效 */
.btn {
  border-radius: 12px;
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 60%, var(--primary-strong) 135%);
  box-shadow: 0 4px 14px -6px var(--primary);
  font-weight: 600;
  letter-spacing: .2px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost, .btn.soft, .btn.danger {
  background-image: none;
  box-shadow: none;
}
.btn.ghost:hover, .btn.soft:hover, .btn.danger:hover { transform: translateY(-1px); }

/* 输入类控件：圆角与聚焦层次 */
.input, .textarea, .select {
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(18, 38, 33, .03);
}
.input:focus, .textarea:focus, .select:focus {
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* 标签与提示：圆角过渡 */
.tag, .chip { transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease; }
.chip:hover { transform: translateY(-1px); }

/* 弹窗与吐司 */
.modal {
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(18, 38, 33, .35);
}
.toast { box-shadow: 0 12px 32px -8px rgba(18, 38, 33, .35); }

/* 页脚 */
.site-footer { letter-spacing: .2px; }

/* ================= Youther 视觉重设计 v2（2026-10-03 第二次美化） =================
   目标：鲜活、引人注目。默认简约风给全站更强的色彩与层次；
   深色主题（港风/篮球/黑金/极光/赛车）通过局部覆盖保持协调。 */

/* --- 页面背景：奶油底 + 绿色系光斑（默认主题，跟随品牌绿，无蓝黄粉杂色） --- */
body {
  background-color: #f6fbf8;
  background-image:
    radial-gradient(720px 380px at 8% 6%, rgba(52, 199, 142, .20) 0%, transparent 60%),
    radial-gradient(820px 400px at 96% -4%, rgba(22, 165, 116, .16) 0%, transparent 62%),
    radial-gradient(560px 300px at 78% 26%, rgba(14, 122, 90, .14) 0%, transparent 60%),
    radial-gradient(480px 260px at 12% 48%, rgba(12, 143, 104, .13) 0%, transparent 58%),
    radial-gradient(640px 320px at 62% 90%, rgba(23, 201, 138, .13) 0%, transparent 62%),
    var(--body-pattern);
  background-attachment: fixed;
}

/* --- 导航：更醒目的品牌与激活态 --- */
.site-header {
  box-shadow: 0 1px 0 rgba(18, 38, 33, .04), 0 14px 34px -22px rgba(18, 38, 33, .26);
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #17c98a 55%, var(--accent) 150%);
  box-shadow: 0 6px 16px -6px var(--primary);
}
.nav-item { font-weight: 600; }
.nav-item.active {
  background: linear-gradient(135deg, var(--primary) 0%, #16b57f 55%, var(--accent) 150%);
  box-shadow: 0 6px 16px -6px var(--primary);
  color: var(--primary-ink);
}

/* --- 主按钮：更亮的渐变与彩色投影 --- */
.btn {
  background-image: linear-gradient(135deg, var(--primary) 0%, #16b57f 55%, var(--accent) 160%);
  box-shadow: 0 6px 18px -7px var(--primary);
}
.btn.ghost, .btn.soft, .btn.danger { background-image: none; box-shadow: none; }

/* --- 卡片 hover：彩色投影 --- */
.card:hover {
  box-shadow: 0 4px 6px rgba(18, 38, 33, .05), 0 22px 44px -22px var(--primary);
}

/* --- 聚焦光晕 --- */
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft), 0 4px 16px -6px var(--primary);
}

/* ================= 对比度与强调修复 v2.1（2026-10-04） =================
   铁律：深色区域配白字、浅色区域配黑字，任何主题下都不能"深配深、浅配浅"。 */

/* 1. 深色主题全集（港风/篮球/黑金/极光/赛车）：页面背景退回主题自身 */
body[data-theme="hongkong"], body[data-theme="basketball"], body[data-theme="blackgold"],
body[data-theme="aurora"], body[data-theme="racing"] {
  background-color: transparent;
  background-image: var(--body-pattern);
}

/* 2. 深色主题：按钮与激活导航退回主题两色渐变；文字色保持各主题的
      var(--primary-ink)（themes.css 已按主色明暗配好：极光/篮球/黑金=深字，港风/赛车=白字） */
body[data-theme="hongkong"] .btn, body[data-theme="basketball"] .btn,
body[data-theme="blackgold"] .btn, body[data-theme="aurora"] .btn,
body[data-theme="racing"] .btn {
  background-image: linear-gradient(135deg, var(--primary), var(--accent));
}
body[data-theme="hongkong"] .nav-item.active, body[data-theme="basketball"] .nav-item.active,
body[data-theme="blackgold"] .nav-item.active, body[data-theme="aurora"] .nav-item.active,
body[data-theme="racing"] .nav-item.active {
  background-image: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--primary-ink);
}

/* 3. 默认（简约）主题：卡片边框与阴影加深，强调更明显 */
body:not([data-theme]) .card, [data-theme="simple"] .card {
  border-color: var(--border-strong);
  box-shadow: 0 1px 2px rgba(18, 38, 33, .05), 0 14px 34px -20px rgba(18, 38, 33, .22);
}

/* ================= 主题整体风格差异化 v2.2（2026-10-04） =================
   夏日 = 海滩度假风：超圆润毛玻璃卡片、胶囊按钮、清爽导航
   南京梧桐 = 文艺怀旧风：纸张卡片、楷体标题、橄榄绿渐变按钮
   （背景图案在 themes.css 定义；这里管组件质感） */

/* --- 夏日：整体圆润 + 清爽 --- */
body[data-theme="summer"] {
  --radius-lg: 26px;
  --radius: 22px;
  --radius-sm: 16px;
  --shadow-sm: 0 2px 8px rgba(15, 155, 181, .12);
  --shadow: 0 12px 32px -8px rgba(15, 155, 181, .22);
  --shadow-lg: 0 26px 70px -18px rgba(15, 155, 181, .30);
}
body[data-theme="summer"] .site-header {
  background: rgba(238, 249, 255, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(159, 214, 232, .6);
}
body[data-theme="summer"] .card {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(159, 214, 232, .65);
  box-shadow: 0 10px 28px -12px rgba(15, 155, 181, .20);
}
body[data-theme="summer"] .card:hover {
  box-shadow: 0 16px 40px -16px rgba(15, 155, 181, .32);
}
body[data-theme="summer"] .btn,
body[data-theme="summer"] .nav-item.active {
  border-radius: 999px;
}
body[data-theme="summer"] .nav-item.active {
  background-image: linear-gradient(135deg, #0f9bb5 0%, #12aecb 50%, #2fc79a 150%);
}
body[data-theme="summer"] .input, body[data-theme="summer"] .textarea, body[data-theme="summer"] .select {
  border-radius: 18px;
  background: rgba(255, 255, 255, .95);
}
body[data-theme="summer"] .chip, body[data-theme="summer"] .tag { border-radius: 999px; }
body[data-theme="summer"] .brand-mark { border-radius: 14px; }

/* --- 南京梧桐：文艺纸张（标题字体已由 v2.3 全站统一，此处不再单独设楷体） --- */
body[data-theme="wutong"] {
  --radius-lg: 16px;
  --radius: 13px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 6px rgba(101, 88, 46, .10);
  --shadow: 0 10px 26px -10px rgba(101, 88, 46, .18);
  --shadow-lg: 0 24px 60px -20px rgba(101, 88, 46, .26);
}
body[data-theme="wutong"] .site-header {
  background: rgba(248, 247, 239, .85);
  border-bottom-color: #e6dfc7;
}
body[data-theme="wutong"] .card {
  background: rgba(255, 255, 255, .93);
  border-color: #e2d9b9;
  box-shadow: 0 6px 18px -10px rgba(101, 88, 46, .16);
}
body[data-theme="wutong"] .card:hover {
  box-shadow: 0 12px 28px -12px rgba(101, 88, 46, .24);
}
body[data-theme="wutong"] .nav-item.active {
  background-image: linear-gradient(135deg, #4f7d2e 0%, #5b8f36 60%, #e8b53c 180%);
}
body[data-theme="wutong"] .input, body[data-theme="wutong"] .textarea, body[data-theme="wutong"] .select {
  border-radius: 10px;
  background: rgba(255, 255, 255, .95);
}
body[data-theme="wutong"] .brand-mark { border-radius: 9px; }

/* ---------- 手机 / 平板：任务栏折叠 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.nav-toggle.open { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.nav-toggle-icon { font-size: 16px; line-height: 1; }

@media (max-width: 1000px) {
  .header-inner { flex-wrap: wrap; gap: 8px; padding: 9px 14px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-tools { order: 3; }
  .main-nav {
    display: none;
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    padding: 6px 0 2px;
    overflow: visible;
  }
  body.nav-open .main-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 10px;
  }
  .main-nav .nav-item {
    flex: none;
    padding: 9px 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    background: var(--surface-2);
  }
  .main-nav .nav-item.active { background: var(--primary); color: var(--primary-ink); }
}

@media (max-width: 560px) {
  .nav-toggle { padding: 7px 10px; }
  body.nav-open .main-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-tools { gap: 5px; }
  .header-tools .icon-btn { width: 34px; height: 34px; }
}
