/* ==========================================================================
   守恒秉仁团队门户 · 全站样式（苹果风设计语言 / 明暗跟随系统三主题）
   三个例外不套苹果风：音乐页、典当行页（旧站原样）、工单处理（政务风，见 .platform 区块）
   ========================================================================== */

/* ---------- 主题变量 ---------- */
:root {
  --primary: #0a84ff;
  --primary-rgb: 10, 132, 255;
  --bg: #f5f5f7;
  --bg-soft: #ececef;
  --card: #ffffff;
  --card-2: #fbfbfd;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --danger: #ff3b30;
  --success: #34c759;
  --warning: #ff9500;
  --radius: 18px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  --primary: #0a84ff;
  --primary-rgb: 10, 132, 255;
  --bg: #000000;
  --bg-soft: #1c1c1e;
  --card: #1c1c1e;
  --card-2: #2c2c2e;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(22, 22, 23, 0.72);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.85; }
img { max-width: 100%; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 统一导航栏 ---------- */
/* 高优先级：导航栏内的链接一律深色文字，不被全局 a{color:blue} 染蓝 */
.navbar a {
  color: var(--text) !important;
  text-decoration: none !important;
}
/* 头部容器整体吸顶：sticky 只在父级盒子内生效，#site-header 高度等于导航栏时
   .navbar 没有任何可粘滞的空间，会随页面滚走（表现为下方吸顶元素顶部出现空档） */
#site-header { position: sticky; top: 0; z-index: 100; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  height: 52px;
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  flex-wrap: nowrap !important;
  overflow: hidden;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--text) !important;
  margin-right: 12px;
  white-space: nowrap;
  display: flex !important;
  align-items: center !important;
  gap: 6px;
  flex-shrink: 0;
}
.logo:hover { opacity: 1; }
.logo-img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
/* logo 图片加载失败时彻底隐藏，避免 alt 文字与 logo-text 重复 */
.logo-img[style*='display:none'], .logo-img[style*='display: none'] { display: none !important; visibility: hidden !important; width: 0 !important; height: 0 !important; overflow: hidden !important; }
.nav-links { display: flex !important; align-items: center !important; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }
.nav-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text) !important;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-link:hover { background: var(--bg-soft); opacity: 1; }
.nav-link.active { color: var(--primary); }

.nav-more { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 40px;
  right: 0;
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  z-index: 200;
}
.nav-more.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}
.dropdown-menu a:hover { background: var(--bg-soft); opacity: 1; }

.nav-actions { display: flex !important; align-items: center !important; gap: 6px; flex-shrink: 0; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
}
.icon-btn:hover { background: var(--bg-soft); }

/* 圆形用户头像 + 昵称 */
.nav-user {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  color: var(--text) !important;
  cursor: pointer;
  white-space: nowrap;
}
.nav-user:hover { background: var(--bg-soft); opacity: 1; }
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-username { font-size: 13px; font-weight: 500; }
.nav-login-label { font-size: 14px; color: var(--text-2); }

/* 页脚两列版块链接 */
.footer-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 2px 16px; }

/* ---------- 汉堡菜单按钮（默认隐藏，手机端显示） ---------- */
.nav-burger { display: inline-flex; }

/* ---------- 桌面端专用（手机端隐藏） ---------- */
@media (max-width: 720px) {
  .desktop-only { display: none !important; }
  .nav-username, .nav-admin, .nav-logout { display: none !important; }
  .nav-burger { display: inline-flex; }
  .burger-menu { left: 8px; right: 8px; width: auto; max-width: none; }
}

/* ---------- 汉堡下拉菜单（手机端） ---------- */
.burger-menu {
  display: none;
  position: absolute;
  top: 52px;
  right: 16px;
  left: auto;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 220;
  flex-wrap: wrap;
  gap: 4px;
}
.burger-menu.open { display: flex; }
.burger-menu a {
  flex: 0 0 calc(50% - 4px);
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
}
.burger-menu a:hover { background: var(--bg-soft); opacity: 1; }

