:root {
  /* Apple 风 token —— 旧变量名映射到新色板，所有 var() 引用自动生效 */
  --canvas: #fbfbfd;            /* 页面底色：近白白 */
  --surface: #ffffff;           /* 卡片底 */
  --surface-2: #f5f5f7;         /* 辅助底 / 次级容器 */
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --ink: #1d1d1f;               /* 正文：Apple 近黑 */
  --ink-strong: #1d1d1f;
  --ink-2: #424245;             /* 次级文字 */
  --muted: #86848b;             /* 辅助文字 */
  --accent: #0061ff;            /* 电光科技蓝 */
  --accent-hover: #0050e6;
  --accent-on: #ffffff;
  --accent-soft: #e6f0ff;
  --accent-soft-ink: #003db3;
  --pale-green: #e6f4ea; --pale-green-ink: #1e7a3a;   /* 成功态：系统软绿 */
  --pale-gray: #f5f5f7; --pale-gray-ink: #6e6e73;      /* 中性标签 */
  --pale-red: #fde7e9; --pale-red-ink: #d70015;        /* 危险态：系统红 */
  --amber: #bf5600; --amber-soft: #fff4e6;             /* 工具类标签 */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;  /* 弃衬线，映射无衬线 */
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --r-sm: 6px; --r: 10px; --r-lg: 14px; --r-xl: 16px; --r-pill: 980px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

h1 { font-family: var(--sans); font-weight: 600; font-size: 30px; letter-spacing: -0.025em; line-height: 1.15; color: var(--ink); margin-bottom: 10px; }
h2 { font-family: var(--sans); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; margin: 32px 0 16px; color: var(--ink); }
h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small-text { font-size: 12px; }

/* 顶栏：毛玻璃 */
.topbar {
  display: flex; align-items: center; gap: 36px;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 0 32px; height: 52px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.topbar .brand a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); letter-spacing: -0.02em; }
.topbar nav { display: flex; gap: 28px; flex: 1; }
.topbar nav a { color: var(--ink-2); font-size: 13.5px; font-weight: 400; }
.topbar nav a:hover { color: var(--accent); }
.topbar nav a.on { color: var(--accent); font-weight: 600; }

/* 分页 */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 4px; margin-bottom: 0; }
.pagination .page-btn { min-width: 32px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 13px; cursor: pointer; transition: all .2s; }
.pagination .page-btn:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* 产品原型列表页：整体不滚动，列表内部滚动 */
.proto-list-page .page-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.proto-list-page .page-header h1 { margin-bottom: 0; }
.proto-list-page .page-header p { margin: 0; }

.proto-list-page {
  position: fixed;
  top: 53px;
  left: 0;
  right: 0;
  bottom: -10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px 16px 0;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}
.proto-list-page #projectGridWrap {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow-y: auto;
  padding: 8px 4px 40px 4px;
}
.proto-list-page .project-rows {
  min-height: 0;
  margin-bottom: 0;
}
.proto-list-page .list-loading {
  position: absolute;
  inset: 0;
  background: rgba(251, 251, 253, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 18px;
  font-size: 14px;
  color: var(--muted);
}
.proto-list-page {
  position: fixed;
  top: 53px;
  left: 0;
  right: 0;
  bottom: -10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px 16px 0;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}
.proto-list-page .project-rows {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 4px 40px 4px;
  margin-bottom: 0;
}
.proto-list-page .pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 12px;
  margin-bottom: 0;
  padding-bottom: 0;
  background: linear-gradient(to top, var(--canvas) 70%, transparent);
}
/* 用户下拉菜单 */
.user-menu { position: relative; margin-left: auto; }
.user-trigger {
  display: flex; align-items: center; gap: 8px; background: var(--surface-2);
  border: none; padding: 5px 12px; border-radius: var(--r-pill); cursor: pointer; color: var(--ink); font-family: var(--sans); font-weight: 500;
}
.user-trigger:hover { background: #ececee; }
.user-trigger .user-name { font-size: 13px; color: var(--ink); }
.user-trigger .user-role { font-size: 10px; letter-spacing: 0.04em; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: var(--r-pill); font-weight: 600; }
.user-trigger .caret { color: var(--muted); transform: rotate(90deg); font-size: 13px; transition: transform .2s; }
.user-menu.open .user-trigger .caret { transform: rotate(-90deg); }
.user-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 200px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 6px; z-index: 50;
  box-shadow: var(--shadow-lg);
}
.user-menu.open .user-dropdown { display: block; }
.user-dropdown a, .user-dropdown button {
  display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--ink-2); border: none; background: none; cursor: pointer; font-family: var(--sans); font-weight: 400;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--surface-2); color: var(--ink); }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* 右侧抽屉 */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.15); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 60; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 720px; max-width: calc(100vw - 48px);
  background: var(--canvas); border-left: 1px solid var(--border); z-index: 61;
  transform: translateX(100%); transition: transform .32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 24px; border-bottom: 1px solid var(--border); background: var(--surface);
  font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink); flex-shrink: 0; letter-spacing: -0.02em;
}
.drawer iframe { flex: 1; width: 100%; border: none; background: var(--canvas); }

/* 骨架：侧边栏 + 主区 */
.shell { display: flex; min-height: calc(100vh - 52px); }
.sidebar { width: 216px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border); padding: 24px 12px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
  display: block; padding: 8px 14px; border-radius: var(--r-sm); font-size: 13.5px;
  color: var(--ink-2); font-weight: 400;
}
.sidebar nav a:hover { background: var(--surface-2); color: var(--ink); }
.sidebar nav a.on { background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 500; }
.sidebar-divider { height: 1px; background: var(--border); margin: 12px 14px; }
.main-area { flex: 1; min-width: 0; }

/* 容器 */
.container { max-width: 1200px; margin: 48px auto; padding: 0 16px; }
.container.narrow { max-width: 460px; margin: 48px auto; }

/* 抽屉内纯面板 */
.panel { padding: 32px; }
.panel h1 { font-size: 24px; margin-bottom: 20px; }

/* 登录 */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--canvas);
  background-image: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 113, 227, 0.05), transparent 70%);
}
.login-card {
  background: var(--surface); padding: 44px 40px 40px; border-radius: var(--r-xl); width: 400px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.login-card h1 { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 26px; font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; }
.login-card .logo-mark { margin-right: 0; }
.login-card .sub { text-align: center; color: var(--muted); margin: 10px 0 30px; font-size: 14px; }

/* 表单 */
form label { display: block; margin-bottom: 18px; font-size: 13px; color: var(--muted); font-weight: 500; }
form input, form select, form textarea {
  display: block; width: 100%; margin-top: 7px; padding: 10px 13px;
  border: 1px solid var(--border-strong); border-radius: var(--r); font-size: 14px;
  font-family: var(--sans); color: var(--ink); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12); }
