/* ==========================================================================
   花雨庭官方网站 · 政务服务门户风格
   参考 dsh-gov-portal 设计规范：白底内容区、深蓝导航、红色重点、直角边框
   ========================================================================== */

:root {
  --red: #e4393c;
  --red-deep: #c00101;
  --blue: #1879d2;
  --blue-deep: #015293;
  --navy: #0d47a1;
  --blue-hover: #2691e2;
  --blue-link: #0b67a6;
  --gold: #e6b422;
  --green: #2e8b57;

  --text: #333333;
  --text-sub: #666666;
  --text-muted: #999999;
  --bg: #ffffff;
  --bg-gray: #f7f7f7;
  --bg-blue: #f3faff;
  --border: #dddddd;
  --border-deep: #cccccc;
  --border-strong: #2e5586;
  --zebra: #f9f9f9;
  --row-hover: #e9f2fb;

  --btn-blue: #0069c5;
  --btn-blue-hover: #0070d1;
  --btn-red: #e4393c;
  --btn-red-hover: #d9000b;
  --btn-gray: #e0e0e0;
  --btn-gray-hover: #d0d0d0;

  --font: "Microsoft YaHei", "微软雅黑", SimHei, "黑体", Arial, sans-serif;
  --font-title: "Microsoft YaHei", "微软雅黑", SimHei, "黑体", SimSun, "宋体", sans-serif;
  --font-serif: SimSun, "宋体", "Songti SC", serif;
  --font-num: Tahoma, Geneva, Arial, sans-serif;
  --font-xp: SimSun, NSimSun, "新宋体", "宋体", serif;

  --page: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100%;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
ul, ol { list-style: none; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--blue-deep); }
button, input, select, textarea { font-family: var(--font); font-size: 14px; outline: none; }
button { cursor: pointer; }
img { border: 0; vertical-align: middle; }
table { border-collapse: collapse; border-spacing: 0; }
code { font-family: Consolas, "Courier New", monospace; font-size: 13px; color: var(--blue-deep); }

.page-wrap { width: min(var(--page), calc(100% - 32px)); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--blue-deep); color: #fff; padding: 8px 16px;
}
.skip-link:focus { left: 8px; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: -2px; }
.text-link {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: none; padding: 0; color: var(--blue-link);
  font-size: 13px; cursor: pointer;
}
.text-link:hover { color: var(--red-deep); text-decoration: underline; }
.danger-text { color: var(--red-deep) !important; }
.num { font-family: var(--font-num); white-space: nowrap; }
.strong { font-weight: 700; }
.inline-form { display: inline; }

