/* 灯塔精读 · style.css —— 深蓝/靛青主色，简单大方 */
:root {
  --bg: #f4f5f8;
  --panel: #ffffff;
  --primary: #3a4fc9;
  --primary-hover: #2f3fae;
  --primary-weak: #eef0fb;
  --logo: #152238;
  --text: #1f2329;
  --text-2: #5b6472;
  --text-3: #98a1b3;
  --border: #e6e8ef;
  --danger: #d64545;
  --green: #2f7d5c;
  --amber: #b97a1f;
  --hl-sent: #fdeec9;
  --hl-word: #ffd9d0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .05);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, .05);
  --font: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", SimSun, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font: 14px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
}
#app { min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
button { font-family: var(--font); }
svg { display: block; }

/* ============ 通用组件 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border: none; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: opacity .15s;
}
.btn:hover { background: var(--primary-hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--primary-weak); color: var(--primary); }
.btn.ghost:hover { background: #e2e6f8; }
.btn.plain { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn.plain:hover { background: #f0f1f5; }
.btn.danger { background: #fbeaea; color: var(--danger); }
.btn.danger:hover { background: #f6dcdc; }
.btn.small { padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }
.btn.wide { width: 100%; }
.btn.green { background: var(--green); }
.btn.green:hover { background: #256449; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; background: var(--primary-weak);
  color: var(--primary); font-size: 13px; font-weight: 500; cursor: pointer; border: none;
}
.pill:hover { background: #e2e6f8; }
.pill.plain { background: var(--panel); color: var(--text-2); border: 1px solid var(--border); }

.card {
  background: var(--panel); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); border: 1px solid rgba(230, 232, 239, .7);
}

.input, textarea.input, select.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--text);
  background: #fff; outline: none; font-family: var(--font);
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(58, 79, 201, .12); }
textarea.input { resize: vertical; line-height: 1.7; }
.field { margin-bottom: 16px; }
.field > label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.field .help { margin-top: 5px; font-size: 12px; color: var(--text-3); line-height: 1.5; }

.tag {
  display: inline-block; padding: 2px 10px; border-radius: 6px;
  background: var(--primary-weak); color: var(--primary); font-size: 12px;
}

/* 弹窗：右上 ✕ + 底部一个主按钮 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal {
  background: #fff; border-radius: 18px; padding: 26px 28px;
  width: 460px; max-width: 92vw; max-height: 88vh; overflow: auto;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .25); position: relative;
}
.modal.wide { width: 620px; }
.modal-close {
  position: absolute; top: 16px; right: 18px; width: 30px; height: 30px;
  border: none; background: transparent; cursor: pointer; color: var(--text-3);
  font-size: 20px; line-height: 1; border-radius: 8px;
}
.modal-close:hover { background: #f0f1f5; color: var(--text); }
.modal h3 { margin: 0 0 6px; font-size: 18px; }
.modal .modal-sub { color: var(--text-3); font-size: 12.5px; margin: 0 0 18px; }
.modal .modal-foot { margin-top: 22px; display: flex; justify-content: flex-end; gap: 10px; }

#toast-box { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 200; }
.toast {
  background: #1f2937; color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 13.5px; margin-bottom: 10px; box-shadow: var(--shadow);
  animation: toast-in .2s ease;
}
.toast.ok { background: var(--green); }
.toast.err { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.spinner {
  width: 22px; height: 22px; border: 3px solid var(--primary-weak);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 登录页（左品牌区 + 右登录卡） ============ */
