/* ============================================================
   WorkLite · 视觉系统
   一套 token，四个职业各覆盖一组变量 + 布局密度
   ========================================================== */

:root {
  /* 底色（暗色，与 IDE 一致） */
  --bg-0: #0B0D12;
  --bg-1: #10131A;
  --bg-2: #151922;
  --bg-3: #1B2029;
  --bg-4: #222834;

  --line-1: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.20);

  --tx-1: #E8ECF3;
  --tx-2: #A7B0BF;
  --tx-3: #6F7A8C;
  --tx-4: #515B6B;

  /* 语义色（暗色值，浅色主题在 html[data-theme="light"] 覆盖） */
  --ok: #34D399;
  --warn: #FBBF24;
  --danger: #F87171;
  --info: #60A5FA;

  --st-info-tx: #93C5FD;
  --st-warn-tx: #FCD34D;
  --st-ok-tx: #6EE7B7;
  --st-danger-tx: #FCA5A5;

  /* 环境变量：玻璃/遮罩/悬停/滚动条/反色小片 */
  --glass: rgba(11, 13, 18, 0.86);
  --backdrop: rgba(5, 7, 10, 0.62);
  --overlay-soft: rgba(255, 255, 255, 0.035);
  --scroll-a: rgba(255, 255, 255, 0.10);
  --scroll-b: rgba(255, 255, 255, 0.22);
  --chip-inv: rgba(0, 0, 0, 0.35);
  color-scheme: dark;

  /* 职业主色（默认产品经理） */
  --accent: #6366F1;
  --accent2: #8B8CF8;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --accent-line: rgba(99, 102, 241, 0.34);
  --accent-tx: #A5A8FF;

  /* 密度（职业覆盖） */
  --gap: 16px;
  --pad: 18px;
  --radius: 14px;
  --radius-sm: 9px;
  --row-h: 46px;
  --stage-pad: 28px;

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.42);
  --shadow-3: 0 24px 64px rgba(0, 0, 0, 0.55);
}

/* ---------------- 职业主题 ---------------- */
html[data-role="pm"] {
  --accent: #6366F1; --accent2: #8B8CF8;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --accent-line: rgba(99, 102, 241, 0.36);
  --accent-tx: #A5A8FF;
  --gap: 14px; --pad: 16px; --radius: 12px; --row-h: 42px; --stage-pad: 26px;
}
html[data-role="designer"] {
  --accent: #A78BFA; --accent2: #F0ABFC;
  --accent-soft: rgba(167, 139, 250, 0.14);
  --accent-line: rgba(167, 139, 250, 0.36);
  --accent-tx: #C4B5FD;
  --gap: 20px; --pad: 20px; --radius: 18px; --row-h: 50px; --stage-pad: 34px;
}
html[data-role="student"] {
  --accent: #34D399; --accent2: #6EE7B7;
  --accent-soft: rgba(52, 211, 153, 0.13);
  --accent-line: rgba(52, 211, 153, 0.34);
  --accent-tx: #6EE7B7;
  --gap: 16px; --pad: 18px; --radius: 14px; --row-h: 44px; --stage-pad: 28px;
}
html[data-role="parent"] {
  --accent: #FBBF24; --accent2: #FCD34D;
  --accent-soft: rgba(251, 191, 36, 0.13);
  --accent-line: rgba(251, 191, 36, 0.34);
  --accent-tx: #FCD34D;
  --gap: 18px; --pad: 20px; --radius: 16px; --row-h: 52px; --stage-pad: 30px;
}
html[data-role="shop"] {
  --accent: #F97316; --accent2: #FDBA74;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --accent-line: rgba(249, 115, 22, 0.32);
  --accent-tx: #FDBA74;
  --gap: 16px; --pad: 18px; --radius: 14px; --row-h: 50px; --stage-pad: 26px;
}

/* ---------------- 浅色主题 ----------------
   深色靠明度差区分层次；浅色的明度空间很窄，
   所以改用「冷调分层 + 明确边界 + 双层阴影」建结构。
   ------------------------------------------------------ */
html[data-theme="light"] {
  /* 表面：画布比卡片暗一档，卡片纯白，才不会被灰雾糊住 */
  --bg-0: #EDF1F8;
  --bg-1: #FFFFFF;
  --bg-2: #F8FAFE;
  --bg-3: #F0F4FB;
  --bg-4: #E4EAF4;

  /* 描边：带蓝调，肉眼可辨但不抢视线 */
  --line-1: #E3E9F3;
  --line-2: #D3DEEE;
  --line-3: #B6C6DC;

  --tx-1: #0F1A2E;
  --tx-2: #3D4E6C;
  --tx-3: #63748F;
  --tx-4: #8A98AE;

  --st-info-tx: #1D4ED8;
  --st-warn-tx: #A15C09;
  --st-ok-tx: #067A5B;
  --st-danger-tx: #B42318;

  --glass: rgba(255, 255, 255, 0.86);
  --backdrop: rgba(15, 26, 48, 0.34);
  --overlay-soft: rgba(15, 26, 48, 0.038);
  --scroll-a: rgba(15, 26, 48, 0.16);
  --scroll-b: rgba(15, 26, 48, 0.30);
  --chip-inv: rgba(15, 26, 48, 0.08);

  --shadow-1: 0 1px 2px rgba(16, 32, 64, 0.05);
  --shadow-2: 0 2px 4px rgba(16, 32, 64, 0.04), 0 12px 28px -14px rgba(16, 32, 64, 0.16);
  --shadow-3: 0 4px 10px rgba(16, 32, 64, 0.06), 0 30px 64px -26px rgba(16, 32, 64, 0.24);

  color-scheme: light;
}

/* 浅色强调色：色相不变、明度压深，底色收到 8–10%，避免白底上一片淡紫 */
html[data-theme="light"] {
  --accent: #4F46E5; --accent2: #7C74F2;
  --accent-soft: rgba(79, 70, 229, 0.08);
  --accent-line: rgba(79, 70, 229, 0.22);
  --accent-tx: #4338CA;
}
html[data-theme="light"][data-role="pm"] {
  --accent: #4F46E5; --accent2: #7C74F2;
  --accent-soft: rgba(79, 70, 229, 0.08);
  --accent-line: rgba(79, 70, 229, 0.22);
  --accent-tx: #4338CA;
}
html[data-theme="light"][data-role="designer"] {
  --accent: #7C3AED; --accent2: #A855F7;
  --accent-soft: rgba(124, 58, 237, 0.08);
  --accent-line: rgba(124, 58, 237, 0.22);
  --accent-tx: #6D28D9;
}
html[data-theme="light"][data-role="student"] {
  --accent: #059669; --accent2: #10B981;
  --accent-soft: rgba(5, 150, 105, 0.09);
  --accent-line: rgba(5, 150, 105, 0.22);
  --accent-tx: #047857;
}
html[data-theme="light"][data-role="parent"] {
  --accent: #D97706; --accent2: #F59E0B;
  --accent-soft: rgba(217, 119, 6, 0.10);
  --accent-line: rgba(217, 119, 6, 0.24);
  --accent-tx: #B45309;
}
html[data-theme="light"][data-role="shop"] {
  --accent: #EA580C; --accent2: #F97316;
  --accent-soft: rgba(234, 88, 12, 0.09);
  --accent-line: rgba(234, 88, 12, 0.22);
  --accent-tx: #C2410C;
}

