@charset "UTF-8";
/* ==========================================================================
   个人中心 / 登录注册 / 管理后台 样式
   复用 style.css 的设计令牌，新增仪表盘类组件
   ========================================================================== */

/* ---------- 登录注册页 ---------- */
.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 60px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(120% 130% at 20% 10%, var(--navy) 0%, var(--ink) 60%, #050f1e 100%);
}
.auth-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,.16)'/%3E%3C/svg%3E") repeat;
}
/* 分子动效画布：类名复用 style.css 的 .page-banner__canvas，由 main.js 注入，
   与首页 Hero 共用同一套 startMolecular 粒子成键动画 */
.auth-side > .page-banner__canvas { z-index: 1; opacity: .6; }
.auth-side::before {                 /* 左侧柔化蒙层，保证文字对比度（同首页 Hero 手法） */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(8, 23, 43, .72) 0%, rgba(8, 23, 43, .34) 52%, rgba(8, 23, 43, 0) 100%);
}
.auth-side::after { z-index: 0; }    /* 点阵网格置于画布之下 */
.auth-side__inner { position: relative; z-index: 3; max-width: 420px; }

.auth-side__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.auth-side__title { font-size: clamp(26px, 3vw, 36px); color: #fff; margin-bottom: 18px; line-height: 1.35; }
.auth-side__desc { color: rgba(255, 255, 255, .72); font-size: 16px; margin-bottom: 36px; }

.auth-points { display: grid; gap: 18px; }
.auth-point { display: flex; gap: 14px; align-items: flex-start; }
.auth-point__icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
}
.auth-point__icon svg { width: 19px; height: 19px; color: var(--accent); }
.auth-point__text { font-size: 14.5px; color: rgba(255, 255, 255, .78); line-height: 1.65; }
.auth-point__text strong { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }

/* 左侧内容错落入场（呼应首页 Hero 的动效语气）；
   用 backwards 而非 both——动画结束后不残留 fill，卡片 hover 位移才不会被动画覆盖 */
