/* ============================================================
 * 迎着阳光盛大逃亡 — 样式
 * 风格：冰透蓝 · 阳光冰晶
 *       冰面亮底 + 冷蓝透光 + 玻璃薄片 + 霜白高光
 * 自适应：全宽铺满（无 max-width 硬限制），断点仅做重排
 * ============================================================ */

:root {
  /* 冰面底（亮色 · 冷蓝白） */
  --bg: #EAF4FB;
  --bg-2: #DFEEF9;
  --bg-3: #F4FAFE;

  /* 玻璃层（浅色环境下用白色半透明 + 冷调描边） */
  --glass: rgba(255, 255, 255, .58);
  --glass-2: rgba(255, 255, 255, .78);
  --glass-hi: rgba(255, 255, 255, .92);
  --stroke: rgba(94, 152, 190, .22);
  --stroke-hi: rgba(70, 140, 190, .42);

  /* 文字（深青蓝，保证亮底可读性） */
  --ink: #12384F;
  --ink-soft: #3E6B88;
  --ink-faint: #7899B0;

  /* 冰蓝主色系 */
  --aurora-1: #2E9BD6;   /* 冰蓝（主） */
  --aurora-2: #46C8E8;   /* 浅冰青 */
  --aurora-3: #5FD7C4;   /* 冰薄荷 */
  --aurora-4: #4A7FD4;   /* 深蓝 */

  /* 语义 */
  --accent: #2E9BD6;
  --accent-2: #46C8E8;
  --gold: #1E8BBF;
  --danger: #E2566E;
  --ok: #2FA98C;

  /* 形状 */
  --radius-card: 20px;
  --radius-field: 12px;
  --radius-sm: 9px;

  /* 光效（亮底下改为冷色柔投 + 白色内高光） */
  --glow-1: 0 0 0 1px rgba(94,152,190,.16), 0 18px 46px -20px rgba(46,155,214,.42);
  --glow-2: 0 0 0 1px rgba(94,152,190,.2), 0 22px 56px -22px rgba(70,200,232,.46);
  --inner-hi: inset 0 1px 0 rgba(255,255,255,.9);

  --font: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

html, body { min-height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* 冰面背景：阳光斜射下的冰晶光斑 + 一层冷雾 */
body::before {
  content: '';
  position: fixed; inset: -20%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 38% at 16% 10%, rgba(70,200,232,.42), transparent 62%),
    radial-gradient(42% 36% at 86% 18%, rgba(255,224,168,.34), transparent 62%),
    radial-gradient(50% 40% at 64% 90%, rgba(95,215,196,.3), transparent 62%),
    radial-gradient(38% 34% at 6% 76%, rgba(74,127,212,.26), transparent 62%);
  filter: blur(26px);
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(226,241,250,.2) 55%, rgba(214,235,248,.5) 100%);
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.03); }
}

/* 应用外壳：登录页与主界面互斥显示，由 JS 切换 display */
.shell { position: relative; z-index: 1; }

.layout {
  display: flex; min-height: 100vh; align-items: stretch;
  position: relative; z-index: 1;
}

/* ---------------- 侧栏（磨砂玻璃） ---------------- */
.sidebar {
  width: 236px; flex: 0 0 236px;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.42));
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-right: 1px solid var(--stroke);
  padding: 22px 14px 20px;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(140deg, var(--aurora-1), var(--aurora-2));
  display: grid; place-items: center; font-size: 19px;
  box-shadow: 0 8px 22px -8px rgba(46,155,214,.75), var(--inner-hi);
}
.brand-text b {
  display: block; font-size: 14.5px; font-weight: 700;
  letter-spacing: .1px; color: var(--ink);
}
.brand-text span {
  font-size: 9px; color: var(--ink-faint); letter-spacing: 1.6px;
  text-transform: uppercase; font-weight: 600;
}

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border: 1px solid transparent; border-radius: var(--radius-field);
  background: transparent; color: var(--ink-soft);
  font-size: 13.5px; font-family: inherit; cursor: pointer;
  font-weight: 500; text-align: left; position: relative;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.nav-item:hover { background: var(--glass); color: var(--ink); }