/* 浅色下的语义底色 */
html[data-theme="light"] .st--neutral { background: var(--bg-3); color: var(--tx-2); border-color: var(--line-1); }
html[data-theme="light"] .st--info { background: rgba(37, 99, 235, 0.10); border-color: rgba(37, 99, 235, 0.22); }
html[data-theme="light"] .st--warn { background: rgba(180, 83, 9, 0.10); border-color: rgba(180, 83, 9, 0.22); }
html[data-theme="light"] .st--ok { background: rgba(4, 120, 87, 0.10); border-color: rgba(4, 120, 87, 0.22); }
html[data-theme="light"] .due--over { background: rgba(185, 28, 28, 0.08); }
html[data-theme="light"] .due--today { background: rgba(180, 83, 9, 0.10); }
html[data-theme="light"] .btn--danger { background: rgba(185, 28, 28, 0.08); border-color: rgba(185, 28, 28, 0.30); }
html[data-theme="light"] .btn--danger:hover:not(:disabled) { background: rgba(185, 28, 28, 0.14); }
html[data-theme="light"] .nav--danger { color: var(--st-danger-tx); }
html[data-theme="light"] .nav--danger:hover { background: rgba(185, 28, 28, 0.08); color: var(--st-danger-tx); }

/* ---------------- 基础重置 ---------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg-0);
  color: var(--tx-1);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

body[data-screen="landing"],
body[data-screen="auth"],
body[data-screen="onboard"] { overflow: auto; }

h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-tx); text-decoration: none; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--bg-3); padding: 1px 5px; border-radius: 4px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--accent-line); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--scroll-a);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--scroll-b); background-clip: content-box; }

/* ---------------- 图标 ---------------- */
.ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -3px;
}

/* ============================================================
   屏幕
   ========================================================== */
.screen { display: none; }
.screen.is-active { display: block; }
#screen-workspace.is-active { display: block; height: 100%; }

/* ============================================================
   品牌
   ========================================================== */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand--btn { padding: 0; }
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), var(--accent2));
  color: #0B0D12;
  box-shadow: 0 4px 14px var(--accent-soft);
}
.brand-mark svg { width: 17px; height: 17px; }
.brand__name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 14px;
  font-weight: 650;
}
.brand-text em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--tx-3);
  letter-spacing: 0.02em;
}

/* ============================================================
   按钮
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 550;
  white-space: nowrap;
  transition: background .16s, border-color .16s, transform .08s, color .16s, box-shadow .16s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .42; cursor: not-allowed; }

.btn--primary {
  background: var(--accent);
  color: #0A0C11;
  font-weight: 650;
  box-shadow: 0 4px 16px var(--accent-soft);
}
.btn--primary:hover:not(:disabled) { background: var(--accent2); box-shadow: 0 6px 22px var(--accent-soft); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--tx-2);
}
.btn--ghost:hover:not(:disabled) { background: var(--bg-3); color: var(--tx-1); border-color: var(--line-3); }

.btn--soft {
  background: var(--bg-3);
  border-color: var(--line-1);
  color: var(--tx-1);
}
.btn--soft:hover:not(:disabled) { background: var(--bg-4); border-color: var(--line-2); }

.btn--danger {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.34);
  color: var(--st-danger-tx);
}
.btn--danger:hover:not(:disabled) { background: rgba(248, 113, 113, 0.22); }

.btn--block { width: 100%; }
.btn--lg { height: 46px; padding: 0 22px; font-size: 14.5px; border-radius: 12px; }
.btn--sm { height: 31px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn--icon { width: 38px; padding: 0; }
.btn--icon.btn--sm { width: 31px; }

.icon-btn {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 7px;
  color: var(--tx-3);
  transition: background .14s, color .14s;
}
.icon-btn:hover { background: var(--bg-4); color: var(--tx-1); }
.icon-btn .ico { width: 15px; height: 15px; }

/* ============================================================
   表单
   ========================================================== */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field__label {
  font-size: 12px;
  font-weight: 550;
  color: var(--tx-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field__label i {
  font-style: normal;
  font-size: 10.5px;
  color: var(--tx-4);
  font-weight: 400;
}
.field__hint { font-size: 11.5px; color: var(--tx-4); line-height: 1.5; }
.field__err { font-size: 11.5px; color: #FCA5A5; min-height: 0; }
.field__err:empty { display: none; }

.input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  font-size: 13.5px;
  transition: border-color .14s, background .14s, box-shadow .14s;
}
.input:hover { border-color: var(--line-3); }
.input:focus {
  outline: none;
  border-color: var(--accent-line);
  background: var(--bg-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder { color: var(--tx-4); }
.input--area { height: auto; padding: 9px 12px; resize: vertical; min-height: 74px; line-height: 1.6; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236F7A8C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 30px;
  cursor: pointer;
}
input[type="date"].input::-webkit-calendar-picker-indicator {
  cursor: pointer;
}
input[type="search"]::-webkit-search-cancel-button { filter: invert(0.5); }

/* 主题切换按钮 */
.theme-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line-1);
  background: var(--bg-2);
  color: var(--tx-3);
  flex: 0 0 34px;
  transition: background .15s, color .15s, border-color .15s;
}
.theme-btn:hover { background: var(--bg-3); color: var(--tx-1); border-color: var(--line-2); }
.theme-btn .ico { width: 16px; height: 16px; }

.check-row, .switch-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  color: var(--tx-2);
}
.check-row input { margin: 3px 0 0; accent-color: var(--accent); width: 15px; height: 15px; }
.more-fields { border-top: 1px dashed var(--line-2); padding-top: 10px; }
.more-fields summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--tx-3);
  margin-bottom: 10px;
  user-select: none;
  list-style: none;
}
.more-fields summary::-webkit-details-marker { display: none; }
.more-fields summary::before { content: "+ "; color: var(--accent-tx); }
.more-fields[open] summary::before { content: "− "; }

/* ============================================================
   落地页
   ========================================================== */
.landing {
  max-width: 1140px;
  margin: 0 auto;
  padding: 26px 30px 60px;
}
.landing__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 76px;
}
.landing__nav-actions { display: flex; gap: 9px; }

.hero { max-width: 760px; margin-bottom: 84px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-tx);
  font-size: 11.5px;
  font-weight: 550;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}
.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.82); }
}

