/* 极客SE成长中心 Demo - 样式表 */
:root {
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #FAFBFD;
  --border: #E6EAF0;
  --border-soft: #EFF2F7;
  --text: #17203A;
  --text-2: #5A6478;
  --text-3: #8A93A6;
  --primary: #2F6BFF;
  --primary-dark: #1E4FD8;
  --primary-soft: #EAF0FF;
  --success: #00B37E;
  --success-soft: #E6F8F1;
  --warn: #FF8A00;
  --warn-soft: #FFF3E6;
  --danger: #F5453D;
  --danger-soft: #FFECEB;
  --purple: #5B4BFF;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23,32,58,.04), 0 6px 18px rgba(23,32,58,.06);
  --shadow-lg: 0 8px 32px rgba(23,32,58,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D5DBE6; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== 顶栏 ===== */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: 60px; background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 18px;
  padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; cursor: pointer; }
.brand-logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #2F6BFF, #5B4BFF);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: -0.5px;
}
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.brand-sub { font-size: 11px; color: var(--text-3); margin-top: -3px; }

.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-item {
  padding: 7px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text-2);
  white-space: nowrap; transition: .15s; font-weight: 500;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  color: var(--text-2); position: relative; transition: .15s; font-size: 15px;
}
.icon-btn:hover { background: var(--surface-2); }
.dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); border: 1.5px solid #fff; }

.avatar-btn { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 10px; transition: .15s; }
.avatar-btn:hover { background: var(--surface-2); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12.5px; font-weight: 600; flex-shrink: 0;
}
.avatar.lg { width: 64px; height: 64px; font-size: 22px; border-radius: 18px; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.avatar-meta { text-align: left; line-height: 1.25; }
.avatar-meta .n { font-size: 13px; font-weight: 600; }
.avatar-meta .r { font-size: 11px; color: var(--text-3); }
.caret { font-size: 10px; color: var(--text-3); }

/* 下拉菜单 */
.dropdown-wrap { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 250px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 80; animation: pop .14s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.dropdown-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border-soft); margin-bottom: 6px; }
.dropdown-head .n { font-weight: 600; font-size: 14px; }
.dropdown-head .e { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.dd-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  font-size: 13.5px; color: var(--text); width: 100%; text-align: left; transition: .12s;
}
.dd-item:hover { background: var(--surface-2); }
.dd-item .ic { font-size: 15px; width: 20px; text-align: center; }
.dd-item .badge-new { margin-left: auto; font-size: 10px; background: var(--primary-soft); color: var(--primary); padding: 2px 6px; border-radius: 5px; font-weight: 600; }
.dd-sep { height: 1px; background: var(--border-soft); margin: 6px 4px; }
.dd-item.danger { color: var(--danger); }

