/* =============================================================
   近单 JINDAN · 就近兼职 & AIGC 交易平台 · 高保真原型样式
   设计语言：玻璃拟态 + 柔和阴影 + 流畅转场 + 磁性交互
   ============================================================= */

/* ---------- 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --brand: #5B5BF5;
  --brand-600: #4A4AE0;
  --brand-700: #3b3bc4;
  --brand-soft: rgba(91, 91, 245, 0.12);
  --accent: #FF7A45;        /* 金额 / 急招 */
  --accent-soft: rgba(255, 122, 69, 0.14);
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* 浅色主题（默认） */
  --bg: #F4F5FA;
  --bg-2: #ECEEF6;
  --surface: #FFFFFF;
  --surface-2: #F8F9FD;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-brd: rgba(255, 255, 255, 0.75);
  --text: #14161F;
  --text-2: #5B6072;
  --text-3: #9AA0B4;
  --brd: rgba(20, 22, 31, 0.08);
  --shadow: 0 8px 30px rgba(20, 22, 31, 0.10);
  --shadow-sm: 0 2px 10px rgba(20, 22, 31, 0.06);
  --shadow-lg: 0 20px 50px rgba(20, 22, 31, 0.18);
  --chip: #EEF0F8;
  --chip-text: #4A4F63;
  --nav-bg: rgba(255, 255, 255, 0.82);

  /* 几何 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* 动效 */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.42s;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

/* 深色主题 */
[data-theme="dark"] {
  --bg: #07090F;
  --bg-2: #0C0F17;
  --surface: #12151F;
  --surface-2: #181C28;
  --glass: rgba(24, 28, 40, 0.55);
  --glass-brd: rgba(255, 255, 255, 0.08);
  --text: #F2F4FA;
  --text-2: #A4ABC0;
  --text-3: #6B7186;
  --brd: rgba(255, 255, 255, 0.09);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);
  --chip: #1C2130;
  --chip-text: #AEB4C9;
  --nav-bg: rgba(14, 17, 25, 0.78);
  --brand-soft: rgba(91, 91, 245, 0.22);
  --accent-soft: rgba(255, 122, 69, 0.2);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(91,91,245,0.10), transparent 60%),
    radial-gradient(1000px 700px at 110% 10%, rgba(255,122,69,0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
::-webkit-scrollbar { width: 0; height: 0; }

/* ---------- 手机外框 ---------- */
.phone {
  position: relative;
  width: 390px; height: 844px;
  max-height: calc(100vh - 32px);
  background: var(--bg);
  border-radius: 46px;
  box-shadow: var(--shadow-lg), 0 0 0 11px #0d0f15, 0 0 0 13px #2a2d38;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.phone::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 150px; height: 30px; background: #0d0f15; border-radius: 0 0 18px 18px; z-index: 60;
}
.screen {
  position: relative; flex: 1; overflow: hidden;
  background: var(--bg);
}
.view {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(8px) scale(0.992); pointer-events: none;
  transition: opacity 0.34s var(--ease), transform 0.34s var(--ease);
}
.view.active { opacity: 1; transform: none; pointer-events: auto; }

/* 滚动区 */
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pad { padding: 0 18px; }
.pad-t { padding-top: 14px; }

/* ---------- 状态栏 ---------- */
.statusbar {
  height: 44px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; font-size: 13px; font-weight: 600; color: var(--text);
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
}
.statusbar .icons { display: flex; gap: 6px; align-items: center; }
.statusbar .icons span { font-size: 12px; }

/* ---------- 顶部应用栏 ---------- */
.appbar {
  position: sticky; top: 0; z-index: 30;
  padding: 50px 18px 10px;
  background: linear-gradient(180deg, var(--bg) 72%, transparent);
  backdrop-filter: blur(6px);
}
.appbar.plain { background: transparent; backdrop-filter: none; }
.appbar-row { display: flex; align-items: center; gap: 12px; }
.appbar-title { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.appbar-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; font-size: 18px; flex: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.icon-btn:active { transform: scale(0.92); }

/* ---------- 搜索框 ---------- */
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border-radius: var(--r-pill);
  padding: 11px 16px; box-shadow: var(--shadow-sm); color: var(--text-3);
  font-size: 14px;
}
.search input {
  border: none; background: none; outline: none; flex: 1;
  font-size: 14px; color: var(--text); font-family: inherit;
}

/* ---------- 定位条 ---------- */
.locbar { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin: 12px 0; }
.locbar b { color: var(--text); font-weight: 700; }
.locbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(34,197,94,0.18); }

/* ---------- 距离筛选 ---------- */
.seg {
  display: flex; gap: 6px; background: var(--surface); padding: 4px;
  border-radius: var(--r-pill); box-shadow: var(--shadow-sm); width: fit-content;
}
.seg button { padding: 7px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--text-2); transition: all 0.28s var(--ease); }
.seg button.on { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(91,91,245,0.4); }