.hero__title {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: 15px;
  line-height: 1.78;
  color: var(--tx-2);
  max-width: 620px;
  margin-bottom: 30px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hero__note { font-size: 12px; color: var(--tx-4); }

.landing__roles-head { margin-bottom: 22px; }
.landing__roles-head h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.landing__roles-head p { font-size: 13.5px; color: var(--tx-3); }

/* 职业卡 */
.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.role-grid--landing { margin-bottom: 76px; }

.role-card {
  position: relative;
  text-align: left;
  padding: 16px;
  border-radius: 15px;
  background: linear-gradient(170deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-1);
  transition: border-color .18s, transform .18s, background .18s, box-shadow .18s;
  overflow: hidden;
}
.role-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.role-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.role-card:hover::before { opacity: 1; }
.role-card.is-on {
  border-color: var(--accent);
  background: linear-gradient(170deg, var(--accent-soft), var(--bg-1));
  box-shadow: 0 0 0 1px var(--accent-line), 0 12px 32px rgba(0, 0, 0, 0.45);
}
.role-card.is-on::before { opacity: 1; }

.role-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.role-card__icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-tx);
  border: 1px solid var(--accent-line);
}
.role-card__icon .ico { width: 17px; height: 17px; }
.role-card__check {
  width: 19px; height: 19px;
  border-radius: 50%;
  border: 1.5px solid var(--line-3);
  display: grid; place-items: center;
  color: transparent;
  transition: all .16s;
}
.role-card__check .ico { width: 11px; height: 11px; stroke-width: 3; }
.role-card.is-on .role-card__check {
  background: var(--accent);
  border-color: var(--accent);
  color: #0A0C11;
}
.role-card h3 {
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}
.role-card__tag {
  font-size: 12px;
  color: var(--tx-3);
  line-height: 1.5;
  min-height: 36px;
}

/* 迷你布局预览 */
.mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  height: 46px;
  padding: 5px;
  border-radius: 8px;
  background: var(--bg-0);
  border: 1px solid var(--line-1);
  margin: 11px 0;
  overflow: hidden;
}
.mini i {
  display: block;
  border-radius: 3px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  opacity: .8;
}
.mini i:nth-child(1) { opacity: 1; }
.mini i:nth-child(3) { opacity: .48; }
.mini--dense { grid-template-columns: repeat(6, 1fr); }
.mini--dense i { border-radius: 2px; }
.mini--gallery { grid-template-columns: 1fr 1fr; }
.mini--gallery i { border-radius: 6px; }
.mini--gallery i:nth-child(1) { grid-column: span 2; height: 14px; }
.mini--timeline { grid-template-columns: 1fr 1fr; }
.mini--timeline i:nth-child(2) { opacity: .5; }
.mini--household { grid-template-columns: repeat(4, 1fr); }
.mini--household i:nth-child(2) { opacity: .55; }
.mini--shop { grid-template-columns: repeat(4, 1fr); }
.mini--shop i:nth-child(1) { grid-column: span 2; }
.mini--shop i:nth-child(3) { opacity: .55; }

.role-card__kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.role-card__kpis li {
  font-size: 10.5px;
  color: var(--tx-3);
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-3);
  border: 1px solid var(--line-1);
}
.role-card__layout {
  font-size: 10px;
  color: var(--tx-4);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* 落地页的横排小卡（由 JS 渲染） */
.role-mini {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 15px;
  border-radius: 13px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  transition: border-color .16s, background .16s, transform .16s;
  text-align: left;
}
.role-mini:hover {
  border-color: var(--accent);
  background: var(--bg-2);
  transform: translateY(-2px);
}
.role-mini__dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.role-mini__name { font-size: 14px; font-weight: 650; }
.role-mini__desc { font-size: 12px; color: var(--tx-3); line-height: 1.5; }
.role-mini__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.role-mini__tags i {
  font-style: normal;
  font-size: 10px;
  color: var(--tx-4);
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-3);
}

.landing__why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}
.why-card {
  padding: 20px;
  border-radius: 14px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
}
.why-card__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-tx);
  letter-spacing: 0.08em;
}
.why-card h3 {
  font-size: 14.5px;
  font-weight: 650;
  margin: 9px 0 7px;
  letter-spacing: -0.2px;
}
.why-card p { font-size: 12.5px; line-height: 1.7; color: var(--tx-3); }

.landing__foot {
  border-top: 1px solid var(--line-1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.landing__foot p { font-size: 12px; color: var(--tx-3); line-height: 1.7; }
.landing__foot-dim { color: var(--tx-4) !important; font-family: var(--mono); font-size: 11px !important; }

/* 站点配置下发的备案 / 技术支持信息：留空即不占位 */
.site-meta:empty { display: none; }
.site-meta p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.site-meta a { color: var(--tx-3); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.site-meta a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.site-meta .foot-sep { color: var(--tx-4); }
.landing__foot-meta { margin-top: -2px; }
.stage__foot-meta { margin-top: 3px; }

/* ============================================================
   认证
   ========================================================== */
.auth {
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: 100vh;
}
.auth__side {
  padding: 30px 34px;
  background: linear-gradient(165deg, var(--bg-2), var(--bg-0) 70%);
  border-right: 1px solid var(--line-1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth__side::after {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  right: -150px; bottom: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none;
}
.auth__pitch { margin-top: auto; margin-bottom: auto; }
.auth__pitch h2 {
  font-size: 25px;
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 26px;
}
.auth__list { display: flex; flex-direction: column; gap: 15px; }
.auth__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--tx-2); line-height: 1.55; }
.auth__list i {
  width: 20px; height: 20px;
  flex: 0 0 20px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-tx);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 650;
  font-family: var(--mono);
  margin-top: 1px;
}
.auth__legal { font-size: 11px; color: var(--tx-4); margin-top: auto; }

.auth__main { display: grid; place-items: center; padding: 40px 24px; }
.auth__box { width: 100%; max-width: 372px; }

.tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: 10px;
  margin-bottom: 26px;
}
.tab {
  flex: 1;
  height: 32px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 550;
  color: var(--tx-3);
  transition: all .16s;
}
.tab.is-on { background: var(--bg-3); color: var(--tx-1); box-shadow: var(--shadow-1); }

.auth__title { font-size: 21px; font-weight: 680; letter-spacing: -0.5px; margin-bottom: 5px; }
.auth__sub { font-size: 13px; color: var(--tx-3); margin-bottom: 24px; }
.auth__form { display: flex; flex-direction: column; gap: 14px; }
.form-err { font-size: 12.5px; color: var(--st-danger-tx); min-height: 16px; }
.form-err:empty { display: none; }

.auth__or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--tx-4);
  font-size: 11.5px;
}
.auth__or::before, .auth__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-1);
}
.oauth { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.btn--oauth {
  height: 40px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  color: var(--tx-2);
  font-size: 12.5px;
  position: relative;
  padding: 0 10px;
}
.btn--oauth:hover:not(:disabled) { background: var(--bg-3); border-color: var(--line-3); color: var(--tx-1); }
.oauth__ic {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
  flex: 0 0 auto;
}
.oauth__ic--qq { background: #12B7F5; }
.oauth__ic--wx { background: #07C160; }
.oauth__flag {
  position: absolute;
  top: -6px; right: -5px;
  font-style: normal;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-4);
  border: 1px solid var(--line-2);
  color: var(--tx-3);
}
.auth__hint-oauth { font-size: 11px; color: var(--tx-4); line-height: 1.65; margin-top: 12px; }

/* ============================================================
   引导
   ========================================================== */
.onboard { max-width: 1000px; margin: 0 auto; padding: 26px 30px 0; min-height: 100vh; display: flex; flex-direction: column; }
.onboard__top { display: flex; align-items: center; gap: 20px; margin-bottom: 34px; }
.onboard__top .brand { flex: 0 0 auto; }

.steps { display: flex; gap: 8px; margin: 0 auto; }
.step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--tx-4);
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .18s;
}
.step span {
  width: 19px; height: 19px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-3);
  font-size: 10.5px;
  font-family: var(--mono);
  color: var(--tx-3);
}
.step.is-on { color: var(--tx-1); background: var(--bg-2); border-color: var(--line-2); }
.step.is-on span { background: var(--accent); color: #0A0C11; font-weight: 700; }
.step.is-done span { background: var(--accent-soft); color: var(--accent-tx); }

.onboard__body { flex: 1; padding-bottom: 30px; animation: fadeUp .26s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.onboard__foot {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0 18px;
  background: linear-gradient(to top, var(--bg-0) 62%, transparent);
  border-top: 1px solid var(--line-1);
  margin-top: auto;
}
.onboard__foot-note { flex: 1; font-size: 11.5px; color: var(--tx-4); text-align: center; }

.ob-head { margin-bottom: 24px; max-width: 640px; }
.ob-head h2 { font-size: 22px; font-weight: 680; letter-spacing: -0.5px; margin-bottom: 7px; }
.ob-head p { font-size: 13.5px; color: var(--tx-3); line-height: 1.7; }

/* 问题 */
.q-list { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.q__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; flex-wrap: wrap; }
.q__label { font-size: 13.5px; font-weight: 600; }
.q__hint { font-size: 11.5px; color: var(--tx-4); }
.q__opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opt {
  padding: 8px 14px;
  border-radius: 9px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  color: var(--tx-2);
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
  transition: all .15s;
}
.opt b { font-weight: 550; }
.opt span { font-size: 10.5px; color: var(--tx-4); }
.opt:hover { background: var(--bg-3); border-color: var(--line-3); color: var(--tx-1); }
.opt.is-on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--tx-1);
  box-shadow: 0 0 0 1px var(--accent-line);
}
.opt.is-on b { color: var(--accent-tx); }