/* ================= 顶部工具条 ================= */
.topbar {
  position: sticky; top: 0; z-index: 9000;
  height: 36px; line-height: 36px;
  background: #014886; color: #fff;
  font-family: var(--font-xp); font-size: 12px;
  -webkit-font-smoothing: none;
}
.topbar-inner { display: flex; align-items: stretch; height: 36px; overflow: hidden; }
.topbar-left { display: flex; align-items: center; flex: 1; min-width: 0; }
.topbar-left a {
  position: relative; display: inline-block; height: 36px; line-height: 36px;
  padding: 0 11px; color: #fff; white-space: nowrap;
}
.topbar-left a + a::before {
  content: "|"; position: absolute; left: 0; color: rgba(255, 255, 255, 0.4);
}
.topbar-left a:hover { color: #ffe9a8; text-decoration: underline; }
.topbar-slogan {
  flex: 1.2; text-align: center; color: #ffd24a; font-weight: 700;
  letter-spacing: 1px; white-space: nowrap; overflow: hidden;
}
.topbar-right {
  flex: 1.2; min-width: 0; text-align: right; white-space: nowrap;
  overflow: hidden; font-size: 12px;
}
.topbar-visits b { color: #ffd24a; font-weight: 700; }
.topbar-sep { color: rgba(255, 255, 255, 0.5); margin: 0 5px; }
.topbar-clock { font-family: var(--font-xp); }

/* ================= 主 Header ================= */
.header { background: #fff; border-bottom: 1px solid var(--border-strong); }
.header-inner { display: flex; align-items: center; min-height: 96px; gap: 20px; }
.brand { display: flex; align-items: center; flex: 1.5; min-width: 0; gap: 16px; }
.brand:hover { color: inherit; }
.brand-logo { height: 66px; width: auto; flex: none; }
.brand-titles { display: flex; flex-direction: column; line-height: 1.4; }
.brand-title {
  font-family: var(--font-title); font-size: 30px; font-weight: 900;
  color: var(--blue-deep); letter-spacing: 2px; white-space: nowrap;
}
.brand-subtitle {
  font-family: var(--font-serif); font-size: 14px; color: var(--text-sub);
  letter-spacing: 5px; margin-top: 4px; white-space: nowrap;
}
.search-form {
  display: flex; align-items: center; height: 38px; width: 350px; flex: none;
  background: #f0f0f0; border: 1px solid #d9d9d9;
}
.search-form input {
  flex: 1; min-width: 0; height: 36px; padding: 0 14px;
  border: 0; background: transparent; font-size: 13px;
}
.search-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 38px; width: 84px; border: 0; border-left: 1px solid #d9d9d9;
  background: var(--btn-blue); color: #fff; font-weight: 700; cursor: pointer;
}
.search-btn:hover { background: var(--btn-blue-hover); }
.search-btn .icon { width: 15px; height: 15px; }
.nav-toggle {
  display: none; width: 38px; height: 38px; border: 1px solid var(--border);
  background: #fff; color: var(--blue-deep);
}

/* ================= 主导航 ================= */
.navbar {
  background: linear-gradient(180deg, #1874cd 0%, #0d47a1 100%);
  border-bottom: 3px solid var(--gold);
  height: 50px; line-height: 50px;
}
.navbar .page-wrap { display: flex; align-items: center; height: 100%; justify-content: space-between; }
.nav-list { display: flex; flex: 1; }
.nav-list li { flex: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 34px; padding: 0 16px; margin-left: 12px;
  background: var(--red); color: #fff; font-size: 14px; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.35); letter-spacing: 1px;
}
.nav-cta:hover { background: var(--red-deep); color: #fff; }
.nav-cta .icon { width: 16px; height: 16px; }
.nav-list li { position: relative; }
.nav-list a {
  display: block; padding: 0 31px; color: #fff;
  font-family: var(--font-title); font-size: 18px; font-weight: 700;
  letter-spacing: 2px; white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-list a:hover { background: var(--blue-hover); color: #fff; }
.nav-list a.active { background: #fff; color: var(--blue-deep); }

/* ================= 跑马灯 ================= */
.marquee-bar {
  display: flex; height: 34px; line-height: 32px;
  border: 1px solid var(--border); border-top: 0;
  background: #fff; overflow: hidden;
}
.marquee-notice { display: flex; align-items: center; flex: 1; min-width: 0; position: relative; overflow: hidden; }
.marquee-tag {
  flex: none; position: relative; z-index: 2; height: 100%;
  display: inline-flex; align-items: center; padding: 0 12px;
  background: var(--red); color: #fff; font-weight: 700; font-size: 12px;
  letter-spacing: 1px; font-family: var(--font-xp);
}
.mq-view { flex: 1; min-width: 0; height: 100%; overflow: hidden; position: relative; }
.mq-track { display: flex; width: max-content; animation: mq-scroll 42s linear infinite; will-change: transform; }
.marquee-bar:hover .mq-track { animation-play-state: paused; }
.mq-group { display: flex; align-items: center; white-space: nowrap; }
.mq-group a {
  padding: 0 16px; color: #444; font-size: 12px; font-family: var(--font-xp);
  -webkit-font-smoothing: none;
}
.mq-group a:hover { color: var(--red-deep); text-decoration: underline; }
.mq-dot { color: var(--red); font-size: 12px; }
@keyframes mq-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================= 页脚 ================= */
.footer {
  border-top: 1px solid var(--border-strong); background: #fff;
  padding: 20px 0 24px; text-align: left; color: var(--text-sub);
  font-size: 13px; line-height: 1.9; margin-top: 16px;
}
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; margin-bottom: 14px; }
.footer-links a, .footer-qq {
  padding: 0 12px; border-right: 1px solid var(--border);
  color: #444; font-size: 13px;
}
.footer-links a:hover { color: var(--blue-deep); text-decoration: underline; }
.footer-qq { border-right: 0; color: var(--red-deep); }
.footer-main {
  display: grid; grid-template-columns: 1.2fr 1fr 1.05fr; gap: 26px;
  padding: 14px 0 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.footer-col { min-width: 0; }
.footer-col h3 {
  margin-bottom: 8px; padding-left: 9px; border-left: 3px solid var(--red-deep);
  font-family: var(--font-title); font-size: 15px; color: var(--blue-deep); line-height: 1.5;
}
.footer-col p { margin-bottom: 4px; font-size: 12px; color: var(--text-sub); line-height: 1.9; }
.footer-col p a { color: var(--blue-link); }
.footer-col p a:hover { text-decoration: underline; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.footer-tag {
  padding: 1px 7px; border: 1px solid var(--border); background: #f7fafc;
  color: var(--text-sub); font-size: 11px; white-space: nowrap;
}
.footer-service-list, .footer-notes { list-style: none; margin: 0; padding: 0; }
.footer-service-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 2px 0; border-bottom: 1px dashed #eef2f6; font-size: 12px;
}
.footer-service-list li:last-child { border-bottom: 0; }
.footer-service-list a { color: #444; font-weight: 700; white-space: nowrap; }
.footer-service-list a:hover { color: var(--blue-deep); text-decoration: underline; }
.footer-service-list span { color: var(--text-muted); font-size: 11px; text-align: right; }
.footer-notes li {
  position: relative; padding-left: 11px; margin-bottom: 3px;
  font-size: 12px; color: var(--text-sub); line-height: 1.8;
}
.footer-notes li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 4px; height: 4px; background: var(--gold);
}
.footer-disclaimer { padding: 12px 0 10px; border-bottom: 1px solid var(--border); }
.footer-disclaimer-title {
  margin-bottom: 6px; padding-left: 8px; border-left: 3px solid var(--red-deep);
  font-family: var(--font-title); font-size: 13px; color: var(--red-deep);
}
.footer-legal-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px;
  margin: 0; padding: 0; list-style: none; counter-reset: footer-legal;
}
.footer-legal-list li {
  position: relative; padding-left: 18px;
  font-size: 11px; line-height: 1.85; color: var(--text-muted);
}
.footer-legal-list li::before {
  counter-increment: footer-legal; content: counter(footer-legal) '.';
  position: absolute; left: 0; top: 0;
  color: var(--red-deep); font-family: var(--font-num);
}
.footer-health {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border);
  font-size: 11px; line-height: 1.8; color: var(--text-sub);
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 6px 16px; padding-top: 10px; font-size: 11px; color: var(--text-muted);
}
.footer-copy { font-family: var(--font-num); }
.footer-nonofficial { color: var(--text-muted); }

/* ================= 通用面板 ================= */
.gov-panel { border: 1px solid var(--border-deep); background: #fff; }
.panel-head {
  min-height: 42px; padding: 0 14px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  border-top: 3px solid var(--blue-deep); border-bottom: 1px solid var(--border-deep);
  background: #fff;
}
.panel-head h2 {
  font-family: var(--font-title); font-size: 18px; font-weight: 400;
  color: var(--blue-deep); letter-spacing: 0;
}
.panel-head-red { border-top-color: var(--red-deep); }
.panel-head-red h2 { color: var(--red-deep); }
.panel-head-gray { border-top-color: #777; }
.panel-head-gray h2 { color: #333; }
.panel-more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-sub);
}
.panel-more .icon { width: 13px; height: 13px; }
.panel-more:hover { color: var(--red-deep); }
.panel-note { font-size: 12px; color: var(--text-muted); }
.panel-body { padding: 12px; }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 18px; border: 1px solid #4a7fae;
  background: var(--btn-blue); color: #fff; font-size: 14px; font-weight: 700;
  letter-spacing: 1px; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--btn-blue-hover); color: #fff; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { border-color: #00559e; background: var(--btn-blue); }
.btn-red { background: var(--btn-red); border-color: #a00b0b; }
.btn-red:hover { background: var(--btn-red-hover); }
.btn-gray { background: var(--btn-gray); border-color: #999; color: #333; }
.btn-gray:hover { background: var(--btn-gray-hover); color: #333; }
.btn-small { height: 32px; padding: 0 12px; font-size: 13px; letter-spacing: 0; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 10px; border: 1px solid #b9cfe2;
  background: #fff; color: var(--blue-deep); font-size: 12px; cursor: pointer;
}
.copy-btn:hover { border-color: var(--blue); background: var(--bg-blue); }
.copy-btn .icon { width: 14px; height: 14px; }
.copy-btn-small { height: 26px; padding: 0 8px; }
.copy-btn.copied { border-color: var(--green); color: var(--green); background: #f2fbf5; }

/* ================= 徽章 ================= */
.badge {
  display: inline-block; padding: 1px 8px; border: 1px solid #ddd;
  background: #fafafa; color: #666; font-size: 12px; line-height: 19px;
  white-space: nowrap; vertical-align: 1px;
}
.badge-danger { border-color: #f0b8b8; background: #fff5f5; color: var(--red-deep); }
.badge-muted { border-color: #ddd; background: #f7f7f7; color: #888; }
.badge-success { border-color: #bfe3cc; background: #f2fbf5; color: var(--green); }
.badge-pinned { border-color: #efd28b; background: #fffaf0; color: #a26b00; }
.badge-large { padding: 4px 14px; font-size: 13px; }
.badge-cat.cat-notice { border-color: #b9d8f0; background: #f3faff; color: var(--blue-deep); }
.badge-cat.cat-event { border-color: #f0b8b8; background: #fff5f5; color: var(--red-deep); }
.badge-cat.cat-maintenance { border-color: #f0d4a8; background: #fff9ef; color: #9a6400; }
.badge-cat.cat-rule { border-color: #bfe3cc; background: #f2fbf5; color: var(--green); }
.badge-status.status-pending { border-color: #f0d4a8; background: #fff9ef; color: #9a6400; }
.badge-status.status-processing { border-color: #b9d8f0; background: #f3faff; color: var(--blue-deep); }
.badge-status.status-replied { border-color: #bfe3cc; background: #f2fbf5; color: var(--green); }
.badge-status.status-closed { border-color: #ddd; background: #f5f5f5; color: #888; }
.cat-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); vertical-align: 2px; }
.cat-dot.cat-event { background: var(--red); }
.cat-dot.cat-maintenance { background: #d18a00; }
.cat-dot.cat-rule { background: var(--green); }

/* ================= Flash / 提示 ================= */
.flash {
  padding: 10px 14px; margin-bottom: 14px; border: 1px solid;
  font-size: 13px; line-height: 1.7;
}
.flash-success { border-color: #bfe3cc; background: #f2fbf5; color: #1f6b42; }
.flash-error { border-color: #f0b8b8; background: #fff5f5; color: #a11; }
.flash-info { border-color: #b9d8f0; background: #f3faff; color: var(--blue-deep); }
.form-errors {
  border: 1px solid #f0b8b8; border-left: 4px solid var(--red);
  background: #fff8f8; color: #9b1c1c; padding: 12px 16px; margin-bottom: 16px;
  font-size: 13px;
}
.form-errors strong { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.form-errors ul { padding-left: 20px; list-style: disc; }

/* ================= 表单 ================= */
.form-panel { padding: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 700; color: #444; }
.field > span b { color: var(--red); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #b5b5b5; background: #fff;
  padding: 0 10px; height: 38px; color: #333; font-size: 14px;
}
.field textarea { height: auto; min-height: 110px; padding: 9px 10px; line-height: 1.7; resize: vertical; }
.field select { padding: 0 8px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 2px rgba(24, 121, 210, 0.12);
}
.field small { font-size: 12px; color: var(--text-muted); }
.field-full { grid-column: 1 / -1; }
.field .field-hint { color: var(--text-muted); }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.checkbox { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #444; cursor: pointer; }
.checkbox input { width: 15px; height: 15px; accent-color: var(--blue); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.form-hint { font-size: 12px; color: var(--text-muted); }
.form-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.form-row .field { min-width: 180px; }
.form-subtitle { font-size: 16px; color: var(--blue-deep); margin: 22px 0 12px; padding-top: 16px; border-top: 1px dashed var(--border); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stack-form { display: flex; flex-direction: column; gap: 12px; }
.inline-search { display: flex; align-items: center; gap: 6px; }
.inline-search input {
  height: 32px; width: 230px; border: 1px solid #999; background: #fff;
  padding: 0 10px; font-size: 13px;
}
.inline-search .btn { height: 32px; }
.search-page-bar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  padding: 12px; border: 1px solid var(--border-deep); background: #fff;
}
.search-page-bar input[type="text"] {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px;
  border: 1px solid var(--border-deep); background: #fff; font-size: 14px; color: var(--text);
}
.search-page-bar input[type="text"]:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 121, 210, 0.12);
}
.search-page-bar .btn { height: 38px; padding: 0 22px; }
.search-summary {
  margin-bottom: 12px; padding: 9px 12px;
  border: 1px solid #f0d6d6; border-left: 4px solid var(--red-deep);
  background: #fff8f8; font-size: 12px; color: var(--text-sub); line-height: 1.8;
}
.search-summary b { color: var(--red-deep); }
.search-group { margin-bottom: 12px; }
.search-hit { padding: 11px 0; border-bottom: 1px dashed var(--border); }
.search-hit:first-child { padding-top: 2px; }
.search-hit:last-child { border-bottom: 0; padding-bottom: 2px; }
.search-hit h3 { font-family: var(--font-title); font-size: 16px; font-weight: 700; line-height: 1.6; }
.search-hit h3 a { color: var(--blue-deep); }
.search-hit h3 a:hover { text-decoration: underline; }
.search-hit p { margin-top: 3px; font-size: 12px; color: var(--text-sub); line-height: 1.8; }
.search-hit-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 4px; font-size: 11px; color: var(--text-muted);
}
.search-hit-meta .badge { font-size: 11px; }
.search-more { padding-top: 8px; border-top: 1px dashed var(--border); font-size: 12px; }
.search-more a { color: var(--blue-link); }
.search-more a:hover { text-decoration: underline; }
.admin-danger-zone { margin-top: 24px; padding-top: 14px; border-top: 1px dashed var(--border); }

/* ================= 表格 ================= */
.table-wrap { overflow-x: auto; }
.data-grid { width: 100%; border: 1px solid var(--border-deep); min-width: 620px; }
.data-grid th {
  background: #f7f9fb; border: 1px solid var(--border);
  padding: 8px 10px; text-align: left; font-size: 13px; color: #333;
  white-space: nowrap;
}
.data-grid td {
  border: 1px solid var(--border); padding: 8px 10px;
  font-size: 13px; color: #333; vertical-align: middle;
}
.data-grid tbody tr:nth-child(even) { background: var(--zebra); }
.data-grid tbody tr:hover { background: var(--row-hover); }
.data-grid .title-cell { min-width: 240px; }
.data-grid .reason-cell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-grid .empty-cell { text-align: center; color: var(--text-muted); padding: 28px 10px; }
.data-grid .action-cell { white-space: nowrap; }
.data-grid .action-cell .text-link { margin-right: 10px; }
.data-grid .action-cell .inline-form .text-link { margin-right: 0; }
.player-link { color: var(--blue-link); font-weight: 700; }
.player-link:hover { color: var(--red-deep); text-decoration: underline; }
.sub-text { color: var(--text-muted); font-size: 12px; }
.data-table { width: 100%; }
.data-table td { padding: 8px 12px; border-bottom: 1px dashed var(--border); font-size: 13px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { color: var(--text-sub); width: 42%; }
.data-table td:last-child { text-align: right; }
.data-table b { color: var(--blue-deep); font-size: 15px; font-family: var(--font-num); }
.table-note {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 12px 16px; border-top: 1px dashed var(--border);
  background: #fafafa; color: var(--text-sub); font-size: 12px; line-height: 1.8;
}
.table-note .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--blue); }
.table-note a { color: var(--blue-link); text-decoration: underline; }

/* ================= 分页 ================= */
.pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px; padding: 16px 10px 12px; border-top: 1px dashed var(--border);
  font-size: 13px;
}
.pager-link, .pager-current {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 30px; padding: 0 10px;
  border: 1px solid var(--border-deep); background: #fff; color: #444;
}
.pager-link:hover { border-color: var(--blue); color: var(--blue-deep); background: var(--bg-blue); }
.pager-current { background: var(--btn-blue); border-color: #00559e; color: #fff; }
.pager-gap { color: var(--text-muted); padding: 0 3px; }
.pager-info { color: var(--text-muted); margin-left: 8px; font-size: 12px; }

/* ================= 首页 Hero ================= */
.home-main { padding-top: 14px; }
.hero-slider {
  position: relative; border: 1px solid var(--border-deep); border-top: 4px solid var(--red-deep);
  background: #fff; overflow: hidden;
}
.hero-slides { position: relative; min-height: 268px; }
.hero-slide {
  display: none; position: relative; min-height: 268px;
  padding: 36px 330px 36px 38px;
  background: linear-gradient(115deg, #f4faff 0%, #ffffff 55%, #eaf4ff 100%);
}
.hero-slide.is-active { display: block; animation: hero-fade .45s ease; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 82% 18%, rgba(24, 121, 210, 0.1), transparent 34%);
}
.hero-slide.theme-red { background: linear-gradient(115deg, #fff8f8 0%, #ffffff 55%, #fdeaea 100%); }
.hero-slide.theme-red::after { background-image: radial-gradient(circle at 82% 18%, rgba(192, 1, 1, 0.1), transparent 34%); }
.hero-slide.theme-gold { background: linear-gradient(115deg, #fffdf6 0%, #ffffff 55%, #fdf4df 100%); }
.hero-slide.theme-gold::after { background-image: radial-gradient(circle at 82% 18%, rgba(230, 180, 34, 0.14), transparent 34%); }
@keyframes hero-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.hero-kicker {
  font-family: var(--font-serif); font-size: 14px; color: var(--red-deep);
  letter-spacing: 1px; margin-bottom: 8px;
}
.hero-kicker::before {
  content: ""; display: inline-block; width: 18px; height: 3px;
  background: var(--red-deep); vertical-align: 4px; margin-right: 8px;
}
.hero-title {
  font-family: var(--font-title); font-size: 38px; font-weight: 700;
  line-height: 1.35; color: var(--blue-deep); letter-spacing: 1px;
}
.theme-red .hero-title { color: var(--red-deep); }
.theme-gold .hero-title { color: #7a5310; }
.hero-sub { margin-top: 12px; font-size: 15px; color: var(--text-sub); line-height: 1.9; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 22px; height: 38px; padding: 0 22px;
  background: var(--btn-blue); color: #fff; font-size: 14px; font-weight: 700;
  border: 1px solid #00559e;
}
.hero-cta:hover { background: var(--btn-blue-hover); color: #fff; }
.theme-red .hero-cta { background: var(--btn-red); border-color: #a00b0b; }
.theme-red .hero-cta:hover { background: var(--btn-red-hover); }
.theme-gold .hero-cta { background: #a67a13; border-color: #7c5a08; }
.hero-petals {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden; pointer-events: none;
}
.petal {
  position: absolute; display: block;
  background: rgba(228, 57, 60, 0.42);
  border-radius: 70% 30% 60% 40%;
}
.petal-1 { width: 20px; height: 30px; left: 68%; top: 17%; transform: rotate(28deg); }
.petal-2 { width: 12px; height: 19px; left: 86%; top: 12%; transform: rotate(-22deg); background: rgba(24, 121, 210, 0.22); }
.petal-3 { width: 24px; height: 35px; left: 93%; top: 56%; transform: rotate(36deg); background: rgba(24, 121, 210, 0.2); }
.petal-4 { width: 11px; height: 17px; left: 75%; top: 74%; transform: rotate(-40deg); background: rgba(24, 121, 210, 0.22); }
.petal-5 { width: 15px; height: 23px; left: 81%; top: 38%; transform: rotate(12deg); background: rgba(240, 160, 170, 0.4); }
.petal-6 { width: 16px; height: 25px; left: 94%; top: 25%; transform: rotate(-15deg); background: rgba(228, 57, 60, 0.3); }
.petal-7 { width: 8px; height: 13px; left: 70%; top: 48%; transform: rotate(60deg); background: rgba(228, 57, 60, 0.26); }
.petal-8 { width: 9px; height: 14px; left: 88%; top: 84%; transform: rotate(80deg); background: rgba(240, 160, 170, 0.36); }
.hero-arrow {
  position: absolute; bottom: 16px; width: 30px; height: 30px;
  border: 1px solid #c6d4e2; background: rgba(255, 255, 255, 0.9);
  color: var(--blue-deep); display: flex; align-items: center; justify-content: center; z-index: 3;
}
.hero-prev { right: 54px; }
.hero-next { right: 16px; }
.hero-arrow:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.hero-dots { position: absolute; left: 38px; bottom: 22px; display: flex; gap: 8px; z-index: 3; }
.hero-dots button {
  width: 9px; height: 9px; padding: 0; border: 1px solid #9fb3c8; background: #fff;
}
.hero-dots button.active { background: var(--red-deep); border-color: var(--red-deep); width: 22px; }

/* ================= 首页三栏 ================= */
.home-layout { display: flex; align-items: flex-start; gap: 14px; margin-top: 14px; }
.home-col-main { flex: 1; min-width: 0; }
.home-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-cols > .gov-panel { display: flex; flex-direction: column; min-width: 0; }
.news-list { padding: 7px 13px; flex: 1; }
.news-list li {
  display: flex; align-items: baseline; gap: 7px;
  padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px;
}
.news-list li:last-child { border-bottom: 0; }
.news-list a {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-list a:hover { color: var(--blue-deep); text-decoration: underline; }
.news-list time { flex: none; font-family: var(--font-num); color: var(--text-muted); font-size: 12px; }
.news-list .empty-line { color: var(--text-muted); justify-content: center; }
.mini-table-wrap { padding: 4px 10px 10px; flex: 1; overflow-x: auto; }
.mini-table { width: 100%; }
.mini-table th {
  background: #f7f9fb; border-bottom: 1px solid var(--border);
  padding: 6px 6px; font-size: 12px; color: var(--text-sub); text-align: left;
}
.mini-table td { padding: 7px 6px; border-bottom: 1px dashed var(--border); font-size: 12px; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table .reason-cell { max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-table .empty-cell { text-align: center; color: var(--text-muted); padding: 20px 0; }
.status-mini { padding: 4px 12px 0; flex: 1; }
.status-mini-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px;
  padding: 9px 0; border-bottom: 1px dashed var(--border); position: relative;
}
.status-main { display: flex; align-items: center; gap: 6px; min-width: 0; }
.status-label { font-size: 13px; font-weight: 700; color: #333; }
.status-main code { font-size: 12px; color: var(--text-muted); background: none; border: 0; padding: 0; }
.status-data { font-size: 12px; color: var(--text-sub); display: flex; gap: 6px; align-items: center; }
.status-latency { color: var(--text-muted); font-family: var(--font-num); }
.status-mini-row .copy-btn { grid-column: 1 / -1; justify-self: start; height: 24px; }
.status-foot {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 12px; border-top: 1px dashed var(--border);
  font-size: 11px; color: var(--text-muted);
}
.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #aaa; flex: none;
}
.status-dot.is-online { background: #2e9e5b; box-shadow: 0 0 0 3px rgba(46, 158, 91, 0.14); }
.status-dot.is-offline { background: #d93025; box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.12); }
.status-dot.is-checking { background: var(--gold); animation: dot-pulse 1.2s ease-in-out infinite; }
@keyframes dot-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.status-mini-row.is-offline .status-data { color: var(--red-deep); }
.status-mini-row.is-online .status-data { color: var(--text-sub); }

/* ================= 频道 / 加入 ================= */
.channels-panel { margin-top: 12px; }
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.channel {
  display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto;
  column-gap: 10px; align-items: center; padding: 12px 14px;
  border: 1px solid #cfe0ef; background: #fff; text-align: left; color: var(--text);
}
.channel .icon { grid-row: 1 / 3; width: 26px; height: 26px; color: var(--blue); }
.channel strong { font-size: 15px; color: var(--blue-deep); align-self: end; }
.channel span { font-size: 12px; color: var(--text-muted); align-self: start; }
.channel:hover { background: var(--bg-blue); border-color: var(--blue); color: var(--text); }
.channel:hover strong { color: var(--red-deep); }
.channel-button { width: 100%; font-family: var(--font); }
.join-panel { margin-top: 12px; }
.join-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; padding: 16px 18px 18px; }
.join-steps { display: flex; flex-direction: column; gap: 12px; }
.join-steps li { display: flex; gap: 12px; align-items: flex-start; }
.step-no {
  flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-deep); color: #fff; font-family: var(--font-num); font-size: 12px;
}
.join-steps strong { font-size: 14px; color: var(--blue-deep); }
.join-steps p { font-size: 13px; color: var(--text-sub); line-height: 1.7; margin-top: 2px; }
.join-address { display: flex; flex-direction: column; gap: 10px; }
.address-card { border: 1px solid var(--border); background: #fbfdff; padding: 10px 12px; }
.address-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.address-head strong { color: var(--blue-deep); font-size: 14px; }
.address-head span { color: var(--text-muted); font-size: 12px; }
.address-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.address-line code { font-size: 16px; font-weight: 700; color: var(--red-deep); background: none; border: 0; padding: 0; }
.address-note { font-size: 12px; color: var(--text-muted); }

/* ================= 首页侧栏 ================= */
.home-aside { width: 300px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.aside-links { padding: 3px 0; }
.aside-links a {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 10px 14px; border-bottom: 1px dashed var(--border);
}
.aside-links a:last-child { border-bottom: 0; }
.aside-links .icon { width: 19px; height: 19px; color: var(--blue); margin-top: 2px; }
.aside-links span { display: flex; flex-direction: column; line-height: 1.5; }
.aside-links strong { font-size: 14px; color: #333; font-weight: 700; }
.aside-links small { font-size: 12px; color: var(--text-muted); }
.aside-links a:hover { background: var(--bg-blue); }
.aside-links a:hover strong { color: var(--blue-deep); }
.aside-links-compact a { padding: 9px 12px; }
.service-note-body { padding: 13px 15px; font-size: 13px; line-height: 1.9; color: #444; }
.service-note-body p { margin-bottom: 4px; }
.service-note-body p:last-child { margin-bottom: 0; }
.service-note-body a:not(.btn) { color: var(--blue-link); text-decoration: underline; }
.note-warn {
  margin-top: 8px !important; padding: 7px 9px; border-left: 3px solid var(--red);
  background: #fff8f8; color: #a11; font-size: 12px; line-height: 1.7;
}

/* ================= 内页头 ================= */
.inner-hero {
  border: 1px solid var(--border-deep); border-top: 4px solid var(--red-deep);
  background: #fff; padding: 14px 22px 18px; margin: 14px 0 12px;
  position: relative; overflow: hidden;
}
.inner-hero::after {
  content: ""; position: absolute; right: 24px; top: 20px; width: 90px; height: 90px;
  border: 1px solid rgba(192, 1, 1, 0.08); border-radius: 50%; pointer-events: none;
}
.breadcrumb { font-size: 12px; color: var(--text-muted); line-height: 1.8; }
.breadcrumb a { color: var(--blue-link); }
.breadcrumb a:hover { color: var(--red-deep); text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: #bbb; }
.inner-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 8px; }
.inner-hero h1 { font-family: var(--font-title); font-size: 28px; color: var(--blue-deep); font-weight: 700; letter-spacing: 1px; }
.inner-hero p { margin-top: 4px; font-size: 14px; color: var(--text-sub); max-width: 720px; }
.inner-hero-stat { text-align: right; flex: none; padding-bottom: 2px; }
.inner-hero-stat b { display: block; font-family: var(--font-num); font-size: 30px; line-height: 1.1; color: var(--red-deep); }
.inner-hero-stat span { font-size: 12px; color: var(--text-muted); }
.inner-hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.update-text { font-size: 12px; color: var(--text-muted); }
.inner-hero-compact { padding-bottom: 12px; }
.inner-hero-compact h1 { font-size: 24px; }

/* ================= 内容布局 ================= */
.content-layout { display: flex; align-items: flex-start; gap: 14px; }
.content-main { flex: 1; min-width: 0; }
.content-main > .gov-panel + .gov-panel { margin-top: 12px; }
.content-aside { width: 300px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.list-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid #eee; flex-wrap: wrap;
}
.list-toolbar-wrap { align-items: flex-start; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tabs a {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 13px; border: 1px solid var(--border-deep);
  background: #fff; color: #444; font-size: 13px;
}
.filter-tabs a:hover { border-color: var(--blue); color: var(--blue-deep); background: var(--bg-blue); }
.filter-tabs a.active { background: var(--btn-blue); border-color: #00559e; color: #fff; }
.filter-tabs em { font-style: normal; font-family: var(--font-num); font-size: 11px; opacity: .8; }
.search-hint { padding: 8px 16px; background: var(--bg-blue); border-bottom: 1px solid #e5eef7; font-size: 12px; color: var(--blue-deep); }

/* ================= 公告列表 ================= */
.notice-list { padding: 0 18px; }
.notice-item { padding: 16px 0; border-bottom: 1px dashed var(--border); }
.notice-item:last-child { border-bottom: 0; }
.notice-item-top { display: flex; align-items: center; gap: 7px; }
.notice-item-top time { margin-left: auto; color: var(--text-muted); font-size: 12px; font-family: var(--font-num); }
.notice-title { font-size: 19px; font-weight: 700; line-height: 1.5; margin: 6px 0 4px; }
.notice-title a { color: var(--blue-deep); }
.notice-title a:hover { color: var(--red-deep); text-decoration: underline; }
.notice-summary { color: var(--text-sub); font-size: 13px; line-height: 1.8; }
.notice-read { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--blue-link); font-size: 12px; }
.notice-read:hover { color: var(--red-deep); }
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 46px 20px; color: var(--text-muted); text-align: center;
}
.empty-state .icon { width: 34px; height: 34px; color: #c4d4e4; }
.empty-state strong { color: var(--text-sub); font-size: 15px; }
.empty-state span { font-size: 13px; }
.empty-state .btn { margin-top: 12px; }
.empty-page { min-height: 360px; display: flex; align-items: center; justify-content: center; margin-top: 14px; }
.aside-news { padding: 6px 13px; }
.aside-news li { display: flex; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.aside-news li:last-child { border-bottom: 0; }
.aside-news a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aside-news time { color: var(--text-muted); font-size: 11px; font-family: var(--font-num); }
.aside-cat-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 15px; }
.aside-cat-list a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #444; }
.aside-cat-list a:hover { color: var(--red-deep); }

/* ================= 公告正文 ================= */
.article-panel { padding: 0 0 18px; }
.article { max-width: 900px; margin: 0 auto; padding: 28px 40px 10px; }
.article-kicker { display: flex; gap: 7px; align-items: center; }
.article-title {
  font-family: var(--font-title); font-size: 30px; font-weight: 400;
  color: #222; line-height: 1.5; text-align: center; margin: 12px 0 10px;
}
.article-meta { display: flex; justify-content: center; gap: 20px; color: #888; font-size: 13px; flex-wrap: wrap; }
.article-rule { height: 4px; margin: 18px 0 24px; border-top: 1px solid var(--red-deep); border-bottom: 1px solid var(--red-deep); }
.article-content { font-family: var(--font-serif); font-size: 16px; line-height: 2.15; color: #333; word-break: break-word; }
.article-content a { color: var(--blue-link); text-decoration: underline; }
.article-sign { margin-top: 34px; text-align: right; font-family: var(--font-serif); font-size: 15px; line-height: 2; color: #333; }
.article-actions { display: flex; justify-content: center; gap: 10px; padding: 18px; border-top: 1px solid #eee; }

/* ================= 处罚详情 ================= */
.document-panel { padding: 28px 40px 18px; }
.document-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.document-kicker { font-family: var(--font-serif); font-size: 13px; color: var(--red-deep); }
.document-title { font-family: var(--font-serif); font-size: 32px; font-weight: 700; color: #222; letter-spacing: 4px; margin-top: 2px; }
.document-rule { height: 3px; margin: 18px 0 22px; border-top: 1px solid #333; border-bottom: 1px solid #333; }
.document-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.document-grid > div { display: flex; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-height: 42px; }
.document-grid dt { width: 110px; flex: none; background: #f7f9fb; padding: 9px 12px; font-size: 13px; color: var(--text-sub); border-right: 1px solid var(--border); }
.document-grid dd { flex: 1; padding: 9px 12px; font-size: 13px; }
.document-grid .span-2 { grid-column: 1 / -1; }
.document-body { margin-top: 22px; font-family: var(--font-serif); font-size: 15px; line-height: 2.1; color: #333; }
.document-body p { margin-bottom: 10px; text-indent: 2em; }
.document-foot { display: flex; align-items: flex-end; justify-content: flex-end; gap: 24px; margin-top: 26px; }
.document-seal {
  width: 96px; height: 96px; border: 3px solid rgba(212, 2, 21, 0.65); border-radius: 50%;
  color: rgba(212, 2, 21, 0.75); display: flex; align-items: center; justify-content: center;
  text-align: center; font-family: var(--font-serif); font-size: 16px; line-height: 1.3;
  transform: rotate(-12deg); letter-spacing: 1px;
}
.document-sign { text-align: right; font-family: var(--font-serif); font-size: 14px; line-height: 2; color: #444; }
.aside-punish { padding: 6px 13px; }
.aside-punish li { display: flex; align-items: center; gap: 7px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 12px; }
.aside-punish li:last-child { border-bottom: 0; }
.aside-punish a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.aside-punish time { color: var(--text-muted); font-family: var(--font-num); }

/* ================= 服务器状态页 ================= */
.status-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.server-card { border: 1px solid var(--border-deep); border-top: 3px solid var(--blue-deep); background: #fff; padding: 16px 18px 14px; min-width: 0; }
.server-card.is-online { border-top-color: var(--green); }
.server-card.is-offline { border-top-color: #d93025; }
.server-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.server-title-wrap { display: flex; align-items: flex-start; gap: 10px; }
.server-title-wrap .status-dot { margin-top: 8px; }
.server-card h2 { font-family: var(--font-title); font-size: 22px; color: var(--blue-deep); }
.server-desc { font-size: 12px; color: var(--text-muted); }
.server-host-line {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 10px 12px; background: #f7fbff; border: 1px solid #e1edf8;
}
.server-host-line code { font-size: 20px; font-weight: 700; color: var(--red-deep); background: none; border: 0; padding: 0; }
.server-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 14px; background: var(--border); border: 1px solid var(--border); }
.metric { background: #fff; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.metric span { font-size: 12px; color: var(--text-muted); }
.metric strong { font-family: var(--font-num); font-size: 18px; color: var(--blue-deep); line-height: 1.3; overflow-wrap: anywhere; }
.player-bar { height: 6px; background: #eef1f4; margin-top: 14px; overflow: hidden; }
.player-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3aa76d, #7bc79a); transition: width .4s ease; }
.server-card.is-offline .player-bar span { background: #ddd; }
.server-motd {
  margin-top: 12px; padding: 9px 11px; background: #fafafa; border-left: 3px solid var(--border-deep);
  font-size: 12px; line-height: 1.8; color: var(--text-sub); white-space: pre-line; min-height: 42px;
}
.server-error { margin-top: 8px; font-size: 12px; color: var(--red-deep); min-height: 18px; }
.server-checked { margin-top: 8px; font-size: 11px; color: var(--text-muted); text-align: right; }
.status-lower { margin-top: 14px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border-bottom: 1px solid var(--border); }
.guide-step { display: flex; gap: 10px; background: #fff; padding: 16px; }
.guide-step strong { color: var(--blue-deep); font-size: 14px; }
.guide-step p { margin-top: 4px; font-size: 12px; line-height: 1.8; color: var(--text-sub); }
.faq-list { padding: 6px 18px 14px; }
.faq-list details { border-bottom: 1px dashed var(--border); padding: 10px 0; }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  cursor: pointer; list-style: none; font-size: 14px; color: var(--blue-deep);
  padding-left: 18px; position: relative; font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "+"; position: absolute; left: 0; top: 0; color: var(--red); font-family: var(--font-num); }
.faq-list details[open] summary::before { content: "−"; }
.faq-list details p { padding: 8px 0 2px 18px; font-size: 13px; color: var(--text-sub); line-height: 1.9; }
.aside-address-list { padding: 10px 14px; }
.aside-address { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.aside-address:last-child { border-bottom: 0; }
.aside-address div { display: flex; flex-direction: column; gap: 1px; }
.aside-address strong { font-size: 13px; }
.aside-address code { font-size: 12px; color: var(--red-deep); background: none; border: 0; padding: 0; }
.aside-service-note { border-top: 1px dashed var(--border); }

/* ================= 工单 ================= */
.process-steps { display: flex; align-items: center; gap: 10px; padding: 16px; }
.process-step { flex: 1; border: 1px solid var(--border); background: #fbfdff; padding: 12px; min-width: 0; }
.process-step span { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; background: var(--blue-deep); color: #fff; font-family: var(--font-num); font-size: 11px; margin-bottom: 6px; }
.process-step strong { display: block; color: var(--blue-deep); font-size: 14px; }
.process-step p { margin-top: 3px; font-size: 12px; color: var(--text-sub); line-height: 1.7; }
.process-arrow { color: #bdd5ea; flex: none; }
.ticket-lookup-body { padding: 14px 15px; }
.ticket-lookup-body > p { font-size: 13px; color: var(--text-sub); line-height: 1.8; margin-bottom: 12px; }
.ticket-panel { padding: 18px; }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.ticket-no { font-size: 12px; color: var(--text-muted); }
.ticket-no code { color: var(--red-deep); background: #fff8f8; border: 1px solid #f0d6d6; padding: 1px 6px; }
.ticket-subject { font-family: var(--font-title); font-size: 23px; color: var(--blue-deep); margin-top: 4px; line-height: 1.45; }
.ticket-meta-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-left: 1px solid var(--border); border-top: 1px solid var(--border); margin-top: 14px;
}
.ticket-meta-grid > div { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 8px 10px; }
.ticket-meta-grid span { display: block; font-size: 11px; color: var(--text-muted); }
.ticket-meta-grid strong { display: block; font-size: 13px; color: #333; margin-top: 2px; word-break: break-all; }
.ticket-thread { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.thread-item { border: 1px solid var(--border); border-left: 4px solid #ccc; background: #fafafa; padding: 12px 14px; }
.thread-item.thread-admin { border-left-color: var(--blue); background: #f7fbff; border-color: #d6e7f7; }
.thread-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px dashed var(--border); padding-bottom: 6px; margin-bottom: 8px; font-size: 12px; }
.thread-role { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--blue-deep); }
.thread-admin .thread-role { color: var(--red-deep); }
.thread-author { color: var(--text-sub); }
.thread-head time { margin-left: auto; color: var(--text-muted); font-family: var(--font-num); }
.thread-body { font-size: 14px; line-height: 1.9; color: #333; word-break: break-word; }
.ticket-closed { margin-top: 16px; padding: 12px 14px; background: #f7f7f7; border: 1px solid var(--border); color: var(--text-sub); font-size: 13px; display: flex; gap: 6px; align-items: center; }
.ticket-closed a { color: var(--blue-link); text-decoration: underline; }
.ticket-reply-form { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.ticket-reply-form h2 { font-size: 17px; color: var(--blue-deep); margin-bottom: 4px; }
.ticket-reply-form > p { font-size: 12px; color: var(--text-sub); margin-bottom: 10px; line-height: 1.8; }
.ticket-reply-form textarea { width: 100%; min-height: 120px; border: 1px solid #b5b5b5; padding: 9px 10px; line-height: 1.7; resize: vertical; }
.ticket-reply-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(24, 121, 210, .12); }
.ticket-side-body { padding: 13px 15px; font-size: 13px; line-height: 1.9; }
.ticket-side-body p { margin-bottom: 6px; }
.ticket-no-box { display: flex; flex-direction: column; gap: 5px; padding: 9px 10px; background: #fff8f8; border: 1px solid #f0d6d6; margin-bottom: 10px; }
.ticket-no-box span { font-size: 11px; color: var(--text-muted); }
.ticket-no-box code { color: var(--red-deep); font-size: 13px; word-break: break-all; }
.ticket-no-box .copy-btn { align-self: flex-start; }
.lookup-box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 24px; text-align: center; }
.lookup-box > .icon { width: 40px; height: 40px; color: #b9cfe2; }
.lookup-box h2 { font-size: 20px; color: var(--blue-deep); }
.lookup-box p { font-size: 13px; color: var(--text-sub); max-width: 540px; line-height: 1.8; }
.lookup-form { display: flex; gap: 8px; width: 100%; max-width: 460px; margin: 8px 0; }
.lookup-form input { flex: 1; height: 38px; border: 1px solid #999; padding: 0 10px; }
.admin-ticket-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-ticket-panel .ticket-reply-form { padding-top: 18px; }
.admin-reply-form .form-row { align-items: flex-end; }
.admin-reply-form .form-row .field { min-width: 200px; }
.admin-reply-form .form-row .form-actions { padding-bottom: 1px; }

/* ================= 玩家守则 ================= */
.rules-body { padding: 16px 20px 20px; font-size: 14px; line-height: 1.9; color: #333; }
.rules-body h3 { font-size: 16px; color: var(--blue-deep); margin: 18px 0 8px; padding-left: 9px; border-left: 3px solid var(--red); }
.rules-body h3:first-child { margin-top: 0; }
.rule-list, .rule-steps { padding-left: 24px; list-style: decimal; }
.rule-list li, .rule-steps li { margin-bottom: 6px; padding-left: 3px; }
.rule-note { margin-top: 10px; padding: 9px 12px; background: #fafafa; border-left: 3px solid var(--border-deep); font-size: 12px; color: var(--text-sub); }
.rule-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.server-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.server-info-card { border: 1px solid var(--border); background: #fbfdff; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.server-info-label { font-size: 12px; color: var(--text-muted); }
.server-info-card code { font-size: 18px; font-weight: 700; color: var(--red-deep); background: none; border: 0; padding: 0; }
.server-info-card strong { font-size: 16px; color: var(--blue-deep); }
.server-info-desc { font-size: 12px; color: var(--text-sub); }
.server-info-card .copy-btn { margin-top: 4px; }
.rule-table td { font-size: 13px; }
.rule-table .danger-text { font-weight: 700; }

/* ================= 后台 ================= */
.admin-body { background: #f2f5f8; }
.admin-topbar {
  background: linear-gradient(180deg, #0b4a7d, #06345a); color: #fff;
  border-bottom: 2px solid var(--gold);
}
.admin-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.admin-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.admin-brand:hover { color: #fff; }
.admin-brand img { height: 36px; width: auto; background: #fff; padding: 2px 4px; }
.admin-topbar-right { display: flex; align-items: center; gap: 14px; font-size: 12px; }
.admin-topbar-right > a { color: #d8e8f5; }
.admin-topbar-right > a:hover { color: #fff; text-decoration: underline; }
.admin-user { display: inline-flex; align-items: center; gap: 4px; color: #ffd24a; }
.admin-user .icon { width: 15px; height: 15px; }
.admin-logout {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid rgba(255, 255, 255, .3); background: transparent;
  color: #fff; height: 28px; padding: 0 9px; font-size: 12px;
}
.admin-logout:hover { background: rgba(255, 255, 255, .1); }
.admin-logout .icon { width: 14px; height: 14px; }
.admin-shell { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0 28px; }
.admin-side {
  width: 210px; flex: none; background: #fff; border: 1px solid var(--border-deep);
}
.admin-side nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 15px; border-bottom: 1px solid #eee;
  font-size: 14px; color: #333; border-left: 3px solid transparent;
}
.admin-side nav a .icon { width: 18px; height: 18px; color: var(--blue); }
.admin-side nav a:hover { background: var(--bg-blue); color: var(--blue-deep); }
.admin-side nav a.active { background: #eef7ff; border-left-color: var(--red); color: var(--blue-deep); font-weight: 700; }
.admin-side nav a.active .icon { color: var(--red); }
.admin-side-note { padding: 14px 15px; font-size: 12px; color: var(--text-muted); line-height: 1.8; border-top: 1px dashed var(--border); }
.admin-side-note strong { display: block; color: var(--text-sub); margin-bottom: 3px; }
.admin-content { flex: 1; min-width: 0; }
.admin-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.admin-page-head h1 { font-family: var(--font-title); font-size: 24px; color: var(--blue-deep); font-weight: 700; }
.admin-page-meta { font-size: 12px; color: var(--text-muted); }
.admin-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.admin-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 15px 16px; background: #fff; border: 1px solid var(--border-deep);
  border-top: 3px solid var(--blue-deep);
}
.admin-card:hover { border-color: var(--blue); color: inherit; box-shadow: 0 3px 10px rgba(1, 82, 147, .08); }
.admin-card-alert { border-top-color: var(--red-deep); }
.admin-card-icon { color: var(--blue); }
.admin-card-icon .icon { width: 24px; height: 24px; }
.admin-card-alert .admin-card-icon { color: var(--red-deep); }
.admin-card-label { font-size: 12px; color: var(--text-muted); }
.admin-card strong { font-family: var(--font-num); font-size: 30px; line-height: 1.2; color: var(--blue-deep); }
.admin-card-alert strong { color: var(--red-deep); }
.admin-card-link { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--blue-link); margin-top: 2px; }
.admin-card-link .icon { width: 12px; height: 12px; }
.admin-dashboard-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; margin-bottom: 12px; }
.admin-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.admin-quick a {
  display: flex; align-items: center; gap: 7px; padding: 10px 11px;
  border: 1px solid #d8e6f2; background: #fbfdff; color: var(--blue-deep); font-size: 13px;
}
.admin-quick a:hover { background: var(--bg-blue); border-color: var(--blue); }
.admin-quick .icon { width: 16px; height: 16px; }
.admin-subhead { margin-top: 2px; }
.admin-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.admin-toolbar-info { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.admin-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.admin-footer { text-align: center; color: var(--text-muted); font-size: 12px; padding: 16px 0 24px; border-top: 1px solid #dde5ed; background: #f2f5f8; }
.theme-chip { display: inline-block; padding: 1px 8px; font-size: 12px; border: 1px solid; }
.theme-chip-blue { border-color: #b9d8f0; background: #f3faff; color: var(--blue-deep); }
.theme-chip-red { border-color: #f0b8b8; background: #fff5f5; color: var(--red-deep); }
.theme-chip-gold { border-color: #efd28b; background: #fffaf0; color: #9a6400; }

/* ================= 登录 ================= */
.login-body {
  background: linear-gradient(135deg, #eef5fc 0%, #ffffff 52%, #fdf3f3 100%);
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-wrap { width: 100%; max-width: 430px; }
.login-card { background: #fff; border: 1px solid var(--border-deep); border-top: 4px solid var(--red-deep); padding: 28px 30px 20px; box-shadow: 0 16px 40px rgba(1, 52, 90, .12); }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand img { height: 58px; width: auto; }
.login-brand h1 { font-family: var(--font-title); font-size: 22px; color: var(--blue-deep); }
.login-brand p { font-size: 12px; color: var(--text-muted); }
.login-rule { height: 3px; border-top: 1px solid var(--red-deep); border-bottom: 1px solid var(--red-deep); margin: 18px 0; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--text-muted); }
.login-foot a { color: var(--blue-link); }

/* ================= Toast ================= */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 16px);
  background: #1f2d3d; color: #fff; padding: 9px 18px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 10000;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= 客户端专属入口 ================= */
.client-gate {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 12px; padding: 16px 20px;
  background: linear-gradient(100deg, #fff4f4 0%, #ffffff 60%, #f3faff 100%);
  border: 1px solid #e7c4c4; border-left: 5px solid var(--red-deep);
}
.client-gate-copy { flex: 1; min-width: 260px; }
.client-gate-tag {
  display: inline-block; padding: 1px 8px; margin-bottom: 5px;
  border: 1px solid #f0b8b8; background: #fff0f0; color: var(--red-deep);
  font-size: 11px; letter-spacing: 1px;
}
.client-gate h2 { font-family: var(--font-title); font-size: 22px; color: var(--red-deep); line-height: 1.4; }
.client-gate p { margin-top: 4px; font-size: 13px; color: var(--text-sub); line-height: 1.8; }
.client-gate-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.client-gate-online { font-size: 12px; color: var(--text-sub); margin-right: 4px; }
.client-gate-online b { font-family: var(--font-num); font-size: 20px; color: var(--red-deep); }
.join-client-note { padding: 14px 16px; background: #fff7f7; border: 1px solid #f0d6d6; }
.join-client-note h3 { font-size: 16px; color: var(--red-deep); margin: 4px 0 4px; }
.join-client-note p { font-size: 12px; color: var(--text-sub); line-height: 1.8; }
.join-client-note .btn { margin-top: 10px; margin-right: 6px; }
.status-notice {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 12px; padding: 13px 16px;
  background: #fff8f8; border: 1px solid #f0d6d6; border-left: 4px solid var(--red-deep);
}
.status-notice > .icon { width: 26px; height: 26px; color: var(--red-deep); flex: none; }
.status-notice div { flex: 1; min-width: 220px; }
.status-notice strong { display: block; font-size: 15px; color: var(--red-deep); }
.status-notice p { margin-top: 2px; font-size: 12px; color: var(--text-sub); line-height: 1.7; }
.server-privacy { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 11px; color: var(--text-muted); text-align: center; }

/* ================= 用户登录 / 注册 ================= */
.auth-layout { display: flex; align-items: flex-start; gap: 14px; }
.auth-main { flex: 1; min-width: 0; }
.auth-main > .gov-panel + .gov-panel { margin-top: 12px; }
.form-grid-inline { gap: 12px; margin-top: 0; }
.account-agree { margin: 2px 0 4px; align-items: flex-start; line-height: 1.7; }
.account-agree input { margin-top: 3px; }
.account-agree a { color: var(--blue-link); text-decoration: underline; }
.account-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); }
.account-benefits > div { background: #fff; padding: 14px 16px; }
.account-benefits .icon { width: 22px; height: 22px; color: var(--blue); margin-bottom: 4px; }
.account-benefits strong { display: block; color: var(--blue-deep); font-size: 14px; }
.account-benefits p { margin-top: 3px; font-size: 12px; color: var(--text-sub); line-height: 1.8; }
.account-rules { padding-top: 14px; }

/* ================= 个人中心 ================= */
.account-overview { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 18px; }
.account-avatar {
  width: 58px; height: 58px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: linear-gradient(145deg, #d21a1d, #a80000);
  color: #fff; font-family: var(--font-serif); font-size: 25px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .2);
}
.account-headline { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.account-headline strong { font-size: 20px; color: var(--blue-deep); }
.account-headline span { font-size: 13px; color: var(--text-sub); }
.account-headline .badge { align-self: flex-start; margin-top: 3px; }
.account-meta { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.account-meta div { display: flex; flex-direction: column; gap: 1px; }
.account-meta span { font-size: 11px; color: var(--text-muted); }
.account-meta strong { font-size: 13px; color: #333; font-family: var(--font-num); }
.account-empty { padding: 34px 20px; }
.account-empty .icon { color: #b9cfe2; }

/* ================= 工单子导航 ================= */
.ticket-subnav {
  display: flex; flex-wrap: nowrap; gap: 0; overflow-x: auto;
  border: 1px solid var(--border-deep); border-bottom: 0; background: #fff;
  margin-bottom: 12px;
}
.ticket-subnav a {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-right: 1px solid var(--border);
  color: #444; font-size: 13px; white-space: nowrap;
}
.ticket-subnav a:last-child { border-right: 0; }
.ticket-subnav a .icon { width: 15px; height: 15px; color: var(--blue); }
.ticket-subnav a:hover { background: var(--bg-blue); color: var(--blue-deep); }
.ticket-subnav a.active { background: var(--blue-deep); color: #fff; }
.ticket-subnav a.active .icon { color: #fff; }
.ticket-head-badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* ================= 完结工单公示 ================= */
.case-list { padding: 0 18px; }
.case-item { padding: 15px 0; border-bottom: 1px dashed var(--border); }
.case-item:last-child { border-bottom: 0; }
.case-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12px; }
.case-player { color: var(--text-sub); }
.case-item-head time { margin-left: auto; color: var(--text-muted); font-family: var(--font-num); }
.case-title { font-size: 19px; line-height: 1.5; margin: 6px 0 4px; }
.case-title a { color: var(--blue-deep); }
.case-title a:hover { color: var(--red-deep); text-decoration: underline; }
.case-resolution { font-size: 13px; color: var(--text-sub); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-resolution.muted { color: var(--text-muted); }
.case-meta-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-body-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin-top: 14px; background: #f7fbff; border: 1px solid #d6e7f7; color: var(--blue-deep); font-size: 12px; line-height: 1.7; }
.case-body-note .icon { width: 15px; height: 15px; margin-top: 2px; }

/* ================= 客户端下载 ================= */
.client-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; padding: 20px; }
.client-card-main { min-width: 0; }
.client-version-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.version-badge { display: inline-block; padding: 3px 10px; background: var(--red-deep); color: #fff; font-family: var(--font-num); font-size: 15px; font-weight: 700; }
.client-date { font-size: 12px; color: var(--text-muted); font-family: var(--font-num); }
.client-title { font-size: 24px; color: var(--blue-deep); margin: 10px 0 6px; font-family: var(--font-title); }
.client-sub { font-size: 13px; color: var(--text-sub); line-height: 1.8; }
.client-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.btn-large { height: 42px; padding: 0 22px; font-size: 15px; }
.client-size { font-size: 12px; color: var(--text-muted); }
.client-hash-box { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #f7fbff; border: 1px solid #d6e7f7; min-width: 0; }
.client-hash-box > span { font-size: 12px; color: var(--text-muted); }
.sha-value { display: block; padding: 8px 10px; background: #fff; border: 1px solid #dbe7f1; font-size: 12px; line-height: 1.7; color: var(--blue-deep); word-break: break-all; }
.client-hash-box .copy-btn { align-self: flex-start; }
.client-changelog { padding: 16px 20px 18px; border-top: 1px dashed var(--border); }
.client-changelog h3 { font-size: 15px; color: var(--blue-deep); margin-bottom: 6px; }
.client-changelog-body { font-size: 13px; line-height: 1.9; color: var(--text-sub); }
.download-steps { padding: 12px 20px 16px; }
.download-step { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.download-step:last-child { border-bottom: 0; }
.download-step strong { color: var(--blue-deep); font-size: 14px; }
.download-step p { margin-top: 3px; font-size: 12px; color: var(--text-sub); line-height: 1.8; }
.download-step code { color: var(--blue-deep); background: #f3f8fc; border: 1px solid #dbe7f1; padding: 1px 4px; }
.sha-cell { max-width: 170px; }
.sha-cell code { font-size: 12px; white-space: nowrap; }
.field input[type="file"] { height: auto; padding: 8px; background: #fafafa; font-size: 12px; }
.admin-toolbar code { font-size: 12px; }

/* ================= 响应式新增 ================= */
@media (max-width: 1024px) {
  .auth-layout { flex-direction: column; }
  .auth-layout > .content-aside { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-card { grid-template-columns: 1fr; }
  .case-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .account-benefits { grid-template-columns: 1fr; }
  .account-overview { align-items: flex-start; }
  .account-meta { width: 100%; }
  .ticket-subnav { margin-top: 0; }
  .ticket-subnav a { padding: 9px 13px; }
  .client-gate { flex-direction: column; align-items: stretch; gap: 12px; }
  .client-gate-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .auth-layout > .content-aside { grid-template-columns: 1fr; }
  .account-overview { padding: 14px; }
  .account-avatar { width: 48px; height: 48px; font-size: 21px; }
  .account-headline strong { font-size: 18px; }
  .account-meta { gap: 10px 18px; }
  .client-card { padding: 14px; }
  .client-title { font-size: 20px; }
  .case-item-head time { width: 100%; margin-left: 0; }
  .case-meta-grid { grid-template-columns: 1fr; }
  .client-gate-online { width: 100%; }
}

/* ================= 响应式 ================= */
@media (max-width: 1180px) {
  .topbar-slogan { display: none; }
  .nav-list a { padding: 0 20px; }
  .hero-title { font-size: 34px; }
  .hero-slide { padding-right: 300px; }
  .home-aside, .content-aside { width: 280px; }
}
@media (max-width: 1024px) {
  .home-layout, .content-layout, .status-lower { flex-direction: column; }
  .home-aside, .content-aside { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .home-aside > .gov-panel, .content-aside > .gov-panel { min-width: 0; }
  .home-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .admin-settings-grid { grid-template-columns: 1fr; }
  .brand-title { font-size: 26px; }
  .brand-logo { height: 58px; }
  .search-form { width: 300px; }
  .guide-grid { grid-template-columns: 1fr; }
  .status-page-grid { grid-template-columns: 1fr; }
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; }
  .admin-side nav { display: flex; flex-wrap: wrap; }
  .admin-side nav a { flex: 1 1 150px; border-bottom: 1px solid #eee; }
  .admin-side-note { display: none; }
}
@media (max-width: 980px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .navbar { height: auto; line-height: normal; }
  .navbar .page-wrap { flex-wrap: wrap; justify-content: flex-end; height: auto; padding: 7px 0; }
  .nav-list { display: none; order: 2; flex-basis: 100%; }
  .navbar.open .nav-list { display: flex; flex-direction: column; }
  .nav-list a {
    padding: 12px 16px; font-size: 15px;
    border-left: 0; border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-cta { order: 1; width: auto; height: 34px; margin: 0; justify-content: center; border: 0; }
}
@media (max-width: 860px) {
  .page-wrap { width: calc(100% - 24px); }
  .topbar-slogan { display: none; }
  .topbar-left { flex: 1; }
  .topbar-right { flex: none; }
  .topbar-visits, .topbar-sep { display: none; }
  .header-inner { flex-wrap: wrap; padding: 12px 0; gap: 10px; min-height: 0; }
  .brand { flex: 1 1 100%; }
  .brand-logo { height: 52px; }
  .brand-title { font-size: 23px; white-space: normal; }
  .brand-subtitle { font-size: 12px; letter-spacing: 3px; }
  .search-form { order: 2; flex: 1; width: auto; min-width: 0; }
  .search-form input { width: auto; min-width: 0; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; order: 3; }
  .navbar { height: auto; line-height: normal; }
  .nav-list { display: none; flex-direction: column; }
  .navbar.open .nav-list { display: flex; }
  .nav-list a { padding: 12px 16px; font-size: 15px; border-left: 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .marquee-bar { margin-top: 0; }
  .hero-slide { padding: 26px 22px 40px; min-height: 230px; }
  .hero-slides { min-height: 230px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 13px; }
  .hero-petals { display: none; }
  .hero-dots { left: 22px; bottom: 18px; }
  .hero-arrow { bottom: 14px; }
  .home-cols { grid-template-columns: minmax(0, 1fr); }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .join-grid { grid-template-columns: 1fr; }
  .home-aside, .content-aside { grid-template-columns: 1fr; }
  .inner-hero-row { flex-direction: column; align-items: flex-start; }
  .inner-hero-stat { text-align: left; }
  .inner-hero-actions { justify-content: flex-start; }
  .list-toolbar { flex-direction: column; align-items: stretch; }
  .inline-search { width: 100%; }
  .inline-search input { flex: 1; width: auto; min-width: 0; }
  .article { padding: 22px 20px 8px; }
  .article-title { font-size: 24px; }
  .document-panel { padding: 20px 18px 14px; }
  .document-title { font-size: 26px; }
  .document-grid { grid-template-columns: 1fr; }
  .document-grid .span-2 { grid-column: auto; }
  .ticket-meta-grid, .admin-ticket-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-info-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; align-items: stretch; }
  .process-arrow { transform: rotate(90deg); align-self: center; }
  .admin-topbar-inner { height: auto; padding: 8px 0; flex-wrap: wrap; }
  .admin-topbar-right { gap: 10px; }
  .admin-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-page-head { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .footer-links { gap: 4px 0; }
  .footer-main { grid-template-columns: 1fr; gap: 16px; }
  .footer-legal-list { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
  .login-card { padding: 22px 20px 16px; }
}
@media (max-width: 560px) {
  .topbar-left { display: none; }
  .topbar-right { flex: 1; }
  .topbar-clock { font-size: 11px; }
  .brand-logo { height: 44px; }
  .brand-title { font-size: 20px; letter-spacing: 0; }
  .brand-subtitle { letter-spacing: 1px; }
  .search-btn { width: 58px; }
  .search-btn span { display: none; }
  .hero-title { font-size: 23px; }
  .hero-kicker { font-size: 12px; }
  .channel-grid { grid-template-columns: 1fr; }
  .home-cols { gap: 10px; }
  .server-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric strong { font-size: 16px; }
  .server-host-line code { font-size: 16px; }
  .ticket-meta-grid, .admin-ticket-meta { grid-template-columns: 1fr; }
  .ticket-subject { font-size: 19px; }
  .data-grid th, .data-grid td { padding: 7px 8px; font-size: 12px; }
  .admin-cards { grid-template-columns: 1fr; }
  .admin-quick { grid-template-columns: 1fr; }
  .admin-topbar-right > a { display: none; }
  .document-head { flex-direction: column; }
  .article-meta { gap: 6px 14px; }
  .pager-info { width: 100%; text-align: center; margin-left: 0; }
  .footer { padding: 16px 0 20px; }
  .footer-links a, .footer-qq { padding: 0 8px; font-size: 12px; }
  .footer-service-list li { flex-direction: column; align-items: flex-start; gap: 0; }
  .footer-service-list span { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