/* ---------- 主 Tab（双轨） ---------- */
.dualtab {
  display: flex; gap: 8px; margin: 14px 0 6px;
}
.dualtab button {
  flex: 1; padding: 13px 10px; border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 14px; color: var(--text-2);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all 0.3s var(--ease);
}
.dualtab button .emo { font-size: 17px; }
.dualtab button.on {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  box-shadow: 0 10px 24px rgba(91,91,245,0.42);
  transform: translateY(-1px);
}

/* ---------- 金刚区 ---------- */
.grid8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; margin: 16px 0; }
.cell { display: flex; flex-direction: column; align-items: center; gap: 7px; transition: transform 0.25s var(--ease); }
.cell:active { transform: scale(0.9); }
.cell .ic {
  width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center;
  font-size: 23px; background: var(--surface); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.cell .ic::after { content: ""; position: absolute; inset: 0; background: var(--brand-soft); opacity: 0; transition: opacity 0.3s; }
.cell.on .ic::after { opacity: 1; }
.cell .lb { font-size: 11.5px; color: var(--text-2); font-weight: 600; }

/* ---------- 运营位 ---------- */
.banner {
  border-radius: var(--r-lg); padding: 16px 18px; margin: 6px 0 4px;
  background: linear-gradient(120deg, #5B5BF5, #8B5CF6 55%, #FF7A45);
  color: #fff; position: relative; overflow: hidden; box-shadow: 0 12px 30px rgba(91,91,245,0.34);
}
.banner h4 { font-size: 15px; font-weight: 800; }
.banner p { font-size: 12px; opacity: 0.92; margin-top: 4px; }
.banner .pill { display: inline-block; margin-top: 10px; background: rgba(255,255,255,0.22); padding: 5px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; }

/* ---------- 区块标题 ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 12px; }
.sec-head h3 { font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }
.sec-head .more { font-size: 12px; color: var(--brand); font-weight: 700; }
.mini-tabs { display: flex; gap: 16px; }
.mini-tabs button { font-size: 14px; font-weight: 600; color: var(--text-3); position: relative; padding-bottom: 4px; }
.mini-tabs button.on { color: var(--text); }
.mini-tabs button.on::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 18px; height: 3px; border-radius: 3px; background: var(--brand); }

/* ---------- 任务卡片 ---------- */
.task-card {
  background: var(--glass); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-brd); border-radius: var(--r-lg);
  padding: 15px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.task-card:active { transform: scale(0.985); }
.task-card .tc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tag {
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand); flex: none;
}
.tag.aigc { background: rgba(255,122,69,0.14); color: var(--accent); }
.tag.opc { background: rgba(34,197,94,0.14); color: var(--success); }
.task-card h4 { font-size: 15.5px; font-weight: 800; line-height: 1.35; margin-top: 9px; }
.tc-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 9px; font-size: 12px; color: var(--text-2); }
.tc-meta b { color: var(--text); font-weight: 700; }
.pay { color: var(--accent); font-weight: 800; font-size: 15px; }
.pay small { font-size: 11px; font-weight: 600; }
.tc-shop { display: flex; align-items: center; gap: 8px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--brd); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: #fff; font-weight: 700; flex: none; background: linear-gradient(135deg, var(--brand), var(--brand-600)); }
.tc-shop .name { font-size: 12.5px; font-weight: 700; }
.tc-shop .cert { font-size: 10.5px; color: var(--success); font-weight: 700; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }
.tc-foot .joined { font-size: 12px; color: var(--text-2); }
.tc-foot .joined b { color: var(--text); }
.btn-mini { padding: 9px 18px; border-radius: var(--r-pill); background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; box-shadow: 0 6px 16px rgba(91,91,245,0.4); transition: transform 0.25s var(--ease); }
.btn-mini:active { transform: scale(0.93); }
.btn-mini.ghost { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.urgent { position: absolute; top: 0; right: 0; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; padding: 4px 10px; border-bottom-left-radius: 12px; }

/* ---------- 底部 TabBar ---------- */
.tabbar {
  display: flex; height: 74px; padding-bottom: 18px; padding-top: 8px;
  background: var(--nav-bg); backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--brd);
}
.tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-3); font-size: 11px; font-weight: 600; position: relative;
  transition: color 0.25s var(--ease);
}
.tabbar button .ti { font-size: 21px; transition: transform 0.3s var(--ease); }
.tabbar button.on { color: var(--brand); }
.tabbar button.on .ti { transform: translateY(-2px) scale(1.08); }
.tabbar button .badge { position: absolute; top: 2px; right: 50%; margin-right: -20px; background: var(--danger); color: #fff; font-size: 9px; font-weight: 800; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; display: grid; place-items: center; }
.fab {
  position: absolute; right: 16px; bottom: 88px; z-index: 35;
  width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), #ff9a6b);
  color: #fff; font-size: 26px; display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(255,122,69,0.5);
  transition: transform 0.3s var(--ease);
}
.fab:active { transform: scale(0.9) rotate(90deg); }