/* 确认页 */
.summary {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--accent-line);
  margin-bottom: 20px;
}
.summary__role { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 680; margin-bottom: 5px; }
.summary__role .ico { width: 20px; height: 20px; color: var(--accent-tx); }
.summary__layout {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-tx);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.summary__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--tx-2);
}
.chip--muted { background: var(--bg-3); border-color: var(--line-1); color: var(--tx-4); }
.summary__preview .mini { height: 74px; margin: 0 0 12px; }
.summary__mods { font-size: 11.5px; color: var(--tx-3); line-height: 1.7; }

.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 12px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  cursor: pointer;
  max-width: 620px;
}
.switch-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-ui {
  width: 36px; height: 20px;
  flex: 0 0 36px;
  border-radius: 999px;
  background: var(--bg-4);
  position: relative;
  transition: background .18s;
}
.switch-ui::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--tx-3);
  transition: transform .18s, background .18s;
}
.switch-row input:checked + .switch-ui { background: var(--accent-soft); }
.switch-row input:checked + .switch-ui::after { transform: translateX(16px); background: var(--accent); }
.switch-txt { display: flex; flex-direction: column; gap: 2px; }
.switch-txt b { font-size: 13px; font-weight: 600; }
.switch-txt i { font-style: normal; font-size: 11.5px; color: var(--tx-4); line-height: 1.55; }

/* ============================================================
   工作台骨架
   ========================================================== */
.shell { display: grid; grid-template-columns: 218px 1fr; height: 100vh; }

.rail {
  background: var(--bg-1);
  border-right: 1px solid var(--line-1);
  padding: 18px 12px 12px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 4px;
}
.rail__brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 18px; }
.rail__nav { display: flex; flex-direction: column; gap: 2px; }
.rail__label {
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tx-4);
  padding: 16px 8px 6px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--tx-2);
  text-align: left;
  transition: background .14s, color .14s;
  position: relative;
}
.nav .ico { width: 15px; height: 15px; color: var(--tx-3); transition: color .14s; }
.nav:hover { background: var(--bg-3); color: var(--tx-1); }
.nav:hover .ico { color: var(--tx-2); }
.nav.is-on {
  background: var(--accent-soft);
  color: var(--tx-1);
  font-weight: 550;
}
.nav.is-on .ico { color: var(--accent-tx); }
.nav.is-on::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.nav--sub { height: 32px; font-size: 12px; }
.nav--danger { color: var(--st-danger-tx); opacity: .8; }
.nav--danger:hover { background: rgba(248, 113, 113, 0.1); color: var(--st-danger-tx); opacity: 1; }

.rail__foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.rail__user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 8px 2px;
  margin-top: 8px;
  border-top: 1px solid var(--line-1);
}
.rail__uname {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 550;
  overflow: hidden;
  line-height: 1.35;
}
.rail__uname i {
  font-style: normal;
  font-size: 10px;
  color: var(--tx-4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  width: 27px; height: 27px;
  flex: 0 0 27px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-tx);
  font-size: 12px;
  font-weight: 650;
}
.avatar--btn { cursor: pointer; transition: transform .14s; }
.avatar--btn:hover { transform: scale(1.06); }

/* ---------------- 舞台 ---------------- */
.stage { overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px var(--stage-pad);
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-1);
}
.tb__left { min-width: 0; flex: 0 1 auto; }
.tb__greet { font-size: 16px; font-weight: 680; letter-spacing: -0.3px; white-space: nowrap; }
.tb__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--tx-4);
  margin-top: 2px;
  flex-wrap: wrap;
}
.tb__rhythm { color: var(--tx-3); }
.dotsep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-3); }

.tb__right { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  color: var(--tx-4);
  width: 210px;
  transition: border-color .16s, width .2s;
}
.search:focus-within { border-color: var(--accent-line); width: 250px; }
.search .ico { width: 14px; height: 14px; }
.search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  font-size: 12.5px;
  color: var(--tx-1);
}
.search input::placeholder { color: var(--tx-4); }

.quick {
  display: flex;
  align-items: center;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  overflow: hidden;
  transition: border-color .16s;
}
.quick:focus-within { border-color: var(--accent-line); }
.quick input {
  width: 168px;
  padding: 0 11px;
  background: none;
  border: 0;
  outline: none;
  font-size: 12.5px;
}
.quick input::placeholder { color: var(--tx-4); }
.quick .btn--icon {
  width: 33px; height: 33px;
  border-radius: 0;
  border-left: 1px solid var(--line-1);
  background: transparent;
  color: var(--accent-tx);
  box-shadow: none;
}
.quick .btn--icon:hover { background: var(--accent-soft); }

.stage__body { padding: 0 var(--stage-pad) 40px; }

/* ---------------- 今日焦点 ---------------- */
.focus-slot { padding: 18px 0 4px; }
.focus {
  border-radius: var(--radius);
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(120% 160% at 0% 0%, var(--accent-soft), transparent 58%),
    var(--bg-1);
  padding: 14px 16px 15px;
}
.focus__head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.focus__title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.focus__title .ico { width: 14px; height: 14px; color: var(--accent-tx); }
.focus__rule {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tx-4);
  letter-spacing: 0.02em;
}
.focus__list { display: flex; flex-direction: column; gap: 2px; }
.focus__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .14s;
}
.focus__item:hover { background: var(--overlay-soft); }
.focus__idx {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  display: grid; place-items: center;
  border-radius: 5px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tx-3);
}
.focus__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.focus__main b {
  font-size: 13.5px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.focus__main i {
  display: flex;
  align-items: center;
  gap: 7px;
  font-style: normal;
  flex-wrap: wrap;
}
.focus__empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 4px;
  flex-wrap: wrap;
}
.focus__empty p { font-size: 12.5px; color: var(--tx-3); }