.login-page { min-height: 100vh; display: flex; background: var(--bg); }
.login-brand {
  width: 44%; min-height: 100vh; position: relative; overflow: hidden;
  background: linear-gradient(155deg, #152238 0%, #22345e 55%, #31408c 100%);
  color: #fff; padding: 52px 56px; display: flex; flex-direction: column;
}
.login-deco { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.login-deco.d1 { width: 340px; height: 340px; right: -120px; top: -110px; }
.login-deco.d2 { width: 220px; height: 220px; left: -80px; bottom: -70px; background: rgba(124, 132, 255, .14); }
.login-tagline {
  font-size: 30px; font-weight: 700; line-height: 1.55;
  margin: 72px 0 10px; letter-spacing: 1px; position: relative;
}
.login-feats { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.login-feats .feat {
  display: flex; gap: 13px; align-items: center;
  font-size: 13px; color: rgba(255, 255, 255, .82); line-height: 1.65;
}
.login-feats .feat b { color: #fff; font-size: 14px; }
.login-feats .feat span { color: rgba(255, 255, 255, .58); font-size: 12px; }
.login-feats .fi {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: center;
}
.login-brand-foot { margin-top: auto; color: rgba(255, 255, 255, .5); font-size: 12px; position: relative; }
.login-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px; }
.login-card {
  width: 380px; background: #fff; border-radius: 18px; padding: 42px 38px;
  box-shadow: var(--shadow);
}
.login-card h1 { margin: 0 0 6px; font-size: 22px; }
.login-card .sub { color: var(--text-3); font-size: 13px; margin: 0 0 26px; }
.login-version { margin-top: 22px; color: var(--text-3); font-size: 12px; text-align: center; }
.login-links { margin-top: 12px; font-size: 12.5px; text-align: center; }
.login-links a { color: var(--text-3); }
.login-links a:hover { color: var(--primary); }
@media (max-width: 920px) {
  .login-page { flex-direction: column; }
  .login-brand { width: auto; min-height: auto; padding: 34px 28px; }
  .login-tagline { font-size: 22px; margin: 30px 0 8px; }
  .login-feats { display: none; }
  .login-brand-foot { margin-top: 22px; }
  .login-card { width: 100%; max-width: 420px; }
}

/* ============ 布局与侧栏 ============ */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; flex: none; background: var(--panel); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 14px 12px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; gap: 11px; align-items: center; padding: 4px 8px 18px; }
.logo-tile {
  width: 42px; height: 42px; border-radius: 11px; background: var(--logo);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.brand-sub { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }

.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius-sm); color: var(--text-2); cursor: pointer;
  font-size: 14px; margin-bottom: 2px; border: none; background: none; width: 100%;
  text-align: left;
}
.nav-item:hover { background: #f2f3f7; }
.nav-item.active { background: var(--primary-weak); color: var(--primary); font-weight: 600; }
.nav-item .count {
  margin-left: auto; min-width: 22px; text-align: center; padding: 1px 7px;
  background: #eef0f4; border-radius: 999px; font-size: 11.5px; color: var(--text-3);
}
.nav-item.active .count { background: #dde2f7; color: var(--primary); }

.side-section {
  display: flex; align-items: center; justify-content: space-between;
  margin: 20px 8px 8px; font-size: 12.5px; color: var(--text-3); font-weight: 600;
}
.side-empty { padding: 8px 12px; color: var(--text-3); font-size: 12.5px; line-height: 1.8; }

.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--primary-weak);
  color: var(--primary); font-weight: 700; display: flex; align-items: center;
  justify-content: center; overflow: hidden; flex: none; font-size: 15px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-user-name { font-size: 13.5px; font-weight: 600; }
.side-user-ver { font-size: 11px; color: var(--text-3); }
.side-user-links { margin-left: auto; display: flex; gap: 10px; }
.side-user-links a { color: var(--text-3); font-size: 12px; }
.side-user-links a:hover { color: var(--primary); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page { padding: 26px 32px 40px; max-width: 1180px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.page-head h1 { font-size: 21px; margin: 0; }
.page-head .spacer { flex: 1; }
.page-meta { color: var(--text-3); font-size: 12.5px; }

/* ============ 统计卡（首页横排） ============ */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card {
  border-radius: var(--radius); padding: 18px 20px; background: var(--panel);
  box-shadow: var(--shadow-soft); border: 1px solid rgba(230, 232, 239, .7);
  position: relative; overflow: hidden; min-height: 108px;
}
.stat-card .deco {
  position: absolute; right: -22px; top: -22px; width: 86px; height: 86px;
  border-radius: 50%; background: rgba(58, 79, 201, .06);
}
.stat-card.hot { background: linear-gradient(135deg, #3a4fc9, #4b3fd0); color: #fff; border: none; }
.stat-card.hot .deco { background: rgba(255, 255, 255, .1); }
.stat-card.hot .stat-label, .stat-card.hot .stat-sub { color: rgba(255, 255, 255, .72); }
.stat-label { font-size: 12.5px; color: var(--text-3); }
.stat-num { font-size: 30px; font-weight: 700; line-height: 1.25; margin: 2px 0; }
.stat-sub { font-size: 11.5px; color: var(--text-3); }
.stat-bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .25); margin: 8px 0 6px; }
.stat-bar > i { display: block; height: 100%; border-radius: 999px; background: rgba(255, 255, 255, .9); }
.stat-bar.dark { background: #e8eaf2; }
.stat-bar.dark > i { background: var(--primary); }

/* ============ 文章集卡片 ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.col-card {
  padding: 18px 20px; cursor: pointer; transition: box-shadow .15s, transform .15s;
}
.col-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.col-card .col-name { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.col-card .col-desc {
  color: var(--text-3); font-size: 12.5px; min-height: 20px; margin-bottom: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.col-card .col-meta { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12px; }
.mini-bar { height: 5px; background: #e8eaf2; border-radius: 999px; margin: 10px 0 8px; }
.mini-bar > i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.col-card.add {
  border: 1.5px dashed var(--border); background: transparent; box-shadow: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-3); font-size: 14px; min-height: 128px;
}
.col-card.add:hover { border-color: var(--primary); color: var(--primary); }

/* ============ 文章列表 ============ */
.art-list { display: flex; flex-direction: column; gap: 10px; }
.art-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
}
.art-row:hover { box-shadow: var(--shadow); }
.pie { width: 28px; height: 28px; border-radius: 50%; flex: none; position: relative; }
.pie i {
  position: absolute; inset: 5px; border-radius: 50%;
  background: var(--panel);
}
.art-main { flex: 1; min-width: 0; }
.art-title {
  font-size: 14.5px; font-weight: 600; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.art-sub { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.art-pct {
  font-size: 13px; color: var(--primary); font-weight: 700;
  min-width: 44px; text-align: right;
}
.art-actions { display: flex; gap: 8px; align-items: center; }
.sorting .art-row { cursor: grab; }
.art-row.drag-over { outline: 2px dashed var(--primary); outline-offset: -2px; }

.menu-wrap { position: relative; }
.dots-btn {
  width: 30px; height: 30px; border: none; border-radius: 8px; background: transparent;
  cursor: pointer; color: var(--text-3); font-size: 17px; line-height: 1;
}
.dots-btn:hover { background: #f0f1f5; color: var(--text); }
.menu-pop {
  position: absolute; right: 0; top: 34px; background: #fff; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .16); border: 1px solid var(--border);
  min-width: 148px; z-index: 30; padding: 6px;
}
.menu-pop button {
  display: block; width: 100%; text-align: left; border: none; background: none;
  padding: 8px 12px; font-size: 13px; color: var(--text); cursor: pointer; border-radius: 7px;
}
.menu-pop button:hover { background: #f2f3f7; }
.menu-pop button.danger { color: var(--danger); }

/* ============ 复习页 ============ */
.review-layout { display: flex; gap: 22px; align-items: flex-start; }
.review-notes {
  width: 300px; flex: none; position: sticky; top: 22px;
  padding: 18px; max-height: calc(100vh - 60px); display: flex; flex-direction: column;
}
.review-notes h3, .notes-panel h3 { margin: 0 0 4px; font-size: 14.5px; }
.note-hint { color: var(--text-3); font-size: 11.5px; margin-bottom: 10px; }
.note-area {
  width: 100%; flex: 1; min-height: 320px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px; font-size: 13.5px; line-height: 1.8;
  resize: none; outline: none; font-family: var(--font);
}
.note-area:focus { border-color: var(--primary); }
.note-saved { margin-top: 8px; font-size: 11.5px; color: var(--text-3); min-height: 16px; }

.review-main { flex: 1; min-width: 0; padding: 24px 28px 60px; }
.article-title { font-size: 23px; margin: 0 0 6px; font-family: var(--serif); }
.review-bar {
  display: flex; gap: 10px; align-items: center; margin: 14px 0 22px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.review-bar .spacer { flex: 1; }
.para-block { margin-bottom: 26px; }
.para-en {
  font-family: var(--serif); font-size: 18px; line-height: 2.0; color: #23262b;
}
.para-zh {
  margin-top: 10px; padding: 10px 16px; background: #f6f5f2; border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0; color: #6b6257; font-size: 14px; line-height: 1.9;
}

/* 高亮 */
.hl-sent { background: var(--hl-sent); border-radius: 3px; padding: 1px 0; }
.hl-word { background: var(--hl-word); border-radius: 3px; padding: 1px 0; }

/* ============ 精读页 ============ */
.read-layout { display: flex; height: 100vh; overflow: hidden; }
.ai-panel {
  width: 330px; flex: none; background: var(--panel); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.ai-head { padding: 16px 16px 10px; border-bottom: 1px solid var(--border); }
.ai-title-row { display: flex; align-items: center; gap: 8px; }
.ai-badge {
  margin-left: auto; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c5cff);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.seg { display: flex; background: #f2f3f7; border-radius: 9px; padding: 3px; margin-top: 12px; }
.seg button {
  flex: 1; border: none; background: none; padding: 6px 4px; border-radius: 7px;
  font-size: 12px; color: var(--text-2); cursor: pointer;
}
.seg button.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: var(--shadow-soft); }

.ai-body { flex: 1; overflow-y: auto; padding: 16px; }
.ai-foot { border-top: 1px solid var(--border); padding: 12px 16px; }
.ai-input-row { display: flex; gap: 8px; }
.ai-input-row .input { flex: 1; padding: 8px 12px; }

.msg { margin-bottom: 16px; }
.msg-user {
  background: var(--primary-weak); color: var(--primary); border-radius: 10px;
  padding: 9px 13px; font-size: 12.5px; display: inline-block; max-width: 100%;
}
.msg-ai { background: #fafafb; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.msg-time { color: var(--text-3); font-size: 11px; margin-top: 5px; }

/* 语法讲解卡（图二结构） */
.g-card { background: #f7f5f2; border-radius: 12px; padding: 14px 16px; margin-top: 10px; }
.g-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.g-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
}
.g-label { font-size: 13px; font-weight: 700; }
.g-quote {
  font-family: var(--serif); font-style: italic; color: #4a4238; font-size: 13.5px;
  line-height: 1.8; margin: 6px 0 8px;
}
.g-conf { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.g-conf .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.g-conf .remark { margin-left: auto; }
.g-item {
  display: flex; gap: 10px; padding: 9px 10px; background: #fff; border-radius: 9px; margin-top: 8px;
}
.g-item .n {
  width: 20px; height: 20px; border-radius: 50%; background: var(--primary-weak);
  color: var(--primary); font-size: 11px; display: flex; align-items: center;
  justify-content: center; flex: none; margin-top: 2px;
}
.g-item .lbl { font-size: 11.5px; color: var(--text-3); }
.g-item .ct { font-size: 13px; font-weight: 600; }
.g-item .nt { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }

/* 单词讲解卡（图三结构） */
.w-title-label { color: var(--amber); font-size: 12px; font-weight: 600; }
.w-word {
  font-family: var(--serif); font-size: 34px; font-weight: 700; margin: 4px 0 2px;
  display: flex; align-items: center; gap: 10px;
}
.w-phon { color: var(--text-3); font-family: var(--serif); font-size: 15px; }
.w-phon b { color: var(--amber); font-family: var(--font); margin-left: 8px; }
.w-meaning { font-size: 16px; font-weight: 700; margin: 12px 0 14px; }
.w-sep { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.w-entry-meaning { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.w-entry-meaning .pos { color: var(--amber); margin-right: 10px; }
.w-explain { color: var(--text-2); font-size: 13.5px; line-height: 1.9; }
.w-example {
  background: #f7f5f2; border-radius: 10px; padding: 13px 16px; margin: 12px 0;
}
.w-example .en { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.8; }
.w-example .zh { color: var(--text-3); font-size: 13px; margin-top: 5px; }
.w-colloc-title { font-size: 14px; font-weight: 700; margin: 16px 0 10px; }
.w-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.w-chip {
  background: #f2f0eb; border-radius: 8px; padding: 7px 12px; font-size: 12.5px; color: #4a4238;
}
.icon-btn {
  width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary-weak); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.icon-btn:hover { background: #dde2f7; }
.icon-btn.plain { background: #f2f3f7; color: var(--text-2); }
.icon-btn.plain:hover { background: #e7e9f0; }
.icon-btn.active { background: var(--primary); color: #fff; }

/* 记录 / 历史列表 */
.rec-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer;
}
.rec-item:hover { border-color: var(--primary); }
.rec-item .rec-main { flex: 1; min-width: 0; }
.rec-item .rec-t { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-item .rec-s { font-size: 11px; color: var(--text-3); }
.panel-toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.panel-empty { color: var(--text-3); font-size: 12.5px; text-align: center; padding: 30px 0; }

/* 精读中间栏 */
.read-main { flex: 1; min-width: 0; overflow-y: auto; background: var(--bg); position: relative; }
.read-inner { max-width: 720px; margin: 0 auto; padding: 30px 28px 80px; }
.read-top { display: flex; align-items: center; margin-bottom: 6px; }
.chapter-tag {
  color: var(--primary); font-size: 11.5px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
}
.read-top .spacer { flex: 1; }
.read-title { font-family: var(--serif); font-size: 30px; margin: 6px 0 22px; line-height: 1.4; }
.para-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 34px; position: relative; margin-bottom: 22px;
}
.sent-block { padding: 6px 0; }
.sent-text {
  font-family: var(--serif); font-size: 20px; line-height: 2.1; color: #23262b;
}
.sent-text .w {
  cursor: pointer; border-radius: 3px; padding: 1px 0;
}
.sent-text .w:hover { background: var(--primary-weak); color: var(--primary); }
.sent-actions {
  display: flex; gap: 8px; margin-top: 6px; opacity: 0; transition: opacity .15s;
}
.sent-block:hover .sent-actions { opacity: 1; }
.sent-zh {
  margin: 8px 0 2px; padding: 9px 15px; background: #f6f5f2; border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0; color: #6b6257; font-size: 14px; line-height: 1.85;
}
.para-nav { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.para-nav .spacer { flex: 1; }
.para-progress { color: var(--text-3); font-size: 12px; }

/* ============ 设置页 ============ */
.set-grid { display: flex; flex-direction: column; gap: 16px; }
.set-card { padding: 22px 24px; }
.set-card h3 { margin: 0 0 4px; font-size: 15.5px; }
.set-card .set-sub { color: var(--text-3); font-size: 12px; margin: 0 0 18px; }
.set-row { display: flex; gap: 12px; flex-wrap: wrap; }
.set-row .field { flex: 1; min-width: 210px; margin-bottom: 12px; }
.set-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.set-foot .spacer { flex: 1; }
.test-result { font-size: 12.5px; }
.test-result.ok { color: var(--green); }
.test-result.err { color: var(--danger); }
.switch-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.switch-row input { width: 17px; height: 17px; accent-color: var(--primary); }

/* ============ markdown 内容 ============ */
.md { font-size: 13.5px; line-height: 1.85; color: var(--text); }
.md > *:first-child { margin-top: 0; }
.md > *:last-child { margin-bottom: 0; }
.md p { margin: 8px 0; }
.md h1, .md h2, .md h3, .md h4 { margin: 14px 0 8px; font-size: 15px; }
.md ul, .md ol { margin: 8px 0; padding-left: 20px; }
.md li { margin: 3px 0; }
.md code {
  background: #f2f3f7; border-radius: 5px; padding: 1.5px 6px;
  font-size: 12.5px; font-family: Consolas, monospace;
}
.md pre {
  background: #f7f8fa; border: 1px solid var(--border); border-radius: 9px;
  padding: 12px 14px; overflow-x: auto;
}
.md pre code { background: none; padding: 0; }
.md blockquote {
  border-left: 3px solid var(--primary-weak); margin: 8px 0; padding: 2px 14px; color: var(--text-2);
}
.md table { border-collapse: collapse; margin: 10px 0; width: 100%; }
.md th, .md td { border: 1px solid var(--border); padding: 6px 10px; font-size: 12.5px; }
.md th { background: #f7f8fa; }
.md a { color: var(--primary); }
.md hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }

/* 空状态 */
.empty {
  text-align: center; padding: 70px 20px;
}
.empty .empty-icon {
  width: 74px; height: 74px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.empty h2 { font-size: 17px; margin: 0 0 8px; }
.empty p { color: var(--text-3); font-size: 13px; margin: 0 0 20px; }

/* 响应式兜底 */
@media (max-width: 1100px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .sidebar { width: 210px; }
}
