/* ==========================================================================
   宇闻数字科技 · GEO 智能内容分发系统
   视觉规范：深蓝 (#0B1C3D / #14315F) + 金 (#C9A227 / #E0BB4E)
   ========================================================================== */
:root {
  --navy-900: #07132A;
  --navy-800: #0B1C3D;
  --navy-700: #102A56;
  --navy-600: #14315F;
  --navy-500: #1B4180;
  --navy-400: #2C5AA0;
  --navy-100: #E4EBF7;
  --navy-50: #F2F6FC;

  --gold-600: #A8841C;
  --gold-500: #C9A227;
  --gold-400: #E0BB4E;
  --gold-300: #EFD68C;
  --gold-100: #FBF3DC;

  --bg: #F4F6FB;
  --card: #FFFFFF;
  --line: #E3E9F2;
  --text: #1B2436;
  --text-2: #5A677D;
  --text-3: #8D98AC;

  --green: #1F9D6A;
  --red: #D9453D;
  --orange: #E08A1E;
  --blue: #2C6FD1;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 10px rgba(11, 28, 61, .06);
  --shadow-lg: 0 12px 40px rgba(11, 28, 61, .16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
  font-size: 14px; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-500); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #C6D0E0; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ==================== 登录页 ==================== */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 15% 10%, #1B4180 0%, transparent 60%),
              radial-gradient(900px 500px at 85% 90%, #14315F 0%, transparent 55%),
              linear-gradient(160deg, #07132A 0%, #0B1C3D 45%, #102A56 100%);
}
.login-wrap::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(201,162,39,.055) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(201,162,39,.055) 1px, transparent 1px);
  background-size: 44px 44px; pointer-events: none;
}
.login-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; }
.login-glow.g1 { width: 380px; height: 380px; background: #C9A227; top: -120px; left: -80px; }
.login-glow.g2 { width: 320px; height: 320px; background: #2C5AA0; bottom: -100px; right: -60px; }

.login-box {
  position: relative; z-index: 2; width: 412px; padding: 40px 38px 30px;
  background: rgba(255,255,255,.985); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.42);
  border-top: 4px solid var(--gold-500);
  animation: rise .5s cubic-bezier(.2,.7,.3,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.login-head { text-align: center; margin-bottom: 26px; }
.login-logo {
  width: 54px; height: 54px; border-radius: 14px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-500));
  box-shadow: 0 8px 22px rgba(20,49,95,.32); position: relative;
}
.login-logo::after {
  content: ''; position: absolute; inset: 0; border-radius: 14px;
  border: 1.5px solid rgba(201,162,39,.55);
}
.login-logo svg { width: 28px; height: 28px; }
.login-title { font-size: 19px; font-weight: 700; color: var(--navy-800); letter-spacing: .3px; line-height: 1.45; }
.login-sub { font-size: 12.5px; color: var(--text-3); margin-top: 8px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; font-weight: 600; }
.input-box { position: relative; }
.input-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); }
.input-box input {
  width: 100%; height: 44px; padding: 0 12px 0 38px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #FAFBFE; color: var(--text); outline: none;
  transition: .18s;
}
.input-box input:focus { border-color: var(--navy-400); background: #fff; box-shadow: 0 0 0 3px rgba(44,90,160,.12); }

.login-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 13px; }
.checkbox { display: flex; align-items: center; gap: 7px; color: var(--text-2); cursor: pointer; user-select: none; }
.checkbox input { width: 15px; height: 15px; accent-color: var(--navy-500); cursor: pointer; }

.btn-login {
  width: 100%; height: 46px; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: #33270A; font-weight: 700; font-size: 15px; letter-spacing: 1.5px;
  box-shadow: 0 8px 20px rgba(201,162,39,.34); transition: .18s;
}
.btn-login:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-login:active { transform: none; }
.btn-login:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.login-error {
  background: #FDEDEC; border: 1px solid #F5C6C3; color: #B33A32;
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; margin-bottom: 14px;
}
.login-foot { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 22px; }
.login-demo {
  margin-top: 16px; padding: 12px 14px; background: var(--navy-50);
  border: 1px dashed #C9D6EA; border-radius: var(--radius-sm); font-size: 12px; color: var(--text-2);
}
.login-demo b { color: var(--navy-700); }
.login-demo div { line-height: 1.9; }
.login-demo span { cursor: pointer; color: var(--navy-500); }
.login-demo span:hover { text-decoration: underline; }

/* ==================== 主布局 ==================== */
.app { display: none; height: 100vh; overflow: hidden; }
.app.on { display: flex; }