form textarea { font-family: var(--mono); font-size: 13px; line-height: 1.6; min-height: 120px; resize: vertical; }
button {
  background: var(--accent); color: var(--accent-on); border: none; padding: 9px 18px;
  border-radius: var(--r-pill); font-size: 13.5px; cursor: pointer; font-family: var(--sans); font-weight: 500;
  transition: background .18s, transform .1s;
  letter-spacing: -0.01em;
}
button:hover { background: var(--accent-hover); }
button:active { transform: scale(0.97); }
button.small { padding: 6px 13px; font-size: 12.5px; }
button.danger { background: var(--pale-red); color: var(--pale-red-ink); }
button.danger:hover { background: var(--pale-red-ink); color: #fff; }
button.link-btn { background: none; color: var(--accent); padding: 4px 6px; }
button.link-btn:hover { color: var(--accent-hover); background: none; }
.login-card button { width: 100%; margin-top: 6px; padding: 11px; font-size: 14px; }

.form-card { background: var(--surface); padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--border); margin-bottom: 24px; box-shadow: var(--shadow-sm); }

.role-guide { margin-bottom: 28px; }
.section-actions { display: flex; gap: 10px; align-items: center; }
.help-tip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 8px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 600; cursor: help; vertical-align: middle; position: relative; font-family: var(--sans); transition: background .15s, color .15s; }
.help-tip:hover, .help-tip:focus-visible { background: var(--accent); color: var(--accent-on); outline: none; }
.help-tip-box { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); width: 360px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; z-index: 50; text-align: left; }
.help-tip:hover .help-tip-box, .help-tip:focus-within .help-tip-box { opacity: 1; visibility: visible; }
.help-tip-head { display: block; font-weight: 600; margin-bottom: 12px; color: var(--ink); font-size: 14px; }
.role-list { display: flex; flex-direction: column; gap: 10px; }
.role-item { display: flex; align-items: baseline; gap: 12px; font-size: 13px; line-height: 1.5; }
.role-tag { display: inline-block; min-width: 60px; text-align: center; padding: 3px 10px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; background: var(--ink); color: #fff; flex-shrink: 0; font-family: var(--sans); }
.role-desc { color: var(--muted); }
.inline-form { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; }
.inline-form label { margin-bottom: 0; }

/* 提示 */
.alert { padding: 12px 16px; border-radius: var(--r); margin-bottom: 18px; font-size: 13.5px; border: 1px solid transparent; font-weight: 500; }
.alert.error { background: var(--pale-red); color: var(--pale-red-ink); }
.alert.ok { background: var(--pale-green); color: var(--pale-green-ink); }

/* 表格 */
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table th { background: var(--surface-2); color: var(--muted); font-weight: 500; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.data-table tr.row-disabled { opacity: .5; }
.data-table td.muted { font-family: var(--mono); font-size: 12px; }
.data-table .ops { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.reset-form { display: flex; gap: 6px; align-items: center; }
.reset-form input { width: 120px; margin-top: 0; padding: 6px 11px; }

/* 徽章 */
.badge { padding: 3px 10px; border-radius: var(--r-pill); font-size: 11px; letter-spacing: 0.02em; font-weight: 600; }
.badge.active { background: var(--pale-green); color: var(--pale-green-ink); }
.badge.disabled { background: var(--surface-2); color: var(--pale-gray-ink); }

/* 首页模块卡片 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.module-card { display: block; background: var(--surface); padding: 26px; border-radius: var(--r-xl); border: 1px solid transparent; box-shadow: var(--shadow-sm); position: relative; transition: transform .2s, box-shadow .2s, border-color .2s; color: var(--ink); }
.module-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-3px); }
.module-card h3 { color: var(--ink); margin-bottom: 6px; }
.module-card p { color: var(--muted); font-size: 13px; }
.module-card .tag { position: absolute; top: 20px; right: 20px; font-size: 10.5px; letter-spacing: 0.02em; background: var(--surface-2); color: var(--muted); padding: 3px 10px; border-radius: var(--r-pill); font-weight: 600; }
.module-card .tag.live { background: var(--pale-green); color: var(--pale-green-ink); }

/* 首页 Hero */
.hero { padding: 4px 0 0; }
.hero-date { font-size: 12px; line-height: 1.4; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.hero-title { font-family: var(--sans); font-weight: 600; font-size: 36px; letter-spacing: -0.025em; line-height: 1.1; color: var(--ink); margin-bottom: 12px; }
.hero-sub { font-size: 15px; color: var(--muted); max-width: 560px; }

/* 统计条 */
.stat-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 24px 0 32px; }
.stat-card { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 130px; flex: 1; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.stat-card:first-child { }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-num { font-family: var(--sans); font-weight: 600; font-size: 30px; line-height: 1; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.hero-row { display: flex; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin: 16px 0 8px; }
.hero-row > .hero { flex: 1 1 320px; min-width: 0; }
.hero-row > .kpi-line { flex-shrink: 0; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 6px 0; margin-top: 42px; }
.hero-row > .kpi-line .kl { padding: 0 18px; border-left: 1px solid var(--border); }
.hero-row > .kpi-line .kl:first-child { padding-left: 0; border-left: none; }
.hero-row > .kpi-line .kl-num { font-size: 22px; }
.kpi-bar { display: flex; align-items: stretch; background: var(--surface); border: 1px solid transparent; border-radius: 18px; box-shadow: var(--shadow-sm); padding: 20px 4px; margin: 24px 0 8px; }
.kpi-cell { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; text-align: center; border-right: 1px solid var(--border); min-width: 0; }
.kpi-cell:last-child { border-right: none; }
.kpi-num { font-family: var(--sans); font-size: 30px; font-weight: 700; line-height: 1; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.kpi-cell.accent .kpi-num { color: var(--accent); }
@media (max-width: 860px) { .hero-row { flex-direction: column; align-items: stretch; gap: 16px; } .hero-row > .hero, .hero-row > .kpi-line { width: 100%; } .hero-row > .kpi-line { flex-direction: row; align-items: baseline; } .hero-row > .kpi-line .kl { padding: 0 24px; border-left: 1px solid var(--border); } .hero-row > .kpi-line .kl:first-child { padding-left: 0; border-left: none; } }
@media (max-width: 720px) { .kpi-bar { flex-wrap: wrap; gap: 10px 0; padding: 14px 4px; } .kpi-cell { min-width: 33%; border-bottom: 1px solid var(--border); padding-bottom: 10px; } .kpi-cell:nth-last-child(-n+3) { border-bottom: none; padding-bottom: 0; } }

/* 纯文字统计行 */
.kpi-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 0; margin: 22px 0 4px; }
.kpi-line .kl { display: flex; align-items: baseline; gap: 8px; padding: 0 24px; border-left: 1px solid var(--border); }
.kpi-line .kl:first-child { padding-left: 0; border-left: none; }
.kpi-line .kl-num { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.kpi-line .kl-label { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
@media (max-width: 720px) { .stat-row { flex-wrap: wrap; } .stat-card { min-width: calc(50% - 5px); } }

/* 模块卡图标 */
.module-card .mc-icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--accent); background: var(--accent-soft); border-radius: 11px; margin-bottom: 18px; transition: all .15s; }
.module-card .mc-icon svg { width: 20px; height: 20px; }
.module-card:hover .mc-icon { background: var(--accent); color: var(--accent-on); }
.module-card .mc-go { position: absolute; right: 24px; bottom: 22px; font-size: 18px; line-height: 1; color: var(--muted); transition: color .2s, transform .2s; }
.module-card:hover .mc-go { color: var(--accent); transform: translateX(3px); }

/* 团队动态 */
.activity-list { list-style: none; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.activity-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.act-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); }
.act-icon svg { width: 14px; height: 14px; }
.act-icon.act-proto { background: var(--accent-soft); color: var(--accent-soft-ink); }
.act-icon.act-skill { background: var(--accent); color: var(--accent-on); }
.act-icon.act-tool { background: var(--amber-soft); color: var(--amber); }
.act-body { flex: 1; min-width: 0; }
.act-text { font-size: 13.5px; color: var(--ink-2); }
.act-who { font-weight: 600; color: var(--ink); }
.act-ts { font-size: 12px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* Toast 提示 */
.toast-stack {
  position: fixed; top: 32%; left: 50%; right: auto; bottom: auto; transform: translateX(-50%);
  margin: 0; border: none; padding: 0; overflow: visible; background: none; color: inherit;
  width: auto; height: auto; z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
  min-width: 220px; max-width: 360px; padding: 12px 18px; border-radius: var(--r-pill); font-size: 13px; text-align: center; font-weight: 500;
  background: rgba(29, 29, 31, 0.92); color: #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: scale(0.96) translateY(-6px); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: scale(1) translateY(0); }
.toast.ok { background: rgba(30, 122, 58, 0.92); }
.toast.error { background: rgba(215, 0, 21, 0.92); }

/* 空状态 */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; color: var(--muted); padding: 48px 24px; }
.empty-state .empty-icon { color: var(--muted); opacity: .4; line-height: 0; }
.empty-state .empty-icon svg { width: 40px; height: 40px; display: block; }
.empty-state .empty-title { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.empty-state .empty-desc { font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 300px; }
.empty-state .empty-actions { margin-top: 6px; display: flex; gap: 8px; }
.empty-state--block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); margin-top: 40px; box-shadow: var(--shadow-sm); }
.empty-state--compact { padding: 24px 12px; gap: 8px; }
.empty-state--compact .empty-icon svg { width: 28px; height: 28px; }
.empty-state--compact .empty-title { font-size: 14px; }
.empty-state--compact .empty-desc { font-size: 12px; }

/* section 头部 */
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 16px; }
.section-head h2 { margin: 0; }
.tabs { display: flex; gap: 2px; }
.tab { padding: 8px 14px; font-size: 13.5px; border: none; background: none; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; border-radius: 0; font-family: var(--sans); line-height: 1.4; font-weight: 500; transition: color .15s, border-color .15s; }
.tab:hover { color: var(--ink); background: none; }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.tab-cnt { font-size: 12px; color: var(--muted); margin-left: 4px; }
.tab.on .tab-cnt { color: var(--accent); }

/* 弹窗 */
.dialog { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 0; width: 420px; max-width: calc(100vw - 32px); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 0; }
.dialog-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.dialog-close { background: none; color: var(--muted); font-size: 22px; line-height: 1; padding: 0 4px; border-radius: 50%; width: 28px; height: 28px; }
.dialog-close:hover { background: var(--surface-2); color: var(--ink); }
.dialog-form { padding: 18px 26px 26px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
button.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
button.ghost:hover { background: #ececee; color: var(--ink); }

/* 页面头 */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.page-head-actions { display: flex; gap: 8px; }
.back-link { font-size: 13px; color: var(--accent); border: none; font-weight: 500; }
.back-link:hover { color: var(--accent-hover); }
.btn-link { display: inline-block; padding: 6px 13px; font-size: 12.5px; line-height: 1.4; border-radius: var(--r-pill); border: 1px solid var(--border); color: var(--ink); background: var(--surface); font-weight: 500; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn-link:hover { background: #ececee; color: var(--ink); border-color: var(--border-strong); }

/* 分享链接 */
.share-box { display: flex; align-items: flex-end; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; margin: 18px 0 8px; box-shadow: var(--shadow-sm); }
.share-input { flex: 1; font-family: var(--mono); font-size: 12px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 12px; margin-top: 6px; }

/* 原型详情布局 */
.proto-page .proto-layout { display: flex; gap: 16px; margin-top: 24px; min-height: 540px; }
.proto-layout { min-height: 540px; }
.version-rail { width: 240px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; overflow-y: auto; box-shadow: var(--shadow-sm); }
.rail-title { font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rail-head .rail-title { margin-bottom: 0; }
.ws-tree .rail-head .rail-title { flex: 1; margin-left: 4px; }
.ws-tree .rail-head { gap: 6px; }
.ver-item { padding: 10px 12px; border-radius: var(--r); cursor: pointer; border: 1px solid transparent; margin-bottom: 6px; transition: background .15s, border-color .15s; }
.ver-item:hover { background: var(--surface-2); }
.ver-item.on { background: var(--accent-soft); border-color: var(--accent-soft); }
.ver-line { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.ver-no { font-weight: 600; color: var(--ink); font-size: 14px; }
.ver-note { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.preview-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.preview-frame { flex: 1; width: 100%; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; min-height: 540px; }

/* 工作台 */
.container.workspace { max-width: none; margin: 0; padding: 14px 24px; height: calc(100vh - 52px); display: flex; flex-direction: column; overflow: hidden; }
.workspace h1 { margin-bottom: 8px; }
.workspace .page-head { margin-bottom: 8px; }
.workspace-layout { display: flex; gap: 14px; flex: 1; min-height: 0; }
.tree-panel { width: 220px; flex-shrink: 0; min-height: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; overflow-y: auto; box-shadow: var(--shadow-sm); }
.tree-item .ver-no { flex: 1; }
.preview-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.preview-body { flex: 1; position: relative; min-height: 0; }
.preview-body .preview-frame { border: none; border-radius: 0; min-height: 0; height: 100%; }
.preview-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.toolbar-left { display: flex; align-items: center; gap: 14px; }
.toolbar-right { display: flex; gap: 8px; align-items: center; }
.toolbar-name { font-weight: 600; color: var(--ink); font-size: 15px; letter-spacing: -0.01em; }

/* 公开预览页 */
.public-shell { max-width: 1200px; margin: 0 auto; padding: 32px 40px; }
.public-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.public-head h1 { margin-bottom: 2px; }
.public-layout { min-height: calc(100vh - 160px); }
.public-rail { width: 220px; }
.public-preview { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.preview-toolbar select { padding: 5px 10px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); font-size: 13px; font-family: var(--sans); background: var(--surface); color: var(--ink); }

/* === 全屏沉浸式工作区 === */
.ws { height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: var(--canvas); }
.ws-topbar {
  display: flex; align-items: center; gap: 16px; height: 52px; flex-shrink: 0;
  padding: 0 20px; background: rgba(255, 255, 255, 0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--border);
}
.ws-back { font-size: 13.5px; color: var(--accent); border: none; white-space: nowrap; font-weight: 500; }
.ws-back:hover { color: var(--accent-hover); }
.ws-title { font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); margin: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-topbar-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ws-topbar-actions > button, .ws-topbar-actions > a.btn-link { display: inline-flex; align-items: center; justify-content: center; }
.ws-topbar-actions .ic { width: 15px; height: 15px; flex-shrink: 0; margin-right: 5px; }
.ws-topbar-actions .icon-only { padding: 6px 8px; }
.ws-topbar-actions .icon-only .ic { margin-right: 0; }
.ws-body { flex: 1; min-height: 0; display: flex; gap: 0; }
.ws-tree {
  width: 240px; flex-shrink: 0; min-height: 0; background: var(--surface);
  border-right: 1px solid var(--border); padding: 14px 10px; overflow-y: auto; display: flex; flex-direction: column;
}
.ws-tree .rail-toggle { flex-shrink: 0; border: none; background: none; color: var(--muted); font-size: 12px; }
.ws-tree .rail-toggle:hover { background: none; color: var(--ink); }
.ws-tree .rail-expand { display: none; width: 28px; height: 28px; margin: 0 auto 8px; border: none; background: none; cursor: pointer; color: var(--muted); font-size: 18px; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.ws-tree .rail-expand:hover { background: var(--surface-2); color: var(--ink); }
.ws-body.tree-collapsed .ws-tree { width: 44px; padding: 14px 6px; }
.ws-body.tree-collapsed .ws-tree .rail-head,
.ws-body.tree-collapsed .ws-tree #protoTree,
.ws-body.tree-collapsed .ws-tree .rail-foot { display: none; }
.ws-body.tree-collapsed .ws-tree .rail-expand { display: flex; }
.ws-tree #protoTree { flex: 1; min-height: 0; overflow-y: auto; }
.ws-tree .rail-foot { flex-shrink: 0; padding-top: 10px; margin-top: 8px; border-top: 1px solid var(--border); }
.ws-tree .rail-foot .block { width: 100%; padding: 8px 13px; background: var(--surface); color: var(--accent); border: 1px dashed var(--border-strong); font-size: 13px; border-radius: var(--r-sm); font-weight: 500; }
.ws-tree .rail-foot .block:hover { color: var(--accent-on); border-color: var(--accent); background: var(--accent); }
.ws-tree .tree-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm);
  cursor: pointer; border: 1px solid transparent; margin-bottom: 2px; transition: background .15s;
}
.ws-tree .tree-item:hover { background: var(--surface-2); }
.ws-tree .tree-item.on { background: var(--accent-soft); }
.ws-tree .tree-name { font-size: 13px; color: var(--ink-2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.ws-tree .tree-item.on .tree-name { color: var(--accent-soft-ink); font-weight: 600; }
.ws-tree .tree-meta { font-size: 11px; color: var(--muted); flex-shrink: 0; text-align: right; font-variant-numeric: tabular-nums; }
.ws-tree .tree-more {
  flex-shrink: 0; width: 22px; height: 22px; border: none; background: none; cursor: pointer;
  color: var(--muted); font-size: 16px; line-height: 1; border-radius: var(--r-sm); opacity: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.ws-tree .tree-item:hover .tree-more, .ws-tree .tree-item.on .tree-more { color: var(--ink); }
.ws-tree .tree-more:hover { background: rgba(0,0,0,0.06); color: var(--ink); }

.tree-tip {
  position: fixed; z-index: 9999; max-width: 320px; padding: 6px 10px;
  background: rgba(29, 29, 31, 0.92); color: #fff; font-size: 12px;
  line-height: 1.4; border-radius: var(--r-sm); pointer-events: none; opacity: 0;
  transition: opacity .12s; box-shadow: var(--shadow-lg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.tree-tip.show { opacity: 1; }

.ws-stage { flex: 1; min-width: 0; position: relative; background: var(--surface-2); }
.ws-stage .preview-frame { width: 100%; height: 100%; border: none; background: #fff; }
.ws-stage .preview-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.ws.stage-maximized .ws-topbar { display: none; }
.ws.stage-maximized .ws-tree { display: none; }
.ws.stage-maximized .ws-body { padding: 0; }
.ws.stage-maximized .ws-stage .preview-frame { border-radius: 0; }
.stage-exit-btn {
  display: none; position: absolute; bottom: 16px; right: 16px; z-index: 10;
  padding: 7px 14px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 13px; font-weight: 500;
  cursor: pointer; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); pointer-events: auto;
  transition: background .15s, color .15s;
}
.stage-exit-btn:hover { background: rgba(255, 255, 255, 0.92); color: var(--ink); border-color: var(--ink); }
.ws.stage-maximized .stage-exit-btn { display: inline-flex; align-items: center; gap: 4px; }

/* 原型操作上下文菜单 */
.ctx-menu {
  position: fixed; width: 220px; margin: 0; border: 1px solid var(--border);
  border-radius: var(--r); background: var(--surface); padding: 6px; box-shadow: var(--shadow-lg);
  z-index: 200;
}
.ctx-item {
  display: block; width: 100%; text-align: left; padding: 8px 12px; border: none; background: none;
  cursor: pointer; font-size: 13px; color: var(--ink); border-radius: var(--r-sm); font-family: var(--sans); font-weight: 400;
}
.ctx-item:hover { background: var(--surface-2); color: var(--ink); }
.ctx-item.danger { color: var(--pale-red-ink); background: none; }
.ctx-item.danger:hover { background: var(--pale-red); }
.ctx-sep { height: 1px; background: var(--border); margin: 4px 8px; }

/* 历史版本抽屉 */
.hdrawer-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0); z-index: 150; pointer-events: none; transition: background .25s; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
.hdrawer-overlay.show { background: rgba(0, 0, 0, 0.15); pointer-events: auto; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.hdrawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 90vw;
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
  z-index: 160; transform: translateX(100%); transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column;
}
.hdrawer.open { transform: translateX(0); }
.hdrawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.hdrawer-title { font-family: var(--sans); font-weight: 600; font-size: 17px; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.hdrawer-sub { font-size: 13px; color: var(--muted); margin-top: 4px; font-family: var(--sans); }
.hdrawer-close { border: none; background: none; cursor: pointer; font-size: 22px; color: var(--muted); line-height: 1; padding: 0 4px; border-radius: 50%; width: 28px; height: 28px; }
.hdrawer-close:hover { background: var(--surface-2); color: var(--ink); }
.hdrawer-body { flex: 1; overflow-y: auto; padding: 12px; }
.ver-card { padding: 14px; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 8px; transition: border-color .15s; }
.ver-card:hover { border-color: var(--border-strong); }
.ver-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ver-tag { font-size: 11.5px; font-weight: 600; color: var(--pale-gray-ink); background: var(--surface-2); padding: 3px 10px; border-radius: var(--r-pill); font-variant-numeric: tabular-nums; }
.ver-tag.latest { background: var(--accent-soft); color: var(--accent-soft-ink); }
.ver-uploader { font-size: 12px; color: var(--ink-2); }
.ver-time { font-size: 12px; color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.ver-note { font-size: 13px; color: var(--ink-2); margin: 4px 0 10px; line-height: 1.5; }
.ver-card-actions { display: flex; gap: 8px; }

/* 自定义文件选择器 */
.file-picker {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 16px 16px; margin-top: 6px; border: 1px dashed var(--border-strong); border-radius: var(--r);
  cursor: pointer; background: var(--surface-2); transition: border-color .15s, background .15s, transform .1s;
}
.file-picker:hover { border-color: var(--accent); background: var(--accent-soft); }
.file-picker:active { transform: scale(0.995); }
.file-picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-picker .fp-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--muted); transition: color .15s; }
.file-picker:hover .fp-icon { color: var(--accent); }
.file-picker .fp-text { font-size: 14px; color: var(--ink); font-weight: 500; }
.file-picker .fp-name {
  font-size: 12px; color: var(--muted); margin-left: auto; max-width: 160px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-picker.has-file { border-style: solid; border-color: var(--pale-green-ink); background: var(--pale-green); }
.file-picker.has-file .fp-icon { color: var(--pale-green-ink); }
.file-picker.has-file .fp-text { color: var(--pale-green-ink); }
.file-picker.has-file .fp-name { color: var(--pale-green-ink); }

/* 项目列表：横向条目卡 */
.project-rows { display: flex; flex-direction: column; gap: 14px; }
.project-row {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 24px;
  background: var(--surface); border: 1px solid transparent; border-radius: 18px;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s; box-shadow: var(--shadow-sm);
}
.project-row:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.project-row:active { transform: scale(0.992); }
.project-row .pr-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, #2f7dff, #0061ff); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; box-shadow: 0 3px 8px rgba(0,97,255,.28); }
.project-row .pr-main { flex: 1; min-width: 0; }
.project-row .pr-name { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.project-row .pr-desc { font-size: 13px; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-row .pr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex-shrink: 0; }
.project-row .pr-badge { font-size: 11.5px; color: var(--accent); background: var(--accent-soft); padding: 3px 11px; border-radius: var(--r-pill); white-space: nowrap; font-weight: 600; }
.project-row .pr-meta { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.project-row .pr-actions { display: flex; gap: 2px; }
.project-row .icon-btn { width: 28px; height: 28px; border: none; background: none; cursor: pointer; color: var(--muted); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 16px; line-height: 1; transition: background .15s, color .15s; }
.project-row .icon-btn svg { width: 16px; height: 16px; display: block; }
.project-row .icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.project-row .pr-vis { opacity: .5; cursor: default; }

/* 项目卡片（网格） */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.project-grid .empty-state { grid-column: 1 / -1; }
.project-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid transparent; border-radius: 18px; min-height: 120px; transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s; text-decoration: none; box-shadow: var(--shadow-sm); cursor: pointer; overflow: hidden; }
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--accent-soft); }
.project-card:active { transform: scale(0.992); }
.project-card .pc-head { display: flex; align-items: center; gap: 12px; }
.project-card .pc-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #2f7dff, #0061ff); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; box-shadow: 0 3px 10px rgba(0,97,255,.28); }
.project-card .pc-title-wrap { flex: 1; min-width: 0; }
.project-card .pc-title { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card .pc-visibility { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); margin-top: 1px; }
.project-card .pc-visibility svg { width: 13px; height: 13px; display: block; }
.project-card .pc-desc { font-size: 12px; color: var(--muted); flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.project-card .pc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.project-card .pc-meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* Skill 方块卡片（网格） */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; }
.skill-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 0 0 20px; background: var(--surface); border: 1px solid transparent; border-radius: 18px; min-height: 168px; transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s; text-decoration: none; box-shadow: var(--shadow-sm); cursor: pointer; overflow: hidden; }
.skill-card::before { content: ''; display: block; height: 5px; background: linear-gradient(90deg, #2f7dff, #0061ff); }
.skill-card > * { padding-left: 22px; padding-right: 22px; }
.skill-card .sc-head { padding-top: 20px; }
.skill-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--accent-soft); }
.skill-card:active { transform: scale(0.992); }
.skill-card .sc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.skill-card .sc-title { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; }
.skill-card .sc-desc { font-size: 12px; color: var(--muted); flex: 1; overflow: hidden; }
.skill-card .sc-foot { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 10px; }
.skill-card .sc-foot-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.skill-card .sc-files { font-size: 11.5px; color: var(--accent); background: var(--accent-soft); padding: 3px 11px; border-radius: var(--r-pill); align-self: flex-start; font-weight: 600; }
.skill-card .sc-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.skill-card .sc-vis { color: var(--muted); opacity: .5; line-height: 0; flex-shrink: 0; cursor: default; }
.skill-card .sc-vis svg { width: 16px; height: 16px; display: block; }
.skill-card .sc-open { font-size: 12.5px; color: var(--accent); border: 1px solid var(--border); padding: 4px 12px; border-radius: var(--r-pill); text-decoration: none; align-self: flex-start; font-weight: 500; background: var(--surface); }
.skill-card .sc-open:hover { border-color: var(--accent); background: var(--accent-soft); }

/* 工具卡片（入口导向，按类型分色，横向布局） */
.tool-card { display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid transparent; border-radius: 18px; transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s; box-shadow: var(--shadow-sm); cursor: pointer; overflow: hidden; }
.tool-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--accent-soft); }
.tool-card:active { transform: scale(0.992); }
.tool-card .tc-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.tool-card .tc-icon svg { width: 22px; height: 22px; display: block; }
.tool-card .tc-html { background: linear-gradient(135deg, #2f7dff, #0061ff); box-shadow: 0 3px 8px rgba(0,97,255,.26); }
.tool-card .tc-link { background: linear-gradient(135deg, #34c759, #1e7a3a); box-shadow: 0 3px 8px rgba(30,122,58,.22); }
.tool-card .tc-file { background: linear-gradient(135deg, #ff9f0a, #bf5600); box-shadow: 0 3px 8px rgba(191,86,0,.22); }
.tool-card .tc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tool-card .tc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tool-card .tc-title { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; }
.tool-card .tc-desc { font-size: 12px; color: var(--muted); flex: 1; overflow: hidden; }
.tool-card .tc-foot { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 10px; }
.tool-card .tc-foot-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.tool-card .tc-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tool-card .tc-vis { color: var(--muted); opacity: .5; line-height: 0; flex-shrink: 0; cursor: default; }
.tool-card .tc-vis svg { width: 16px; height: 16px; display: block; }
.tool-card .tc-type { font-size: 11.5px; padding: 3px 11px; border-radius: var(--r-pill); align-self: flex-start; font-weight: 600; white-space: nowrap; }
.tool-card .tc-type.t-html { color: var(--accent); background: var(--accent-soft); }
.tool-card .tc-type.t-link { color: var(--pale-green-ink); background: var(--pale-green); }
.tool-card .tc-type.t-file { color: var(--amber); background: var(--amber-soft); }
.tool-card .tc-open { font-size: 12.5px; color: var(--accent); border: 1px solid var(--border); padding: 4px 12px; border-radius: var(--r-pill); text-decoration: none; align-self: flex-start; font-weight: 500; background: var(--surface); }
.tool-card .tc-open:hover { border-color: var(--accent); background: var(--accent-soft); }

/* 账号卡片（圆形角色头像 + 横向卡） */
.user-grid { display: flex; flex-direction: column; gap: 12px; }
.user-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid transparent; border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s; }
.user-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border); }
.user-card.is-disabled { opacity: .62; }
.user-card .uc-avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 700; }
.user-card .uc-admin { background: linear-gradient(135deg, #c576f5, #af52de); box-shadow: 0 3px 8px rgba(175,82,222,.22); }
.user-card .uc-pm { background: linear-gradient(135deg, #2f7dff, #0061ff); box-shadow: 0 3px 8px rgba(0,97,255,.26); }
.user-card .uc-designer { background: linear-gradient(135deg, #7c8cff, #5b5bd6); box-shadow: 0 3px 8px rgba(91,91,214,.22); }
.user-card .uc-developer { background: linear-gradient(135deg, #34c759, #1e7a3a); box-shadow: 0 3px 8px rgba(30,122,58,.22); }
.user-card .uc-tester { background: linear-gradient(135deg, #ff9f43, #e67e22); box-shadow: 0 3px 8px rgba(230,126,34,.22); }
.user-card .uc-main { flex: 1; min-width: 0; }
.user-card .uc-name-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.user-card .uc-name { font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.user-card .uc-username { font-size: 12.5px; color: var(--muted); }
.user-card .uc-tags { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.user-card .uc-role { font-size: 11.5px; padding: 2px 10px; border-radius: var(--r-pill); font-weight: 600; }
.user-card .uc-role-admin { color: #7c3aed; background: #f3edff; }
.user-card .uc-role-pm { color: var(--accent); background: var(--accent-soft); }
.user-card .uc-role-designer { color: #5b5bd6; background: #e8eaff; }
.user-card .uc-role-developer { color: var(--pale-green-ink); background: var(--pale-green); }
.user-card .uc-role-tester { color: #d35400; background: #fff0e0; }
.user-card .uc-status { font-size: 11.5px; padding: 2px 10px 2px 8px; border-radius: var(--r-pill); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.user-card .uc-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.user-card .uc-status.on { color: var(--pale-green-ink); background: var(--pale-green); }
.user-card .uc-status.on::before { background: #34c759; }
.user-card .uc-status.off { color: var(--pale-gray-ink); background: var(--pale-gray); }
.user-card .uc-status.off::before { background: var(--muted); }
.user-card .uc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.user-card .uc-time { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.user-card .uc-ops { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.user-card .uc-self { font-size: 12px; color: var(--muted); }
.hidden { display: none !important; }

/* 工具详情 */
.source-code { margin: 0; padding: 24px 32px; height: 100%; overflow: auto; background: var(--surface); font-family: var(--mono); font-size: 12px; line-height: 1.6; white-space: pre; color: var(--ink); }
.source-code code { font-family: inherit; }
.link-detail { max-width: 640px; margin: 64px auto; padding: 0 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.link-detail .ld-label { font-size: 12px; color: var(--muted); letter-spacing: .04em; font-weight: 500; }
.link-detail .ld-url { font-family: var(--mono); font-size: 15px; color: var(--accent); word-break: break-all; border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.link-detail .ld-url:hover { border-bottom-color: var(--accent); }
.link-detail .ld-desc { color: var(--ink-2); line-height: 1.6; }
.install-guide { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 20px 40px; }
.install-guide > summary { font-family: var(--sans); font-size: 15px; color: var(--ink); cursor: pointer; list-style: none; font-weight: 600; letter-spacing: -0.01em; }
.install-guide > summary::-webkit-details-marker { display: none; }
.install-guide > summary::before { content: '▾ '; color: var(--muted); }
.install-guide[open] > summary::before { content: '▾ '; }
.install-guide .md-preview { padding: 0; background: none; }

/* 预览加载蒙层 */
.preview-loading {
  position: absolute; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background: var(--surface-2); color: var(--muted); z-index: 5; font-size: 13px;
}
.preview-loading.show { display: flex; }
.preview-loading .spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--border-strong); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 全局提交蒙层（native dialog，进 top-layer 可盖业务弹窗） */
dialog.submit-mask { border: none; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: transparent; }
dialog.submit-mask[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
dialog.submit-mask::backdrop { background: rgba(251, 251, 253, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.submit-mask__spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border-strong); border-top-color: var(--accent); animation: spin .7s linear infinite; }
.submit-mask__text { color: var(--ink); font-size: 14px; letter-spacing: -0.01em; font-weight: 500; }

/* 顶部导航进度条（整页跳转 loading，不遮内容） */
.nav-bar { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 99999; opacity: 0; transition: opacity .2s; }
.nav-bar.loading { opacity: 1; animation: navGrow 6s ease forwards; }
.nav-bar.done { opacity: 1; width: 100% !important; transition: width .25s ease, opacity .3s .2s; }
@keyframes navGrow { from { width: 0; } to { width: 85%; } }

/* 首页两栏布局：左主区 + 右资讯栏 */
.home-grid { display: grid; grid-template-columns: 1fr 360px; grid-template-areas: "aside main"; gap: 24px; margin-top: 28px; align-items: stretch; }
.home-main { grid-area: main; min-width: 0; }
.home-aside { grid-area: aside; min-width: 0; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; grid-template-areas: "main" "aside"; } .home-aside { order: -1; } }

/* 首页区块卡片化（Apple 风面板） */
.home-main .activity, .home-aside .ai-news { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px 24px; max-height: 600px; display: flex; flex-direction: column; }
.home-main .section-head, .home-aside .section-head { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.home-main .section-head h2, .home-aside .section-head h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.home-aside .ai-news { position: sticky; top: 68px; }

/* 首页快捷入口 */
.quick-links { margin-top: 28px; }
.quick-links .section-head { margin: 0 0 14px; }
.quick-links .section-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.ql-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.ql-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px 12px; background: var(--surface); border: 1px solid transparent; border-radius: var(--r-xl); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; cursor: pointer; }
.ql-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ql-icon { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; color: var(--accent); background: var(--accent-soft); border-radius: 11px; transition: all .15s; }
.ql-icon svg { width: 19px; height: 19px; }
.ql-card:hover .ql-icon { background: var(--accent); color: var(--accent-on); }
.ql-name { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.ql-card--custom .ql-link { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: inherit; flex: 1; width: 100%; justify-content: center; }
#qlToggleBtn .ic { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; }

/* 编辑态（桌面图标式） */
.ql-card--add { display: none; border: 1.5px dashed var(--border-strong); background: transparent; box-shadow: none; color: var(--muted); }
.ql-card--add .ql-add-icon { font-size: 26px; font-weight: 300; line-height: 1; color: var(--muted); }
.ql-grid.is-editing .ql-card--add { display: flex; }
.ql-grid.is-editing .ql-card--add:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ql-grid.is-editing .ql-card--add:hover .ql-add-icon { color: var(--accent); }
.ql-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; display: none; align-items: center; justify-content: center; border: 2px solid var(--surface); border-radius: 50%; background: var(--pale-red, #ff3b30); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); z-index: 2; }
.ql-grid.is-editing .ql-remove { display: flex; }
.ql-remove:hover { background: #d70015; }
.ql-grid.is-editing .ql-card--custom { animation: ql-wiggle 1.6s ease-in-out infinite; }
.ql-grid.is-editing .ql-card--custom .ql-link { pointer-events: none; } /* 编辑态禁用链接跳转，交给 grid 委托 */
@keyframes ql-wiggle { 0%,100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
.ql-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 6px; }
.ql-pick { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border-radius: 10px; cursor: pointer; }
.ql-pick input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ql-pick .icon-box { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border: 1.5px solid transparent; border-radius: 10px; background: var(--surface-2); color: var(--muted); transition: all .15s; }
.ql-pick svg { width: 18px; height: 18px; }
.ql-pick:hover .icon-box { color: var(--accent); background: var(--accent-soft); }
.ql-pick input:checked + .icon-box { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ql-pick input:focus + .icon-box { box-shadow: 0 0 0 2px var(--accent); }

/* AI 资讯：iOS segmented control */
.ai-news .news-tabs { display: flex; gap: 2px; margin: 0 0 12px; background: var(--surface-2); border-radius: var(--r); padding: 2px; }
.ai-news .news-tab { flex: 1; appearance: none; background: transparent; border: none; border-radius: var(--r-sm); padding: 6px 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; font-family: var(--sans); transition: all .2s; font-weight: 500; }
.ai-news .news-tab:hover { color: var(--ink); }
.ai-news .news-tab.on { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06); color: var(--ink); font-weight: 600; }
.ai-news .news-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.ai-news .news-list, .activity-list { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.ai-news .news-list:hover, .activity-list:hover { scrollbar-color: rgba(0,0,0,0.2) transparent; }
.ai-news .news-list::-webkit-scrollbar, .activity-list::-webkit-scrollbar { width: 8px; }
.ai-news .news-list::-webkit-scrollbar-track, .activity-list::-webkit-scrollbar-track { background: transparent; }
.ai-news .news-list::-webkit-scrollbar-thumb, .activity-list::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; transition: background .2s; }
.ai-news .news-list:hover::-webkit-scrollbar-thumb, .activity-list:hover::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); }
.ai-news .news-item { padding: 13px 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; transition: none; }
.ai-news .news-item:hover { border-color: var(--border); background: none; }
.ai-news .news-item:last-child { border-bottom: none; }
.ai-news .news-main { min-width: 0; }
.ai-news .news-title-row { display: flex; align-items: flex-start; gap: 8px; }
.ai-news .news-tag { flex-shrink: 0; font-size: 10.5px; padding: 2px 8px; border-radius: var(--r-pill); line-height: 1.5; white-space: nowrap; margin-top: 1px; font-weight: 600; letter-spacing: .02em; }
.ai-news .news-tag-general { color: var(--pale-gray-ink); background: var(--surface-2); }
.ai-news .news-tag-education { color: var(--accent-soft-ink); background: var(--accent-soft); }
.ai-news .news-tag-tool { color: var(--amber); background: var(--amber-soft); }
.ai-news .news-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: none; line-height: 1.4; letter-spacing: -0.01em; }
.ai-news .news-title:hover { color: var(--accent); text-decoration: none; }
.ai-news .news-summary { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.ai-news .news-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.ai-news .news-rel { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.ai-news .news-source::before { content: '·'; margin-right: 10px; }
.section-sub { font-size: 11.5px; color: var(--muted); margin-left: 8px; font-family: var(--sans); font-weight: 500; }

/* Skill 列表：筛选条 */
.skills-toolbar { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin: 10px 0 18px; }
.skills-toolbar .filter-bar { flex: 1; margin: 0; }
.filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.filter-bar .filter-search { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--r); font-size: 13px; font-family: var(--sans); background: var(--surface); color: var(--ink); height: 34px; transition: border-color .15s, box-shadow .15s; }
.filter-bar .filter-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,0.12); }
.filter-bar .filter-select { padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: var(--r); font-size: 13px; font-family: var(--sans); background: var(--surface); color: var(--ink); height: 34px; }
.filter-check { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink); margin: 0; white-space: nowrap; height: 34px; font-weight: 500; }
.filter-check input { width: auto; margin: 0; }

/* 工作区：顶部统计胶囊 */
.ws-stat { font-size: 12px; color: var(--pale-gray-ink); padding: 4px 10px; background: var(--surface-2); border-radius: var(--r-pill); white-space: nowrap; font-weight: 600; }

/* Skill 详情：markdown 预览 */
.md-preview { padding: 32px 40px; overflow-y: auto; height: 100%; background: var(--surface); line-height: 1.7; color: var(--ink); }
.md-preview h1, .md-preview h2, .md-preview h3 { font-family: var(--sans); color: var(--ink); margin: 24px 0 12px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; }
.md-preview h1 { font-size: 26px; } .md-preview h2 { font-size: 20px; } .md-preview h3 { font-size: 16px; }
.md-preview p { margin: 10px 0; }
.md-preview ul, .md-preview ol { margin: 10px 0; padding-left: 24px; }
.md-preview li { margin: 4px 0; }
.md-preview code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); padding: 2px 6px; border-radius: var(--r-sm); }
.md-preview pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; overflow-x: auto; margin: 12px 0; }
.md-preview pre code { background: none; padding: 0; font-size: 13px; }
.md-preview blockquote { border-left: 3px solid var(--accent); padding-left: 14px; color: var(--muted); margin: 12px 0; }
.md-preview a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.md-preview img { max-width: 100%; border-radius: var(--r); }
.md-preview table { border-collapse: collapse; margin: 12px 0; }
.md-preview th, .md-preview td { border: 1px solid var(--border); padding: 8px 12px; font-size: 14px; }

/* Skill 详情：文件树 */
.st-node { font-size: 13px; color: var(--ink-2); }
.st-dir > .st-name, .st-dir > .st-caret { cursor: pointer; }
.st-caret { display: inline-block; width: 14px; color: var(--muted); font-size: 10px; }
.st-dir .st-children { padding-left: 14px; overflow: hidden; max-height: 0; }
.st-dir.open .st-children { max-height: 9999px; }
.st-dir.open > .st-caret { transform: rotate(0); }
.st-dir .st-caret { transform: rotate(-90deg); }
.st-file { display: flex; align-items: center; gap: 4px; padding: 5px 6px; border-radius: var(--r-sm); cursor: pointer; color: var(--ink-2); }
.st-file .st-dot { width: 14px; text-align: center; color: var(--muted); }
.st-file:hover { background: var(--surface-2); }
.st-file.on { background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 600; }
.st-file.md .st-dot { color: var(--accent); }

/* 分类管理 */
.cat-rows { display: flex; flex-direction: column; gap: 8px; }
.cat-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.cat-name { font-size: 14px; color: var(--ink); font-weight: 500; }
.cat-actions { display: flex; gap: 8px; }

/* 错误/无权访问提示页 */
.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.error-page .empty-state--block { margin-top: 0; max-width: 420px; padding: 56px 44px; }
.error-page .empty-icon svg { width: 48px; height: 48px; }
.error-page .empty-title { font-size: 20px; }

/* 品牌徽标 GRT */
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #2f7dff, #0061ff); color: #fff;
  padding: 0; border-radius: 7px;
  font-family: var(--sans); font-weight: 700; letter-spacing: 0;
  margin-right: 8px; vertical-align: middle; font-size: 11px; width: 26px; height: 26px;
}
.logo-text { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; }

/* ===== 回收站页 ===== */
.trash-page { max-width: 880px; padding-top: 28px; }
.trash-page .page-header { margin-bottom: 24px; }
.trash-page .page-header h1 { margin-bottom: 6px; }
.trash-group { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 18px; }
.trash-group-head { display: flex; align-items: center; gap: 9px; padding: 14px 20px; background: var(--surface-2); }
.tg-icon { font-size: 16px; }
.tg-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.tg-count { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--surface); padding: 2px 10px; border-radius: var(--r-pill); font-weight: 600; }
.trash-list { display: flex; flex-direction: column; }
.trash-row { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--border); }
.trash-row:first-child { border-top: none; }
.tr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tr-name { font-size: 14.5px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-sub { font-size: 12px; color: var(--muted); }
.tr-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.tr-owner { font-size: 12.5px; color: var(--ink-2); }
.tr-time { font-size: 11.5px; color: var(--muted); }
.tr-actions { display: flex; gap: 8px; }
.trash-empty { text-align: center; padding: 90px 20px 70px; color: var(--muted); }
.trash-empty-icon { color: var(--accent); opacity: 0.55; margin-bottom: 20px; display: flex; justify-content: center; }
.te-title { font-size: 16px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