/* ---------- 主题侧滑面板（齿轮） ---------- */
.theme-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 480;
}
.theme-scrim.show { opacity: 1; pointer-events: auto; }
.theme-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
  max-width: 82vw;
  background: var(--card);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.3, 0.8, 0.3, 1);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.theme-panel.open { transform: translateX(0); }
.theme-panel-head { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.theme-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
}
.theme-option:hover { background: var(--bg-soft); }
.theme-option.active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.theme-swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-strong); }
.theme-swatch.light { background: linear-gradient(135deg, #ffffff, #e9e9ee); }
.theme-swatch.dark { background: linear-gradient(135deg, #1c1c1e, #000000); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 980px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: rgba(var(--primary-rgb), 0.1); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- 公告条 ---------- */
.announce-bar {
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.announce-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  min-height: 30px;
}
.announce-icon { flex-shrink: 0; display: inline-flex; align-items: center; color: var(--primary); }
.announce-scroll { overflow: hidden; white-space: nowrap; flex: 1; }
.announce-scroll span { display: inline-block; padding-left: 100%; animation: marquee 18s linear infinite; }
.announce-scroll .announce-static { padding-left: 0; animation: none; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ---------- 首页 Hero（低调，暗色适配） ---------- */
.home-hero { padding: 40px 24px 14px; text-align: center; background: linear-gradient(180deg, var(--card-2), transparent); }
.home-hero h1 { font-size: 34px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; color: var(--text); }
.home-hero p { font-size: 16px; color: var(--text-2); margin: 0; }

/* ---------- 块状入口（卡片同色、浅色色块、去 emoji 图标） ---------- */
.section-close { padding: 12px 0; }
.block-row, .block-cell {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 16px; padding: 24px 26px; text-decoration: none; color: var(--text);
  border: 1px solid var(--border); transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.block-cell { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.block-row:hover, .block-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow); opacity: 1; }
.block-title { font-size: 20px; font-weight: 700; }
.block-desc { font-size: 13.5px; color: var(--text-2); margin-top: 4px; }
.block-go { font-size: 14px; padding: 7px 15px; border-radius: 999px; background: rgba(var(--primary-rgb), 0.10); color: var(--primary); white-space: nowrap; }
.block-row .badge { align-self: center; flex-shrink: 0; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .case-grid { grid-template-columns: 1fr; } }

/* 卡片式入口下方的「进入 / 维护中」标记 */
.cell-go {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 13px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.10);
  color: var(--primary);
  font-size: 13px;
  white-space: nowrap;
}
.muted-go,
.block-go.muted-go {
  background: var(--bg-soft) !important;
  color: var(--text-3) !important;
}

.tint-blue   { background: linear-gradient(135deg, rgba(10,132,255,0.12), rgba(10,132,255,0.03)); }
.tint-green  { background: linear-gradient(135deg, rgba(52,199,89,0.14), rgba(52,199,89,0.04)); }
.tint-orange { background: linear-gradient(135deg, rgba(255,149,0,0.16), rgba(255,149,0,0.04)); }
.tint-purple { background: linear-gradient(135deg, rgba(175,82,222,0.14), rgba(175,82,222,0.04)); }
.tint-brown  { background: linear-gradient(135deg, rgba(121,85,72,0.15), rgba(121,85,72,0.04)); }

/* ---------- 广告位 ---------- */
.ad-box { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 16px 20px; border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--text-3); background: var(--card-2); }
.ad-label { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--border); color: var(--text-3); white-space: nowrap; }
.ad-text { font-size: 14px; }

/* ---------- 粒子连线横幅 ---------- */
#particle-banner { height: 200px; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: linear-gradient(160deg, rgba(10,132,255,0.10), rgba(90,200,250,0.05)); }
#particle-banner canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
html[data-theme="dark"] #particle-banner { background: linear-gradient(160deg, rgba(10,132,255,0.14), rgba(15,36,80,0.45)); }

/* 粒子横幅居中文字：页面名(蓝、大) 在上 / 站名(灰、小) 在下 */
#particle-banner .pb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  text-align: center;
}
#particle-banner .pb-page {      /* 页面名：突出、蓝色大字 */
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--primary);
  text-shadow: 0 2px 14px rgba(10, 132, 255, 0.15);
  line-height: 1.2;
}
#particle-banner .pb-brand {     /* 站名：缩小、灰色（导航栏已展示） */
  margin-top: 6px;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--text-2);
}
#particle-banner .pb-brand.alone {  /* 无页面名时，站名当标题用 */
  margin-top: 0;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--primary);
  text-shadow: 0 2px 14px rgba(10, 132, 255, 0.15);
}
@media (max-width: 640px) {
  #particle-banner { height: 170px; }
  #particle-banner .pb-page { font-size: 28px; letter-spacing: 2px; }
  #particle-banner .pb-brand { font-size: 13.5px; }
  #particle-banner .pb-brand.alone { font-size: 28px; letter-spacing: 2px; }
}

