:root {
  --bg0: #f7f2e9;
  --bg1: #efe5d3;
  --accent: #e98a72;        /* 柔和珊瑚 */
  --accent2: #f2a36b;       /* 柔和琥珀 */
  --accent3: #4fa895;       /* 柔和青绿（链接/点缀） */
  --text: #40382e;
  --muted: #8a7f6d;
  --card: #fffdf8;
  --card-border: #eadfc9;
  --danger: #c25b5b;
  --ok: #3f9d83;
  --warn: #bd7a2e;
  --radius: 20px;
  --shadow: 0 18px 48px rgba(120, 95, 60, 0.14);
  /* 黑色手型光标（Font Awesome hand 系，服务卡片使用） */
  --cursor-pointer: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'32'%20height%3D'32'%20viewBox%3D'0%200%20448%20512'%3E%3Cpath%20fill%3D'%23000'%20d%3D'M128%2040c0-22.1%2017.9-40%2040-40s40%2017.9%2040%2040l0%20148.2c8.5-7.6%2019.7-12.2%2032-12.2c20.6%200%2038.2%2013%2045%2031.2c8.8-9.3%2021.2-15.2%2035-15.2c25.3%200%2046%2019.5%2047.9%2044.3c8.5-7.7%2019.8-12.3%2032.1-12.3c26.5%200%2048%2021.5%2048%2048l0%2048%200%2016%200%2048c0%2070.7-57.3%20128-128%20128l-16%200-64%200-.1%200-5.2%200c-5%200-9.9-.3-14.7-1c-55.3-5.6-106.2-34-140-79L8%20336c-13.3-17.7-9.7-42.7%208-56s42.7-9.7%2056%208l56%2074.7L128%2040zM240%20304c0-8.8-7.2-16-16-16s-16%207.2-16%2016l0%2096c0%208.8%207.2%2016%2016%2016s16-7.2%2016-16l0-96zm48-16c-8.8%200-16%207.2-16%2016l0%2096c0%208.8%207.2%2016%2016%2016s16-7.2%2016-16l0-96c0-8.8-7.2-16-16-16zm80%2016c0-8.8-7.2-16-16-16s-16%207.2-16%2016l0%2096c0%208.8%207.2%2016%2016%2016s16-7.2%2016-16l0-96z'%2F%3E%3C%2Fsvg%3E") 12 3, pointer;
  --cursor-grab: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'32'%20height%3D'32'%20viewBox%3D'0%200%20512%20512'%3E%3Cpath%20fill%3D'%23000'%20d%3D'M288%2032c0-17.7-14.3-32-32-32s-32%2014.3-32%2032l0%20208c0%208.8-7.2%2016-16%2016s-16-7.2-16-16l0-176c0-17.7-14.3-32-32-32s-32%2014.3-32%2032l0%20272c0%201.5%200%203.1%20.1%204.6L67.6%20283c-16-15.2-41.3-14.6-56.6%201.4s-14.6%2041.3%201.4%2056.6L124.8%20448c43.1%2041.1%20100.4%2064%20160%2064l19.2%200c97.2%200%20176-78.8%20176-176l0-208c0-17.7-14.3-32-32-32s-32%2014.3-32%2032l0%20112c0%208.8-7.2%2016-16%2016s-16-7.2-16-16l0-176c0-17.7-14.3-32-32-32s-32%2014.3-32%2032l0%20176c0%208.8-7.2%2016-16%2016s-16-7.2-16-16l0-208z'%2F%3E%3C%2Fsvg%3E") 16 16, grab;
  --cursor-grabbing: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'32'%20height%3D'32'%20viewBox%3D'0%200%20512%20512'%3E%3Cpath%20fill%3D'%23000'%20d%3D'M144%200C117.5%200%2096%2021.5%2096%2048l0%2048%200%2028.5L96%20176c0%208.8-7.2%2016-16%2016s-16-7.2-16-16l0-26.7-9%207.5C40.4%20169%2032%20187%2032%20206L32%20244c0%2038%2016.9%2074%2046.1%2098.3L128%20384l0%2096c0%2017.7%2014.3%2032%2032%2032l160%200c17.7%200%2032-14.3%2032-32l0-105.3c46.9-19%2080-65%2080-118.7l0-80%200-16%200-16c0-26.5-21.5-48-48-48c-12.4%200-23.6%204.7-32.1%2012.3C350%2083.5%20329.3%2064%20304%2064c-12.4%200-23.6%204.7-32.1%2012.3C270%2051.5%20249.3%2032%20224%2032c-12.4%200-23.6%204.7-32.1%2012.3C190%2019.5%20169.3%200%20144%200z'%2F%3E%3C%2Fsvg%3E") 16 16, grabbing;
  /* 等宽字体：动态数字/时间/总量保持宽度稳定 */
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

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

/* 动态数字元素统一等宽，避免数字变化导致宽度抖动 */
.stat-value, .stat-value.lg, .stat-pct, .cum-big, .cum-split b,
.clock-time, .clock-label, .pill, .service-version, .stat-days {
  font-family: var(--mono);
}

html, body {
  min-height: 100%;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg0);
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

/* ---------- 背景（米白 + 柔和色块） ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 650px at 12% -8%, rgba(242, 163, 107, 0.20), transparent 60%),
    radial-gradient(950px 650px at 88% 0%, rgba(190, 175, 230, 0.20), transparent 60%),
    radial-gradient(900px 750px at 50% 120%, rgba(150, 215, 195, 0.18), transparent 60%),
    linear-gradient(160deg, var(--bg1), var(--bg0));
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 22s ease-in-out infinite;
}
.orb-a { width: 420px; height: 420px; left: -120px; top: -80px; background: #f6c79a; }
.orb-b { width: 380px; height: 380px; right: -100px; top: 20%; background: #cdc0ec; animation-delay: -7s; }
.orb-c { width: 340px; height: 340px; left: 30%; bottom: -140px; background: #a9dccb; animation-delay: -14s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(36px, -26px) scale(1.06); }
  66% { transform: translate(-26px, 22px) scale(0.95); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(130, 110, 75, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 110, 75, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ---------- 布局 ---------- */
.stage {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}
.hidden { display: none !important; }

/* ---------- 视图切换动画 ---------- */
.view { animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero / 登录卡片 ---------- */
.hero { text-align: center; margin: 7vh 0 26px; }
.logo-img {
  width: 78px; height: 78px;
  display: inline-block;
  filter: drop-shadow(0 6px 14px rgba(120, 95, 60, 0.18));
}
.logo-img.small {
  width: 30px; height: 30px;
  filter: drop-shadow(0 2px 4px rgba(120, 95, 60, 0.20));
}
.logo.small { font-size: 26px; line-height: 1; }
.title {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -1px;
  color: #40382e;
}
.title span { color: var(--accent); }
.subtitle { color: var(--muted); margin-top: 8px; font-size: 15px; letter-spacing: 1px; }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.auth-card { max-width: 420px; margin: 0 auto; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; gap: 12px;
}
.card-head h2 { font-size: 20px; font-weight: 700; }
.pill {
  font-size: 12px; color: var(--muted);
  background: #f3ecdd; border: 1px solid var(--card-border);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}

.field { display: block; margin-bottom: 14px; }
.field span {
  display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e6dac3;
  background: #fffdf9;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233, 138, 114, 0.18);
}

.btn {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
  background: transparent;
  color: var(--text);
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent2), var(--accent));
  color: #fff;
  box-shadow: 0 8px 22px rgba(233, 138, 114, 0.32);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(233, 138, 114, 0.45); transform: translateY(-1px); }
.btn-ghost { background: #f3ecdd; border-color: #e5d9c2; color: #4a4136; }
.btn-ghost:hover { background: #ece2cd; }
.btn-link { color: var(--accent3); padding: 6px 10px; font-size: 13px; opacity: 0.85; }
.btn-link:hover { opacity: 1; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.hint { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; line-height: 1.6; }
.link { color: var(--accent3); text-decoration: none; }
.link:hover { text-decoration: underline; }
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--muted); font-size: 12px;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: #e5d9c2;
}
.admin-entry { text-align: center; margin-top: 18px; }

.msg {
  max-width: 420px; margin: 14px auto 0; text-align: center;
  font-size: 13.5px; min-height: 20px;
}
.msg.error { color: var(--danger); }
.msg.ok { color: var(--ok); }

.pending-card, .big-icon { text-align: center; }
.big-icon { font-size: 64px; margin-bottom: 10px; }
.pending-card h2 { margin-bottom: 12px; }

/* ---------- 顶栏（通栏横幅背景） ---------- */
.topbar {
  position: relative;
  z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  width: 100vw;
  margin: -28px 0 26px calc(50% - 50vw);
  padding: 18px max(20px, calc((100vw - 1080px) / 2 + 20px));
  background:
    radial-gradient(720px 220px at 8% -30%, rgba(242, 163, 107, 0.28), transparent 65%),
    radial-gradient(640px 220px at 92% -30%, rgba(190, 175, 230, 0.20), transparent 65%),
    radial-gradient(760px 240px at 50% 150%, rgba(150, 215, 195, 0.16), transparent 70%),
    linear-gradient(160deg, #fffdf8 0%, #faf0de 55%, #f5e6cd 100%);
  box-shadow: 0 16px 34px -20px rgba(120, 95, 60, 0.4);
}
/* 底部主题渐变饰线：琥珀 → 珊瑚 → 青绿 */
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent2), var(--accent) 50%, var(--accent3));
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 700; font-size: 17px; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.clock { text-align: right; }
.clock-time {
  font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums;
  letter-spacing: 1px; color: #40382e;
}
.clock-label { font-size: 11.5px; color: var(--muted); }

/* ---------- 资源统计 ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px; margin-bottom: 18px;
  align-items: stretch;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column;
  height: 100%;
}
.stat-label { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.stat-main {
  height: 56px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.stat-value {
  font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stat-value.lg { font-size: 31px; letter-spacing: 0.5px; }
.stat-bottom {
  height: 22px; margin-top: 10px;
  display: flex; align-items: center; gap: 8px;
}
.stat-days {
  justify-content: center; text-align: center;
  font-size: 11.5px; color: var(--muted); letter-spacing: 0.3px;
}
.bar {
  flex: 1; height: 7px; background: #efe6d4; border-radius: 99px;
  overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 99px; transition: width 0.6s ease; width: 0; }
.bar-fill.cpu { background: linear-gradient(90deg, #8aa8e8, #a48fd4); }
.bar-fill.mem { background: linear-gradient(90deg, #5cc2ad, #79d0ba); }
.bar-fill.load { background: linear-gradient(90deg, #f2a36b, #e98a72); }
.bar-fill.disk { background: linear-gradient(90deg, #e8a35c, #e0707f); }
.stat-pct {
  flex-shrink: 0; min-width: 34px; text-align: right;
  font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
}
/* 迷你面积图（CPU / 负载） */
.chart-main { padding: 2px 0; }
.mini-chart { width: 100%; height: 100%; display: block; }
.mini-line {
  fill: none; stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round;
}
.mini-line.load { stroke: var(--accent2); }
.mini-line.cpu { stroke: #7d9be0; }

/* ---------- 实时流量 / 累计流量 ---------- */
.chart-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 26px;
}
.chart-legend { display: flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-left: 10px; }
.dot.local { background: #8aa8e8; }
.dot.proxy { background: #f2a36b; }
.traffic-panel {
  display: grid; grid-template-columns: auto auto 1fr;
  gap: 14px;
}
.traffic-block {
  background: #faf4e7; border: 1px solid #eadfc9;
  border-radius: 14px; padding: 12px 14px;
}
.traffic-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; margin-bottom: 10px; color: var(--text);
}
.traffic-right { display: flex; flex-direction: column; min-width: 0; }
.cum-title { justify-content: space-between; margin-bottom: 8px; }
.cum-chart { width: 100%; height: 70px; flex: none; display: block; }
.cum-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
#cum-local-line { stroke: #8aa8e8; }
#cum-proxy-line { stroke: #f2a36b; }
.cum-big {
  font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--text); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cum-split {
  display: flex; justify-content: center; gap: 10px;
  font-size: 12px; color: var(--muted);
}
.cum-split b {
  color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums;
}
.traffic-session {
  margin-left: auto; font-size: 10px; font-weight: 400; color: var(--muted);
}
@media (max-width: 760px) {
  .traffic-panel { grid-template-columns: 1fr 1fr; gap: 12px; }
  .traffic-right { grid-column: 1 / -1; }
  .cum-chart { height: 70px; flex: none; }
}

/* ---------- 服务按钮 ---------- */
.section-title {
  font-size: 16px; font-weight: 700; margin: 26px 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(var(--accent), var(--accent3));
}
.section-hint { font-size: 11px; font-weight: 400; color: var(--muted); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.service-card {
  height: 50px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px;
  cursor: var(--cursor-pointer);
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, opacity 0.2s;
  user-select: none;
}
.service-card:hover {
  border-color: rgba(233, 138, 114, 0.55);
  box-shadow: 0 6px 16px rgba(120, 95, 60, 0.14);
}
.service-card:active { transform: translateY(1px); }
.service-card[draggable="true"] { cursor: var(--cursor-grab); }
.service-card[draggable="true"]:active { cursor: var(--cursor-grabbing); }
.service-card.dragging { opacity: 0.45; border-style: dashed; }
.service-card.disabled { cursor: not-allowed; opacity: 0.55; }
.service-card.disabled:hover { border-color: var(--card-border); box-shadow: none; }
.service-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8eedb, #f3e2d8);
  border: 1px solid var(--card-border);
}
.service-icon img { width: 100%; height: 100%; object-fit: contain; }
.service-name {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.service-name-text {
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.service-version {
  font-size: 10.5px; color: var(--muted); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.service-badge {
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  white-space: nowrap;
}
.service-badge.online { background: rgba(79, 168, 149, 0.14); color: var(--ok); }
.service-badge.coming { background: rgba(232, 163, 92, 0.18); color: var(--warn); }
.service-group { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin: 14px 0 2px; text-transform: uppercase; letter-spacing: 1px; }
.service-group:first-of-type { margin-top: 0; }

/* ---------- 文件区 ---------- */
.files-card { margin-top: 14px; }
.upload-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.upload-btn { display: inline-block; }
.file-list { display: flex; flex-direction: column; gap: 10px; }
.file-item {
  display: flex; align-items: center; gap: 12px;
  background: #f8f1e3; border: 1px solid #e5d9c2;
  border-radius: 14px; padding: 12px 14px;
  animation: fadeUp 0.35s ease;
}
.file-icon { font-size: 20px; }
.file-name { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 12px; color: var(--muted); white-space: nowrap; }
.file-actions { display: flex; gap: 8px; }
.file-actions .btn { padding: 7px 12px; font-size: 12.5px; border-radius: 999px; }
.empty-tip { color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }

/* 文件浏览器：面包屑 / 目录 */
.file-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  background: #f8f1e3; border: 1px solid #e5d9c2; border-radius: 12px;
  padding: 8px 12px; margin-bottom: 12px;
}
.crumb {
  background: transparent; border: none; cursor: pointer;
  font-size: 13px; color: var(--muted); padding: 4px 8px; border-radius: 8px;
  font-family: inherit; transition: background 0.15s, color 0.15s;
}
.crumb:hover { background: #efe4cd; color: var(--text); }
.crumb.active { color: var(--accent); font-weight: 700; }
.crumb-sep { color: #c9bda3; font-size: 13px; }
.crumb-note { font-size: 11px; color: #a39a83; font-weight: 400; margin-left: 2px; white-space: nowrap; }
.dir-name { cursor: pointer; color: var(--accent3); font-weight: 600; }
.dir-name:hover { text-decoration: underline; }
.up-row { cursor: pointer; }
.up-row:hover { background: #f1e6d0; }
.dl-list { max-height: 46vh; overflow-y: auto; padding-right: 4px; }

/* ---------- 文件管理弹窗（Windows 资源管理器风格） ---------- */
.fm-box { max-width: 840px; }
.fm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fm-title { font-size: 18px; font-weight: 700; }
.fm-current { font-size: 12px; color: var(--muted); }
.fm-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fm-toolbar .btn { padding: 8px 14px; font-size: 13.5px; border-radius: 999px; }
.fm-address { margin-bottom: 10px; }
.fm-path-input {
  width: 100%; padding: 10px 14px; border-radius: 12px;
  border: 1px solid #e6dac3; background: #fffdf9; color: var(--text);
  font-size: 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.fm-path-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233, 138, 114, 0.18); }
.fm-list { max-height: 48vh; overflow-y: auto; padding-right: 4px; }
.fm-item { cursor: default; }
.fm-item.selected { background: #eaf2fd; border-color: #b9cdf0; }
.fm-item.selected:hover { background: #e2edfc; }
.fm-cb { width: 16px; height: 16px; accent-color: var(--accent3); flex-shrink: 0; cursor: pointer; }
.fm-rename {
  flex: 1; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--accent); background: #fff; color: var(--text);
  font-size: 14px; outline: none; font-family: inherit;
}
.fm-statusbar {
  font-size: 12px; color: var(--muted); padding-top: 10px; margin-top: 10px;
  border-top: 1px dashed #e5d9c2; text-align: right;
}
.fm-entry-card { text-align: center; padding: 30px 24px; }
.fm-entry-desc { color: var(--muted); font-size: 13px; margin-bottom: 16px; line-height: 1.7; }

/* ---------- 管理员表格 ---------- */
.table-wrap { overflow-x: auto; }
.user-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.user-table th, .user-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid #eadfc9; }
.user-table th { font-size: 12px; color: var(--muted); font-weight: 600; }
.user-table tr:hover td { background: rgba(130, 110, 75, 0.05); }
.state-tag { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; }
.state-tag.active { background: rgba(79, 168, 149, 0.15); color: var(--ok); }
.state-tag.pending { background: rgba(232, 163, 92, 0.18); color: var(--warn); }
.state-tag.disabled { background: rgba(194, 91, 91, 0.15); color: var(--danger); }
.state-tag.must { background: rgba(233, 138, 114, 0.16); color: #d06a45; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions .btn { padding: 6px 11px; font-size: 12px; border-radius: 999px; }
.btn-sm-ok { background: rgba(79, 168, 149, 0.14); color: var(--ok); border-color: rgba(79, 168, 149, 0.3); }
.btn-sm-warn { background: rgba(232, 163, 92, 0.16); color: var(--warn); border-color: rgba(232, 163, 92, 0.3); }
.btn-sm-danger { background: rgba(194, 91, 91, 0.14); color: var(--danger); border-color: rgba(194, 91, 91, 0.3); }

.footer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 40px; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(90, 72, 50, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
  animation: fadeUp 0.25s ease;
}
.modal-box { max-width: 560px; width: 100%; position: relative; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: #f1e9d8; border: none; color: #5a4f3e;
  width: 30px; height: 30px; border-radius: 999px; cursor: pointer; font-size: 14px;
}
.modal-close:hover { background: #e8ddc6; }
.code {
  background: #f4ecdc; border: 1px solid #e5d9c2;
  border-radius: 12px; padding: 12px 14px; margin: 12px 0;
  font-family: "SF Mono", "Consolas", monospace; font-size: 12.5px;
  white-space: pre-wrap; word-break: break-all; color: #7a4a2a;
}

/* 响应式 */
@media (max-width: 640px) {
  .stage { padding: 18px 14px 40px; }
  .topbar {
    flex-direction: column; gap: 12px;
    margin-top: -18px;
    padding: 14px;
  }
  .topbar-right { width: 100%; justify-content: space-between; }
}
