/* ============================================================
   薄荷内容工作台 · 样式系统
   视觉规范：奶油背景 / 深色侧边导航 / 低饱和粉黄蓝绿 / 大圆角 / 无 emoji
   ============================================================ */

:root {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --surface-2: #FAFAF8;
  --text: #202124;
  --text-2: #6F7277;
  --text-3: #9AA0A6;
  --border: #E6E7E4;
  --border-2: #DDDFDA;
  --accent: #2F6B57;
  --accent-dark: #265746;
  --accent-soft: rgba(47, 107, 87, 0.08);
  --accent-soft-2: rgba(47, 107, 87, 0.14);
  --yellow: #F4D85A;
  --pink: #E9A8CF;
  --blue: #AFC9EA;
  --green: #B8CB9A;
  --yellow-soft: rgba(244, 216, 90, 0.22);
  --pink-soft: rgba(233, 168, 207, 0.20);
  --blue-soft: rgba(175, 201, 234, 0.22);
  --green-soft: rgba(184, 203, 154, 0.24);
  --danger: #B3413B;
  --danger-soft: rgba(179, 65, 59, 0.08);
  --warn: #9A7B1E;
  --warn-soft: rgba(154, 123, 30, 0.10);
  --nav-bg: #24262A;
  --nav-text: #C9CCD1;
  --nav-active: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(32, 33, 36, 0.04), 0 4px 16px rgba(32, 33, 36, 0.06);
  --shadow-pop: 0 4px 12px rgba(32, 33, 36, 0.10), 0 12px 40px rgba(32, 33, 36, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  min-height: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button { cursor: pointer; border: none; background: none; }
a { color: var(--accent); text-decoration: none; }

::selection { background: var(--accent-soft-2); }

/* ---------- 滚动条（桌面） ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #D9DAD6; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   通用布局
   ============================================================ */

.app { display: flex; min-height: 100vh; }

.main {
  flex: 1;
  min-width: 0;
  margin-left: 232px;
  display: flex;
  flex-direction: column;
}

.content {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 36px 64px;
}

/* ---------- 页头 ---------- */
.page-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
}
.page-head .titles { flex: 1; min-width: 0; }
.page-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-sub { color: var(--text-2); font-size: 13.5px; margin-top: 3px; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card + .card { margin-top: 14px; }
.card-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .ic { color: var(--accent); }
.card-desc { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head .card-title { margin-bottom: 0; }
.card-head .spacer { flex: 1; }

/* ---------- 按钮：每个区域一个主按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  min-height: 40px;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s, transform 0.05s;
  user-select: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-soft:hover { background: var(--accent-soft-2); }
.btn-danger-ghost { background: var(--surface); color: var(--danger); border: 1px solid var(--border-2); }
.btn-danger-ghost:hover { border-color: var(--danger); }
.btn-sm { padding: 5px 12px; min-height: 32px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- 图标 ---------- */
.ic { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
.ic-lg { width: 22px; height: 22px; }
.ic-sm { width: 15px; height: 15px; vertical-align: -2px; }

/* ---------- 标签 / chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.chip-green { background: var(--green-soft); color: #4F6B3A; border-color: transparent; }
.chip-yellow { background: var(--yellow-soft); color: #8A6F14; border-color: transparent; }
.chip-pink { background: var(--pink-soft); color: #A05486; border-color: transparent; }
.chip-blue { background: var(--blue-soft); color: #4A6C9E; border-color: transparent; }
.chip-gray { background: #F0F1EE; color: var(--text-2); border-color: transparent; }
.chip-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }

/* ---------- 帮助问号（悬浮 + 点击） ---------- */
.help-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--text-3);
  flex-shrink: 0;
  cursor: pointer;
}
.help-dot:hover { color: var(--accent); background: var(--accent-soft); }
.help-dot .ic { width: 16px; height: 16px; }

@media (hover: hover) {
  .help-dot::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 8px);
    background: #2E3033;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 8px;
    width: 300px;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s;
    z-index: 300;
    box-shadow: var(--shadow-pop);
    white-space: normal;
  }
  .help-dot:hover::after { opacity: 1; }
  .help-dot.tip-left::after { left: auto; right: -6px; transform: none; }
}