/* ---------------- 筛选 ---------------- */
.filters {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 0 13px;
  flex-wrap: wrap;
}
.filter {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 29px;
  padding: 0 11px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line-1);
  color: var(--tx-3);
  font-size: 12px;
  transition: all .14s;
}
.filter span {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--tx-4);
  min-width: 16px;
  text-align: center;
}
.filter:hover { border-color: var(--line-2); color: var(--tx-1); }
.filter.is-on {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--tx-1);
  font-weight: 550;
}
.filter.is-on span { background: var(--accent-line); color: var(--tx-1); }
.filter--clear { color: var(--accent-tx); border-style: dashed; }
.filters__note { font-size: 11px; color: var(--tx-4); margin-left: 4px; }

/* ---------------- 模块栅格 ---------------- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}
.widget {
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
  scroll-margin-top: 84px;
}
.widget:hover { border-color: var(--line-2); }
.widget--s1 { grid-column: span 1; }
.widget--s2 { grid-column: span 2; }
.widget--s3 { grid-column: span 3; }
.widget.is-flash { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.widget__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px var(--pad) 11px;
  border-bottom: 1px solid var(--line-1);
}
.widget__title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: 0.01em;
}
.widget__title .ico { width: 14px; height: 14px; color: var(--tx-3); }
.widget__count {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--tx-4);
  background: var(--bg-3);
  padding: 1px 6px;
  border-radius: 4px;
}
.widget__count:empty { display: none; }
.widget__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.widget__hint {
  font-size: 10.5px;
  color: var(--tx-4);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.widget__body { padding: 12px var(--pad) var(--pad); }

/* 职业布局差异 */
.board-grid--dense { gap: 12px; }
.board-grid--dense .widget__head { padding: 11px 14px 9px; }
.board-grid--dense .widget__body { padding: 10px 14px 14px; }

.board-grid--gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board-grid--gallery .widget--s1 { grid-column: span 1; }
.board-grid--gallery .widget--s2 { grid-column: span 2; }
.board-grid--gallery .widget { border-radius: var(--radius); }
.board-grid--gallery .widget__head { padding: 16px 20px 13px; }
.board-grid--gallery .widget__title { font-size: 13.5px; }
.board-grid--gallery .widget__body { padding: 16px 20px 20px; }

.board-grid--timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board-grid--timeline .widget--s2 { grid-column: span 2; }

.board-grid--household { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board-grid--household .widget--s2 { grid-column: span 2; }
.board-grid--household .widget { border-radius: var(--radius); }
.board-grid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board-grid--shop .widget--s2 { grid-column: span 2; }
.board-grid--shop .widget { border-radius: var(--radius); }
.tbl tfoot td {
  border-top: 2px solid var(--line-1);
  font-weight: 600;
  padding-top: 10px;
}
.tbl__sum-label { color: var(--tx-2); text-align: right; }

/* ---------------- 看板 ---------------- */
.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(152px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.board--people { grid-auto-columns: minmax(172px, 1fr); }
.col {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.col__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 3px 6px;
  border-bottom: 1px solid var(--line-1);
}
.col__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tx-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.col__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tx-4);
}
.col__body { display: flex; flex-direction: column; gap: 6px; min-height: 34px; }
.col__empty {
  text-align: center;
  color: var(--tx-4);
  font-size: 11px;
  padding: 10px 0;
  border: 1px dashed var(--line-1);
  border-radius: 8px;
}

.dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }
.dot--neutral { background: #5A6478; }
.dot--info { background: var(--info); }
.dot--warn { background: var(--warn); }
.dot--ok { background: var(--ok); }

/* 卡片 */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.card:hover { border-color: var(--line-3); background: var(--bg-3); }
.card:active { transform: scale(.995); }
.card.is-done { opacity: .5; }
.card.is-done .card__title { text-decoration: line-through; text-decoration-color: var(--tx-4); }
.card__top { display: flex; align-items: flex-start; gap: 6px; }
.card__title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--tx-1);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__note {
  font-size: 10.5px;
  color: var(--tx-4);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.card__foot {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 4px;
  border-top: 1px dashed var(--line-1);
  min-height: 22px;
}
.card__spacer { flex: 1; }
.card__btn {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 5px;
  color: var(--tx-3);
  transition: background .14s, color .14s;
}
.card__btn:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent-tx); }
.card__btn:disabled { opacity: .28; cursor: default; }
.card__btn .ico { width: 13px; height: 13px; }

.prio {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex: 0 0 5px;
  margin-top: 6px;
}
.prio--high { background: var(--danger); box-shadow: 0 0 6px rgba(248, 113, 113, .5); }
.prio--med { background: var(--warn); }
.prio--low { background: #4B5563; }
.pin { color: var(--accent-tx); display: flex; }
.pin .ico { width: 11px; height: 11px; margin-top: 4px; }

.st {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.st--neutral { background: var(--bg-3); color: var(--tx-3); border-color: var(--line-1); }
.st--info { background: rgba(96, 165, 250, .12); color: var(--st-info-tx); border-color: rgba(96,165,250,.26); }
.st--warn { background: rgba(251, 191, 36, .12); color: var(--st-warn-tx); border-color: rgba(251,191,36,.26); }
.st--ok { background: rgba(52, 211, 153, .12); color: var(--st-ok-tx); border-color: rgba(52,211,153,.26); }

.tags { display: flex; gap: 3px; flex-wrap: wrap; }
.tag {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg-4);
  color: var(--tx-3);
  white-space: nowrap;
}
.tag--more { color: var(--tx-4); }

.due {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--tx-3);
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .04);
  white-space: nowrap;
}
.due--over { color: var(--st-danger-tx); background: rgba(248, 113, 113, .12); }
.due--today { color: var(--st-warn-tx); background: rgba(251, 191, 36, .12); }
.due--soon { color: var(--tx-2); }

.badge-demo {
  font-size: 8.5px;
  padding: 0 4px;
  border-radius: 3px;
  border: 1px dashed var(--line-3);
  color: var(--tx-4);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  flex: 0 0 auto;
  line-height: 1.5;
}

/* ---------------- 列表行 ---------------- */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--row-h);
  padding: 6px 4px;
  border-bottom: 1px solid var(--line-1);
}
.row:last-child { border-bottom: 0; }
.row.is-done .row__title { color: var(--tx-4); text-decoration: line-through; text-decoration-color: var(--tx-4); }
.rows--compact .row { min-height: 36px; }
.rows--compact .row__title { font-size: 12.5px; }

.check {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line-3);
  display: grid; place-items: center;
  color: transparent;
  transition: all .15s;
}
.check .ico { width: 11px; height: 11px; stroke-width: 3; }
.check:hover { border-color: var(--accent); background: var(--accent-soft); }
.check.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #0A0C11;
}
.row__main { flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.row__title {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.45;
}
.row__sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--tx-4);
  flex-wrap: wrap;
}
.row__meta { color: var(--tx-3); }
.sep { color: var(--line-3); }

.countdown {
  flex: 0 0 auto;
  text-align: center;
  min-width: 40px;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.countdown b { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--tx-2); }
.countdown span { font-size: 9px; color: var(--tx-4); }
.countdown.is-urgent b { color: var(--st-warn-tx); }
.countdown.is-over b { color: var(--st-danger-tx); }