/* ---------- 按钮（磁性） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 22px; border-radius: var(--r-md); font-weight: 800; font-size: 15px;
  background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(91,91,245,0.42);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.btn.accent { background: linear-gradient(135deg, var(--accent), #ff9a6b); box-shadow: 0 10px 26px rgba(255,122,69,0.42); }
.btn.lg { padding: 17px; font-size: 16px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------- 底部动作条 ---------- */
.actionbar {
  padding: 12px 18px 22px; background: var(--nav-bg); backdrop-filter: blur(20px);
  border-top: 1px solid var(--brd); display: flex; gap: 12px; align-items: center;
}
.actionbar .price { font-size: 13px; color: var(--text-2); }
.actionbar .price b { display: block; font-size: 20px; color: var(--accent); font-weight: 800; }
.actionbar .btn { flex: 1; }

/* ---------- 芯片 / 标签 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: var(--r-pill); background: var(--chip); color: var(--chip-text); font-size: 13px; font-weight: 600; transition: all 0.25s var(--ease); }
.chip.on { background: var(--brand); color: #fff; }
.chip.soft { background: var(--surface); box-shadow: var(--shadow-sm); }

/* ---------- 详情页 ---------- */
.detail-hero { padding: 50px 18px 18px; background: linear-gradient(160deg, var(--brand-soft), transparent); }
.hero-pay { font-size: 30px; font-weight: 900; color: var(--accent); letter-spacing: -1px; }
.hero-pay small { font-size: 14px; }
.hero-title { font-size: 21px; font-weight: 900; margin-top: 6px; line-height: 1.3; }
.kv { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--brd); align-items: center; }
.kv .k { width: 76px; flex: none; color: var(--text-3); font-size: 13px; }
.kv .v { font-size: 14px; color: var(--text); font-weight: 600; flex: 1; }
.kv .v.sm { font-weight: 500; color: var(--text-2); }

.card-block { background: var(--surface); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.card-block h5 { font-size: 14px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.guard { display: flex; gap: 14px; margin-top: 4px; }
.guard div { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.guard .ok { color: var(--success); }

/* ---------- 步骤向导 ---------- */
.steps { display: flex; align-items: center; gap: 0; margin: 18px 0; }
.steps .s { flex: 1; text-align: center; position: relative; }
.steps .s .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--chip); color: var(--text-3); display: grid; place-items: center; font-weight: 800; font-size: 13px; margin: 0 auto; transition: all 0.3s var(--ease); }
.steps .s.on .dot, .steps .s.done .dot { background: var(--brand); color: #fff; }
.steps .s .lb { font-size: 11px; color: var(--text-3); margin-top: 6px; font-weight: 600; }
.steps .s.on .lb { color: var(--text); }
.steps .line { flex: 1; height: 2px; background: var(--brd); margin: 0 -2px; position: relative; top: -14px; }
.steps .line.done { background: var(--brand); }

.field { margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-2); display: block; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: var(--r-md); border: 1px solid var(--brd);
  background: var(--surface); font-size: 14px; color: var(--text); font-family: inherit; outline: none;
  transition: border 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field textarea { min-height: 96px; resize: vertical; }
.row2 { display: flex; gap: 12px; }
.row2 > * { flex: 1; }

/* ---------- 价格预估卡 ---------- */
.estimate { background: linear-gradient(135deg, var(--brand-soft), transparent); border: 1px solid var(--brd); border-radius: var(--r-lg); padding: 16px; }
.estimate .line { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); padding: 6px 0; }
.estimate .line b { color: var(--text); }
.estimate .total { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--brd); margin-top: 8px; padding-top: 12px; font-weight: 800; }
.estimate .total .amt { font-size: 22px; color: var(--accent); }

/* ---------- 订单卡 ---------- */
.order-card { background: var(--surface); border-radius: var(--r-lg); padding: 15px; margin-bottom: 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--brd); }
.order-card .oc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.status-pill { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: var(--r-pill); }
.st-wait { background: var(--accent-soft); color: var(--accent); }
.st-doing { background: var(--brand-soft); color: var(--brand); }
.st-done { background: rgba(34,197,94,0.14); color: var(--success); }
.oc-progress { height: 6px; background: var(--chip); border-radius: 3px; overflow: hidden; margin: 10px 0; }
.oc-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 3px; }