/* ============================================================
   侧边导航（桌面）
   ============================================================ */

.sidenav {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 232px;
  background: var(--nav-bg);
  display: flex;
  flex-direction: column;
  z-index: 100;
  padding: 20px 14px calc(16px + env(safe-area-inset-bottom));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 18px;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark .ic { width: 19px; height: 19px; color: #fff; }
.brand-name { color: #fff; font-size: 15.5px; font-weight: 700; letter-spacing: 0.3px; line-height: 1.3; }
.brand-sub { color: #8A8F97; font-size: 11px; line-height: 1.3; }

.nav-group-label {
  color: #7A7F87;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 14px 12px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--nav-text);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  position: relative;
  text-align: left;
  min-height: 42px;
}
.nav-item .ic { width: 18px; height: 18px; color: #8A8F97; transition: color 0.15s; }
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item:hover .ic { color: #C9CCD1; }
.nav-item.active { background: rgba(255,255,255,0.12); color: var(--nav-active); font-weight: 600; }
.nav-item.active .ic { color: #7FC0A8; }
.nav-item .nav-badge {
  position: absolute;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-item .nav-badge.warn { background: #C77F2B; }
.nav-foot {
  margin-top: auto;
  padding: 12px 12px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #7A7F87;
  font-size: 11.5px;
  line-height: 1.6;
}

/* ============================================================
   手机端布局（< 860px）
   ============================================================ */

.mobile-top {
  display: none;
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}
.mobile-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.mobile-title { font-size: 17px; font-weight: 700; flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.mobile-top .btn { min-height: 40px; }

.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: rgba(36, 38, 42, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 640px;
  margin: 0 auto;
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  padding: 7px 2px 6px;
  color: #9BA0A8;
  position: relative;
}
.bn-item .ic { width: 22px; height: 22px; }
.bn-item span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2px; }
.bn-item.active { color: #7FC0A8; }
.bn-item .bn-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #C77F2B;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 859px) {
  .sidenav { display: none; }
  .mobile-top { display: block; }
  .bottom-nav { display: block; }
  .main { margin-left: 0; }
  .content {
    padding: 16px 16px calc(76px + env(safe-area-inset-bottom));
    max-width: 100%;
  }
  .page-head { margin-bottom: 16px; }
  .page-title { font-size: 19px; }
  .head-actions .btn { min-height: 44px; }
  .page-head { flex-wrap: wrap; }
  .head-actions { width: 100%; }
  .head-actions .btn-primary { flex: 1; }
  .card { padding: 16px; border-radius: var(--radius); }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 38px; }
}

/* ============================================================
   今日页
   ============================================================ */

.today-hero {
  background: linear-gradient(0deg, var(--surface), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.today-hero .hello { flex: 1; min-width: 220px; }
.today-hero .hi { font-size: 22px; font-weight: 700; }
.today-hero .date { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.today-hero .summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  min-width: 96px;
  text-align: center;
}
.hero-stat b { font-size: 20px; font-weight: 700; display: block; }
.hero-stat span { font-size: 12px; color: var(--text-2); }

.section-label {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label .count {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0 8px;
  border-radius: 99px;
}
.section-label .ic { color: var(--accent); }

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  margin-bottom: 8px;
}
.todo-item.overdue { border-left: 3px solid var(--danger); }
.todo-check {
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 2px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  color: transparent;
}
.todo-check:hover { border-color: var(--accent); }
.todo-check.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.todo-check .ic { width: 13px; height: 13px; }
.todo-body { flex: 1; min-width: 0; }
.todo-title { font-size: 14.5px; font-weight: 600; }
.todo-title.done { text-decoration: line-through; color: var(--text-3); }
.todo-meta { font-size: 12px; color: var(--text-2); margin-top: 1px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.todo-item .btn-sm { flex-shrink: 0; }

.alert-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
  padding: 13px 16px;
  margin-bottom: 8px;
}
.alert-item.danger { border-left-color: var(--danger); }
.alert-item .ic { color: var(--warn); margin-top: 2px; }
.alert-item.danger .ic { color: var(--danger); }
.alert-item .t { font-size: 14px; font-weight: 600; }
.alert-item .d { font-size: 12.5px; color: var(--text-2); margin-top: 1px; }

.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.resume-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
.resume-card:hover { border-color: var(--accent); }
.resume-card:active { transform: scale(0.99); }
.resume-ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.resume-ic .ic { width: 18px; height: 18px; }
.resume-body { flex: 1; min-width: 0; }
.resume-t { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-d { font-size: 12px; color: var(--text-2); margin-top: 1px; }

/* ============================================================
   通用列表 / 空状态
   ============================================================ */

.empty {
  text-align: center;
  padding: 44px 20px;
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
}
.empty .empty-ic {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.empty .empty-ic .ic { width: 24px; height: 24px; }
.empty h3 { font-size: 15.5px; font-weight: 700; }
.empty p { color: var(--text-2); font-size: 13.5px; margin: 6px 0 16px; max-width: 420px; margin-left: auto; margin-right: auto; }
.empty .steps { text-align: left; max-width: 380px; margin: 0 auto 16px; }
.empty .steps li { color: var(--text-2); font-size: 13px; margin: 4px 0 4px 18px; }

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-label .req { color: var(--danger); }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  min-height: 42px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--text);
}
.textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 859px) { .form-grid-2 { grid-template-columns: 1fr; gap: 0; } }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.form-actions .btn { flex: 1; }
@media (min-width: 860px) { .form-actions .btn { flex: 0 0 auto; min-width: 110px; } }

/* ============================================================
   账号增长
   ============================================================ */

.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 859px) { .acct-grid { grid-template-columns: 1fr; } }
.acct-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.acct-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.acct-logo .ic { width: 21px; height: 21px; }
.acct-body { flex: 1; min-width: 0; }
.acct-name { font-size: 15px; font-weight: 700; }
.acct-handle { font-size: 12.5px; color: var(--text-2); }
.acct-followers { text-align: right; flex-shrink: 0; }
.acct-followers b { font-size: 19px; font-weight: 700; display: block; }
.acct-followers span { font-size: 11.5px; color: var(--text-2); }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 859px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }
.metric-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.metric-box .k { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 5px; }
.metric-box .v { font-size: 22px; font-weight: 700; margin-top: 4px; letter-spacing: -0.3px; }
.metric-box .s { font-size: 12px; margin-top: 2px; color: var(--text-2); }
.metric-box .s.up { color: var(--accent); }
.metric-box .s.down { color: var(--danger); }

.chart-wrap { margin-top: 6px; }
.chart-svg { width: 100%; height: 220px; display: block; }
@media (max-width: 859px) { .chart-svg { height: 170px; } }
.chart-legend { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.chart-legend span { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.diag-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.diag-item:first-of-type { border-top: none; padding-top: 2px; }
.diag-ic {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.diag-ic .ic { width: 17px; height: 17px; }
.diag-t { font-size: 14px; font-weight: 600; }
.diag-d { font-size: 12.5px; color: var(--text-2); margin-top: 2px; line-height: 1.55; }

/* ---------- 历史数据表 ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
  text-align: left;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table .num { font-variant-numeric: tabular-nums; }
@media (max-width: 859px) {
  .table-scroll { display: none; }
  .mobile-list-view { display: block; }
}
@media (min-width: 860px) { .mobile-list-view { display: none; } }

.mlv-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 13px;
}
.mlv-row { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.mlv-row .k { color: var(--text-2); }
.mlv-row .v { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============================================================
   看板（选题库 / 内容工作台）
   ============================================================ */

.board {
  display: grid;
  gap: 12px;
}
.board-4 { grid-template-columns: repeat(4, 1fr); }
.board-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .board-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 859px) { .board, .board-4, .board-5 { grid-template-columns: 1fr; } }

.board-col {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  min-width: 0;
}
.board-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 10px;
}
.board-col-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.board-col-head .t { font-size: 13.5px; font-weight: 700; flex: 1; }
.board-col-head .n {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0 7px;
}
.board-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 13px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.board-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.board-card .bc-title {
  font-size: 13.8px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board-card .bc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.board-card .bc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.board-card .bc-date { font-size: 11.5px; color: var(--text-3); }
.board-empty {
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
  padding: 18px 8px;
  border: 1px dashed var(--border-2);
  border-radius: 10px;
}

.stage-bar { display: flex; gap: 3px; margin-top: 8px; }
.stage-bar i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}
.stage-bar i.on { background: var(--accent); }

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

/* 手机端阶段筛选 chips */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.fchip {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}
.fchip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.fchip .n { font-size: 11px; opacity: 0.75; margin-left: 3px; }

/* ============================================================
   学习计划
   ============================================================ */

.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 859px) { .course-grid { grid-template-columns: 1fr; } }
.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.course-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.course-card.english::before { background: var(--pink); }
.course-card.ai::before { background: var(--blue); }
.course-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.course-icon .ic { width: 21px; height: 21px; }
.course-name { font-size: 17px; font-weight: 700; }
.course-goal { color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.course-progress { margin-top: 16px; }
.progress-track {
  height: 8px;
  border-radius: 4px;
  background: #EDEEEA;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  transition: width 0.4s;
}
.course-stats { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.course-stats .cs { font-size: 12px; color: var(--text-2); }
.course-stats .cs b { font-size: 15px; color: var(--text); font-weight: 700; margin-right: 3px; }

.stage-timeline { position: relative; padding-left: 24px; margin-top: 8px; }
.stage-timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border-2);
  border-radius: 1px;
}
.stage-item { position: relative; padding: 8px 0; }
.stage-item::before {
  content: "";
  position: absolute;
  left: -24px; top: 14px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--border-2);
}
.stage-item.done::before { background: var(--accent); border-color: var(--accent); }
.stage-item.current::before { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.stage-item .st-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stage-item .st-desc { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.stage-item.current .st-name::after {
  content: "进行中";
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 8px;
  border-radius: 99px;
  font-weight: 700;
}
.stage-item.done .st-name { color: var(--text-2); }

/* 打卡日历 */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  min-height: 34px;
}
.cal-cell.today { border-color: var(--accent); border-width: 2px; font-weight: 700; }
.cal-cell.punched { background: var(--green-soft); color: #4F6B3A; font-weight: 700; }
.cal-cell.future { opacity: 0.4; }
.cal-cell.empty { background: transparent; border: none; }
.cal-week-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 5px;
}
.cal-week-head span { text-align: center; font-size: 11px; color: var(--text-3); font-weight: 600; }

/* ============================================================
   收集箱
   ============================================================ */

.quick-capture {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}
.qc-types { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.qc-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--surface);
  min-height: 38px;
}
.qc-type.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.qc-type .ic { width: 15px; height: 15px; }
.qc-input-row { display: flex; gap: 10px; }
.qc-input-row .input { flex: 1; }

.inbox-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.inbox-item.done { opacity: 0.62; }
.inbox-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.inbox-type-ic {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.inbox-type-ic .ic { width: 15px; height: 15px; }
.inbox-content { font-size: 14px; line-height: 1.55; word-break: break-all; }
.inbox-content a { font-weight: 600; }
.inbox-thumb { max-width: 180px; max-height: 120px; border-radius: 8px; border: 1px solid var(--border); margin-top: 8px; display: block; }
.inbox-suggest {
  margin-top: 10px;
  background: var(--blue-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.inbox-suggest .ic { width: 15px; height: 15px; color: #4A6C9E; margin-top: 2px; flex-shrink: 0; }
.inbox-suggest .sg { flex: 1; }
.inbox-suggest b { color: #4A6C9E; }
.inbox-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ============================================================
   搜索
   ============================================================ */

.search-hero { position: relative; }
.search-hero .ic {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  width: 19px; height: 19px;
}
.search-hero .input {
  padding-left: 44px;
  min-height: 50px;
  font-size: 15px;
  border-radius: 14px;
}
.search-result-group { margin-top: 18px; }
.search-hit {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
}
.search-hit:hover { border-color: var(--accent); }
.search-hit .hit-ic {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--text-2);
}
.search-hit .hit-ic .ic { width: 16px; height: 16px; }
.search-hit .hit-t { font-size: 14px; font-weight: 600; }
.search-hit .hit-d { font-size: 12.5px; color: var(--text-2); margin-top: 1px; }
.search-hit mark { background: var(--yellow-soft); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ============================================================
   AI 帮手
   ============================================================ */

.ai-mode-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--blue-soft);
  border: 1px solid rgba(74, 108, 158, 0.18);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.ai-mode-banner .ic { color: #4A6C9E; margin-top: 2px; }
.ai-mode-banner .t { font-size: 13.5px; font-weight: 700; color: #3D5C8A; }
.ai-mode-banner .d { font-size: 12.5px; color: #4A6C9E; margin-top: 2px; line-height: 1.55; }

.ai-caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ai-cap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  transition: border-color 0.15s;
}
.ai-cap:hover { border-color: var(--accent); }
.ai-cap .cap-ic {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.ai-cap .cap-ic .ic { width: 18px; height: 18px; }
.ai-cap .t { font-size: 14.5px; font-weight: 700; }
.ai-cap .d { font-size: 12.5px; color: var(--text-2); margin-top: 3px; line-height: 1.5; }

.ai-preview {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.ai-preview-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.ai-preview-head .t { font-size: 15px; font-weight: 700; flex: 1; }
.ai-change-note {
  background: var(--green-soft);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #4F6B3A;
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.ai-change-note .ic { width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0; }

.ai-item-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: var(--surface-2);
}
.ai-item-card .t { font-size: 14px; font-weight: 600; }
.ai-item-card .d { font-size: 12.5px; color: var(--text-2); margin-top: 3px; line-height: 1.55; }
.ai-item-card .pick-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

.ai-log {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.ai-log:first-of-type { border-top: none; }
.ai-log .ic { width: 15px; height: 15px; color: var(--text-3); margin-top: 3px; flex-shrink: 0; }
.ai-log .l-t { font-weight: 600; }
.ai-log .l-d { color: var(--text-2); font-size: 12px; margin-top: 1px; }
.ai-log .l-a { margin-left: auto; flex-shrink: 0; }

/* ============================================================
   变现选品
   ============================================================ */

.locked-banner {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  align-items: flex-start;
}
.locked-banner .ic { color: var(--warn); margin-top: 2px; }
.product-row {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  margin-bottom: 8px;
}
.product-body { flex: 1; min-width: 0; }
.product-name { font-size: 14.5px; font-weight: 600; }
.product-meta { font-size: 12px; color: var(--text-2); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   更多页（手机）
   ============================================================ */

.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .more-grid { grid-template-columns: 1fr; } }
.more-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  min-height: 60px;
}
.more-item .ic { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.more-item .m-t { font-size: 14.5px; font-weight: 600; }
.more-item .m-d { font-size: 12px; color: var(--text-2); margin-top: 1px; }
.more-item .badge {
  margin-left: auto;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #C77F2B;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   设置页
   ============================================================ */

.doc-section { padding: 16px 0; border-top: 1px solid var(--border); }
.doc-section:first-of-type { border-top: none; padding-top: 4px; }
.doc-section h3 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.doc-section h3 .ic { color: var(--accent); width: 16px; height: 16px; }
.doc-section p, .doc-section li { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.doc-section ul, .doc-section ol { padding-left: 18px; margin: 4px 0; }
.doc-section b { color: var(--text); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.doc-table th { text-align: left; font-size: 12px; color: var(--text-2); padding: 7px 10px; border-bottom: 1px solid var(--border); }
.doc-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.doc-table td:first-child { color: var(--text); font-weight: 600; }

.status-on { color: var(--accent); font-weight: 700; }
.status-off { color: var(--warn); font-weight: 700; }

.update-item { padding: 14px 0; border-top: 1px solid var(--border); }
.update-item:first-of-type { border-top: none; padding-top: 2px; }
.update-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.update-ver { font-size: 14px; font-weight: 700; }
.update-date { font-size: 12px; color: var(--text-2); }
.update-item ul { padding-left: 18px; }
.update-item li { font-size: 13px; color: var(--text-2); margin: 3px 0; }

.trash-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
}
.trash-item .t { font-size: 14px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trash-item .d { font-size: 12px; color: var(--text-2); flex-shrink: 0; }

/* ============================================================
   弹窗 / 抽屉 / Toast / 确认
   ============================================================ */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 33, 36, 0.45);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s;
}
.overlay.show { display: flex; }
@media (max-width: 859px) {
  .overlay { align-items: flex-end; padding: 0; }
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-pop);
  animation: popIn 0.18s;
}
@media (max-width: 859px) {
  .modal {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 18px 18px 0 0;
    animation: sheetUp 0.22s;
  }
}
.modal-lg { max-width: 720px; }
.modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 12px;
  flex-shrink: 0;
}
.modal-head .t { font-size: 16.5px; font-weight: 700; flex: 1; }
.modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-body { padding: 4px 20px 8px; overflow-y: auto; flex: 1; }
.modal-foot {
  display: flex;
  gap: 10px;
  padding: 14px 20px 18px;
  flex-shrink: 0;
}
.modal-foot .btn { flex: 1; }
@media (min-width: 860px) { .modal-foot .btn { flex: 0 0 auto; min-width: 110px; } }
.modal-foot .btn-primary { flex: 1; }

/* Toast */
.toast-wrap {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  background: #2E3033;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 12px;
  padding: 11px 16px;
  box-shadow: var(--shadow-pop);
  display: flex;
  align-items: center;
  gap: 9px;
  animation: toastIn 0.2s;
}
.toast .ic { width: 16px; height: 16px; color: #7FC0A8; flex-shrink: 0; }
.toast.warn .ic { color: #E8B45A; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.96) translateY(6px); } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0.6; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 帮助抽屉 ---------- */
.help-sheet h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin: 14px 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.help-sheet h4:first-child { margin-top: 4px; }
.help-sheet p { font-size: 13.5px; color: var(--text-2); line-height: 1.65; }

/* ---------- 脚本编辑器 ---------- */
.script-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.script-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 700;
}
.script-block-head .sec-dot { width: 8px; height: 8px; border-radius: 50%; }
.script-block textarea {
  border: none;
  border-radius: 0;
  min-height: 72px;
  background: var(--surface);
}
.script-block textarea:focus { box-shadow: none; }

/* ---------- 检查项 ---------- */
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  min-height: 44px;
}
.check-row:last-child { border-bottom: none; }
.check-row .ck {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  flex-shrink: 0;
}
.check-row.on .ck { background: var(--accent); border-color: var(--accent); color: #fff; }
.check-row .ck .ic { width: 12px; height: 12px; }
.check-row.on .ck-label { color: var(--text-3); text-decoration: line-through; }

/* ---------- 详情页 ---------- */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  padding: 6px 12px 6px 6px;
  border-radius: 8px;
  margin-bottom: 10px;
  min-height: 38px;
}
.detail-back:hover { background: var(--surface-2); color: var(--text); }
.detail-back .ic { width: 16px; height: 16px; }

/* ---------- 引导横幅 ---------- */
.onboard-banner {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.onboard-banner .ic { color: var(--accent); margin-top: 3px; }
.onboard-banner .t { font-size: 15px; font-weight: 700; }
.onboard-banner .d { font-size: 13px; color: var(--text-2); margin-top: 3px; line-height: 1.6; }
.onboard-banner .acts { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 示例数据标记 ---------- */
.sample-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #8A6F14;
  background: var(--yellow-soft);
  padding: 1px 7px;
  border-radius: 99px;
  vertical-align: 2px;
  margin-left: 6px;
}

/* ---------- 启动画面 ---------- */
.boot {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: opacity 0.25s;
}
.boot.hide { opacity: 0; pointer-events: none; }
.boot .brand-mark { width: 52px; height: 52px; border-radius: 15px; }
.boot .brand-mark .ic { width: 27px; height: 27px; }
.boot .bt { font-size: 16px; font-weight: 700; }
.boot .bl {
  width: 130px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.boot .bl i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--accent);
  border-radius: 2px;
  animation: loadSlide 1s infinite ease-in-out;
}
@keyframes loadSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(280%); }
}

/* 存储错误横幅 */
.store-error {
  background: var(--danger-soft);
  border: 1px solid rgba(179, 65, 59, 0.25);
  color: var(--danger);
  font-size: 13px;
  border-radius: var(--radius);
  padding: 11px 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* 打印 & 可访问性 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ==================== 云同步（v1.3.0） ==================== */
.sync-code-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.sync-code-label {
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 6px;
}
.sync-code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text);
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  user-select: all;
}
.sync-code-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}
.sync-code-warn {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.6;
}
.sync-big-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 4px;
  text-align: center;
  background: var(--surface-2);
  border: 2px dashed var(--accent);
  border-radius: 12px;
  padding: 18px 12px;
  margin: 6px 0 14px;
  user-select: all;
}
.sync-show-warn {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 6px;
}
.spin {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinCircle .7s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}
@keyframes spinCircle { to { transform: rotate(360deg); } }

/* ---------- AI 助手设置 ---------- */
.ai-key-row { display: flex; gap: 8px; align-items: stretch; }
.ai-key-row .input { flex: 1; min-width: 0; }
.ai-key-row .btn { flex: 0 0 auto; white-space: nowrap; }

.ai-cfg-status { margin-top: 12px; font-size: 13px; line-height: 1.5; display: none; }
.ai-cfg-status.testing { display: block; color: var(--text-2); }
.ai-cfg-status.ok { display: block; color: #2F6B57; font-weight: 600; }
.ai-cfg-status.err { display: block; color: var(--danger); }
.ai-cube-test-fail { display: none; }

.ai-help { margin-top: 16px; padding: 14px; background: #F6F7F4; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; color: var(--text-2); }
.ai-help h4 { margin: 0 0 8px; font-size: 13.5px; color: var(--text); }
.ai-help ul { margin: 0; padding-left: 18px; }
.ai-help li { margin: 5px 0; line-height: 1.6; }
.ai-help code { background: rgba(47,107,87,0.1); color: #2F6B57; padding: 1px 5px; border-radius: 4px; font-size: 12px; word-break: break-all; }
.ai-help a { color: var(--accent); word-break: break-all; }
.ai-help .form-hint { margin-top: 8px; color: var(--text-3); line-height: 1.6; }

.ai-mode-remote { background: rgba(47,107,87,0.08); border-color: rgba(47,107,87,0.25); }
.ai-mode-remote .ic { color: var(--accent); }
.ai-mode-remote .t { color: #2F6B57; }
.ai-mode-remote .d { color: #3E6B5A; }

textarea.input { width: 100%; font-family: inherit; resize: vertical; line-height: 1.6; }

/* ---------- 每日热点 ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.tab { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.input-sm { padding: 8px 10px; font-size: 13px; }

.hot-reminder { display: flex; gap: 10px; align-items: flex-start; background: #FFF7EC; border: 1px solid #F1D9A8; color: #8A6A2A; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; font-size: 13px; line-height: 1.6; }
.hot-reminder .ic { flex: 0 0 auto; margin-top: 1px; }

.hot-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.fchip-group { display: flex; gap: 6px; flex-wrap: wrap; }
.hot-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hot-search .input-sm { flex: 1; min-width: 140px; }

.hot-list { display: flex; flex-direction: column; gap: 10px; }
.hot-row { display: flex; gap: 10px; align-items: stretch; border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--radius); padding: 12px 14px; background: #fff; }
.hot-row.pf-douyin { border-left-color: #FE2C55; }
.hot-row.pf-xhs { border-left-color: #FF2E4B; }
.hot-row.pf-unknown { border-left-color: var(--text-3); }
.hot-row.incomplete { background: #FFFBF2; border-left-color: #E0A93B; }
.hot-main { flex: 1; min-width: 0; }
.hot-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 5px; }
.hot-pf { font-size: 12px; font-weight: 700; color: var(--text-2); }
.hot-warn { font-size: 11.5px; color: #B5801A; font-weight: 600; }
.hot-title { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.45; word-break: break-word; }
.hot-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--text-3); align-items: center; }
.hot-heat { color: #C2410C; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.hot-kw { color: var(--accent); }
.hot-note-row { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.hot-note-row .hot-note { flex: 1; min-width: 0; }
.hot-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; flex: 0 0 auto; }
.hot-link { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.hot-nolink { font-size: 12px; color: var(--text-3); }
.hot-del { color: var(--danger); }