.auth-side__logo,
.auth-side__title,
.auth-side__desc,
.auth-point { animation: authSideIn .8s var(--ease) backwards; }
.auth-side__title { animation-delay: .1s; }
.auth-side__desc { animation-delay: .2s; }
.auth-point:nth-child(1) { animation-delay: .32s; }
.auth-point:nth-child(2) { animation-delay: .4s; }
.auth-point:nth-child(3) { animation-delay: .48s; }
@keyframes authSideIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* 品牌标识轻微浮动 + 条目悬停微交互 */
.auth-side__logo .logo__mark { animation: authLogoFloat 5s ease-in-out infinite; }
@keyframes authLogoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.auth-point { transition: transform .3s var(--ease); }
.auth-point:hover { transform: translateX(4px); }
.auth-point__icon { transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.auth-point:hover .auth-point__icon {
  background: rgba(0, 180, 166, .18);
  border-color: rgba(0, 180, 166, .42);
  transform: translateY(-2px);
}

/* ---------- 登录页左侧「平台特色」（由个人中心侧栏迁移而来） ---------- */
.auth-features {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  animation: authSideIn .8s var(--ease) backwards;   /* 接在 3 条卖点之后错落入场 */
  animation-delay: .56s;
}
.auth-features__title {
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .45);
}
.auth-features__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 10px;
  transition: background .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.auth-feat:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(0, 180, 166, .42);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(3, 10, 22, .3);
}
.auth-feat__icon { display: grid; place-items: center; flex: none; color: var(--accent); }
.auth-feat__icon svg { width: 15px; height: 15px; }
.auth-feat:nth-of-type(even) .auth-feat__icon { color: #6fb0ff; }   /* 蓝青交替，呼应首页特色卡 */
.auth-feat__name { min-width: 0; }

/* 矮屏：收紧纵向节奏，让左侧内容在首屏内完整呈现（英文文案更长，需要更早收紧） */
@media (max-height: 1000px) {
  .auth-side { padding: 48px 56px; }
  .auth-side__logo { margin-bottom: 30px; }
  .auth-side__title { margin-bottom: 14px; }
  .auth-side__desc { margin-bottom: 24px; }
  .auth-points { gap: 14px; }
  .auth-point__text { line-height: 1.55; }
  .auth-features { margin-top: 24px; padding-top: 18px; }
  .auth-features__title { margin-bottom: 10px; }
  .auth-feat { padding: 8px 11px; }
}
@media (max-height: 800px) {
  .auth-side { padding: 34px 48px; }
  .auth-side__logo { margin-bottom: 20px; }
  .auth-side__title { font-size: clamp(23px, 2.2vw, 28px); margin-bottom: 12px; }
  .auth-side__desc { font-size: 14.5px; margin-bottom: 18px; }
  .auth-points { gap: 11px; }
  .auth-point__text { font-size: 13.5px; line-height: 1.5; }
  .auth-features { margin-top: 18px; padding-top: 14px; }
  .auth-features__title { margin-bottom: 8px; }
  .auth-feat { padding: 7px 10px; font-size: 13px; }
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
  background: var(--bg-soft);
}
.auth-box {
  width: 100%;
  max-width: 440px;
  padding: 40px 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  padding: 4px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
}
.auth-tab {
  flex: 1;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  transition: all .28s var(--ease);
}
.auth-tab.is-active { color: var(--brand); background: #fff; box-shadow: var(--shadow-sm); }

.auth-box__title { font-size: 24px; margin-bottom: 6px; }
.auth-box__sub { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.auth-panel { display: none; }
.auth-panel.is-active { display: block; animation: fadeIn .35s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.auth-tip {
  margin-top: 20px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: var(--radius);
  line-height: 1.7;
}
.auth-back { margin-top: 24px; text-align: center; font-size: 14px; }
.auth-back a { color: var(--brand); }

/* ---------- 控制台布局 ---------- */
.console {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  background: var(--bg-soft);
  align-items: start; /* 侧边栏不被拉伸到整行，sticky 才能生效 */
}

.sidebar {
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  background: var(--navy);
  color: rgba(255, 255, 255, .7);
  position: sticky; /* 桌面端：左侧栏固定，不随右侧内容滚动 */
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.sidebar__brand .logo__cn { color: #fff; }
.sidebar__brand .logo__en { color: rgba(255, 255, 255, .45); }
.sidebar__tag {
  padding: 3px 9px;
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 180, 166, .14);
  border-radius: var(--radius-pill);
}

.sidebar__nav { display: grid; gap: 4px; margin-top: 8px; }
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
  border-radius: 12px;
  color: rgba(255, 255, 255, .68);
  transition: all .25s var(--ease);
}
.sidebar__link svg { width: 18px; height: 18px; flex: none; }
.sidebar__link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.sidebar__link.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(26, 86, 219, .9), rgba(26, 86, 219, .55));
  box-shadow: 0 6px 18px rgba(26, 86, 219, .25);
}
.sidebar__badge {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: #e5484d;
  border-radius: var(--radius-pill);
}
.sidebar__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
.sidebar__user { display: flex; align-items: center; gap: 10px; padding: 0 6px 12px; }
.sidebar__avatar {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--brand) 0%, #3f7bff 100%);
  border-radius: 50%;
}
.sidebar__uname { color: #fff; font-size: 14.5px; font-weight: 600; }
.sidebar__urole { font-size: 12px; color: rgba(255, 255, 255, .45); }
.sidebar__exit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .06);
  border: 0;
  border-radius: 10px;
  transition: all .25s var(--ease);
}
.sidebar__exit:hover { color: #fff; background: rgba(229, 72, 77, .22); }
.sidebar__exit svg { width: 16px; height: 16px; }

.console__main { display: flex; flex-direction: column; min-width: 0; }
.console__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.console__title { font-size: 20px; }
.console__crumb { font-size: 13px; color: var(--muted); margin-top: 2px; }
.console__actions { display: flex; align-items: center; gap: 12px; }
.console__body { flex: 1; padding: 28px 32px 48px; animation: consoleIn .5s var(--ease) both; }

/* 控制台页载入入场（与公开页 bannerIn 呼应，保持全站观感一致；尊重减弱动态偏好） */
@keyframes consoleIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.auth-box { animation: consoleIn .55s var(--ease) both; }

/* ---------- 控制台轻量动态（纯前端，零服务端开销） ---------- */
/* 视图切换：每次路由渲染 #view-root 都是全新节点，自然触发错落淡入 */
#view-root > * { animation: consoleIn .5s var(--ease) both; }
#view-root > *:nth-child(1) { animation-delay: .02s; }
#view-root > *:nth-child(2) { animation-delay: .09s; }
#view-root > *:nth-child(3) { animation-delay: .16s; }
#view-root > *:nth-child(4) { animation-delay: .23s; }
#view-root > *:nth-child(5) { animation-delay: .30s; }
#view-root > *:nth-child(n+6) { animation-delay: .36s; }

/* 统计卡：缩放弹入（区别于父级位移，避免叠加抖动） */
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
.stat-grid > .stat-card { animation: popIn .5s var(--ease) both; }
.stat-grid > .stat-card:nth-child(1) { animation-delay: .08s; }
.stat-grid > .stat-card:nth-child(2) { animation-delay: .14s; }
.stat-grid > .stat-card:nth-child(3) { animation-delay: .20s; }
.stat-grid > .stat-card:nth-child(4) { animation-delay: .26s; }

/* 统计卡图标悬停微动 */
.stat-card__icon { transition: transform .3s var(--ease); }
.stat-card:hover .stat-card__icon { transform: scale(1.08) rotate(-3deg); }

/* 侧边栏导航微交互：图标轻推 + 激活项左侧指示条 */
.sidebar__link { position: relative; }
.sidebar__link svg { transition: transform .25s var(--ease); }
.sidebar__link:hover svg { transform: scale(1.12); }
.sidebar__link.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 58%;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

/* 主按钮（btn-sm--primary）悬停光泽扫过 */
.btn-sm--primary { position: relative; overflow: hidden; }
.btn-sm--primary::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg);
  transition: left .6s var(--ease);
}
.btn-sm--primary:hover::after { left: 130%; }