/* 导航栏：Logo 右侧「站名 · 页面名」 */
.logo-text { display: inline-flex; align-items: center; }
.logo-sep { color: var(--text-3); margin: 0 6px; font-weight: 400; }
.logo-page { font-weight: 500; color: var(--text-2); font-size: 16px; }

/* 导航栏项目：默认即带底色与描边，看起来像按钮（不只 hover 才有） */
.nav-link,
.nav-user {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-link:hover,
.nav-user:hover { background: var(--bg-soft); opacity: 1; }
.nav-link.active { color: var(--primary); border-color: rgba(var(--primary-rgb), 0.35); }
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .nav-user { border-color: var(--border-strong); }

/* 返回门户页面：桌面端改为纯文字（去掉灰色胶囊框），与全站「三点菜单」返回入口一致 */
.nav-link {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 6px 8px !important;
  font-size: 14px;
}
.nav-link:hover { background: rgba(var(--primary-rgb), 0.10) !important; opacity: 1; }
.nav-link.active { color: var(--primary); border-color: transparent; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 72px 24px 56px;
}
.hero h1 { font-size: 44px; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p { font-size: 20px; color: var(--text-2); margin: 0 0 28px; }

/* ---------- 板块 ---------- */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.section-sub { font-size: 15px; color: var(--text-2); }
.section-link { font-size: 15px; }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0 0 12px; color: var(--text-2); font-size: 14px; }
.card-cover {
  width: 100%;
  height: 150px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-soft);
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 13px;
}
.card-meta { font-size: 12px; color: var(--text-3); }
.card-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-tech { background: rgba(var(--primary-rgb), 0.12); color: var(--primary); }
.badge-service { background: rgba(52, 199, 89, 0.15); color: var(--success); }
.badge-ongoing { background: rgba(255, 149, 0, 0.15); color: var(--warning); }
.badge-done { background: rgba(52, 199, 89, 0.15); color: var(--success); }
.badge-pending { background: rgba(255, 149, 0, 0.15); color: var(--warning); }
.badge-processing { background: rgba(var(--primary-rgb), 0.12); color: var(--primary); }

/* ---------- 表单 ---------- */
.form { max-width: 520px; margin: 0 auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}
.textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ---------- 表格（工单公示 / 政务风沿用）---------- */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
table.data th { background: var(--card-2); color: var(--text-2); font-weight: 600; white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--card-2); }