/* ===== 布局 ===== */
.page { max-width: 1320px; margin: 0 auto; padding: 24px; }
.page.admin-page { max-width: 100%; padding: 0; display: flex; min-height: calc(100vh - 60px); }
.page-head { margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -.2px; }
.page-desc { font-size: 13px; color: var(--text-2); margin-top: 4px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.card-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.card-title .sub { font-size: 12px; font-weight: 400; color: var(--text-3); }

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

/* ===== 工作台 ===== */
.hero {
  background: linear-gradient(120deg, #1E4FD8 0%, #2F6BFF 45%, #5B4BFF 100%);
  border-radius: var(--radius); padding: 22px 24px; color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 8px 24px rgba(47,107,255,.22);
}
.hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.hero h2 { font-size: 19px; font-weight: 700; }
.hero p { font-size: 13px; opacity: .9; margin-top: 5px; }
.hero-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-btn {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff;
  padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 500; transition: .15s;
}
.hero-btn:hover { background: rgba(255,255,255,.26); }
.hero-btn.solid { background: #fff; color: var(--primary-dark); font-weight: 600; border-color: #fff; }

.stat { display: flex; align-items: center; gap: 14px; }
.stat-ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.stat-num { font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; }
.stat-label { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.stat-delta { font-size: 11.5px; margin-top: 3px; }

.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1080px) { .quick-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
  transition: .15s; text-align: center;
}
.quick-item:hover { background: var(--primary-soft); border-color: #C7D8FF; transform: translateY(-2px); }
.quick-item .qi-ic { font-size: 22px; }
.quick-item .qi-n { font-size: 12.5px; font-weight: 600; }

.feed-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.feed-item:last-child { border-bottom: none; }
.feed-tag { font-size: 11px; padding: 2px 7px; border-radius: 5px; font-weight: 600; flex-shrink: 0; height: fit-content; margin-top: 2px; }
.feed-body .t { font-size: 13.5px; font-weight: 600; }
.feed-body .m { font-size: 12px; color: var(--text-3); margin-top: 3px; }

.todo-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.todo-item:last-child { border-bottom: none; }
.todo-item.done .t { text-decoration: line-through; color: var(--text-3); }
.chk { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #C9D1E0; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
.chk.on { background: var(--success); border-color: var(--success); }
.todo-item .t { flex: 1; }
.pill-urgent { font-size: 10.5px; background: var(--danger-soft); color: var(--danger); padding: 2px 7px; border-radius: 5px; font-weight: 600; }

/* ===== 筛选 chips ===== */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  padding: 6px 13px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); transition: .15s; font-weight: 500;
}
.chip:hover { border-color: #C7D8FF; color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* ===== 卡片：案例 / Skill / PPT ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1080px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .card-grid { grid-template-columns: 1fr; } }

.mc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .18s; display: flex; flex-direction: column; cursor: pointer; }
.mc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #D3DEFF; }
.mc-cover { height: 108px; position: relative; display: flex; align-items: flex-end; padding: 12px; }
.mc-cover .cv-title { color: #fff; font-size: 14.5px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.mc-star { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.92); color: var(--warn); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.mc-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.mc-meta { font-size: 11.5px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mc-desc { font-size: 13px; color: var(--text-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border-soft); font-size: 11.5px; color: var(--text-3); }

.tag { font-size: 11px; padding: 2px 8px; border-radius: 5px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border-soft); font-weight: 500; }
.tag.blue { background: var(--primary-soft); color: var(--primary); border-color: #D3DEFF; }
.tag.green { background: var(--success-soft); color: var(--success); border-color: #C9F0E1; }
.tag.orange { background: var(--warn-soft); color: var(--warn); border-color: #FFE0BE; }
.tag.purple { background: #EFEDFF; color: var(--purple); border-color: #DDD8FF; }
.tag.red { background: var(--danger-soft); color: var(--danger); border-color: #FFD5D3; }

/* ===== 提示词卡片 ===== */
.prompt-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); transition: .15s; }
.prompt-item:hover { border-color: #D3DEFF; box-shadow: var(--shadow-lg); }
.pi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pi-title { font-size: 14.5px; font-weight: 700; }
.pi-scene { font-size: 12.5px; color: var(--text-2); margin-top: 5px; }
.pi-code {
  margin-top: 12px; background: #1B2233; color: #DDE3F0; border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 11.5px;
  line-height: 1.65; white-space: pre-wrap; max-height: 130px; overflow: hidden; position: relative;
}
.pi-code::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, #1B2233); }
.pi-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 11.5px; color: var(--text-3); }

.btn { padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; transition: .15s; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 1px solid var(--border); color: var(--text-2); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }

/* ===== 时光轴 ===== */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(#D9E1F2, #EFF2F7); }
.tl-year { font-size: 13px; font-weight: 700; color: var(--text-3); margin: 18px 0 12px -30px; padding-left: 30px; letter-spacing: 1px; }
.tl-item { position: relative; margin-bottom: 14px; }
.tl-dot { position: absolute; left: -25px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2.5px solid #fff; box-shadow: 0 0 0 3px var(--primary-soft); }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.tl-card:hover { border-color: #D3DEFF; box-shadow: var(--shadow-lg); }
.tl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.tl-date { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tl-title { font-size: 14.5px; font-weight: 700; }
.tl-summary { font-size: 13px; color: var(--text-2); }
.tl-points { margin-top: 10px; padding-left: 18px; }
.tl-points li { font-size: 12.5px; color: var(--text-2); margin-bottom: 3px; }
.tl-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--text-3); }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; font-weight: 600; color: var(--text-2); padding: 11px 12px;
  border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 12.5px; white-space: nowrap;
}
td { padding: 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
tbody tr:hover { background: var(--surface-2); }
.cell-user { display: flex; align-items: center; gap: 9px; }
.cell-user .n { font-weight: 600; }
.cell-user .s { font-size: 11.5px; color: var(--text-3); }

/* ===== 后台 ===== */
.admin-side { width: 220px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border); padding: 18px 12px; }
.admin-side .as-title { font-size: 11px; color: var(--text-3); font-weight: 600; padding: 0 10px; margin: 14px 0 6px; letter-spacing: .5px; }
.admin-side .as-title:first-child { margin-top: 0; }
.as-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); width: 100%; text-align: left; transition: .12s; }
.as-item:hover { background: var(--surface-2); color: var(--text); }
.as-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.admin-main { flex: 1; padding: 24px; min-width: 0; background: var(--bg); }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.admin-head h2 { font-size: 20px; font-weight: 700; }
.admin-head .crumb { font-size: 12px; color: var(--text-3); margin-top: 3px; }

.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bar { width: 100%; max-width: 46px; background: linear-gradient(180deg, #5B8BFF, #2F6BFF); border-radius: 7px 7px 0 0; transition: .3s; }
.bar-val { font-size: 12px; font-weight: 700; }
.bar-lab { font-size: 11.5px; color: var(--text-3); }

.hot-row { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.hot-row .hn { width: 116px; font-size: 13px; flex-shrink: 0; }
.hot-bar { flex: 1; height: 9px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.hot-fill { height: 100%; background: linear-gradient(90deg, #2F6BFF, #5B4BFF); border-radius: 5px; }
.hot-row .hv { width: 34px; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--text-2); }

/* ===== SOP 话术 ===== */
.sop-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.sop-tab { padding: 10px 15px; font-size: 13.5px; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.sop-tab:hover { color: var(--text); }
.sop-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

.script-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.script-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.script-head h4 { font-size: 14.5px; font-weight: 700; }
.script-en {
  font-size: 13.5px; line-height: 1.85; color: #1F2A44; background: #F7F9FD;
  border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; padding: 12px 14px;
  font-family: -apple-system, "Segoe UI", Helvetica, sans-serif; white-space: pre-wrap;
}
.script-note { font-size: 12.5px; color: var(--text-2); margin-top: 10px; display: flex; gap: 6px; }
.script-note b { color: var(--warn); }
.copy-btn { margin-left: auto; font-size: 12px; color: var(--primary); padding: 4px 10px; border-radius: 6px; background: var(--primary-soft); font-weight: 600; }
.copy-btn:hover { background: #DCE7FF; }

.check-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.check-item:last-child { border-bottom: none; }
.red-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.red-item:last-child { border-bottom: none; }
.red-item .x { color: var(--danger); font-weight: 700; flex-shrink: 0; }

.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.comp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.comp-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.comp-card ul { padding-left: 17px; }
.comp-card li { font-size: 12.5px; color: var(--text-2); margin-bottom: 5px; }

.drill-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px; margin-bottom: 12px; box-shadow: var(--shadow); }
.drill-q { font-size: 13.5px; font-weight: 600; }
.drill-a { font-size: 13px; color: var(--text-2); margin-top: 7px; padding: 9px 12px; background: var(--warn-soft); border-radius: 8px; border-left: 3px solid var(--warn); }

/* ===== 个人中心 ===== */
.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile-head .info h2 { font-size: 20px; font-weight: 700; }
.profile-head .info .meta { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.profile-head .info .tags { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }

/* ===== 弹窗 ===== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(23,32,58,.45); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--surface); border-radius: 16px; width: 100%; max-width: 640px;
  max-height: 86vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: rise .18s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.modal-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-head .m { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.modal-close { font-size: 20px; color: var(--text-3); line-height: 1; padding: 2px 6px; border-radius: 6px; }
.modal-close:hover { background: var(--surface-2); }
.modal-body { padding: 20px 22px 24px; }
.modal-body h5 { font-size: 13px; font-weight: 700; margin: 16px 0 8px; color: var(--text); }
.modal-body h5:first-child { margin-top: 0; }
.modal-body ul { padding-left: 18px; }
.modal-body li { font-size: 13px; color: var(--text-2); margin-bottom: 5px; }
.modal-body p { font-size: 13.5px; color: var(--text-2); }

/* Toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: #17203A; color: #fff; padding: 11px 20px; border-radius: 10px; font-size: 13.5px;
  z-index: 300; box-shadow: var(--shadow-lg); animation: rise .18s ease;
}

.empty { text-align: center; padding: 60px 20px; color: var(--text-3); font-size: 13.5px; }
.section-gap { margin-top: 18px; }
.muted { color: var(--text-3); font-size: 12.5px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mono { font-variant-numeric: tabular-nums; }

/* ===== 左侧侧边栏布局 ===== */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 222px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 14px 12px;
  display: flex; flex-direction: column; z-index: 70;
}
.sidebar .brand { padding: 4px 8px 14px; }
.side-group { font-size: 11px; color: var(--text-3); font-weight: 600; padding: 0 10px; margin: 12px 0 5px; letter-spacing: .5px; }
.side-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  font-size: 13.5px; color: var(--text-2); width: 100%; text-align: left; transition: .12s; font-weight: 500;
}
.side-item:hover { background: var(--surface-2); color: var(--text); }
.side-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.side-item .si { font-size: 15px; width: 20px; text-align: center; }
.hotdot { margin-left: auto; font-size: 10px; background: var(--danger-soft); color: var(--danger); padding: 2px 6px; border-radius: 5px; font-weight: 700; }
.sidebar-foot { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid var(--border-soft); font-size: 11px; color: var(--text-3); line-height: 1.7; }
.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.shell-main > * { min-width: 0; max-width: 100%; }
.shell-main > .page { width: 100%; }
.topbar-title { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.topbar-right { margin-left: auto; }
.hamburger { display: none; }
@media (max-width: 900px) {
  .sidebar { position: fixed; left: -236px; top: 0; transition: left .2s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { left: 0; }
  .hamburger { display: flex; }
}

/* ===== V1.1 新增模块 ===== */
.stage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .stage-grid { grid-template-columns: 1fr; } }
.article-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 8px;
  border-bottom: 1px solid var(--border-soft); cursor: pointer; transition: .12s;
}
.article-row:last-child { border-bottom: none; }
.article-row:hover { background: var(--surface-2); }
.article-row .ar-t { font-size: 14px; font-weight: 600; }
.article-row .ar-a { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.article-row .ar-r { margin-left: auto; text-align: right; font-size: 11.5px; color: var(--text-3); flex-shrink: 0; }
.folder {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; cursor: pointer; transition: .18s;
}
.folder:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #D3DEFF; }
.folder .f-ic {
  width: 52px; height: 42px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; margin-bottom: 12px; flex-shrink: 0;
}
.file-drop {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center;
  color: var(--text-3); font-size: 13px; background: var(--surface-2); cursor: pointer; transition: .15s; line-height: 1.9;
}
.file-drop:hover { border-color: var(--primary); color: var(--primary); }
.detail-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.detail-back:hover { color: var(--primary); }
.vs-block { border-radius: var(--radius-sm); padding: 12px 15px; font-size: 13px; line-height: 1.7; }
.vs-good { background: var(--success-soft); border-left: 3px solid var(--success); color: #0B6B4F; }
.vs-bad { background: var(--danger-soft); border-left: 3px solid var(--danger); color: #9E1E19; }

/* ===== 专题中心：博客式布局 ===== */
.topic-tabs {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  background: var(--surface); border: 1px solid var(--border); border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0; padding: 6px 12px 0;
}
.topic-tabs::-webkit-scrollbar { display: none; }
.topic-tab {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 12px 14px; font-size: 13.5px; color: var(--text-2);
  border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; transition: .15s;
}
.topic-tab:hover { color: var(--text); }
.topic-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.topic-tab .cnt {
  font-size: 10.5px; background: var(--surface-2); color: var(--text-3);
  padding: 1px 6px; border-radius: 999px; font-weight: 600;
}
.topic-tab.active .cnt { background: var(--primary-soft); color: var(--primary); }
.blog-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: 0 6px 6px;
}
.blog-item {
  display: flex; gap: 18px; align-items: flex-start; padding: 18px 16px;
  border-bottom: 1px solid var(--border-soft); cursor: pointer; transition: .12s;
}
.blog-item:last-child { border-bottom: none; }
.blog-item:hover { background: var(--surface-2); }
.blog-item:hover .blog-title { color: var(--primary); }
.blog-main { flex: 1; min-width: 0; }
.blog-title { font-size: 16px; font-weight: 700; line-height: 1.5; transition: .12s; }
.blog-abs {
  font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.blog-thumb {
  width: 104px; height: 74px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff;
}
@media (max-width: 720px) { .blog-thumb { display: none; } }
.blog-featured {
  display: flex; gap: 22px; align-items: center; padding: 20px 16px;
  background: linear-gradient(120deg, #F5F8FF, #FFFFFF); border-bottom: 1px solid var(--border-soft);
  cursor: pointer; transition: .12s;
}
.blog-featured:hover { background: #F0F5FF; }
.blog-featured:hover .blog-title { color: var(--primary); }

/* 文章详情（弹窗阅读模式） */
.modal.reading { max-width: 780px; }
.article-body { font-size: 14.5px; line-height: 1.95; color: #1F2A44; }
.article-body p { margin-bottom: 16px; }
.article-note {
  font-size: 12.5px; color: var(--text-3); background: var(--surface-2);
  border-radius: 8px; padding: 10px 12px; margin-top: 12px; line-height: 1.7;
}
.article-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border-soft);
}
.article-foot .btn:last-child { margin-left: auto; }

/* ===== 文章阅读页 ===== */
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 1080px) { .art-layout { grid-template-columns: 1fr; } }
.art-card { padding: 30px 34px 26px; }
@media (max-width: 720px) { .art-card { padding: 20px 18px; } }
.art-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.art-title { font-size: 27px; line-height: 1.42; font-weight: 700; letter-spacing: -.4px; }
@media (max-width: 720px) { .art-title { font-size: 22px; } }
.art-meta {
  display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3);
  margin-top: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft);
}
.art-lead {
  background: var(--surface-2); border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0;
  padding: 13px 16px; font-size: 14px; line-height: 1.8; color: var(--text-2); margin: 18px 0 22px;
}
.art-body { font-size: 15px; line-height: 2.05; color: #243049; }
.art-body p { margin-bottom: 17px; }
.art-body h3 {
  font-size: 16.5px; font-weight: 700; margin: 26px 0 12px; padding-left: 11px;
  border-left: 3px solid var(--primary); line-height: 1.5;
}
.art-author {
  display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.art-author .an { font-size: 13.5px; font-weight: 700; }
.art-author .ar { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.art-side .card { padding: 16px; }
.use-item { display: flex; gap: 9px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 11px; }
.use-item:last-child { margin-bottom: 0; }
.ui-n {
  width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft); color: var(--primary);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.rel-item { display: block; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.rel-item:last-child { border-bottom: none; }
.rel-item:hover .rel-t { color: var(--primary); }
.rel-t { font-size: 13px; font-weight: 600; line-height: 1.55; transition: .12s; }
.rel-m { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

/* ===== 启动态 ===== */
.boot-screen {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.boot-ring {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--primary-soft); border-top-color: var(--primary);
  animation: boot-spin .8s linear infinite;
}
@keyframes boot-spin { to { transform: rotate(360deg); } }
.boot-txt { font-size: 13.5px; color: var(--text-2); }

/* ===== 钉钉通讯录树（后台 /admin/org） ===== */
.org-tree { max-height: 520px; overflow: auto; padding-right: 4px; margin-top: 4px; }
.org-ul { list-style: none; margin: 0; padding: 0; }
.org-tree > .org-ul > .org-li > .org-ul,
.org-li > .org-ul { padding-left: 15px; border-left: 1px dashed var(--border-soft); margin-left: 9px; }
.org-li { margin: 1px 0; border-radius: 7px; }
.org-row {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 7px; border-radius: 7px; cursor: pointer; transition: .13s;
}
.org-row:hover { background: var(--surface-2); }
.org-row input[type="checkbox"] { width: 14px; height: 14px; flex-shrink: 0; cursor: pointer; accent-color: var(--primary); }
.org-row > a {
  display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0;
  text-decoration: none; color: inherit;
}
.org-name { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-num { margin-left: auto; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