/* 表格行轻量入场 */
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.data-table tbody tr { animation: rowIn .4s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  .console__body, .auth-box { animation: none; }
  #view-root > *, .stat-grid > .stat-card, .data-table tbody tr { animation: none !important; }
  .sidebar__link:hover svg, .stat-card:hover .stat-card__icon { transform: none; }
  .btn-sm--primary::after { display: none; }
  .auth-side__logo, .auth-side__title, .auth-side__desc, .auth-point,
  .auth-side__logo .logo__mark, .auth-features { animation: none !important; }
  .auth-point:hover, .auth-point:hover .auth-point__icon { transform: none; }
  .auth-feat:hover { transform: none; }
}

/* ---------- 卡片与统计 ---------- */
.panel {
  display: block; /* 覆盖 style.css 中 .panel 默认 none（官网 tab 面板用） */
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.panel__title { font-size: 17px; }
.panel__desc { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.stat-card {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all .3s var(--ease);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.stat-card__label { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.stat-card__value { font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.stat-card__value small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.stat-card__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.stat-card__icon svg { width: 20px; height: 20px; }
.stat-card--accent .stat-card__icon { background: var(--accent-soft); color: #00796f; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tbody tr { transition: background .2s var(--ease); }
.data-table tbody tr:hover { background: var(--bg-soft); }
.data-table tbody tr:last-child td { border-bottom: none; }
.cell-title { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cell-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge--pending   { color: #8a5a00; background: #fff3d6; }
.badge--reviewing { color: #7a4bd0; background: #efe6ff; }
.badge--running   { color: #0b6bcb; background: #e3f0ff; }
.badge--completed { color: #0a7a5c; background: #dcf5ec; }
.badge--rejected  { color: #c22a2a; background: #ffe4e4; }
.badge--draft     { color: #5b6b84; background: #eef2f8; }
.badge--submitted { color: #8a5a00; background: #fff3d6; }
.badge--approved  { color: #0a7a5c; background: #dcf5ec; }
.badge--active    { color: #0a7a5c; background: #dcf5ec; }
.badge--disabled  { color: #c22a2a; background: #ffe4e4; }
.badge--admin     { color: #7a4bd0; background: #efe6ff; }

/* ---------- 按钮（小尺寸） ---------- */
.btn-sm {
  padding: 7px 14px;
  font-size: 13.5px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-sm:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
/* 控制台顶栏内的语言切换（与刷新按钮并列，避免浮动元素与之重叠） */
.lang-switch {
  font-weight: 600;
  flex-shrink: 0;
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
}
.lang-switch:hover { color: #fff; border-color: var(--brand); background: var(--brand); }
.btn-sm--primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.btn-sm--primary:hover { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-sm--danger:hover { color: #c22a2a; border-color: #e5484d; background: #fff2f2; }
.btn-sm:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 筛选栏 ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 20px;
}
.filter-field { display: flex; flex-direction: column; gap: 6px; }
.filter-field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.filter-field .form-control { padding: 9px 14px; font-size: 14px; min-width: 150px; }
.filters__spacer { flex: 1; }

/* ---------- 空状态 ---------- */
.empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
}
.empty__icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--line-strong);
}
.empty__icon svg { width: 28px; height: 28px; }
.empty__text { font-size: 15px; margin-bottom: 18px; }

/* ---------- 进度条 ---------- */
.progress {
  position: relative;
  height: 7px;
  background: var(--bg-mute);
  border-radius: var(--radius-pill);
  overflow: hidden;
  min-width: 90px;
}
.progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #4a8bff);
  border-radius: var(--radius-pill);
  transition: width .5s var(--ease);
}
.progress--done .progress__bar { background: linear-gradient(90deg, var(--accent), #35d6c4); }

/* ---------- 时间线（处理日志） ---------- */
.log-list { display: grid; gap: 0; }
.log-item {
  position: relative;
  padding: 0 0 22px 30px;
  border-left: 2px solid var(--line);
}
.log-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.log-item::before {
  content: "";
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  background: #fff;
  border: 2.5px solid var(--brand);
  border-radius: 50%;
}
.log-item--admin::before { border-color: var(--accent); }
.log-item__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.log-item__action { font-size: 15px; font-weight: 600; color: var(--ink); }
.log-item__meta { font-size: 12.5px; color: var(--muted); }
.log-item__content { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---------- 详情定义列表 ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
.detail-item__label { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.detail-item__value { font-size: 15px; color: var(--ink); line-height: 1.7; word-break: break-word; white-space: pre-wrap; }
.detail-item--full { grid-column: 1 / -1; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
  overflow-y: auto;
  background: rgba(8, 23, 43, .5);
  backdrop-filter: blur(3px);
}
.modal.is-open { display: flex; animation: fadeIn .22s var(--ease) both; }
.modal__dialog {
  width: 100%;
  max-width: 620px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modalUp .3s var(--ease) both;
}
.modal--wide .modal__dialog { max-width: 780px; }
@keyframes modalUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}
.modal__title { font-size: 18.5px; }
.modal__close {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: none;
  color: var(--muted);
  background: var(--bg-soft);
  border: 0;
  border-radius: 50%;
  transition: all .25s var(--ease);
}
.modal__close:hover { color: var(--ink); background: var(--bg-mute); }
.modal__close svg { width: 16px; height: 16px; }
.modal__body { padding: 26px 28px; }
.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 400;
  display: grid;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14.5px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s var(--ease) both;
}
.toast--ok { background: #0f7a5a; }
.toast--error { background: #c22a2a; }
.toast.is-out { animation: toastOut .3s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px); } }

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.pager__btns { display: flex; gap: 8px; }

/* ---------- 结果文件行 ---------- */
.file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.file-row__icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.file-row__icon svg { width: 20px; height: 20px; }
.file-row__name { font-size: 14.5px; font-weight: 600; word-break: break-all; }
.file-row__meta { font-size: 12.5px; color: var(--muted); }
.file-row__action { margin-left: auto; }

/* ---------- 方案文献上传 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.file-upload {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.file-upload__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px dashed var(--brand);
  border-radius: var(--radius);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  background: var(--brand-soft);
  transition: background .15s, color .15s;
}
.file-upload__btn:hover { background: var(--brand); color: #fff; }
.file-upload__btn svg { width: 16px; height: 16px; }
.file-upload__hint { font-size: 12.5px; color: var(--muted); }
.file-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.file-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.file-list__name { font-size: 13.5px; font-weight: 600; word-break: break-all; }
.file-list__meta { font-size: 12px; color: var(--muted); }
.file-list__tag {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--line);
  color: var(--muted);
}
.file-list__tag--new { background: var(--brand-soft); color: var(--brand); }
.file-list__remove {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--danger, #d23);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.file-list__remove:hover { background: rgba(221,34,51,.1); }

/* ---------- 财务中心 ---------- */
.fin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fin-grid--1 { grid-template-columns: 1fr; }
.fin-metric {
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--line-strong);
}
.fin-metric__label { font-size: 13px; color: var(--muted); }
.fin-metric__value {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--text);
  word-break: break-all;
}
.fin-metric__hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.fin-metric--brand  { border-left-color: var(--brand); background: var(--brand-soft); }
.fin-metric--brand  .fin-metric__value { color: var(--brand-dark); }
.fin-metric--teal   { border-left-color: var(--accent); background: var(--accent-soft); }
.fin-metric--teal   .fin-metric__value { color: #00796f; }
.fin-metric--warn   { border-left-color: #e0a106; }
.fin-metric--danger { border-left-color: #d0342c; background: #fdf1f0; }
.fin-metric--danger .fin-metric__value { color: #b3261e; }

/* 使用进度条（信用金 / 机时） */
.fin-bar { margin-top: 20px; }
.fin-bar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.fin-bar__title { font-size: 13px; font-weight: 600; color: var(--text); }
.fin-bar__text { font-size: 12.5px; color: var(--muted); }
.fin-bar__track {
  height: 8px;
  background: var(--bg-mute);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.fin-bar__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width .45s var(--ease);
}
.fin-bar__fill--brand { background: linear-gradient(90deg, var(--brand), #4b83f0); }
.fin-bar__fill--teal  { background: linear-gradient(90deg, var(--accent), #35d3c4); }

/* 变动金额：增加绿、减少红 */
.fin-delta { font-weight: 600; white-space: nowrap; }
.fin-delta--up { color: #137a3d; }
.fin-delta--down { color: #b3261e; }

.pay-scan__desc { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
/* 对公转账账户信息 */
.bank-info {
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.bank-info__row {
  display: flex;
  gap: 16px;
  padding: 7px 0;
  font-size: 14px;
}
.bank-info__label { flex: none; width: 72px; color: var(--muted); }
.bank-info__value { font-weight: 600; color: var(--text); word-break: break-all; }
.bank-info__value--num {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  letter-spacing: .5px;
}

/* 客服企微卡片（个人中心业务页） */
.cs-panel { margin-top: 22px; }
.cs-card--wide { align-items: center; padding: 20px; background: var(--bg-soft); }
.cs-card--wide .cs-card__qr { width: 132px; height: 132px; }
.cs-card__hint { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* 收款与客服配置（后台） */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
.settings-cs-block {
  padding: 18px 20px;
  margin-bottom: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.settings-cs-block__title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.settings-cs-block__title .cell-sub { font-weight: 400; margin-left: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .fin-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 40px 20px; }

  .console { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 200;
    width: 250px;
    transform: translateX(-100%);
    transition: transform .3s var(--ease);
  }
  .sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .console__top { padding: 16px 20px; }
  .console__body { padding: 20px; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .stat-grid { grid-template-columns: 1fr; }
  .fin-grid { grid-template-columns: 1fr; }
  .fin-metric__value { font-size: 19px; }
  .console__title { font-size: 17px; }
  .modal { padding: 16px 12px; }
  .modal__body { padding: 20px; }
  .modal__head, .modal__foot { padding-inline: 20px; }
  .filters .form-control { min-width: 0; width: 100%; }
  .filter-field { flex: 1 1 100%; }
  .settings-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   自助计算（studio）：分步搭建、文件上传、输入文件预览
   ========================================================================== */

.studio-step {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.studio-step__no {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
}
.studio-step__title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.studio-step__desc { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* 拖拽上传区 */
.drop-zone {
  margin-top: 12px;
  padding: 24px 20px;
  text-align: center;
  background: var(--bg-soft);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.drop-zone:hover { border-color: var(--brand); background: var(--brand-soft); }
.drop-zone.is-over { border-color: var(--brand); background: var(--brand-soft); }
.drop-zone__text { font-size: 14.5px; color: var(--text); margin-bottom: 6px; }
.drop-zone__text::before {
  content: "＋";
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
  color: var(--brand);
}

/* 输入文件预览 / 编辑 */
.code-preview {
  width: 100%;
  min-height: 260px;
  padding: 16px 18px;
  margin-top: 12px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.75;
  color: #16324f;
  background: #f7f9fc;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  resize: vertical;
  white-space: pre;
  overflow-x: auto;
  tab-size: 2;
}
.code-preview:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(26, 86, 219, .12);
}
.code-preview--view { max-height: 340px; overflow-y: auto; }

/* 多文件标签（如 VASP 的 INCAR / KPOINTS） */
.file-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.file-tab {
  padding: 6px 16px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: all .25s var(--ease);
}
.file-tab:hover { color: var(--brand); border-color: var(--brand); }
.file-tab.is-active { color: #fff; background: var(--brand); border-color: var(--brand); }

/* 注意事项 */
.tip-list { margin-top: 14px; display: grid; gap: 8px; }
.tip-list__item {
  position: relative;
  padding: 10px 14px 10px 34px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #8a5a00;
  background: #fff8e6;
  border: 1px solid #ffe4a3;
  border-radius: var(--radius);
}
.tip-list__item::before {
  content: "!";
  position: absolute;
  left: 12px; top: 10px;
  display: grid;
  place-items: center;
  width: 16px; height: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #d99b00;
  border-radius: 50%;
}

/* ==========================================================================
   我的资料：资料审核横幅 + 团队信息
   ========================================================================== */

/* 资料审核状态横幅 */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.alert__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 10px;
}
.alert__icon svg { width: 20px; height: 20px; }
.alert__title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.alert__text { font-size: 13.5px; line-height: 1.7; }
.alert--info { background: var(--brand-soft); border-color: #cfe0ff; }
.alert--info .alert__icon { background: #dbe8ff; color: var(--brand); }
.alert--warn { background: #fff5f4; border-color: #ffd2cf; }
.alert--warn .alert__icon { background: #ffe0de; color: #c22a2a; }

/* 团队创建 / 加入卡片 */
.team-card {
  padding: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.team-card__title { font-size: 15.5px; margin-bottom: 4px; }

/* 团队头部操作区 */
.panel__head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.invite-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.invite-box__label { font-size: 12.5px; color: var(--muted); }
.invite-box__code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand);
}

/* 团队成员列表 */
.team-section { margin-top: 22px; }
.team-section__title { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.member-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.member-row__avatar {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--brand) 0%, #3f7bff 100%);
  border-radius: 50%;
}
.member-row__main { flex: 1; min-width: 0; }
.member-row__name { font-size: 14.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.member-row__sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.member-row__actions { display: flex; gap: 8px; flex: none; }

/* 待审核成员徽标 */
.badge--warn { color: #8a5a00; background: #fff3d6; }

@media (max-width: 620px) {
  .panel__head { flex-direction: column; align-items: flex-start; }
  .panel__head-actions { width: 100%; }
  .member-row__actions { flex-wrap: wrap; }
}

/* 资料审核差异对比 */
.profile-diff { font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.profile-diff__chg { color: var(--brand); font-weight: 600; }

/* 知识库编辑器：插入图片工具栏 */
.art-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px 0 8px;
}
.art-editor-hint {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 财务中心顶部子导航 ---------- */
.fin-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 6px;
  margin-bottom: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.fin-nav__item {
  padding: 9px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.fin-nav__item:hover { color: var(--brand); }
.fin-nav__item.is-active {
  color: var(--brand);
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 60, 110, .12);
}
.fin-body { min-height: 120px; }
@media (max-width: 620px) {
  .fin-nav__item { flex: 1 1 30%; padding: 9px 10px; text-align: center; }
}

/* 财务中心分节（结算说明等） */
.fin-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.fin-section__head { margin-bottom: 14px; }
.fin-section__title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.fin-section__desc { font-size: 13px; color: var(--muted); }

/* 任务金额提现弹窗 */
.form-note {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(26, 86, 219, .08), rgba(0, 180, 166, .08));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--muted);
}
.form-note strong {
  font-size: 19px;
  font-weight: 800;
  color: var(--brand);
}
.form-note__hint {
  margin: -6px 0 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* 公共任务平台接取资质卡 */
.qual-card__ok {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.qual-card__ok svg {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: var(--teal, #00b4a6);
}
.qual-card__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.qual-card__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.qual-card__actions {
  margin-top: 14px;
}

/* 登录 / 注册页精简页脚（备案号 + 隐私 / 条款链接），与全站其余公开页一致 */
.auth-foot {
  padding: 16px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.auth-foot a { color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.auth-foot a:hover { color: var(--accent); }
.auth-foot__sep { margin: 0 10px; color: var(--line-strong); }

/* 侧栏导航由 <a href="#view"> 改为 <button>，消除「#view 失效页内锚点」静态检查误报；
   重置 UA button 默认样式，使其外观与链接完全一致 */
button.sidebar__link {
  width: 100%;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