/* ---------------- 画廊 ---------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
}
.tile {
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  padding: 9px;
  cursor: pointer;
  transition: border-color .16s, transform .16s, box-shadow .16s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tile:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .38);
}
.tile.is-done { opacity: .5; }
.tile__art {
  position: relative;
  height: 62px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 7px;
  border: 1px solid var(--line-1);
}
.tile__idx {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tx-4);
  letter-spacing: 0.05em;
}
.tile__client {
  font-size: 9.5px;
  color: var(--tx-2);
  background: var(--chip-inv);
  padding: 1px 5px;
  border-radius: 4px;
  max-width: 78%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile__title {
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile__note {
  font-size: 10.5px;
  color: var(--tx-4);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile__meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: auto; }

/* ---------------- 统计 ---------------- */
.stats { display: flex; flex-direction: column; gap: 12px; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: relative;
}
.stat--hero {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  flex-direction: row;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.stat--hero .stat__num { font-size: 30px; color: var(--tx-1); }
.stat--hero .stat__label { font-size: 12px; color: var(--accent-tx); font-weight: 550; }
.stat--hero .stat__hint {
  width: 100%;
  font-size: 10.5px;
  color: var(--tx-3);
  font-family: var(--mono);
}
.stat__num {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--tx-1);
  line-height: 1.2;
}
.stat__label { font-size: 11px; color: var(--tx-3); }

.stats > .stat:not(.stat--hero) {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-1);
}
.stats > .stat:not(.stat--hero) .stat__num { font-size: 15px; }

.dist { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.dist__row { display: flex; align-items: center; gap: 8px; }
.dist__label {
  font-size: 10.5px;
  color: var(--tx-3);
  width: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dist__bar {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--bg-4);
  overflow: hidden;
}
.dist__fill { display: block; height: 100%; border-radius: 3px; transition: width .3s; }
.dist__val {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tx-3);
  width: 16px;
  text-align: right;
  flex: 0 0 16px;
}
.stat__warn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--st-warn-tx);
  padding-top: 4px;
}
.stat__warn .ico { width: 13px; height: 13px; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; margin: -2px -4px; padding: 2px 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th {
  text-align: left;
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tx-4);
  font-weight: 500;
  padding: 0 8px 7px;
  border-bottom: 1px solid var(--line-1);
  white-space: nowrap;
}
.tbl th.num, .tbl td.num { text-align: right; }
.tbl td {
  padding: 8px;
  border-bottom: 1px solid var(--line-1);
  color: var(--tx-2);
  vertical-align: middle;
}
.tbl tbody tr { cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover { background: var(--overlay-soft); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl__title { color: var(--tx-1); font-weight: 500; margin-right: 5px; }
.tbl td b { font-family: var(--mono); color: var(--accent-tx); font-size: 12.5px; }
.muted { color: var(--tx-4); }

/* ---------------- 时间轴 ---------------- */
.timeline { display: flex; flex-direction: column; }
.tl { display: flex; gap: 11px; }
.tl__rail {
  flex: 0 0 9px;
  display: flex;
  justify-content: center;
  position: relative;
}
.tl__rail::before {
  content: "";
  position: absolute;
  top: 8px; bottom: -2px;
  width: 1px;
  background: var(--line-2);
}
.tl:last-child .tl__rail::before { display: none; }
.tl__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 5px;
  z-index: 1;
  box-shadow: 0 0 0 3px var(--bg-1), 0 0 8px var(--accent-line);
}
.tl__body { flex: 1; min-width: 0; padding-bottom: 13px; }
.tl__head { display: flex; align-items: baseline; gap: 7px; margin-bottom: 4px; }
.tl__period { font-size: 11px; font-weight: 650; color: var(--accent-tx); font-family: var(--mono); }
.tl__time { font-size: 10px; color: var(--tx-4); font-family: var(--mono); }
.tl__item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  margin-bottom: 4px;
  cursor: pointer;
  transition: border-color .14s, background .14s;
}
.tl__item:hover { border-color: var(--accent-line); background: var(--bg-3); }
.tl__name { font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl__tag { font-size: 9.5px; color: var(--tx-4); flex: 0 0 auto; }

/* ---------------- 番茄钟 ---------------- */
.pomo { display: flex; flex-direction: column; align-items: center; gap: 13px; padding: 4px 0; }
.pomo__ring {
  --p: 0;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--accent) calc(var(--p) * 1%), var(--bg-4) 0);
  position: relative;
  transition: background .4s linear;
}
.pomo__ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--bg-1);
}
.pomo__inner { position: relative; text-align: center; }
.pomo__time {
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--tx-1);
  line-height: 1.1;
}
.pomo__sub { font-size: 9.5px; color: var(--tx-4); margin-top: 3px; }
.pomo__actions { display: flex; gap: 7px; }
.pomo__hint {
  font-size: 10px;
  color: var(--tx-4);
  text-align: center;
  line-height: 1.6;
  max-width: 210px;
}

/* ---------------- 空状态 ---------------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 26px 14px;
  text-align: center;
}
.empty--slim { padding: 18px 10px; }
.empty__icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px dashed var(--line-2);
  color: var(--tx-4);
}
.empty__icon .ico { width: 16px; height: 16px; }
.empty__text { font-size: 12px; color: var(--tx-3); line-height: 1.6; }
.empty__hint { font-size: 10.5px; color: var(--tx-4); line-height: 1.6; max-width: 240px; }

.stage__foot {
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bg-1);
  border: 1px dashed var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.stage__foot p { font-size: 11.5px; color: var(--tx-4); line-height: 1.7; }
.stage__foot p b { color: var(--tx-3); }
.stage__foot-actions { display: flex; gap: 7px; margin-top: 6px; flex-wrap: wrap; }

/* ============================================================
   抽屉
   ========================================================== */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: var(--backdrop);
  opacity: 0;
  transition: opacity .22s;
  backdrop-filter: blur(2px);
}
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: var(--bg-1);
  border-left: 1px solid var(--line-2);
  box-shadow: var(--shadow-3);
  transform: translateX(102%);
  transition: transform .26s cubic-bezier(.32, .72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }

.drawer__head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 13px;
  border-bottom: 1px solid var(--line-1);
  background: var(--bg-1);
  z-index: 2;
}
.drawer__head h2 { font-size: 14.5px; font-weight: 650; letter-spacing: -0.2px; }
.drawer__form { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 20px; }
.drawer__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line-1);
  margin-top: 4px;
}
.spacer { flex: 1; }