/* ---------- 登录卡 ---------- */
.auth-wrap { min-height: calc(100vh - 52px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; border: 1px solid var(--border); }
.auth-card h1 { font-size: 24px; margin: 0 0 6px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--text-2); margin: 0 0 24px; font-size: 14px; }
.tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.tab { flex: 1; text-align: center; padding: 10px; cursor: pointer; color: var(--text-2); border: none; background: none; font-size: 15px; font-family: var(--font); border-bottom: 2px solid transparent; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row .input { flex: 1; }
.captcha-img { height: 40px; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid var(--border); }
.btn.disabled-gray { background: var(--bg-soft); color: var(--text-3); }

/* ---------- 提示条 / Toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease;
}
.toast.error { background: var(--danger); color: #fff; }
.toast.success { background: var(--success); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 模态框 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.4);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal { background: var(--card); border-radius: var(--radius); padding: 24px; max-width: 520px; width: 100%; max-height: 86vh; overflow: auto; box-shadow: var(--shadow); color: var(--text); border: 1px solid var(--border); }
html[data-theme="dark"] .modal { background: var(--card-2); }
html[data-theme="dark"] .modal p { color: var(--text-2); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 60px; background: var(--card-2); }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.footer h4 { margin: 0 0 12px; font-size: 15px; }
.footer a, .footer p { display: block; color: var(--text-2); font-size: 13px; margin: 6px 0; }
.footer-bottom { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 32px; }

/* ---------- 维护中遮罩 ---------- */
.maintenance-overlay {
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.maintenance-overlay.show { display: flex; }
.maintenance-overlay h1 { font-size: 32px; margin-bottom: 8px; }
.maintenance-overlay p { color: var(--text-2); }

/* ---------- 政务风平台（工单处理）---------- */
.platform { background: #f2f3f5; min-height: 100vh; }
html[data-theme="dark"] .platform { background: #15161a; }
.platform .platform-nav {
  background: #1b3a6b; color: #fff; padding: 0 16px; height: 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.platform .platform-nav .brand { font-weight: 700; }
.platform .platform-nav a, .platform .platform-nav button { color: #fff; margin-left: 12px; background: none; border: none; cursor: pointer; font-size: 14px; font-family: var(--font); }
.platform .plat-body { display: flex; max-width: 1200px; margin: 16px auto; gap: 16px; padding: 0 16px; }
.platform .plat-side { width: 200px; background: #fff; border-radius: 8px; padding: 12px; border: 1px solid #e3e5e8; height: fit-content; }
html[data-theme="dark"] .platform .plat-side { background: #22242a; border-color: #333; }
.platform .plat-side a { display: block; padding: 8px 10px; color: #333; border-radius: 6px; font-size: 14px; }
html[data-theme="dark"] .platform .plat-side a { color: #e5e5e7; }
.platform .plat-side a:hover, .platform .plat-side a.active { background: #eef2f7; }
html[data-theme="dark"] .platform .plat-side a:hover { background: #2c2e34; }
.platform .plat-main { flex: 1; background: #fff; border-radius: 8px; padding: 20px; border: 1px solid #e3e5e8; }
html[data-theme="dark"] .platform .plat-main { background: #22242a; border-color: #333; }
.platform table.data th { background: #eef2f7; }
html[data-theme="dark"] .platform table.data th { background: #2c2e34; color: #e5e5e7; }

/* ---------- 通用工具 ---------- */
.muted { color: var(--text-2); }
.text-center { text-align: center; }
.mt { margin-top: 20px; }
.mb { margin-bottom: 20px; }
.hidden { display: none !important; }
.spinner {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15); border-top-color: var(--primary);
  animation: spin 0.7s linear infinite;
}
html[data-theme="dark"] .spinner { border-color: rgba(255,255,255,0.2); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-chip {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-2); cursor: pointer; font-size: 14px; font-family: var(--font);
}
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 服务卡片：标签 / 底部分组与“了解更多” */
.card.clickable { cursor: pointer; }
.svc-tag {
  display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.8;
  padding: 1px 9px; border-radius: 999px; margin-bottom: 8px;
  background: rgba(var(--primary-rgb), 0.12); color: var(--primary);
}
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.svc-group { font-size: 12px; color: var(--text-3); }
.svc-more { font-size: 13px; color: var(--primary); }
.svc-notice {
  margin-top: 8px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--card-2); border: 1px solid var(--border);
  color: var(--text-2); font-size: 13.5px; text-align: center;
}

/* ---------- 内容页两栏平衡布局（消除“偏左、右侧空”通病） ---------- */
.page-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.page-aside { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; }
.aside-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.aside-card h4 { margin: 0 0 10px; font-size: 15px; color: var(--text); }
.aside-card p { font-size: 13.5px; color: var(--text-2); margin: 0 0 8px; }
.aside-card p:last-child { margin-bottom: 0; }
.aside-card ul { margin: 0; padding-left: 18px; }
.aside-card li { font-size: 13.5px; color: var(--text-2); margin-bottom: 7px; }
.aside-card .kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.aside-card .kv:last-child { border-bottom: none; }
.aside-card .kv b { color: var(--text); font-weight: 600; }
.aside-card .kv span { color: var(--text-2); text-align: right; }
.lead-card { max-width: 820px; margin: 0 auto; }
.profile-wrap { max-width: 720px; margin: 0 auto; }
.empty-state { text-align: center; padding: 44px 20px; color: var(--text-3); }
.empty-state svg { width: 40px; height: 40px; opacity: .4; margin-bottom: 12px; display: block; margin-left: auto; margin-right: auto; }
.empty-state .es-title { font-size: 16px; color: var(--text-2); margin: 0 0 6px; }
.empty-state .es-sub { font-size: 14px; margin: 0; }
@media (max-width: 860px) {
  .page-split { grid-template-columns: 1fr; gap: 20px; }
  .page-aside { position: static; }
}

/* 旧站保留页（音乐 / 典当行）外层容器，避免其原有样式污染全站导航与页脚 */
.legacy-wrap { position: relative; }

/* 评论区 */
.comment { padding: 12px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: none; }
.comment .who { font-weight: 600; font-size: 13px; }
.comment .when { color: var(--text-3); font-size: 12px; margin-left: 8px; }
.comment .body { font-size: 14px; margin-top: 4px; }

@media (max-width: 720px) {
  .nav-link { display: none !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .platform .plat-body { flex-direction: column; }
  .platform .plat-side { width: 100%; }
}

/* ==========================================================================
   政务风 · 事务/工单系统（affairs）
   深蓝顶栏 + 左侧分类栏 + 浅灰内容区 + 白卡片 + 数据表格
   ========================================================================== */
:root {
  --gov-blue: #16337a;
  --gov-blue-2: #0f2450;
  --gov-blue-3: #2f4ea0;
  --gov-bg: #eef1f6;
  --gov-ink: #2a2f3a;
  --gov-ink-2: #5a6272;
  --gov-ink-3: #8a92a6;
  --gov-line: #dde2ea;
  --gov-warm: #f7f9fc;
}
html[data-theme="dark"] {
  --gov-blue: #142a5c;
  --gov-blue-2: #0c1a3d;
  --gov-blue-3: #31509b;
  --gov-bg: #14161c;
  --gov-ink: #e6e8ee;
  --gov-ink-2: #a3a9b8;
  --gov-ink-3: #6d7484;
  --gov-line: #2a2e3a;
  --gov-warm: #1b1e27;
}

/* 登录前置网关 */
.gate {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gov-blue-2), var(--gov-blue-3));
  padding: 20px;
}
.gate-card {
  background: #fff; color: #2a2f3a; border-radius: 18px; padding: 40px 32px;
  max-width: 420px; width: 100%; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
html[data-theme="dark"] .gate-card { background: #1c1f28; color: #e6e8ee; }
.gate-card .lock { color: var(--gov-blue-3); margin-bottom: 12px; }
.gate-card h2 { margin: 0 0 8px; font-size: 20px; }
.gate-card p { color: var(--gov-ink-2); font-size: 14px; margin: 0 0 4px; }

/* 深蓝顶栏 */
.gov-topbar {
  background: linear-gradient(90deg, var(--gov-blue-2), var(--gov-blue));
  color: #fff; padding: 0 20px; height: 54px;
  display: flex; align-items: center; gap: 24px; position: sticky; top: 52px; z-index: 90;
}
.gov-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; white-space: nowrap; }
.gov-brand svg { width: 22px; height: 22px; }
.gov-nav { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.gov-nav a { color: rgba(255,255,255,0.82); font-size: 14px; padding: 5px 10px; border-radius: 6px; }
.gov-nav a:hover { background: rgba(255,255,255,0.12); opacity: 1; }
.gov-nav a.active { background: rgba(255,255,255,0.18); color: #fff; }
.gov-topbar-right { display: flex; align-items: center; gap: 8px; }
.gov-btn {
  border: 1px solid rgba(255,255,255,0.4); background: transparent; color: #fff;
  padding: 6px 14px; border-radius: 7px; font-size: 13px; cursor: pointer; font-family: var(--font); white-space: nowrap;
}
.gov-btn:hover { background: rgba(255,255,255,0.14); }
.gov-btn-primary { background: #fff; color: var(--gov-blue-2); border-color: #fff; font-weight: 600; }
.gov-btn-primary:hover { background: #eef2ff; opacity: 1; }
.gov-btn-default { background: rgba(255,255,255,0.12); border-color: transparent; }

/* 政务主体 */
.gov-app { display: flex; max-width: 1200px; margin: 0 auto; padding: 16px; gap: 16px; align-items: flex-start; }
.gov-sidebar {
  width: 210px; background: var(--card); border: 1px solid var(--gov-line); border-radius: 10px;
  padding: 10px; flex-shrink: 0; color: var(--gov-ink);
}
.gov-side-group { font-size: 12px; color: var(--gov-ink-3); padding: 8px 10px 4px; }
.gov-side-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border: none; background: none;
  color: var(--gov-ink-2); font-size: 14px; border-radius: 6px; cursor: pointer; font-family: var(--font); }
.gov-side-item:hover { background: var(--bg-soft); }
.gov-side-item.active { background: var(--gov-blue); color: #fff; }
.gov-side-divider { height: 1px; background: var(--gov-line); margin: 6px 4px; }
.gov-main { flex: 1; min-width: 0; }
.gov-breadcrumb { font-size: 13px; color: var(--gov-ink-3); margin-bottom: 12px; }
.gov-breadcrumb a { color: var(--gov-ink-2); }
.gov-breadcrumb span { margin: 0 6px; color: var(--gov-ink-3); }
.gov-card { background: var(--card); border: 1px solid var(--gov-line); border-radius: 10px; padding: 16px 18px; }
.gov-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.gov-filter { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 130px; }
.gov-filter label { font-size: 13px; color: var(--gov-ink-2); }
.gov-filter .input, .gov-filter .select { height: 36px; font-size: 13px; }
.gov-tip {
  display: flex; align-items: center; gap: 8px; margin: 14px 0; padding: 10px 14px;
  background: var(--gov-warm); border: 1px solid var(--gov-line); border-radius: 8px;
  color: var(--gov-ink-2); font-size: 13px;
}
.gov-tip svg { width: 16px; height: 16px; flex-shrink: 0; }
.gov-tablewrap { background: var(--card); border: 1px solid var(--gov-line); border-radius: 10px; overflow: hidden; }
.gov-tablewrap table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.gov-tablewrap th {
  text-align: left; padding: 12px 14px; background: var(--gov-warm); color: var(--gov-ink-2);
  font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--gov-line);
}
.gov-tablewrap td { padding: 12px 14px; border-bottom: 1px solid var(--gov-line); color: var(--gov-ink); vertical-align: top; }
.gov-tablewrap tr:last-child td { border-bottom: none; }
.gov-tablewrap tr:hover td { background: var(--gov-warm); }
.gov-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.gov-status.pending { background: rgba(255,149,0,0.14); color: #b26a00; }
.gov-status.processing { background: rgba(var(--primary-rgb),0.14); color: var(--primary); }
.gov-status.done { background: rgba(52,199,89,0.14); color: #1f9d4a; }
html[data-theme="dark"] .gov-status.pending { color: #ffb347; }
html[data-theme="dark"] .gov-status.done { color: #5fd68a; }
.gov-pagination {
  display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--gov-ink-2);
}
.gov-page-btns { display: flex; gap: 6px; }
.gov-page-btn { min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--gov-line); background: var(--card);
  color: var(--gov-ink-2); border-radius: 6px; cursor: pointer; font-family: var(--font); font-size: 13px; }
.gov-page-btn.active { background: var(--gov-blue); color: #fff; border-color: var(--gov-blue); }
.gov-page-btn:hover { border-color: var(--gov-blue-3); }

@media (max-width: 860px) {
  .gov-topbar { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 8px; top: 52px; }
  .gov-nav { order: 3; width: 100%; }
  .gov-app { flex-direction: column; }
  .gov-sidebar { width: 100%; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
  .gov-side-group, .gov-side-divider { display: none; }
  .gov-side-item { width: auto; flex: 0 0 auto; }
}