.sidebar {
  width: 232px; flex: none; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: #C7D3E8; position: relative;
}
.sidebar::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 1px; background: rgba(201,162,39,.18); }
.sb-brand {
  padding: 18px 18px 16px; display: flex; align-items: center; gap: 11px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sb-logo {
  width: 36px; height: 36px; flex: none; border-radius: 10px; display: flex;
  align-items: center; justify-content: center;
  background: linear-gradient(140deg, #1B4180, #2C5AA0); border: 1.5px solid rgba(201,162,39,.5);
}
.sb-logo svg { width: 19px; height: 19px; }
.sb-name { font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.35; }
.sb-sub { font-size: 10.5px; color: var(--gold-400); letter-spacing: 1.2px; margin-top: 2px; }
.sb-logo-img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: #fff; }

.sb-scroll { flex: 1; overflow-y: auto; padding: 10px 0 16px; }
.sb-group-title {
  padding: 14px 18px 6px; font-size: 10.5px; letter-spacing: 1.6px;
  color: rgba(255,255,255,.34); font-weight: 700; text-transform: uppercase;
}
.sb-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 18px; cursor: pointer;
  font-size: 13.5px; color: #BAC7DE; position: relative; transition: .15s; border: 0; background: none;
  width: 100%; text-align: left;
}
.sb-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.sb-item.on { background: linear-gradient(90deg, rgba(201,162,39,.20), rgba(201,162,39,0)); color: #fff; font-weight: 600; }
.sb-item.on::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--gold-400); border-radius: 0 3px 3px 0; }
.sb-item svg { width: 16px; height: 16px; flex: none; opacity: .85; }
.sb-item.on svg { color: var(--gold-400); opacity: 1; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 58px; flex: none; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 22px; gap: 14px; box-shadow: 0 1px 4px rgba(11,28,61,.04); z-index: 5;
}
.tb-title { font-size: 15.5px; font-weight: 700; color: var(--navy-800); }
.tb-crumb { font-size: 12px; color: var(--text-3); }
.tb-spacer { flex: 1; }
.tb-balance { display: flex; gap: 8px; }
.tb-chip {
  display: flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 20px;
  background: var(--navy-50); border: 1px solid #DCE5F3; font-size: 12.5px; color: var(--navy-700);
}
.tb-chip b { color: var(--navy-800); font-size: 13.5px; }
.tb-chip.gold { background: var(--gold-100); border-color: #EFDFAE; }
.tb-chip.gold b { color: var(--gold-600); }
.tb-user { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); cursor: pointer; }
.tb-avatar {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--navy-600), var(--navy-400)); color: #fff; font-size: 13px; font-weight: 700;
}
.tb-uname { font-size: 13px; font-weight: 600; color: var(--navy-800); line-height: 1.3; }
.tb-urole { font-size: 11px; color: var(--text-3); }

.dropdown {
  position: absolute; top: 52px; right: 20px; min-width: 180px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 100; display: none;
}
.dropdown.on { display: block; }
.dropdown button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none;
  border-radius: var(--radius-sm); cursor: pointer; color: var(--text); font-size: 13.5px;
}
.dropdown button:hover { background: var(--navy-50); color: var(--navy-700); }
.dropdown .dd-sep { height: 1px; background: var(--line); margin: 5px 0; }

.content { flex: 1; overflow-y: auto; padding: 20px 22px 40px; }
.content-inner { max-width: 1560px; }