/* ============================================================
   模态
   ========================================================== */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--backdrop);
  backdrop-filter: blur(3px);
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 15px;
  padding: 20px;
  box-shadow: var(--shadow-3);
  animation: popIn .2s cubic-bezier(.3, .8, .3, 1);
  max-height: 88vh;
  overflow-y: auto;
}
.modal__panel--wide { max-width: 560px; }
@keyframes popIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal__title { font-size: 15px; font-weight: 650; letter-spacing: -0.2px; }
.modal__text { font-size: 13px; color: var(--tx-2); line-height: 1.65; margin-bottom: 18px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.set-block {
  padding: 14px 0;
  border-top: 1px solid var(--line-1);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.set-block:first-of-type { border-top: 0; padding-top: 0; }
.set-h {
  font-size: 10.5px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tx-4);
  font-weight: 500;
}
.set-row { display: flex; gap: 14px; font-size: 12.5px; align-items: flex-start; }
.set-key { flex: 0 0 78px; color: var(--tx-4); font-size: 12px; }
.set-val { flex: 1; color: var(--tx-2); display: flex; flex-direction: column; gap: 2px; word-break: break-all; }
.set-val i { font-style: normal; font-size: 10.5px; color: var(--tx-4); line-height: 1.5; }
.set-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.set-note { font-size: 11px; color: var(--tx-4); line-height: 1.65; }

/* ============================================================
   Toast
   ========================================================== */
.toast-root {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 10px;
  background: var(--bg-4);
  border: 1px solid var(--line-2);
  color: var(--tx-1);
  font-size: 12.5px;
  box-shadow: var(--shadow-2);
  animation: toastIn .22s cubic-bezier(.3, .8, .3, 1);
  max-width: 84vw;
}
.toast.is-out { animation: toastOut .24s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }
.toast__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tx-3); flex: 0 0 6px; }
.toast--ok .toast__dot { background: var(--ok); box-shadow: 0 0 8px rgba(52,211,153,.6); }
.toast--error .toast__dot { background: var(--danger); box-shadow: 0 0 8px rgba(248,113,113,.6); }
.toast--error { border-color: rgba(248,113,113,.35); }

/* ============================================================
   响应式
   ========================================================== */
@media (max-width: 1180px) {
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .landing__why { grid-template-columns: 1fr; }
  .board-grid--gallery, .board-grid--timeline, .board-grid--household, .board-grid--shop { grid-template-columns: repeat(2, 1fr); }
  .widget--s2 { grid-column: span 2; }
}

@media (max-width: 1080px) {
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .widget--s2, .widget--s3 { grid-column: span 2; }
  .summary { grid-template-columns: 1fr; }
  .summary__right { border-top: 1px dashed var(--line-2); padding-top: 14px; }
  .auth { grid-template-columns: 340px 1fr; }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: 60px 1fr; }
  .rail { padding: 14px 8px 10px; align-items: center; }
  .rail__brand { padding: 0 0 14px; }
  .brand-text, .rail__label, .rail__uname { display: none; }
  .nav span { display: none; }
  .nav { justify-content: center; padding: 0; width: 40px; height: 36px; }
  .nav.is-on::before { left: -8px; }
  .rail__user { padding: 10px 0 0; justify-content: center; }
  .role-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__side { display: none; }
  .landing__nav { margin-bottom: 46px; }
  .hero { margin-bottom: 56px; }
}