/* ---------- 履约 / 打卡 ---------- */
.clock-ring { width: 180px; height: 180px; margin: 26px auto; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--brand) calc(var(--p, 0) * 1%), var(--chip) 0); transition: --p 0.6s var(--ease); }
.clock-ring .inner { width: 150px; height: 150px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow); }
.clock-ring .inner .big { font-size: 30px; font-weight: 900; }
.clock-ring .inner .sm { font-size: 12px; color: var(--text-2); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(91,91,245,0.4); } 50% { box-shadow: 0 0 0 18px rgba(91,91,245,0); } }
.clock-btn { animation: pulse 2.2s infinite; }

/* ---------- 列表行 ---------- */
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--brd); }
.list-row .avatar { width: 42px; height: 42px; font-size: 17px; }
.list-row .info { flex: 1; min-width: 0; }
.list-row .info .n { font-weight: 800; font-size: 14px; }
.list-row .info .s { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.score-badge { background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 12px; padding: 4px 9px; border-radius: var(--r-pill); }

/* ---------- 钱包 ---------- */
.wallet-hero { background: linear-gradient(150deg, var(--brand), var(--brand-600)); color: #fff; border-radius: var(--r-xl); padding: 22px; margin: 6px 0 16px; box-shadow: 0 16px 36px rgba(91,91,245,0.4); position: relative; overflow: hidden; }
.wallet-hero::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.wallet-hero .lb { font-size: 13px; opacity: 0.85; }
.wallet-hero .amt { font-size: 36px; font-weight: 900; margin: 6px 0; letter-spacing: -1px; }
.wallet-hero .row { display: flex; gap: 22px; margin-top: 14px; }
.wallet-hero .row div { font-size: 12px; opacity: 0.9; }
.wallet-hero .row b { display: block; font-size: 17px; font-weight: 800; margin-top: 2px; }

/* ---------- 个人中心 ---------- */
.profile-hero { display: flex; align-items: center; gap: 14px; padding: 54px 18px 6px; }
.profile-hero .avatar { width: 64px; height: 64px; font-size: 26px; }
.profile-hero .nm { font-size: 19px; font-weight: 900; }
.profile-hero .meta { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.credit-ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-left: auto;
  background: conic-gradient(var(--success) 78%, var(--chip) 0); position: relative; }
.credit-ring .inner { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.credit-ring .inner b { font-size: 16px; font-weight: 900; }
.stat-row { display: flex; background: var(--surface); border-radius: var(--r-lg); padding: 14px; margin: 14px 0; box-shadow: var(--shadow-sm); }
.stat-row .s { flex: 1; text-align: center; position: relative; }
.stat-row .s + .s::before { content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: var(--brd); }
.stat-row .s .v { font-size: 18px; font-weight: 900; }
.stat-row .s .k { font-size: 11.5px; color: var(--text-2); margin-top: 3px; }

.menu { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.menu a { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--brd); font-size: 14px; font-weight: 600; }
.menu a:last-child { border-bottom: none; }
.menu a .mi { font-size: 18px; width: 24px; text-align: center; }
.menu a .arrow { margin-left: auto; color: var(--text-3); }
.menu a .tag-r { margin-left: auto; font-size: 11px; color: var(--brand); background: var(--brand-soft); padding: 3px 9px; border-radius: var(--r-pill); font-weight: 800; }

/* ---------- 空态 ---------- */
.empty { text-align: center; padding: 70px 30px; color: var(--text-3); }
.empty .em { font-size: 52px; }
.empty p { margin-top: 12px; font-size: 14px; }

/* ---------- 主题切换浮钮 ---------- */
.theme-switch { position: absolute; top: 50px; right: 14px; z-index: 55; display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: var(--r-pill); box-shadow: var(--shadow); }
.theme-switch button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: var(--text-3); transition: all 0.25s var(--ease); }
.theme-switch button.on { background: var(--brand); color: #fff; }

/* ---------- Toast ---------- */
.toast {
  position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(20px);
  background: rgba(20,22,31,0.92); color: #fff; padding: 12px 20px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); max-width: 80%; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: rgba(34,197,94,0.95); }
.toast.warn { background: rgba(245,158,11,0.96); }

/* ---------- 骨架屏 ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--chip) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 进入动画 */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise > * { animation: rise 0.5s var(--ease) backwards; }
.rise > *:nth-child(2) { animation-delay: 0.05s; }
.rise > *:nth-child(3) { animation-delay: 0.1s; }
.rise > *:nth-child(4) { animation-delay: 0.15s; }
.rise > *:nth-child(5) { animation-delay: 0.2s; }
.rise > *:nth-child(6) { animation-delay: 0.25s; }