.nav-item.active {
  background: linear-gradient(120deg, #2E9BD6, #46C8E8);
  border-color: transparent;
  color: #FFFFFF; font-weight: 600;
  box-shadow: 0 10px 26px -12px rgba(46,155,214,.9), var(--inner-hi);
}
.ni-icon { font-size: 15px; width: 18px; text-align: center; }

.side-foot { margin-top: auto; }
.side-card {
  background: var(--glass); border: 1px solid var(--stroke);
  border-radius: var(--radius-card); padding: 14px 15px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--inner-hi);
}
.side-card .sc-lv {
  font-size: 9.5px; color: var(--ink-faint); letter-spacing: 1.4px;
  text-transform: uppercase; font-weight: 600;
}
.side-card .sc-xp {
  font-size: 25px; font-weight: 700; line-height: 1.2;
  background: linear-gradient(120deg, var(--aurora-2), var(--aurora-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; letter-spacing: -.5px;
}
.side-card .sc-xp small {
  font-size: 10.5px; color: var(--ink-faint); font-weight: 600;
  margin-left: 3px; -webkit-text-fill-color: var(--ink-faint);
}
.side-card .sc-lvname { font-size: 12px; color: var(--ink); font-weight: 600; margin-top: 3px; }

/* ---------------- 主区（全宽铺满） ---------------- */
.main { flex: 1 1 auto; min-width: 0; padding: 28px 34px 80px; }

.page-head { margin-bottom: 20px; }
.page-head h1 {
  font-size: 27px; font-weight: 700; letter-spacing: -.6px;
  color: var(--ink); line-height: 1.2;
}
.page-head p { font-size: 13px; color: var(--ink-soft); }
.head-date {
  font-size: 11.5px; color: var(--ink-faint); font-weight: 500;
  letter-spacing: .5px; margin-top: 6px;
}

.muted { color: var(--ink-soft); }
.small { font-size: 12px; }
.clickable { cursor: pointer; }

/* ---------------- 玻璃面板 ---------------- */
.panel {
  background: linear-gradient(160deg, rgba(255,255,255,.82), rgba(255,255,255,.58));
  border: 1px solid var(--stroke); border-radius: var(--radius-card);
  padding: 20px 22px; margin-bottom: 16px; min-width: 0;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--glow-1), var(--inner-hi);
}
.panel h2 {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  letter-spacing: .1px; display: flex; align-items: center; gap: 9px;
}
.panel h2::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px; flex: 0 0 3px;
  background: linear-gradient(180deg, var(--aurora-1), var(--aurora-2));
  box-shadow: 0 0 10px rgba(46,155,214,.9);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 > * { min-width: 0; }

.count {
  font-size: 11px; font-weight: 600; color: var(--ink);
  background: var(--glass-2); border: 1px solid var(--stroke);
  border-radius: 20px; padding: 1px 8px; font-variant-numeric: tabular-nums;
}
.count.accent {
  background: linear-gradient(120deg, rgba(46,155,214,.35), rgba(70,200,232,.28));
  border-color: var(--stroke-hi);
}

.chart-wrap { margin-top: 14px; min-width: 0; }
canvas { display: block; max-width: 100%; }

/* ---------------- HERO ---------------- */
.hero {
  display: flex; align-items: stretch; flex-wrap: wrap;
  background: linear-gradient(130deg, rgba(255,255,255,.9), rgba(214,238,250,.82) 55%, rgba(203,235,246,.8));
  border: 1px solid var(--stroke-hi); border-radius: var(--radius-card);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: var(--glow-2), var(--inner-hi);
  margin-bottom: 16px; overflow: hidden;
}
.hero-lv {
  flex: 0 0 196px; padding: 22px 24px;
  border-right: 1px solid var(--stroke);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-lv-cap {
  font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600;
}
.hero-lv-num {
  font-size: 42px; font-weight: 700; line-height: 1; letter-spacing: -1.8px;
  background: linear-gradient(120deg, var(--aurora-1), var(--aurora-2) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 7px 0 3px;
}
.hero-lv-stage { font-size: 12px; font-weight: 600; color: var(--ok); letter-spacing: .4px; }

.hero-mid {
  flex: 1 1 250px; min-width: 0; padding: 22px 24px;
  display: flex; flex-direction: column; justify-content: center; gap: 9px;
}
.hero-bar-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; color: var(--ink-faint);
}
.hero-bar-row b { font-size: 15px; color: var(--ink); letter-spacing: -.3px; }
.hero-bar {
  height: 9px; border-radius: 20px; background: rgba(94,152,190,.18);
  overflow: hidden; box-shadow: inset 0 1px 3px rgba(46,120,170,.16);
}
.hero-bar i {
  display: block; height: 100%; border-radius: 20px;
  background: linear-gradient(90deg, var(--aurora-1), var(--aurora-2));
  box-shadow: 0 0 16px rgba(70,200,232,.85);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}
.hero-note { font-size: 12px; color: var(--ink-soft); }
.hero-note b { color: var(--aurora-2); font-weight: 700; font-variant-numeric: tabular-nums; }

.hero-stats { flex: 0 0 auto; display: flex; border-left: 1px solid var(--stroke); }
.hs {
  padding: 20px 18px; min-width: 94px;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid rgba(94,152,190,.17);
}
.hs:last-child { border-right: 0; }
.hs-cap {
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; white-space: nowrap;
}
.hs-num {
  font-size: 28px; font-weight: 700; line-height: 1.05; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -1px; margin-top: 4px;
}
.hs-num.accent {
  background: linear-gradient(120deg, var(--aurora-2), var(--aurora-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hs-num small { font-size: 12px; font-weight: 500; margin-left: 2px; color: var(--ink-faint); }

/* ---------------- 指标卡 ---------------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 16px;
}
.stat-card {
  background: linear-gradient(160deg, rgba(255,255,255,.82), rgba(255,255,255,.58));
  border: 1px solid var(--stroke); border-radius: var(--radius-card);
  padding: 17px 18px; min-width: 0;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--inner-hi);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.stat-card.clickable:hover {
  border-color: var(--stroke-hi); transform: translateY(-2px);
  box-shadow: var(--glow-2), var(--inner-hi);
}
.sc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sc-icon {
  font-size: 12px; width: 25px; height: 25px; border-radius: 8px;
  background: linear-gradient(140deg, rgba(46,155,214,.4), rgba(70,200,232,.28));
  border: 1px solid var(--stroke); display: grid; place-items: center;
}
.sc-label {
  font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600;
}
.sc-value {
  font-size: 30px; font-weight: 700; color: var(--ink);
  line-height: 1.08; font-variant-numeric: tabular-nums; letter-spacing: -.9px;
}
.sc-value small { font-size: 12px; color: var(--ink-faint); font-weight: 500; margin-left: 4px; }
.sc-sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 6px; }

/* ---------------- 环形信息 ---------------- */
.ring-wrap { display: flex; justify-content: center; margin-top: 6px; min-width: 0; }
.ring-info { margin-top: 14px; }
.ri-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 2px; border-bottom: 1px solid rgba(94,152,190,.17); font-size: 13px;
}
.ri-row:last-child { border-bottom: 0; }
.ri-row span { color: var(--ink-soft); }
.ri-row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------- XP 动态 ---------------- */
.xp-feed { margin-top: 10px; max-height: 360px; overflow-y: auto; }
.feed-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 2px; border-bottom: 1px solid rgba(94,152,190,.17); font-size: 13px;
}
.feed-row:last-child { border-bottom: 0; }
.feed-time {
  color: var(--ink-faint); font-size: 11px; min-width: 58px;
  font-variant-numeric: tabular-nums;
}
.feed-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; box-shadow: 0 0 8px currentColor; }
.feed-note { flex: 1; color: var(--ink); min-width: 0; }
.feed-xp { font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.feed-xp.plus { color: var(--aurora-3); }
.feed-xp.zero { color: var(--ink-faint); font-weight: 400; }

/* ---------------- 今日待办条目 ---------------- */
.tk-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.tk {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,.62); border: 1px solid var(--stroke);
  border-radius: var(--radius-field); padding: 11px 13px;
  transition: background .18s ease, border-color .18s ease;
}
.tk:hover { background: rgba(255,255,255,.88); border-color: var(--stroke-hi); }
.tk.is-done { border-color: rgba(95,215,196,.3); background: rgba(95,215,196,.06); }
.tk-main { min-width: 0; flex: 1 1 auto; }
.tk-name { font-size: 13.5px; font-weight: 600; color: var(--ink); word-break: break-word; }
.tk.is-done .tk-name { color: var(--ink-soft); }
.tk-meta {
  display: flex; align-items: center; gap: 8px; margin-top: 5px;
  font-size: 11.5px; flex-wrap: wrap; color: var(--ink-faint);
}
.tk-xp { font-weight: 600; color: var(--aurora-2); font-variant-numeric: tabular-nums; }
.tk-type {
  font-size: 10px; letter-spacing: .8px; text-transform: uppercase;
  border: 1px solid var(--stroke); border-radius: 20px; padding: 0 8px;
}
.tk-ops { display: flex; gap: 7px; align-items: center; flex: 0 0 auto; }

.past-note {
  margin-top: 12px; font-size: 11.5px; color: var(--ink-faint);
  border-top: 1px dashed rgba(94,152,190,.2); padding-top: 10px;
}

/* ---------------- 标签 / 难度 / XP 药丸 ---------------- */
.tag {
  display: inline-block; padding: 1px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 500;
  color: var(--tc, var(--aurora-2));
  background: color-mix(in srgb, var(--tc, var(--aurora-2)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--tc, var(--aurora-2)) 36%, transparent);
}
.diff {
  font-size: 10.5px; padding: 2px 9px; border-radius: 20px;
  font-weight: 500; white-space: nowrap;
}
.diff-easy   { color: #167A5E; background: rgba(47,169,140,.14); border: 1px solid rgba(47,169,140,.34); }
.diff-normal { color: #3A6494; background: rgba(74,127,212,.13); border: 1px solid rgba(74,127,212,.32); }
.diff-mid    { color: #1E7CA8; background: rgba(46,155,214,.15); border: 1px solid rgba(46,155,214,.36); }
.diff-hard   { color: #B93A54; background: rgba(226,86,110,.14); border: 1px solid rgba(226,86,110,.36); }
.xp-pill {
  font-size: 12px; font-weight: 600; color: var(--aurora-2);
  background: rgba(70,200,232,.13); border: 1px solid rgba(70,200,232,.3);
  padding: 2px 9px; border-radius: 20px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------------- 按钮 ---------------- */
.btn {
  border: 1px solid var(--stroke-hi); border-radius: var(--radius-field);
  padding: 8px 16px; font-family: inherit; font-size: 13px;
  cursor: pointer; font-weight: 500; white-space: nowrap;
  background: var(--glass-2); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn:hover { background: var(--glass-hi); border-color: rgba(255,255,255,.88); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.btn.sm { padding: 5px 12px; font-size: 12px; border-radius: var(--radius-sm); }
.btn.primary {
  background: linear-gradient(120deg, var(--aurora-1), var(--aurora-2));
  border-color: transparent; color: #FFFFFF; font-weight: 700;
  box-shadow: 0 10px 26px -12px rgba(46,155,214,.95);
}
.btn.primary:hover { box-shadow: 0 14px 32px -12px rgba(70,200,232,1); }
.btn.ghost { background: var(--glass); color: var(--ink-soft); }
.btn.ghost:hover { color: var(--ink); }
.btn.danger { background: rgba(226,86,110,.12); color: var(--danger); border-color: rgba(226,86,110,.36); }
.btn.danger:hover { background: rgba(226,86,110,.22); }
.btn.street {
  background: linear-gradient(120deg, rgba(70,200,232,.34), rgba(95,215,196,.28));
  border-color: rgba(46,155,214,.42); color: #11506E; font-weight: 600;
}
.btn.street:hover { background: linear-gradient(120deg, rgba(70,200,232,.45), rgba(95,215,196,.32)); }

.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }

/* ---------------- 图标按钮 ---------------- */
.icon-btn {
  width: 27px; height: 27px; flex: 0 0 27px;
  display: grid; place-items: center;
  border: 1px solid var(--stroke); background: var(--glass);
  border-radius: var(--radius-sm); color: var(--ink-soft);
  font-size: 12px; line-height: 1; cursor: pointer; padding: 0;
  font-family: inherit; transition: all .16s ease;
}
.icon-btn:hover:not(:disabled) { border-color: var(--stroke-hi); color: var(--ink); background: var(--glass-hi); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.icon-btn.danger:hover { border-color: rgba(226,86,110,.5); color: var(--danger); background: rgba(226,86,110,.16); }

/* ---------------- 筛选条 ---------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  border: 1px solid var(--stroke); background: var(--glass);
  color: var(--ink-soft); border-radius: 20px;
  padding: 5px 13px; font-size: 12.5px; font-family: inherit;
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.chip:hover { border-color: var(--stroke-hi); color: var(--ink); }
.chip.on {
  background: linear-gradient(120deg, #2E9BD6, #46C8E8);
  border-color: transparent; color: #FFFFFF; font-weight: 600;
  box-shadow: 0 8px 20px -12px rgba(46,155,214,.9);
}
.filter-sep { width: 1px; height: 18px; background: var(--stroke); margin: 0 4px; }

/* ---------------- 列表行 ---------------- */
.list-table { margin-top: 12px; }
.list-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 2px; border-bottom: 1px solid rgba(94,152,190,.17);
}
.list-row:last-child { border-bottom: 0; }
.list-row.is-done { opacity: .5; }
.list-row.is-done .lr-name { text-decoration: line-through; color: var(--ink-faint); }
.lr-name { flex: 1; font-size: 13.5px; color: var(--ink); min-width: 0; font-weight: 500; }
.lr-status { font-size: 11px; color: var(--ink-faint); min-width: 54px; }
.lr-ops { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.empty { color: var(--ink-faint); font-size: 13px; padding: 28px 0; text-align: center; }
.empty.small { padding: 14px 0; font-size: 12.5px; }

/* ---------------- 空状态 ---------------- */
.empty-panel { text-align: center; padding: 46px 24px 42px; }
.empty-big { font-size: 44px; line-height: 1; margin-bottom: 14px; display: inline-block; }
.empty-title { font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -.4px; margin-bottom: 8px; }
.empty-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.85; margin-bottom: 20px; }
.empty-panel .btn { margin: 0 auto; }

/* ---------------- 等级条（主线 / 通用） ---------------- */
.lv-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 12px; }
.lv-line .lv-tag { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.lv-line .lv-next { font-size: 11.5px; color: var(--ink-faint); }
.lv-bar {
  height: 7px; border-radius: 20px; background: rgba(94,152,190,.18);
  overflow: hidden; margin-top: 8px; box-shadow: inset 0 1px 3px rgba(46,120,170,.14);
}
.lv-bar i {
  display: block; height: 100%; border-radius: 20px;
  box-shadow: 0 0 12px rgba(46,155,214,.7);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}

/* ---------------- 主线手风琴 ---------------- */
.track-panel { padding: 18px 22px 16px; }
.tp-head { display: flex; align-items: center; gap: 13px; cursor: pointer; user-select: none; }
.tp-icon {
  width: 42px; height: 42px; border-radius: 14px; flex: 0 0 42px;
  display: grid; place-items: center; font-size: 20px;
  border: 1px solid var(--stroke); box-shadow: var(--inner-hi);
}
.tp-title { flex: 1; min-width: 0; }
.tp-name { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.tp-role { margin-top: 1px; }
.tp-stat { text-align: right; }
.tp-lv { font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.6px; }
.tp-next { margin-top: 2px; }
.tp-caret { font-size: 11px; color: var(--ink-faint); flex: 0 0 18px; text-align: center; }
.tp-head:hover .tp-caret { color: var(--aurora-2); }
.tp-bar {
  height: 7px; border-radius: 20px; background: rgba(94,152,190,.18);
  overflow: hidden; margin-top: 14px; box-shadow: inset 0 1px 3px rgba(46,120,170,.14);
}
.tp-bar i {
  display: block; height: 100%; border-radius: 20px;
  box-shadow: 0 0 12px rgba(70,200,232,.7);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}
.ms-wrap { display: none; }
.track-panel.open .ms-wrap { display: block; }

/* ---------------- 子轨 ---------------- */
.sub-block { margin-top: 16px; border-top: 1px solid rgba(94,152,190,.17); padding-top: 4px; }
.sub-head {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 4px; cursor: pointer; border-radius: var(--radius-sm);
  transition: background .16s ease;
}
.sub-head:hover { background: rgba(255,255,255,.88); }
.sub-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.sub-count { font-size: 11px; color: var(--ink-faint); }
.sub-add { margin-left: auto; }

.pj-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }

/* ---------------- 项目卡 ---------------- */
.pj-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.62); border: 1px solid var(--stroke);
  border-radius: var(--radius-field); padding: 12px 14px;
  cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.pj-card:hover { background: rgba(255,255,255,.88); border-color: var(--stroke-hi); transform: translateX(2px); }
.pj-card.is-done { border-color: rgba(95,215,196,.28); background: rgba(95,215,196,.05); }
.pj-icon { font-size: 20px; flex: 0 0 26px; text-align: center; }
.pj-body { flex: 1; min-width: 0; }
.pj-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pj-badge {
  font-style: normal; font-size: 10px; font-weight: 600;
  color: var(--aurora-3); background: rgba(95,215,196,.14);
  border: 1px solid rgba(95,215,196,.32);
  border-radius: 20px; padding: 1px 8px; margin-left: 7px;
}
.pj-desc { margin-top: 1px; }
.pj-meta { display: flex; gap: 12px; margin-top: 5px; font-size: 11px; color: var(--ink-faint); flex-wrap: wrap; }
.pj-bar {
  height: 5px; border-radius: 20px; background: rgba(94,152,190,.18);
  overflow: hidden; margin-top: 7px; box-shadow: inset 0 1px 2px rgba(46,120,170,.14);
}
.pj-bar i { display: block; height: 100%; border-radius: 20px; transition: width .5s ease; }
.pj-bar.big { height: 8px; margin-top: 14px; }
.pj-go { font-size: 18px; color: var(--ink-faint); flex: 0 0 14px; text-align: center; }

/* ---------------- 项目详情 ---------------- */
.pj-detail .pj-detail-desc { font-size: 13.5px; color: var(--ink-soft); }
.pj-sum { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 14px; }
.pj-sum-item { display: flex; flex-direction: column; gap: 2px; }
.pj-sum-item span { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-faint); }
.pj-sum-item b { font-size: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------------- 步骤列表（项目内） ---------------- */
.st-list { display: flex; flex-direction: column; margin-top: 12px; }
.st-row {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 8px; border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(94,152,190,.17);
  transition: background .16s ease;
}
.st-row:last-child { border-bottom: 0; }
.st-row:hover { background: rgba(255,255,255,.88); }
.st-row.is-done { opacity: .62; }
.st-row.is-done .st-title { text-decoration: line-through; color: var(--ink-faint); }
.st-check {
  width: 21px; height: 21px; flex: 0 0 21px; margin-top: 1px; border-radius: 50%;
  border: 1px solid var(--stroke-hi); background: var(--glass);
  color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  transition: all .16s ease; padding: 0; font-family: inherit;
}
.st-check:hover { border-color: var(--aurora-2); box-shadow: 0 0 12px rgba(70,200,232,.6); }
.st-row.is-done .st-check {
  background: linear-gradient(120deg, var(--aurora-2), var(--aurora-3));
  border-color: transparent; box-shadow: 0 0 14px rgba(95,215,196,.8);
}
.st-idx2 {
  font-size: 11px; color: var(--ink-faint); flex: 0 0 16px;
  font-variant-numeric: tabular-nums; margin-top: 3px;
}
.st-main { flex: 1; min-width: 0; }
.st-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.st-meta2 { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.st-pill {
  font-size: 11px; padding: 1px 9px; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--stroke); color: var(--ink-soft);
}
.st-pill.xp { color: var(--aurora-2); border-color: rgba(70,200,232,.3); background: rgba(70,200,232,.1); }
.st-note2 {
  font-size: 12.5px; color: var(--ink-soft); margin-top: 7px;
  padding: 7px 11px; border-left: 2px solid var(--aurora-1);
  background: rgba(46,155,214,.09); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.st-img2 {
  max-width: 260px; width: 100%; margin-top: 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--stroke); display: block;
}
.st-ops { display: flex; gap: 4px; flex: 0 0 auto; }
.st-row .st-ops { opacity: 0; transition: opacity .16s ease; }
.st-row:hover .st-ops { opacity: 1; }

/* ---------------- 里程碑列表 ---------------- */
.ms-list { display: flex; flex-direction: column; margin-top: 14px; }
.ms-item {
  border-radius: var(--radius-sm); border-bottom: 1px solid rgba(94,152,190,.17);
  transition: background .16s ease;
}
.ms-item:last-child { border-bottom: 0; }
.ms-item:hover { background: rgba(255,255,255,.88); }
.ms-head { display: flex; align-items: flex-start; gap: 11px; padding: 11px 9px; }
.ms-mark {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; margin-top: 7px;
  box-shadow: 0 0 12px currentColor;
}
.ms-body { flex: 1; min-width: 0; }
.ms-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ms-desc { margin-top: 1px; line-height: 1.5; }
.ms-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 6px; }
.ms-sub {
  font-size: 11px; color: var(--aurora-2);
  background: rgba(70,200,232,.12); border: 1px solid rgba(70,200,232,.28);
  border-radius: 20px; padding: 1px 9px;
}
.ms-tag {
  font-size: 11px; color: var(--ink-faint);
  background: var(--glass); border: 1px solid var(--stroke);
  border-radius: 20px; padding: 1px 9px; font-variant-numeric: tabular-nums;
}
.ms-ops { display: flex; gap: 5px; flex: 0 0 auto; align-items: center; flex-wrap: wrap; }
.ms-item .ms-ops .icon-btn { opacity: 0; }
.ms-item:hover .ms-ops .icon-btn { opacity: 1; }
.ms-item.open .ms-ops .icon-btn { opacity: 1; }

.ms-steps {
  padding: 2px 9px 14px 28px;
  display: flex; flex-direction: column; gap: 6px;
}
.ms-steps .st-item {
  display: flex; gap: 10px; padding: 8px 11px;
  background: rgba(255,255,255,.62); border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
}
.ms-steps .st-idx {
  font-size: 11px; color: var(--ink-faint); flex: 0 0 16px;
  font-variant-numeric: tabular-nums; margin-top: 2px;
}
.ms-steps .st-body { flex: 1; min-width: 0; }
.ms-steps .st-name { font-size: 12.5px; color: var(--ink); font-weight: 500; }
.ms-steps .st-item.is-done .st-name { color: var(--ink-soft); }
.ms-steps .st-meta { display: flex; gap: 10px; font-size: 11px; color: var(--ink-faint); margin-top: 3px; }
.ms-steps .st-note {
  font-size: 12px; color: var(--ink-soft); margin-top: 6px;
  padding: 6px 10px; border-left: 2px solid var(--aurora-1);
  background: rgba(46,155,214,.09); border-radius: 0 6px 6px 0;
}
.ms-steps .st-img { max-width: 200px; width: 100%; margin-top: 6px; border-radius: 6px; border: 1px solid var(--stroke); display: block; }

/* ---------------- 日历 ---------------- */
.cal-head { display: flex; align-items: center; gap: 12px; }
.cal-title { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.cal-spacer { flex: 1; }
.cal-week {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
  margin: 16px 0 8px;
}
.cal-week span {
  text-align: center; font-size: 11px; color: var(--ink-faint);
  letter-spacing: .5px;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-cell {
  position: relative; aspect-ratio: 1 / .82; min-height: 54px;
  background: rgba(255,255,255,.62); border: 1px solid var(--stroke);
  border-radius: var(--radius-field); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-family: inherit; color: var(--ink-soft); font-size: 14px;
  transition: all .18s ease; padding: 4px;
}
.cal-cell:hover {
  background: rgba(94,152,190,.24); border-color: var(--stroke-hi);
  color: var(--ink); transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(46,155,214,.9);
}
.cal-cell.is-empty { background: transparent; border-color: transparent; cursor: default; }
.cal-cell.is-empty:hover { transform: none; box-shadow: none; background: transparent; }
.cal-cell.is-today {
  border-color: var(--aurora-2);
  background: linear-gradient(140deg, rgba(70,200,232,.2), rgba(46,155,214,.14));
  box-shadow: 0 0 0 1px rgba(70,200,232,.4), 0 10px 26px -14px rgba(70,200,232,1);
  color: var(--ink); font-weight: 700;
}
.cal-cell.has-items { color: var(--ink); }
.cal-d { font-variant-numeric: tabular-nums; line-height: 1; }
.cal-dot {
  font-size: 9.5px; line-height: 1; min-width: 16px; padding: 1px 5px;
  border-radius: 20px; font-weight: 600;
  background: linear-gradient(120deg, var(--aurora-1), var(--aurora-2));
  color: #FFFFFF;
}

/* 日程编辑行 */
.day-list { display: flex; flex-direction: column; gap: 8px; }
.day-item { display: flex; align-items: center; gap: 8px; }
.di-time {
  width: 92px; flex: 0 0 92px; padding: 8px 9px; font-family: inherit; font-size: 12.5px;
  background: var(--glass); border: 1px solid var(--stroke);
  border-radius: var(--radius-sm); color: var(--ink); outline: none;
}
.di-text {
  flex: 1; min-width: 0; padding: 8px 11px; font-family: inherit; font-size: 13px;
  background: var(--glass); border: 1px solid var(--stroke);
  border-radius: var(--radius-sm); color: var(--ink); outline: none;
}
.di-time:focus, .di-text:focus { border-color: var(--aurora-2); background: rgba(255,255,255,.95); }
.di-done { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }

/* ---------------- 奖励 ---------------- */
.reward-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.reward-card {
  background: linear-gradient(160deg, rgba(255,255,255,.82), rgba(255,255,255,.58));
  border: 1px solid var(--stroke); border-radius: var(--radius-card);
  overflow: hidden; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--inner-hi);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.reward-card:hover { border-color: var(--stroke-hi); transform: translateY(-2px); box-shadow: var(--glow-2), var(--inner-hi); }
.reward-card.unlocked { border-color: rgba(95,215,196,.4); box-shadow: 0 20px 46px -20px rgba(95,215,196,.6), var(--inner-hi); }
.rc-media {
  position: relative; height: 124px; background: rgba(255,255,255,.62);
  display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--stroke);
}
.rc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-media[data-empty] { height: 86px; }
.rc-ph { font-size: 12.5px; color: var(--ink-soft); padding: 0 16px; text-align: center; }
.rc-type, .rc-state {
  position: absolute; top: 9px; font-size: 10px; font-weight: 600; letter-spacing: .4px;
  padding: 2px 9px; border-radius: 20px;
  background: rgba(255,255,255,.82); color: var(--ink-soft);
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.rc-type { left: 9px; }
.rc-state { right: 9px; }
.reward-card.unlocked .rc-state { color: var(--aurora-3); border-color: rgba(95,215,196,.4); }
.rc-body { padding: 14px 16px 15px; }
.rc-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.rc-cost { font-size: 12px; color: var(--aurora-2); margin: 3px 0 11px; font-variant-numeric: tabular-nums; }
.rc-bar { height: 5px; border-radius: 20px; background: rgba(94,152,190,.18); overflow: hidden; box-shadow: inset 0 1px 2px rgba(46,120,170,.14); }
.rc-bar i {
  display: block; height: 100%; border-radius: 20px;
  background: linear-gradient(90deg, var(--aurora-1), var(--aurora-2));
  box-shadow: 0 0 10px rgba(70,200,232,.7);
  transition: width .5s ease;
}
.rc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 11px; font-size: 11.5px; color: var(--ink-soft);
}

/* ---------------- 设置行 ---------------- */
.set-line { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.set-line b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------- 模态框 ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(30,80,120,.32);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: none; place-items: center; padding: 24px;
}
.modal-mask.show { display: grid; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  width: 100%; max-width: 448px;
  background: linear-gradient(160deg, rgba(30,36,64,.96), rgba(16,20,38,.97));
  border: 1px solid var(--stroke-hi); border-radius: var(--radius-card);
  box-shadow: 0 40px 90px -34px rgba(30,90,140,.42), 0 0 60px -22px rgba(46,155,214,.4), var(--inner-hi);
  animation: pop .26s cubic-bezier(.2,1.1,.4,1);
  overflow: hidden;
}
@keyframes pop { from { transform: scale(.95) translateY(8px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal-head { padding: 19px 22px 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.modal-body { padding: 16px 22px 4px; max-height: 64vh; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 18px 22px 20px; }
.modal-hint {
  font-size: 12px; color: var(--ink-soft); line-height: 1.7;
  background: rgba(46,155,214,.12); border-left: 2px solid var(--aurora-1);
  padding: 8px 12px; margin-bottom: 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.field { display: block; margin-bottom: 13px; }
.field > span {
  display: block; font-size: 11px; color: var(--ink-faint);
  margin-bottom: 6px; letter-spacing: .6px;
}
.field input, .field select {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--stroke); border-radius: var(--radius-field);
  background: var(--glass); color: var(--ink);
  font-family: inherit; font-size: 13.5px; outline: none;
  transition: border-color .16s ease, background .16s ease;
}
.field input:focus, .field select:focus { border-color: var(--aurora-2); background: rgba(255,255,255,.95); }
.field input::placeholder { color: var(--ink-faint); }
.field select option { background: #FFFFFF; color: var(--ink); }
.field input[type="file"] { padding: 7px 10px; font-size: 12.5px; }
.rw-preview { margin-top: 4px; }
.rw-preview img { max-width: 100%; border-radius: var(--radius-field); display: block; border: 1px solid var(--stroke); }

/* AI 草稿 */
.draft-list { display: flex; flex-direction: column; gap: 7px; }
.draft-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 11px;
  background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 13px;
}
.draft-name { flex: 1; min-width: 0; color: var(--ink); }
.draft-meta { font-size: 11.5px; color: var(--aurora-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------- 动效 ---------------- */
#fxLayer { position: fixed; inset: 0; pointer-events: none; z-index: 130; }
.xp-fly {
  position: absolute; right: 48px; bottom: 90px;
  font-size: 23px; font-weight: 700;
  background: linear-gradient(120deg, var(--aurora-2), var(--aurora-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 0 18px rgba(70,200,232,.95));
  animation: flyUp 1.25s ease-out forwards;
}
@keyframes flyUp {
  0% { opacity: 0; transform: translateY(18px) scale(.85); }
  25% { opacity: 1; transform: translateY(0) scale(1.08); }
  100% { opacity: 0; transform: translateY(-78px) scale(1); }
}

.levelup {
  position: fixed; inset: 0;
  background: rgba(30,80,120,.34);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; place-items: center; pointer-events: auto;
  animation: fade .26s ease;
}
.lv-card {
  position: relative; text-align: center;
  background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(232,244,252,.97));
  border: 1px solid var(--stroke-hi); border-radius: 26px;
  padding: 34px 50px;
  box-shadow: 0 44px 100px -34px rgba(30,90,140,.45), 0 0 90px -20px rgba(46,155,214,.55), var(--inner-hi);
  animation: pop .34s cubic-bezier(.2,1.3,.4,1);
}
.lv-card .btn { margin-top: 6px; }
.lv-tag {
  font-size: 11px; letter-spacing: 6px; color: var(--aurora-2);
  font-weight: 600; margin-bottom: 10px; text-transform: uppercase;
}
.lv-num {
  font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -2.4px;
  background: linear-gradient(120deg, var(--aurora-2), var(--aurora-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(70,200,232,.9));
}
.lv-track { font-size: 16px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.lv-sub { font-size: 13px; color: var(--ink-soft); margin: 10px 0 22px; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translate(-50%, 14px);
  background: rgba(255,255,255,.96); border: 1px solid var(--stroke-hi);
  color: var(--ink); padding: 11px 20px; border-radius: var(--radius-field);
  font-size: 13px; opacity: 0;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -22px rgba(30,90,140,.4), 0 0 40px -16px rgba(46,155,214,.5);
  transition: opacity .28s ease, transform .28s ease; z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.reward { border-color: rgba(95,215,196,.5); box-shadow: 0 24px 50px -22px rgba(30,90,140,.4), 0 0 40px -14px rgba(95,215,196,.55); }
.toast.warn { border-color: rgba(226,86,110,.5); box-shadow: 0 24px 50px -22px rgba(30,90,140,.4), 0 0 40px -14px rgba(226,86,110,.55); }

/* ---------------- 滚动条 ---------------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(94,152,190,.3); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: rgba(94,152,190,.48); }

/* ---------------- 同步状态 ---------------- */
.sync-bar {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--ink-faint); padding: 0 8px 2px;
}
.sync-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); flex: 0 0 6px; }
.sync-dot.on { background: var(--ok); box-shadow: 0 0 10px currentColor; }
.sync-dot.off { background: var(--ink-faint); }
.sync-dot.err { background: var(--danger); box-shadow: 0 0 10px currentColor; }

/* ============================================================
 * 响应式重排（不做宽度截断，仅调整列数与留白）
 * ============================================================ */

@media (min-width: 1800px) {
  .main { padding: 36px 54px 96px; }
  body { font-size: 14.5px; }
  .stat-grid { gap: 18px; }
  .grid-2 { gap: 18px; }
  .reward-grid { gap: 18px; }
  .hero-lv-num { font-size: 48px; }
  .page-head h1 { font-size: 30px; }
}
@media (min-width: 2400px) {
  .main { padding: 42px 70px 110px; }
  .panel { padding: 24px 28px; }
  .hero-lv-num { font-size: 54px; }
}

@media (max-width: 1180px) {
  .grid-2 { grid-template-columns: 1fr; }
  .main { padding: 24px 24px 76px; }
  .hero-stats { flex: 1 1 100%; border-left: 0; border-top: 1px solid var(--stroke); }
  .hs { flex: 1 1 0; }
}

@media (max-width: 900px) {
  .cal-cell { aspect-ratio: 1 / .95; min-height: 46px; font-size: 13px; }
  .cal-week, .cal-grid { gap: 6px; }
}

@media (max-width: 760px) {
  .sidebar { width: 62px; flex: 0 0 62px; padding: 16px 7px; }
  .brand { justify-content: center; padding: 0 0 4px; }
  .brand-logo { width: 34px; height: 34px; font-size: 16px; border-radius: 11px; }
  .brand-text { display: none; }
  .nav-item { justify-content: center; padding: 11px 0; }
  .nav-item span:last-child { display: none; }
  .ni-icon { font-size: 17px; }
  .side-card { padding: 10px 6px; text-align: center; border: 0; background: transparent; box-shadow: none; }
  .side-card .sc-lv, .side-card .sc-lvname { display: none; }
  .side-card .sc-xp { font-size: 16px; }
  .side-card .sc-xp small { display: none; }
  .sync-bar span:last-child { display: none; }
  .sync-bar { justify-content: center; padding: 0; }
  .main { padding: 20px 15px 74px; }
  .panel { padding: 16px 14px; border-radius: 16px; }
  .page-head h1 { font-size: 23px; }
  .hero-lv { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--stroke); }
  .hero-mid { flex: 1 1 100%; padding: 18px 20px; }
  .hero-stats { flex: 1 1 100%; }
  .hs { padding: 14px 12px; min-width: 0; }
  .hs-num { font-size: 23px; }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); gap: 11px; }
  .sc-value { font-size: 24px; }
  /* 列表行堆叠 */
  .list-row { flex-wrap: wrap; row-gap: 7px; }
  .lr-name { flex: 1 1 100%; order: -1; }
  .lr-status { min-width: 0; margin-left: auto; }
  /* 待办堆叠 */
  .tk { flex-wrap: wrap; row-gap: 9px; }
  .tk-main { flex: 1 1 100%; }
  .tk-ops { flex: 1 1 auto; justify-content: flex-end; margin-left: auto; }
  /* 里程碑行堆叠 */
  .ms-head { flex-wrap: wrap; row-gap: 7px; }
  .ms-body { flex: 1 1 100%; order: 2; }
  .ms-head .ms-ops { order: 3; margin-left: auto; }
  .ms-item .ms-ops .icon-btn { opacity: 1; }
  .ms-steps { padding-left: 14px; }
  /* 步骤行堆叠 */
  .st-row { flex-wrap: wrap; row-gap: 8px; }
  .st-main { flex: 1 1 100%; order: 2; }
  .st-row .st-ops { order: 3; margin-left: auto; opacity: 1; }
  .st-idx2 { order: 1; }
  /* 日历更紧凑 */
  .cal-cell { aspect-ratio: 1 / 1.05; min-height: 40px; border-radius: 10px; }
  .di-time { width: 76px; flex: 0 0 76px; font-size: 12px; }
  .day-item { flex-wrap: wrap; }
  .lv-card { padding: 28px 26px; border-radius: 20px; }
  .lv-num { font-size: 44px; }
  .modal-card { max-width: 100%; border-radius: 18px; }
  .pj-sum { gap: 18px; }
}

/* ============================================================
 *  登录页
 *
 *  只在云端模式、且未登录时显示；主界面（#appShell）此时 display:none。
 *  视觉沿用「冰透蓝」：一片薄冰上的白色卡片，卡片本身几乎无阴影，
 *  靠发丝描边 + 顶部高光把层次拉开，避免亮底上出现脏灰。
 * ============================================================ */

#loginScreen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  z-index: 60;
}

.login-wrap {
  width: 100%;
  max-width: 396px;
  margin: auto;
}

.login-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(232, 245, 253, .94));
  border: 1px solid rgba(94, 152, 190, .26);
  border-radius: 22px;
  padding: 38px 34px 32px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 26px 64px -28px rgba(46, 155, 214, .5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.login-brand {
  text-align: center;
  margin-bottom: 30px;
}

.login-sun {
  display: inline-block;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 6px 14px rgba(70, 200, 232, .45));
}

.login-brand h1 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--ink);
  margin: 0 0 8px;
  background: linear-gradient(120deg, var(--aurora-1), var(--aurora-2) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-brand p {
  margin: 0;
  font-size: 12.5px;
}

.login-field {
  display: block;
  margin-bottom: 16px;
}

.login-field > span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 7px;
  letter-spacing: .3px;
}

.login-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(94, 152, 190, .3);
  border-radius: 11px;
  transition: border-color .18s, box-shadow .18s;
}

.login-field input::placeholder {
  color: var(--ink-faint);
}

.login-field input:focus {
  outline: none;
  border-color: rgba(46, 155, 214, .62);
  box-shadow: 0 0 0 3px rgba(70, 200, 232, .18);
}

.login-err {
  min-height: 20px;
  font-size: 12.5px;
  color: var(--danger);
  margin-bottom: 12px;
  line-height: 1.5;
}

.login-btn {
  width: 100%;
  padding: 12px;
  font-size: 14.5px;
  letter-spacing: 3px;
  border-radius: 12px;
}

.login-btn:disabled {
  opacity: .6;
  cursor: default;
}

@media (max-width: 480px) {
  .login-card { padding: 30px 24px 26px; border-radius: 18px; }
  .login-brand h1 { font-size: 19px; }
}