@media (max-width: 760px) {
  :root { --stage-pad: 16px; }
  .topbar { flex-wrap: wrap; gap: 10px; padding: 12px var(--stage-pad); }
  .tb__right { width: 100%; margin-left: 0; }
  .search { flex: 1; width: auto; }
  .search:focus-within { width: auto; }
  .quick { flex: 1; }
  .quick input { width: 100%; min-width: 0; }
  .board-grid, .board-grid--gallery, .board-grid--timeline, .board-grid--household, .board-grid--shop {
    grid-template-columns: 1fr;
  }
  .widget--s1, .widget--s2, .widget--s3 { grid-column: span 1; }
  .board { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .drawer__panel { width: 100%; max-width: 100%; }
  .onboard { padding: 18px 16px 0; }
  .onboard__top { flex-wrap: wrap; gap: 12px; }
  .steps { margin: 0; width: 100%; }
  .step { font-size: 10.5px; }
  .onboard__foot-note { display: none; }
  .landing { padding: 18px 16px 40px; }
  .summary { padding: 16px; }
  .stats--hero .stat__num { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ 站点公告（管理员下发） ============ */
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1080px;
  margin: 0 auto 18px;
  padding: 11px 16px;
  border: 1px solid var(--accent-line, var(--line-1));
  background: var(--accent-soft, rgba(96, 165, 250, .08));
  border-radius: var(--radius, 12px);
  color: var(--tx-1, inherit);
  font-size: 13px;
}
.notice .ico { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent, var(--tx-2)); }

/* 登录验证码：默认隐藏，连续失败达到阈值后才出现 */
.captcha-row { display: flex; gap: 8px; align-items: stretch; }
.captcha-row .input { flex: 1; min-width: 0; }
.captcha-img {
  flex: 0 0 120px;
  width: 120px;
  height: 38px;
  border: 1px solid var(--line-2, var(--line-3, #DCE3EC));
  border-radius: 8px;
  background-color: #F4F7FC;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  cursor: pointer;
}
.captcha-img:hover { border-color: var(--accent, #2F5BE8); }

/* ============================================================
   浅色主题精修
   只作用于 html[data-theme="light"]，不影响已确认的深色主题
   ========================================================== */

/* 画布：极淡的云层渐变，避免整屏死灰；固定不随滚动 */
html[data-theme="light"] body {
  background:
    radial-gradient(880px 420px at 84% -12%, rgba(76, 134, 255, 0.075), transparent 62%),
    radial-gradient(640px 340px at 8% -8%, rgba(23, 191, 216, 0.055), transparent 60%),
    var(--bg-0);
  background-attachment: fixed;
}

/* 侧栏与顶栏：纯白 + 一条实边，和灰画布拉开 */
html[data-theme="light"] .rail {
  background: #FFFFFF;
  border-right-color: var(--line-1);
  box-shadow: 1px 0 0 rgba(16, 32, 64, 0.03);
}
html[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--line-1);
  box-shadow: 0 1px 0 rgba(16, 32, 64, 0.02);
}

/* 侧栏选中：左侧实条 + 由左向右淡出的底，比整块淡紫干净 */
html[data-theme="light"] .nav.is-on {
  background: linear-gradient(90deg, var(--accent-soft), rgba(255, 255, 255, 0));
  color: var(--tx-1);
  font-weight: 600;
}
html[data-theme="light"] .nav.is-on::before { width: 2.5px; }
html[data-theme="light"] .nav:hover { background: var(--bg-3); }

/* 面板：border + 轻阴影，白卡片之间靠边界分层 */
html[data-theme="light"] .widget {
  border-color: var(--line-1);
  box-shadow: var(--shadow-1);
}
html[data-theme="light"] .widget:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-2);
}
html[data-theme="light"] .widget__head { border-bottom-color: var(--line-1); }

/* 记录卡：白底 + 1px 边 + 微阴影；hover 抬起 1px，明确可点 */
html[data-theme="light"] .card {
  background: #FFFFFF;
  border-color: var(--line-1);
  box-shadow: 0 1px 2px rgba(16, 32, 64, 0.055);
}
html[data-theme="light"] .card:hover {
  background: #FBFDFF;
  border-color: var(--line-3);
  box-shadow: 0 6px 16px -8px rgba(16, 32, 64, 0.22);
  transform: translateY(-1px);
}
html[data-theme="light"] .card.is-done { opacity: 0.62; }

/* 空列不再像“洞”：填充微底色，虚线边界提到 line-2 */
html[data-theme="light"] .col__empty {
  background: rgba(16, 32, 64, 0.018);
  border-color: var(--line-2);
  color: var(--tx-3);
}

/* 主指标卡：极浅渐变代替平涂，保留 1px 强调边 */
html[data-theme="light"] .stat--hero {
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.55));
  border-color: var(--accent-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* 输入类：白底 + 清楚边界，聚焦时给一圈 accent-soft 光环 */
html[data-theme="light"] .search,
html[data-theme="light"] .quick,
html[data-theme="light"] .switch-row,
html[data-theme="light"] .input {
  background: #FFFFFF;
  border-color: var(--line-2);
}
html[data-theme="light"] .search:focus-within,
html[data-theme="light"] .quick:focus-within,
html[data-theme="light"] .input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

/* 筛选与标签：选中态改成实心强调，一眼看出当前口径 */
html[data-theme="light"] .filter {
  background: #FFFFFF;
  border-color: var(--line-2);
  color: var(--tx-2);
}
html[data-theme="light"] .filter span { background: var(--bg-3); color: var(--tx-3); }
html[data-theme="light"] .filter.is-on {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-tx);
  font-weight: 600;
}
html[data-theme="light"] .filter.is-on span {
  background: var(--accent);
  color: #FFFFFF;
  border-color: transparent;
}
html[data-theme="light"] .tab.is-on {
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(16, 32, 64, 0.08), 0 0 0 1px var(--line-1);
  color: var(--tx-1);
  font-weight: 600;
}

/* 状态与标签：底色统一收窄，文字用深一档的语义色 */
html[data-theme="light"] .st--neutral { background: #EEF2F8; color: var(--tx-2); border-color: var(--line-2); }
html[data-theme="light"] .st--info { background: rgba(29, 78, 216, 0.08); color: var(--st-info-tx); border-color: rgba(29, 78, 216, 0.20); }
html[data-theme="light"] .st--warn { background: rgba(161, 92, 9, 0.09); color: var(--st-warn-tx); border-color: rgba(161, 92, 9, 0.22); }
html[data-theme="light"] .st--ok { background: rgba(6, 122, 91, 0.08); color: var(--st-ok-tx); border-color: rgba(6, 122, 91, 0.20); }
html[data-theme="light"] .st--danger { background: rgba(180, 35, 24, 0.07); color: var(--st-danger-tx); border-color: rgba(180, 35, 24, 0.20); }
html[data-theme="light"] .chip {
  background: var(--bg-3);
  border-color: var(--line-2);
  color: var(--tx-2);
}
html[data-theme="light"] .chip--muted { background: var(--bg-3); border-color: var(--line-1); color: var(--tx-3); }

/* 进度条/分布条：轨道加深，填充才看得出来 */
html[data-theme="light"] .dist__bar { background: #E7EEF8; }

/* 空态图标：浅底 + 实虚线，避免又一个“洞” */
html[data-theme="light"] .empty__icon {
  background: #F1F5FC;
  border-color: var(--line-2);
  color: var(--tx-3);
}

/* 分步激活：深色强调底配白字 */
html[data-theme="light"] .step.is-on span { color: #FFFFFF; }
html[data-theme="light"] .check.is-on { color: #FFFFFF; }
html[data-theme="light"] .is-flash { box-shadow: 0 0 0 3px var(--accent-soft); }
html[data-theme="light"] .badge-demo {
  background: var(--warn-soft, rgba(161, 92, 9, 0.10));
  color: var(--st-warn-tx);
  border-color: rgba(161, 92, 9, 0.22);
}

/* 选区与反色小片 */
html[data-theme="light"] ::selection { background: var(--accent); color: #FFFFFF; }

/* 指标行：标签在左、数值在右，读起来像一张表 */
.stats > .stat:not(.stat--hero) .stat__label {
  font-size: 12px;
  color: var(--tx-2);
  letter-spacing: -0.005em;
}
.stats > .stat:not(.stat--hero) .stat__num {
  font-variant-numeric: tabular-nums;
  color: var(--tx-1);
}

/* 浅色下的滚动条更轻，但不至于看不见 */html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(15, 26, 48, 0.18);
  background-clip: content-box;
  border: 3px solid transparent;
  border-radius: 99px;
}
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(15, 26, 48, 0.30); background-clip: content-box; }

/* ============================================================
   全局顶部导航 gnav
   与工具中心 .nav 使用同一套组件语言：通栏 sticky、滚动描边、
   云形品牌 + 副标、三链当前页高亮、boxed 主题按钮、quiet/primary 层级。
   配色仍走工作台主题变量，不改动既有深色视觉。
   ========================================================== */
#screen-landing .landing { padding-top: 58px; }

.gnav {
  position: sticky; top: 0; z-index: 60;
  height: 64px;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.gnav.is-stuck {
  border-bottom-color: var(--line-1);
  box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .45);
}
html[data-theme="light"] .gnav.is-stuck { box-shadow: 0 6px 20px -16px rgba(16, 32, 64, .30); }
.gnav__in {
  height: 100%; width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 30px; display: flex; align-items: center; gap: 34px;
}
.gnav .brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.gnav .brand__mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 20px -10px var(--accent);
}
.gnav .brand__mark svg { width: 17px; height: 17px; stroke: #fff; color: #fff; }
.gnav .brand__name {
  display: inline-flex; align-items: baseline;
  font-size: 16.5px; font-weight: 700; letter-spacing: -.015em; color: var(--tx-1);
}
.gnav .brand__name i {
  font-style: normal; font-weight: 600; color: var(--tx-3);
  font-size: 11px; letter-spacing: .06em; margin-left: 7px;
  padding-left: 8px; border-left: 1px solid var(--line-2);
}
.gnav__links { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.gnav__link {
  padding: 7px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--tx-2);
  transition: color .16s, background .16s;
}
.gnav__link:hover { color: var(--tx-1); background: var(--bg-3); }
.gnav__link.is-on { color: var(--accent-tx); background: var(--accent-soft); font-weight: 600; }
html[data-theme="light"] .gnav__link.is-on { color: var(--accent); }
.gnav__spacer { flex: 1; }
.gnav__actions { display: flex; align-items: center; gap: 10px; }
.gnav .icon-btn {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--bg-2);
  color: var(--tx-2);
  transition: background .16s, color .16s, border-color .16s;
}
.gnav .icon-btn:hover { background: var(--bg-3); color: var(--tx-1); border-color: var(--line-3); }
.gnav .icon-btn svg, .gnav .theme-btn .ico { width: 17px; height: 17px; }
.gnav .theme-btn { width: 34px; height: 34px; border-radius: 9px; }
.gnav .btn { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.gnav .btn--quiet { background: transparent; border-color: transparent; color: var(--tx-2); }
.gnav .btn--quiet:hover { background: var(--bg-3); color: var(--tx-1); }
.gnav .btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; box-shadow: 0 8px 20px -10px var(--accent);
}
.gnav .btn--primary:hover { filter: brightness(1.06); }
@media (max-width: 720px) {
  .gnav__in { gap: 10px; padding: 0 18px; }
  .gnav__links { display: none; }
  .gnav__actions { gap: 6px; }
  .gnav .brand__name i { display: none; }
  .gnav .btn--quiet { padding: 0 8px; font-size: 13px; }
  .gnav .btn--primary { padding: 0 12px; font-size: 13px; }
  #screen-landing .landing { padding-top: 40px; }
}
@media (max-width: 460px) {
  .gnav .btn--quiet { display: none; }
}