/* ==================== 卡片 ==================== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.card-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.card-title { font-size: 14.5px; font-weight: 700; color: var(--navy-800); display: flex; align-items: center; gap: 8px; }
.card-title::before { content: ''; width: 3px; height: 15px; background: var(--gold-500); border-radius: 2px; }
.card-desc { font-size: 12px; color: var(--text-3); }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }
.head-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--navy-500); }
.stat.gold::before { background: var(--gold-500); }
.stat.green::before { background: var(--green); }
.stat.red::before { background: var(--red); }
.stat.orange::before { background: var(--orange); }
.stat-label { font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--navy-800); line-height: 1.1; letter-spacing: -.5px; }
.stat-value small { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 4px; }
.stat-foot { font-size: 11.5px; color: var(--text-3); margin-top: 7px; }
.stat-foot b { color: var(--navy-600); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 33px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: #fff; color: var(--text); cursor: pointer; transition: .15s; white-space: nowrap; font-size: 13px;
}
.btn:hover { border-color: var(--navy-400); color: var(--navy-600); background: var(--navy-50); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--navy-700), var(--navy-500)); border-color: var(--navy-600); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, var(--navy-600), var(--navy-400)); color: #fff; border-color: var(--navy-500); }
.btn-gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); border-color: var(--gold-500); color: #33270A; font-weight: 600; }
.btn-gold:hover { filter: brightness(1.06); color: #33270A; border-color: var(--gold-500); }
.btn-danger { color: var(--red); border-color: #F1CFCD; background: #FFF7F7; }
.btn-danger:hover { background: #FDEDEC; border-color: #E9B7B4; color: var(--red); }
.btn-sm { height: 27px; padding: 0 10px; font-size: 12.5px; }
.btn-link { border: 0; background: none; color: var(--navy-500); cursor: pointer; padding: 2px 4px; font-size: 13px; }
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: var(--red); }
.btn-link.gold { color: var(--gold-600); }

/* ==================== 表单 ==================== */
.form-row { margin-bottom: 15px; }
.form-row > label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.form-row .req { color: var(--red); margin-left: 3px; }
.form-row .hint { font-size: 11.5px; color: var(--text-3); margin-top: 5px; line-height: 1.6; }
.inp, .sel, .txta {
  width: 100%; height: 36px; padding: 0 11px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #FCFDFF; color: var(--text); outline: none; transition: .16s;
}
.txta { height: auto; min-height: 96px; padding: 9px 11px; line-height: 1.7; resize: vertical; }
.inp:focus, .sel:focus, .txta:focus { border-color: var(--navy-400); background: #fff; box-shadow: 0 0 0 3px rgba(44,90,160,.11); }
.sel { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A677D' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 9px center; background-size: 15px; padding-right: 30px; }
.inp-sm { height: 30px; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
@media (max-width: 760px) { .form-grid, .form-grid-3 { grid-template-columns: 1fr; } }
.switch-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #CBD5E5; border-radius: 12px; cursor: pointer; transition: .2s; }
.switch span::after { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--navy-500); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch-text { font-size: 13px; color: var(--text-2); }

/* ==================== 表格 ==================== */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  background: #F7F9FD; color: var(--text-2); font-weight: 700; text-align: left;
  padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px;
}
table.tbl td { padding: 11px 12px; border-bottom: 1px solid #EEF2F8; vertical-align: middle; }
table.tbl tbody tr:hover { background: #FAFCFF; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { font-variant-numeric: tabular-nums; }
.tbl .nowrap { white-space: nowrap; }
.tbl .muted { color: var(--text-3); }
.tbl .strong { font-weight: 600; color: var(--navy-800); }
.empty { text-align: center; padding: 46px 20px; color: var(--text-3); font-size: 13px; }
.empty svg { width: 40px; height: 40px; opacity: .3; display: block; margin: 0 auto 12px; }

/* 标签 / 徽标 */
.tag { display: inline-block; padding: 2px 9px; border-radius: 11px; font-size: 11.5px; line-height: 18px; white-space: nowrap; }
.tag.blue { background: #E8F0FD; color: #2359A8; }
.tag.green { background: #E4F6ED; color: #167C52; }
.tag.red { background: #FDECEB; color: #B33A32; }
.tag.orange { background: #FDF1DE; color: #A9660D; }
.tag.gray { background: #EEF1F6; color: #6B7686; }
.tag.gold { background: var(--gold-100); color: var(--gold-600); }
.tag.navy { background: var(--navy-100); color: var(--navy-600); }
.tag.purple { background: #F1E9FB; color: #6B3FA8; }

/* 分页 */
.pager { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager .pg-info { font-size: 12.5px; color: var(--text-3); }
.pager .pg-btns { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.pager button {
  min-width: 30px; height: 30px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius-sm); cursor: pointer; color: var(--text-2); font-size: 13px;
}
.pager button:hover:not(:disabled) { border-color: var(--navy-400); color: var(--navy-600); }
.pager button.on { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* 工具条 */
.toolbar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.toolbar .search { position: relative; }
.toolbar .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); }
.toolbar .search input { padding-left: 32px; width: 232px; }
.toolbar .spacer { flex: 1; }

/* 标签页 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 18px; flex-wrap: wrap; }
.tab {
  padding: 11px 15px; cursor: pointer; font-size: 13.5px; color: var(--text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; border-top: 0; border-left: 0; border-right: 0;
}
.tab:hover { color: var(--navy-600); }
.tab.on { color: var(--navy-700); font-weight: 700; border-bottom-color: var(--gold-500); }
.tab .cnt { font-size: 11.5px; color: var(--text-3); margin-left: 4px; }

/* ==================== 弹窗 ==================== */
.mask {
  position: fixed; inset: 0; background: rgba(7,19,42,.5); backdrop-filter: blur(2px);
  display: none; align-items: flex-start; justify-content: center; z-index: 500; overflow-y: auto; padding: 40px 16px;
}
.mask.on { display: flex; }
.modal {
  background: #fff; border-radius: 12px; width: 620px; max-width: 100%;
  box-shadow: 0 24px 70px rgba(0,0,0,.3); animation: rise .22s ease; margin-bottom: 40px;
}
.modal.wide { width: 900px; }
.modal.narrow { width: 440px; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-title { font-size: 15px; font-weight: 700; color: var(--navy-800); }
.modal-close { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--text-3); font-size: 21px; line-height: 1; padding: 0 4px; }
.modal-close:hover { color: var(--red); }
.modal-body { padding: 20px; max-height: 64vh; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* ==================== 提示 ==================== */
#toasts { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 9px; align-items: center; }
.toast {
  padding: 11px 20px; border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-lg);
  font-size: 13.5px; border-left: 4px solid var(--navy-500); animation: drop .25s ease; min-width: 220px; text-align: center;
}
.toast.ok { border-left-color: var(--green); color: #146B48; }
.toast.err { border-left-color: var(--red); color: #A9342C; }
.toast.warn { border-left-color: var(--orange); color: #8F5A0C; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

.loading { padding: 60px; text-align: center; color: var(--text-3); font-size: 13px; }
.spinner {
  width: 26px; height: 26px; border: 2.5px solid var(--navy-100); border-top-color: var(--navy-500);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== 流水 / 时间线 ==================== */
.tx-list { padding: 4px 0; }
.tx-item { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid #F1F4F9; }
.tx-item:last-child { border-bottom: 0; }
.tx-ic {
  width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none;
  background: var(--navy-50); color: var(--navy-500); font-size: 15px;
}
.tx-ic.in { background: #E4F6ED; color: var(--green); }
.tx-ic.out { background: #FDECEB; color: var(--red); }
.tx-main { flex: 1; min-width: 0; }
.tx-t { font-size: 13px; color: var(--text); font-weight: 600; }
.tx-s { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.tx-v { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tx-v.in { color: var(--red); }
.tx-v.out { color: var(--green); }

/* 进度条 */
.bar { height: 6px; background: var(--navy-100); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-500), var(--gold-500)); border-radius: 3px; }

/* 简易图表 */
.spark { display: flex; align-items: flex-end; gap: 5px; height: 90px; padding: 0 2px; }
.spark .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; justify-content: flex-end; height: 100%; }
.spark .col i { display: block; width: 100%; max-width: 26px; background: linear-gradient(180deg, var(--gold-400), var(--navy-500)); border-radius: 3px 3px 0 0; min-height: 3px; transition: .3s; }
.spark .col b { font-size: 10.5px; color: var(--text-3); font-weight: 400; }

.kv { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #EDF1F7; font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--text-3); flex: none; width: 108px; }
.kv > span:last-child { color: var(--text); flex: 1; word-break: break-all; }

.note { background: var(--navy-50); border: 1px solid #DCE5F3; border-left: 3px solid var(--navy-500); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 12.5px; color: var(--text-2); line-height: 1.75; }
.note.gold { background: var(--gold-100); border-color: #F0E0B4; border-left-color: var(--gold-500); }
.note.warn { background: #FEF6EA; border-color: #F5E0BE; border-left-color: var(--orange); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 3px 10px; border-radius: 12px; background: var(--navy-50); border: 1px solid #DCE5F3; font-size: 12px; color: var(--navy-600); }

.rank-badge { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.rank-badge.top { color: var(--gold-600); }
.rank-badge.mid { color: var(--navy-500); }
.rank-badge.none { color: var(--text-3); font-weight: 400; }

.editor-mini { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.editor-tools { display: flex; gap: 4px; padding: 7px 9px; border-bottom: 1px solid var(--line); background: #F8FAFD; flex-wrap: wrap; }
.editor-tools button { border: 1px solid transparent; background: none; cursor: pointer; padding: 3px 8px; border-radius: 4px; font-size: 12.5px; color: var(--text-2); }
.editor-tools button:hover { background: #fff; border-color: var(--line); color: var(--navy-600); }
.editor-area { min-height: 260px; max-height: 46vh; overflow-y: auto; padding: 15px 17px; line-height: 1.85; font-size: 14px; outline: none; }
.editor-area h2 { font-size: 16.5px; color: var(--navy-800); margin: 18px 0 9px; }
.editor-area h3 { font-size: 15px; color: var(--navy-700); margin: 15px 0 8px; }
.editor-area p { margin: 0 0 11px; }
.editor-area ul { padding-left: 22px; margin: 0 0 12px; }
.article-preview { line-height: 1.9; font-size: 14px; color: #2C3446; }
.article-preview h2 { font-size: 17px; color: var(--navy-800); margin: 20px 0 10px; }
.article-preview ul { padding-left: 22px; }
.art-title-inp { font-size: 15.5px; font-weight: 700; }

@media (max-width: 900px) {
  .sidebar { width: 62px; }
  .sb-name, .sb-sub, .sb-group-title, .sb-item span { display: none; }
  .sb-item { justify-content: center; padding: 11px 0; }
  .content { padding: 14px; }
}
