:root {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --sidebar: #1c1f26;
  --sidebar-text: #c9cfd8;
  --sidebar-active: #2a3242;
  --accent: #e8a94c;
  --accent-2: #d98a3a;
  --green: #2ecc71;
  --red: #e74c3c;
  --amber: #f39c12;
  --blue: #3498db;
  --text: #2b2f36;
  --text-muted: #8a919c;
  --border: #e4e7ec;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  overflow: hidden;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: 264px;
  min-width: 264px;
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  transition: margin-left .25s ease;
  z-index: 50;
}
.sidebar.collapsed { margin-left: -264px; }

.brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 14px; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 2px solid rgba(255,255,255,.25);
}
.brand-text h1 { font-size: 18px; color: #fff; letter-spacing: 1px; }
.brand-text span { font-size: 12px; opacity: .7; letter-spacing: 3px; }

.sidebar-search { padding: 0 14px 12px; }
.sidebar-search input {
  width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid #3a4456;
  background: #14171d; color: #eaecef; font-size: 13px; outline: none; transition: border .2s;
}
.sidebar-search input:focus { border-color: var(--accent); }
.sidebar-search input::placeholder { color: #6b7380; }

.nav { flex: 1; overflow-y: auto; padding: 4px 10px 10px; }
.nav-group {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: #6b7380; padding: 14px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0;
  border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; user-select: none;
}
.nav-item:hover { background: #262d39; color: #fff; }
.nav-item.active { background: var(--sidebar-active); color: #fff; }
.nav-item .nav-icon { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.nav-item .nav-icon.nav-emoji {
  display: flex; align-items: center; justify-content: center; font-size: 17px; background: rgba(255,255,255,.08);
}
.nav-item .nav-name { flex: 1; font-size: 14px; }
.nav-item .nav-type { font-size: 10px; padding: 2px 7px; border-radius: 20px; background: rgba(255,255,255,.12); color: #aab2be; }
.nav-item.nav-skill .nav-type { background: rgba(232,169,76,.2); color: var(--accent); }
.nav-item .nav-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.nav-dot.on { background: var(--green); }
.nav-dot.off { background: var(--red); }
.nav-dot.unknown { background: #6b7380; }

.sidebar-footer { padding: 14px; border-top: 1px solid #2a3242; text-align: center; }
.clock { font-size: 12px; color: #8a919c; font-variant-numeric: tabular-nums; }

/* ---------- Main ---------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 56px; background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 16px; flex-shrink: 0;
}
.sidebar-toggle { background: none; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.sidebar-toggle:hover { background: var(--bg); color: var(--text); }
.topbar-title { flex: 1; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  background: none; border: 1px solid var(--border); border-radius: 8px; width: 36px; height: 36px;
  font-size: 16px; color: var(--text-muted); cursor: pointer; transition: all .15s;
}
.icon-btn:hover { background: var(--bg); color: var(--text); border-color: var(--accent); }
.status-badge {
  font-size: 12px; padding: 5px 12px; border-radius: 20px; font-weight: 600; letter-spacing: .3px;
}
.status-badge.ok { background: rgba(46,204,113,.14); color: #1e9e58; }
.status-badge.warn { background: rgba(243,156,18,.14); color: #c07f0a; }
.status-badge.bad { background: rgba(231,76,60,.14); color: #c0392b; }

/* ---------- View ---------- */
.view { flex: 1; overflow-y: auto; padding: 24px; }
.view-frame { padding: 0; display: flex; flex-direction: column; }

/* ---------- Dashboard ---------- */
.dash-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-hero h2 { font-size: 24px; color: #1c1f26; }
.dash-hero .sub { color: var(--text-muted); font-size: 13px; }
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; min-width: 130px; flex: 1;
}
.stat-card .num { font-size: 26px; font-weight: 700; }
.stat-card .lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-card.green .num { color: var(--green); }
.stat-card.red .num { color: var(--red); }
.stat-card.amber .num { color: var(--amber); }
.stat-card.blue .num { color: var(--blue); }

.section-title { font-size: 15px; font-weight: 600; margin: 8px 0 14px; color: #1c1f26; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.site-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; position: relative;
}
.site-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); border-color: var(--accent); }
.site-card .sc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.site-card .sc-icon { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.site-card .sc-icon.emoji { display: flex; align-items: center; justify-content: center; font-size: 19px; background: #f5f6f8; }
.site-card .sc-name { font-size: 14px; font-weight: 600; }
.site-card .sc-type { font-size: 11px; color: var(--text-muted); }
.site-card .sc-url { font-size: 11px; color: var(--accent-2); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card .sc-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.site-card .sc-status {
  position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px;
}
.sc-status.up { background: rgba(46,204,113,.14); color: #1e9e58; }
.sc-status.down { background: rgba(231,76,60,.14); color: #c0392b; }
.sc-status.latency { background: #f5f6f8; color: var(--text-muted); }

/* ---------- iframe ---------- */
.frame-toolbar {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--surface);
  border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-muted); flex-shrink: 0;
}
.frame-badge { padding: 3px 10px; border-radius: 20px; background: rgba(232,169,76,.15); color: var(--accent-2); font-weight: 600; }
.frame-url { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-frame iframe { flex: 1; width: 100%; border: none; background: #fff; }
.frame-status { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--text-muted); font-size: 14px; background: var(--surface); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.blocked-panel { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 24px; text-align: center; background: var(--surface); }
.blocked-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.blocked-panel h3 { font-size: 20px; color: var(--text); }
.blocked-url { font-size: 13px; color: var(--accent-2); }
.blocked-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 520px; }
.blocked-reason { background: #f7f8fa; border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; font-size: 12px; color: var(--text-muted); line-height: 1.8; max-width: 520px; }
.blocked-reason code { background: #eceef1; padding: 2px 6px; border-radius: 4px; font-size: 11px; color: #3a3f47; word-break: break-all; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px;
  border: 1px solid var(--accent); background: transparent; color: var(--accent-2); font-size: 13px;
  font-weight: 600; cursor: pointer; transition: all .15s; text-decoration: none;
}
.btn:hover { background: var(--accent); color: #1c1f26; }
.btn.primary { background: var(--accent); color: #1c1f26; }
.btn.primary:hover { background: var(--accent-2); color: #fff; }
.btn.ghost { border-color: var(--border); color: var(--text-muted); }
.btn.ghost:hover { background: var(--bg); color: var(--text); border-color: var(--accent); }
.btn.small { padding: 6px 12px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Data: books ---------- */
.books-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.book-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all .15s; }
.book-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); border-color: var(--accent); }
.book-cover { aspect-ratio: 3/4; background: #eef0f3; position: relative; overflow: hidden; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover .lock-tag { position: absolute; top: 8px; right: 8px; font-size: 10px; padding: 2px 8px; border-radius: 20px; background: rgba(0,0,0,.55); color: #fff; }
.book-meta { padding: 10px 12px; }
.book-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-sub { font-size: 11px; color: var(--text-muted); }

/* ---------- Data: news ---------- */
.news-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.news-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; transition: all .15s; }
.news-item:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.news-item h3 { font-size: 15px; margin-bottom: 6px; }
.news-item .news-date { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.news-item .news-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Data: zhanshi ---------- */
.zhanshi-login { max-width: 420px; margin: 40px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.zhanshi-login h3 { margin-bottom: 4px; }
.zhanshi-login .hint { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.form-row input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 14px; outline: none; transition: border .2s; }
.form-row input:focus { border-color: var(--accent); }

.zhanshi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.zhanshi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.zhanshi-card h4 { font-size: 14px; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zhanshi-card .z-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.5; }
.zhanshi-card .z-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Skills ---------- */
.skill-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; }
.skill-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.skill-panel .skill-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.skill-panel .skill-icon { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.skill-panel h3 { font-size: 17px; margin-bottom: 2px; }
.skill-panel .skill-tag { font-size: 11px; color: var(--accent-2); }
.skill-panel .skill-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.skill-panel .skill-usage { font-size: 12px; color: var(--text-muted); background: #f7f8fa; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; line-height: 1.6; }

.dropzone {
  border: 2px dashed #c9ced6; border-radius: 10px; padding: 28px 16px; text-align: center;
  color: var(--text-muted); cursor: pointer; transition: all .2s; margin-bottom: 14px; background: #fafbfc;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: rgba(232,169,76,.06); color: var(--accent-2); }
.dropzone .dz-icon { font-size: 30px; margin-bottom: 8px; }
.dropzone .dz-main { font-size: 14px; font-weight: 600; color: var(--text); }
.dropzone .dz-sub { font-size: 12px; margin-top: 4px; }

.upload-progress { margin-bottom: 14px; }
.upload-progress .bar { height: 8px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.upload-progress .bar-fill { height: 100%; background: var(--accent); width: 0%; transition: width .2s; border-radius: 4px; }
.upload-progress .lbl { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.result-box { background: #f7f8fa; border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.result-box .result-url { font-size: 12px; color: var(--accent-2); word-break: break-all; margin-bottom: 8px; }
.result-box .result-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }

.article-preview { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; max-height: 420px; overflow-y: auto; margin-bottom: 12px; }
.article-preview h2, .article-preview h3 { margin: 20px 0 10px; color: #2b2f36; }
.article-preview p { font-size: 15px; color: #333; line-height: 1.9; margin: 0 0 14px; text-align: justify; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .form-row { margin-bottom: 0; }
select.input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 14px; background: #fff; outline: none; }

/* ---------- Settings ---------- */
.settings-panel { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.settings-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.settings-card h3 { font-size: 15px; margin-bottom: 12px; }
.settings-card .s-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.settings-card code { background: #f0f1f3; padding: 2px 6px; border-radius: 4px; font-size: 12px; }

.user-chip { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f7f8fa; border-radius: 8px; border: 1px solid var(--border); }
.user-chip .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.user-chip .u-name { font-weight: 600; font-size: 14px; }
.user-chip .u-sub { font-size: 12px; color: var(--text-muted); }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state .ee-icon { font-size: 40px; margin-bottom: 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1c1f26; color: #fff; padding: 11px 22px; border-radius: 8px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 999; max-width: 80vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #c0392b; }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c4c9d1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aab0ba; }

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  .sidebar { position: absolute; top: 0; bottom: 0; box-shadow: 2px 0 12px rgba(0,0,0,.2); }
  .skill-tools { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ============ 融合版新增组件 ============ */
.panel-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-hint { font-size: 12px; color: var(--text-muted); }
.search-inline { padding: 9px 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 14px; outline: none; min-width: 220px; }
.search-inline:focus { border-color: var(--accent); }

/* 模块卡片（总览） */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.module-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; text-align: center;
}
.module-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); border-color: var(--accent); }
.module-card .mc-icon { font-size: 34px; margin-bottom: 10px; }
.module-card .mc-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.module-card .mc-status { font-size: 11px; color: var(--text-muted); }
.module-card .mc-desc { font-size: 11px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
.module-card .dot-on { color: var(--green); }
.module-card .dot-off { color: var(--red); }
.module-card.skill { border-color: rgba(232,169,76,.4); }

/* 阅读器 */
.reader { position: fixed; inset: 0; background: #1b1e24; z-index: 200; display: flex; flex-direction: column; }
.reader-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: #242830; color: #eaecef; }
.reader-bar .icon-btn { color: #eaecef; border-color: #3a4456; }
.reader-title { flex: 1; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-count { font-size: 13px; color: #aab2be; font-variant-numeric: tabular-nums; }
.reader-stage { flex: 1; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px; min-height: 0; }
.reader-nav { width: 52px; height: 52px; border-radius: 50%; border: 1px solid #3a4456; background: rgba(255,255,255,.06); color: #eaecef; font-size: 30px; cursor: pointer; transition: all .15s; flex-shrink: 0; }
.reader-nav:hover { background: var(--accent); color: #1c1f26; border-color: var(--accent); }
.reader-page { flex: 1; display: flex; align-items: center; justify-content: center; max-width: 72vw; height: 100%; }
.reader-page img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 12px 40px rgba(0,0,0,.5); border-radius: 2px; }
.reader-footer { padding: 10px; text-align: center; font-size: 12px; color: #8a919c; }
.reader-footer a { color: var(--accent); }
.reader-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 60px; color: var(--text-muted); }

/* 书架封面阅读标签 */
.read-tag { position: absolute; left: 8px; bottom: 8px; font-size: 10px; padding: 2px 8px; border-radius: 20px; background: var(--accent); color: #1c1f26; font-weight: 600; opacity: 0; transition: opacity .15s; }
.book-card:hover .read-tag { opacity: 1; }

/* 字体库 */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { padding: 5px 13px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); font-size: 12px; cursor: pointer; color: var(--text-muted); transition: all .15s; user-select: none; }
.chip:hover { border-color: var(--accent); color: var(--accent-2); }
.chip.active { background: var(--accent); color: #1c1f26; border-color: var(--accent); font-weight: 600; }
.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.font-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .15s; }
.font-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); border-color: var(--accent); }
.font-preview { height: 110px; background: #fafbfc; display: flex; align-items: center; justify-content: center; padding: 10px; overflow: hidden; }
.font-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.font-fallback { font-size: 18px; color: #2b2f36; font-weight: 600; text-align: center; padding: 0 10px; word-break: break-all; }
.font-meta { padding: 12px; }
.font-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.font-sub { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.lic-badge { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 20px; background: #f0f1f3; color: var(--text-muted); margin-bottom: 8px; }
.lic-badge.free { background: rgba(46,204,113,.14); color: #1e9e58; }
.font-actions { display: flex; gap: 6px; }
.font-subfont { display: inline-block; font-size: 12px; color: var(--accent-2); text-decoration: none; margin: 2px 0; }
.font-subfont:hover { text-decoration: underline; }
.pager { display: flex; align-items: center; gap: 12px; margin-top: 18px; justify-content: center; }
.pager-info { font-size: 12px; color: var(--text-muted); }

/* 工具站点 */
.tool-hero { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.tool-icon { font-size: 44px; }
.tool-hero h2 { font-size: 20px; margin-bottom: 4px; }
.feature-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.feature-chip { padding: 8px 16px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.info-card { background: #f7f8fa; border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* 商城 */
.shop-hero { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.shop-brand { display: flex; align-items: center; gap: 14px; flex: 1; }
.shop-brand img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.shop-brand h2 { font-size: 20px; margin-bottom: 4px; }
.banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.banner-card { aspect-ratio: 16/7; border-radius: 10px; background-size: cover; background-position: center; border: 1px solid var(--border); }

/* 文章 */
.article { max-width: 780px; margin: 0 auto; }
.article-title { font-size: 24px; margin: 14px 0 8px; line-height: 1.4; }
.article-body { font-size: 15px; line-height: 1.9; color: #333; }
.article-body img { max-width: 100%; border-radius: 8px; }
.article-body p { margin: 0 0 14px; }

/* 弹窗 */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-panel { background: var(--surface); border-radius: var(--radius); max-width: 560px; width: 100%; max-height: 82vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 17px; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); }
.modal-body { padding: 18px 20px; font-size: 14px; line-height: 1.8; }
.modal-body .hint { font-size: 12px; color: var(--text-muted); }

/* 上传框 */
.upload-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; max-width: 640px; }
.skill-panel.wide { max-width: 860px; }

/* ---------- 项目记录模块 ---------- */
.proj-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .proj-cols { grid-template-columns: 1fr; } }
.proj-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rank-idx { width: 20px; text-align: center; color: var(--text-muted); font-size: 12px; flex-shrink: 0; }
.rank-name { flex: 0 0 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-bar { flex: 1; height: 14px; background: #f0f2f5; border-radius: 7px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 7px; }
.rank-val { flex-shrink: 0; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.proj-table-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.search-inline { flex: 1; max-width: 360px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--surface); color: var(--text); outline: none; }
.search-inline:focus { border-color: var(--accent); }
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; max-height: 70vh; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 600px; }
.data-table th, .data-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.data-table th { background: #f7f8fa; font-weight: 600; position: sticky; top: 0; z-index: 1; color: var(--text); }
.data-table tbody tr:hover { background: #faf7f0; }
.hint { font-size: 12px; color: var(--text-muted); }

