:root {
  --bg: #f4f5fb;
  --surface: #ffffff;
  --surface-2: #fbfbfe;
  --text: #1f2433;
  --muted: #7b8194;
  --border: #e9ebf2;
  --border-strong: #dcdfe9;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-grad: linear-gradient(135deg, #6366f1, #8b5cf6);
  --accent-soft: #eef0ff;
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --ok: #10b981;
  --ok-soft: #ecfdf5;
  /* 卡片青绿主题（与 .acc-card 一致），时间选择器统一使用 */
  --green: #14b8a6;
  --green-2: #0d9488;
  --green-grad: linear-gradient(135deg, #14b8a6, #0d9488);
  --green-soft: #e7f8f6;
  --orange: #f59e0b;
  --orange-grad: linear-gradient(135deg, #f59e0b, #ea580c);
  --orange-soft: #fff7ed;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px rgba(16, 24, 40, .06);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 图标 ---------- */
.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon.fill { fill: currentColor; stroke: none; }
.logo-badge {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(99, 102, 241, .35);
}
.logo-badge .icon { width: 19px; height: 19px; fill: #fff; stroke: none; }

/* ---------- 顶部导航 ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 28px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: .2px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.nav .links { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.nav .links a { padding: 8px 13px; border-radius: 9px; color: var(--text); }
.nav .links a:hover { background: var(--accent-soft); text-decoration: none; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; overflow: hidden; flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-xs { width: 30px; height: 30px; font-size: 12px; }
.avatar-sm { width: 36px; height: 36px; font-size: 14px; }
.avatar-md { width: 44px; height: 44px; font-size: 16px; }

.nav .links .icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--text); border: 1px solid var(--border-strong); background: var(--surface);
  transition: background .15s, color .15s, border-color .15s;
}
.nav .links .icon-btn .icon { width: 19px; height: 19px; }
.nav .links .icon-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); text-decoration: none; }

.user-menu { position: relative; }
.user-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 8px 4px 4px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font: inherit;
  transition: background .15s, border-color .15s;
}
.user-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.user-btn .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .18s; }
.user-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.at-name { font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 226px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); padding: 8px;
}
.menu[hidden] { display: none; }
.menu-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-id { min-width: 0; }
.menu-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-role { font-size: 12px; color: var(--muted); }
.menu-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; border: none; background: none; cursor: pointer;
  border-radius: 10px; color: var(--text); font: inherit; font-size: 14px; text-align: left;
  transition: background .14s, color .14s;
}
.menu-item .icon { width: 18px; height: 18px; color: var(--muted); }
.menu-item:hover { background: var(--accent-soft); text-decoration: none; }
.menu-item:hover .icon { color: var(--accent); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger .icon { color: var(--danger); }
.menu-item.danger:hover { background: var(--danger-soft); }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }

/* 轻提示 */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 12px);
  background: #1f2433; color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: #0f9d67; }
.toast.err { background: var(--danger); }

/* 安全提示横幅（异地登录 / 被踢下线） */
.sec-banner {
  display: none; align-items: center; gap: 10px;
  margin: 14px 18px 0; padding: 12px 14px; border-radius: 12px;
  font-size: 14px; font-weight: 600; line-height: 1.4;
  background: var(--orange-soft); border: 1px solid #ffd2a8; color: #b45309;
}
.sec-banner.show { display: flex; }
.sec-banner .icon { width: 20px; height: 20px; flex: none; color: var(--orange); }
.sec-banner .sb-text { min-width: 0; }
.sec-banner .sb-close {
  margin-left: auto; border: none; background: transparent; cursor: pointer;
  font-size: 20px; line-height: 1; color: inherit; padding: 0 2px;
}

/* ---------- 容器 ---------- */
main { max-width: 920px; margin: 0 auto; padding: 34px 20px 72px; }
.wrap-wide { max-width: 1120px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 22px; }
.card h2 { margin: 0 0 4px; font-size: 17px; }
.card .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

.section-title {
  font-size: 15px; font-weight: 700; margin: 0 0 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.empty { color: var(--muted); text-align: center; padding: 32px 0; font-size: 14px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- 表单 ---------- */
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
/* 密码可见切换 */
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 58px; }
.pwd-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: var(--accent);
  font-size: 13px; cursor: pointer; padding: 6px 8px; border-radius: 8px;
  line-height: 1; font-family: var(--font);
}
.pwd-toggle:hover { background: var(--accent-soft); }
.pwd-toggle.on { color: var(--text); }
.over-limit { border-color: #e5484d !important; color: #e5484d; }
.over-limit:focus { box-shadow: 0 0 0 3px rgba(229,72,77,.18); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=time], select {
  width: 100%; padding: 11px 13px; font-size: 14px; font-family: var(--font);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .14);
}
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.row.switch-row { flex-wrap: wrap; gap: 24px; }
.row.switch-row > * { flex: 0 0 auto; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.check input { width: auto; }

/* ---------- 自定义下拉选择（美化原生 select） ---------- */
.cs { position: relative; width: 100%; }
.cs-native { display: none !important; }
.cs-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px; font-family: var(--font); font-size: 14px; line-height: 1.55;
  color: var(--text); text-align: left; background: #fff;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s;
}
.cs-btn:hover { border-color: #c3c8d8; }
.cs-btn:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99, 102, 241, .14); }
.cs.open .cs-btn { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99, 102, 241, .14); }
.cs-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-value.placeholder { color: var(--muted); }
.cs-arrow { width: 16px; height: 16px; color: var(--muted); transition: transform .2s ease; }
.cs.open .cs-arrow { transform: rotate(180deg); color: var(--accent); }
.cs-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 80;
  margin: 0; padding: 6px; list-style: none; overflow: auto; max-height: 264px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .14), 0 2px 8px rgba(16, 24, 40, .06);
  animation: csIn .16s cubic-bezier(.2, .8, .3, 1);
}
.cs-menu[hidden] { display: none; }
@keyframes csIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.cs-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 11px; border-radius: 8px; font-size: 14px; color: var(--text);
  cursor: pointer; user-select: none; transition: background .12s, color .12s;
}
.cs-opt:hover, .cs-opt.active { background: var(--accent-soft); }
.cs-opt[aria-selected="true"] { color: var(--accent); font-weight: 600; }
.cs-opt[aria-selected="true"]::after {
  content: ""; width: 15px; height: 15px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* 分页栏中的紧凑样式 */
.pager-size .cs { width: auto; }
.pager-size .cs-btn { padding: 6px 30px 6px 12px; font-size: 13px; border-radius: 8px; }
.pager-size .cs-arrow { position: absolute; right: 9px; top: 50%; margin-top: -7px; width: 14px; height: 14px; pointer-events: none; }
.pager-size .cs-menu { left: auto; right: 0; min-width: 132px; }

/* ---------- 滑动开关（开启 / 关闭） ---------- */
.switch-field { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; }
.switch-field .sw-label { white-space: nowrap; }
.switch { position: relative; display: inline-flex; flex: none; }
.switch input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer; z-index: 3;
}
.sw-track {
  position: relative; display: block; width: 58px; height: 28px;
  border-radius: 999px; background: #cbd0dd; transition: background .22s ease;
}
.sw-track::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .28);
  transition: transform .22s ease; z-index: 2;
}
.sw-on, .sw-off {
  position: absolute; top: 0; height: 100%; display: flex; align-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: .5px; transition: opacity .2s ease;
}
.sw-on { left: 8px; opacity: 0; color: #fff; }
.sw-off { right: 8px; opacity: 1; color: #5b6076; }
.switch input:checked + .sw-track { background: var(--accent); }
.switch input:checked + .sw-track::before { transform: translateX(30px); }
.switch input:checked + .sw-track .sw-on { opacity: 1; }
.switch input:checked + .sw-track .sw-off { opacity: 0; }
.switch input:focus-visible + .sw-track { box-shadow: 0 0 0 3px var(--accent-soft); }
.input-icon { position: relative; }
.input-icon > .icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); width: 18px; height: 18px; pointer-events: none;
}
.input-icon input { padding-left: 40px; padding-right: 44px; }
.input-icon .pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border: none; background: transparent;
  color: var(--muted); cursor: pointer; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.input-icon .pw-toggle:hover { color: var(--text); background: rgba(16, 24, 40, .06); }
.input-icon .pw-toggle .icon { width: 18px; height: 18px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; background: var(--accent-grad);
  color: #fff; transition: transform .1s, opacity .15s, box-shadow .15s;
  box-shadow: 0 6px 16px rgba(99, 102, 241, .25);
}
.btn:hover { opacity: .94; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn.secondary { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: none; }
.btn.danger { background: #fff; color: var(--danger); border-color: #f3c9c9; }
.btn.sm {
  padding: 7px 13px; font-size: 13px; border-radius: 9px;
  box-shadow: 0 2px 6px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
}
.btn.sm:hover {
  opacity: 1; transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.7);
}
.btn.sm:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(0,0,0,.14), inset 0 2px 4px rgba(0,0,0,.10); }
.btn.sm.secondary:hover { background: #f7f8fc; }
.btn.sm.danger:hover { background: var(--danger-soft); box-shadow: 0 7px 16px rgba(255,77,79,.24), inset 0 1px 0 rgba(255,255,255,.7); }
.btn.block { width: 100%; margin-top: 18px; }

/* ---------- 结果 / 提示 ---------- */
.msg { margin-top: 14px; font-size: 14px; padding: 11px 13px; border-radius: var(--radius-sm); display: none; }
.msg.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #b6ebd2; }
.msg.err { background: var(--danger-soft); color: var(--danger); border: 1px solid #f6caca; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
tbody tr:hover { background: var(--surface-2); }
td .actions { display: flex; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; background: #f1f2f7; color: var(--muted); }
.badge.lock { background: var(--accent-soft); color: var(--accent); }
.badge.admin { background: #fdf0d5; color: #b45309; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.off { background: #fee2e2; color: #b91c1c; }

/* ---------- 统计卡（数据可视化） ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 14px;
  transition: transform .16s, box-shadow .16s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.s-ico {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid #e4e6fb;
}
.s-ico .icon { width: 23px; height: 23px; stroke: currentColor; }
/* a/b/c/d 保留类名以兼容结构，视觉统一为淡雅单色，不再使用多彩渐变 */
.s-ico.a, .s-ico.b, .s-ico.c, .s-ico.d { background: var(--accent-soft); color: var(--accent); }
.stat .n { font-size: 24px; font-weight: 700; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- 模态框 ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(24, 24, 27, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal-bg.show { display: flex; }
.modal {
  background: linear-gradient(180deg, #ffffff, #f6f7fb);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px; padding: 28px; width: 420px; max-width: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 24px 60px rgba(24, 24, 27, .28), 0 8px 18px rgba(24, 24, 27, .14);
  animation: modalPop .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal h3 { margin: 0 0 18px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.modal h3 .icon { color: var(--accent); width: 22px; height: 22px; }
.modal .tabs { display: flex; gap: 18px; margin-bottom: 16px; }
.modal .tabs span { cursor: pointer; color: var(--muted); padding-bottom: 5px; font-weight: 500; }
.modal .tabs span.active { color: var(--text); border-bottom: 2px solid var(--accent); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 下线提示弹窗正文 */
#offlineModal .modal { max-width: 420px; }
#offlineModal .modal-text { color: var(--text); line-height: 1.6; margin: 2px 0 0; }

/* ---------- 专属登录页 ---------- */
.auth-wrap { min-height: 100vh; display: flex; }
.auth-aside {
  flex: 1.1; background: var(--accent-grad); color: #fff;
  padding: 56px 48px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-aside::after {
  content: ""; position: absolute; right: -80px; bottom: -80px;
  width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .10);
}
.auth-aside::before {
  content: ""; position: absolute; left: -60px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.auth-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; position: relative; z-index: 1; color: inherit; text-decoration: none; cursor: pointer; transition: opacity .15s; }
.auth-brand:hover { opacity: .85; text-decoration: none; }
.auth-brand-mobile { display: none; color: var(--text); margin-bottom: 22px; }
.auth-brand .logo-badge { width: 44px; height: 44px; border-radius: 12px; }
.auth-brand .logo-badge .icon { width: 24px; height: 24px; }
.auth-aside h1 { font-size: 34px; line-height: 1.25; margin: 0 0 14px; position: relative; z-index: 1; }
.auth-aside p.lead { opacity: .92; font-size: 15px; max-width: 420px; position: relative; z-index: 1; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; position: relative; z-index: 1; }
.auth-points li { display: flex; align-items: center; gap: 13px; font-size: 15px; }
.auth-points .p-ico { width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; }
.auth-points .p-ico .icon { width: 20px; height: 20px; stroke: #fff; }
.auth-foot { font-size: 13px; opacity: .8; position: relative; z-index: 1; }

.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--bg); }
.auth-card { width: 380px; max-width: 100%; }
.auth-card .auth-head { text-align: center; margin-bottom: 26px; }
.auth-card .auth-head h2 { margin: 0 0 6px; font-size: 24px; }
.auth-card .auth-head p { margin: 0; color: var(--muted); font-size: 14px; }
.auth-card .input-icon { margin-top: 16px; }
.auth-card .input-icon:first-of-type { margin-top: 8px; }
.auth-card .tabs { display: flex; gap: 24px; justify-content: center; margin-bottom: 22px; }
.auth-card .tabs span { cursor: pointer; color: var(--muted); padding-bottom: 6px; font-weight: 600; }
.auth-card .tabs span.active { color: var(--text); border-bottom: 2px solid var(--accent); }
.auth-hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 18px; }

/* ---------- 后台：左侧菜单布局 ---------- */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; flex: none; background: #15162b; color: #c9cbe0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-brand {
  display: flex; align-items: center; gap: 11px; padding: 20px 22px;
  font-size: 18px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.side-brand .logo-badge { width: 36px; height: 36px; border-radius: 10px; }
.side-brand .logo-badge .icon { width: 20px; height: 20px; fill: #fff; stroke: none; }
.side-nav { padding: 16px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: 10px; color: #c9cbe0; font-size: 14px; font-weight: 500; cursor: pointer;
  text-decoration: none; transition: background .15s, color .15s;
}
.side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav a.active { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 20px rgba(99, 102, 241, .35); }
.side-nav a .icon { width: 19px; height: 19px; }
.side-foot { padding: 16px; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; flex-direction: column; gap: 6px; }
.side-foot a { display: flex; align-items: center; gap: 10px; color: #c9cbe0; font-size: 13px; padding: 8px 12px; border-radius: 9px; text-decoration: none; }
.side-foot a:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10;
}
.admin-top .at-title { font-size: 18px; font-weight: 700; }
.admin-top .at-user { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.admin-content { padding: 26px 28px 60px; }
.tab-pane { display: block; }

/* 顶栏左侧包裹（汉堡 + 标题），桌面端隐藏汉堡 */
.at-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hamburger {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--text); cursor: pointer;
}
.hamburger .icon { width: 22px; height: 22px; }
.nav-backdrop { display: none; }
.tab-pane[hidden] { display: none; }

.guard-box {
  max-width: 460px; margin: 12vh auto; text-align: center; padding: 40px 30px;
}
.guard-box .g-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--danger-soft); color: var(--danger); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.guard-box .g-ico .icon { width: 32px; height: 32px; }

/* 小号滑动开关（表格内状态） */
.switch.sm .sw-track { width: 50px; height: 24px; }
.switch.sm .sw-track::before { width: 18px; height: 18px; }
.switch.sm input:checked + .sw-track::before { transform: translateX(26px); }
.switch.sm .sw-on, .switch.sm .sw-off { font-size: 10px; }
.switch.sm .sw-on { left: 7px; }
.switch.sm .sw-off { right: 7px; }

/* ---------- 运动助手补充样式 ---------- */
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.off { background: #eef0f7; color: var(--muted); }
.tag.err { background: var(--danger-soft); color: var(--danger); }

/* 运动账号卡片网格（对齐 onetool 卡片化版式） */
.blk { margin-top: 22px; }
.blk-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.blk-head h2 { margin: 0; font-size: 18px; }
.blk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(286px, 1fr)); gap: 16px; }
.acc-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 16px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.acc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dce0ec; }
.acc-top { display: flex; align-items: center; gap: 12px; }
.acc-ava {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  background: var(--green-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(13, 148, 136, .28);
}
.acc-ava .icon { width: 22px; height: 22px; stroke: #fff; }
.acc-name { font-weight: 700; font-size: 15.5px; letter-spacing: .1px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 信息区改为浅色面板，行间用细分隔线，层次更清晰 */
.acc-meta {
  display: flex; flex-direction: column;
  background: #f8f9fd; border: 1px solid var(--border); border-radius: 12px;
  padding: 2px 12px;
}
.acc-meta .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.acc-meta .row:last-child { border-bottom: 0; }
.acc-meta .k { color: var(--muted); }
.acc-meta .v { color: var(--text); font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62%; }
/* 模式类型（固定/随机）：紧跟“模式”标签的小胶囊，浅灰配色 */
.acc-meta .mode-tag {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .3px;
  color: #6b7280; background: #f1f2f6;
  margin-left: 6px; padding: 3px 8px; border-radius: 999px;
}
/* 提交时间：数字时钟样式（时钟图标 + 等宽数字胶囊），浅灰配色 */
.acc-meta .time-clock {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 1px;
  background: #f1f2f6; color: #6b7280;
  padding: 2px 8px; border-radius: 8px; font-size: 13px;
}
.acc-meta .time-clock .icon { width: 13px; height: 13px; flex: none; }
.acc-foot { display: flex; gap: 8px; margin-top: auto; }
.acc-foot .btn.sm { flex: 1; padding: 8px 10px; }
/* 卡片内「提交 / 编辑」按钮改为青绿，与靛蓝主题区分（删除按钮保持原样） */
.acc-foot .btn.sm:not(.danger) {
  background: var(--green-grad);
  box-shadow: 0 2px 6px rgba(13, 148, 136, .20), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.acc-foot .btn.danger { background: #fff; color: var(--danger); border-color: var(--border); }
.acc-foot .btn.danger:hover { background: var(--danger-soft); border-color: #f3c9c9; }

/* 账号编辑 / 添加弹窗：主题对齐卡片青绿（不影响其它弹窗） */
#modalBg .modal h3 .icon { color: var(--green); }
#modalBg .btn.primary {
  background: var(--green-grad);
  box-shadow: 0 6px 16px rgba(13, 148, 136, .25);
}
#modalBg .btn.ghost { color: var(--green); }
#modalBg input:focus, #modalBg select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .14);
}
/* 密码可见按钮 / 滑动开关 / 随机按钮：同样使用卡片青绿 */
#modalBg .pwd-toggle { color: var(--green); }
#modalBg .pwd-toggle:hover { background: var(--green-soft); }
#modalBg .switch-field { flex-direction: column; align-items: flex-start; gap: 8px; }
#modalBg .switch input:checked + .sw-track { background: var(--green-grad); }
#modalBg .switch input:focus-visible + .sw-track { box-shadow: 0 0 0 3px rgba(20, 184, 166, .18); }
#modalBg .rand-btn {
  background: var(--green-grad);
  box-shadow: 0 2px 6px rgba(13, 148, 136, .22), inset 0 1px 0 rgba(255, 255, 255, .5);
}
/* 固定步数：输入框 + 随机按钮 排成一行 */
.step-fixed-row { display: flex; gap: 8px; align-items: stretch; }
.step-fixed-row input { flex: 1 1 auto; min-width: 0; }
.step-fixed-row .rand-btn { flex: none; white-space: nowrap; }

/* 通用后台表格（用户管理 / 任务管理）——样式与 file-share 项目对齐 */
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; margin-top: 6px; }
.admin-table thead th {
  text-align: left; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; letter-spacing: .2px; color: var(--muted);
  padding: 10px 14px; background: var(--surface-2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.admin-table thead th:first-child { border-left: 1px solid var(--border); border-top-left-radius: 10px; }
.admin-table thead th:last-child { border-right: 1px solid var(--border); border-top-right-radius: 10px; }
.admin-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom-color: transparent; }
.admin-table tbody tr { transition: background .15s; }
.admin-table tbody tr:hover { background: #fafbff; }
.admin-table tbody td:nth-child(2) { font-weight: 600; }
/* 用户管理：表格滚动容器 + 首列（用户名）强调 */
#usersBody { overflow-x: auto; }
#usersBody tbody td:first-child { font-weight: 600; }

/* 任务管理：卡片式布局（复用首页 .acc-card 外观） */
#tasksBody { margin-top: 6px; }
.acc-grid > .empty { grid-column: 1 / -1; }
#tasksBody .acc-ava { background: var(--accent-soft); color: var(--accent); box-shadow: 0 6px 14px rgba(99, 102, 241, .18); }
#tasksBody .acc-ava .icon { stroke: currentColor; }
.admin-table .avatar-xs { border: 1px solid var(--border); }
/* 用户管理：用户名单元格（头像 + 名称） */
.u-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.u-cell .u-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-table .actions { display: flex; gap: 8px; align-items: center; }
.admin-table .btn.sm { padding: 7px 12px; border-radius: 9px; white-space: nowrap; }
.admin-table .btn .icon { width: 14px; height: 14px; }
.del-svg { width: 16px; height: 16px; flex: none; vertical-align: -2px; }

/* 编辑用户弹窗 */
.ue-avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }

/* 概览可视化 */
.viz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.viz-card { margin-top: 16px; }
.viz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.viz-head h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.viz-head h2 .icon { width: 17px; height: 17px; color: var(--accent); }
.viz-head .sub { color: var(--muted); font-size: 13px; flex: none; }
.viz-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; }

.sys-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sys-item { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.sys-item .s-ico { width: 44px; height: 44px; border-radius: 12px; }
.sys-n { font-size: 17px; font-weight: 700; line-height: 1.3; }
.sys-l { color: var(--muted); font-size: 12.5px; }
.sys-foot { margin-top: 14px; font-size: 12.5px; color: var(--muted); word-break: break-all; }

.fname { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 运行日志：服务器响应列（截断预览 + 详情） */
.log-msg { display: flex; align-items: center; gap: 10px; max-width: 420px; }
.log-msg-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-detail {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--orange-soft); background: var(--orange-soft);
  color: var(--orange); font: inherit; font-size: 12.5px; font-weight: 600;
  padding: 3px 12px; border-radius: 999px; cursor: pointer; line-height: 1.5;
  transition: background .14s, border-color .14s, color .14s;
}
.log-detail .icon { width: 14px; height: 14px; }
.log-detail:hover { background: var(--orange-grad); border-color: transparent; color: #fff; }

/* 详情弹窗 */
.detail-modal { width: 540px; max-width: 100%; }
/* 橙色点缀：标题图标 + 操作按钮 */
.detail-modal h3 .icon { color: var(--orange); }
.detail-modal .btn.ghost { color: var(--orange); }
.detail-modal .btn.primary { background: var(--orange-grad); box-shadow: 0 6px 16px rgba(234, 88, 12, .25); }
.detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-bottom: 14px; }
.dm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 12px;
}
.dm-row span { color: var(--muted); }
.dm-row b { font-weight: 600; }
.detail-pre {
  margin: 0; padding: 14px 16px; max-height: 320px; overflow: auto;
  background: #0f172a; color: #e2e8f4; border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-all;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .viz-row { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr; }
  .sys-grid { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-brand-mobile { display: inline-flex; }

  /* 手机端：后台菜单改为左侧抽屉，图标可折叠 */
  .admin-layout { display: block; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 200;
    width: 240px; max-width: 82vw; height: 100vh;
    transform: translateX(-100%); transition: transform .26s ease;
    box-shadow: 0 0 50px rgba(10, 12, 30, .4);
  }
  .admin-layout.nav-open .sidebar { transform: translateX(0); }
  .nav-backdrop {
    display: none; position: fixed; inset: 0; z-index: 150;
    background: rgba(15, 18, 40, .45);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  }
  .admin-layout.nav-open .nav-backdrop { display: block; }
  .admin-top { position: sticky; padding: 14px 16px; }
  .hamburger { display: inline-flex; }
  .admin-content { padding: 18px 16px 56px; }
}

/* ============================================================
   首页 onetool 版式（Hero + 编号章节 + 三列卡片 + 底部 CTA）
   ============================================================ */
.nav-link { color: var(--text); font-size: 14px; }
.nav-link:hover { background: var(--accent-soft); text-decoration: none; }
.nav-guest { display: flex; align-items: center; gap: 8px; margin-left: 6px; }

.home-main { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* Hero 首屏 */
.hero { position: relative; text-align: center; padding: 84px 0 56px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px;
  border-radius: 999px; background: #fff; border: 1px solid var(--border-strong);
  color: var(--muted); font-size: 13px; box-shadow: var(--shadow-sm);
}
.hero-pill .icon { width: 15px; height: 15px; color: var(--accent); }
.hero-title {
  font-size: clamp(40px, 7vw, 68px); line-height: 1.05; letter-spacing: -1.5px;
  margin: 22px 0 14px; font-weight: 800;
  background: linear-gradient(135deg, #4f46e5, #8b5cf6 58%, #c026d3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 17px; color: var(--muted); margin: 0 auto; max-width: 580px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero-metrics { display: flex; gap: 14px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.hero-metrics .hm {
  min-width: 148px; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow);
}
.hero-metrics .hm b { display: block; font-size: 28px; line-height: 1.15; font-weight: 700; }
.hero-metrics .hm b.c-total { color: var(--accent); }
.hero-metrics .hm b.c-ok { color: var(--ok); }
.hero-metrics .hm b.c-on { color: var(--ok); }
.hero-metrics .hm b.c-off { color: var(--danger); }
.hero-metrics .hm span { color: var(--muted); font-size: 13px; }

/* 编号章节 */
.sect { padding: 46px 0; }
.sect-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.sect-num {
  font-size: 46px; font-weight: 800; line-height: 1; flex: none;
  color: transparent; -webkit-text-stroke: 1.5px #d3d6ea;
}
.sect-txt h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.2px; }
.sect-txt p { margin: 0; color: var(--muted); font-size: 14px; }
.sect-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* 三列卡片网格 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.f-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.f-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dfe1f5; }
.f-ico {
  width: 48px; height: 48px; border-radius: 13px; display: inline-flex;
  align-items: center; justify-content: center; color: #fff; margin-bottom: 16px;
}
.f-ico .icon { width: 24px; height: 24px; stroke: #fff; }
.f-ico.a { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.f-ico.b { background: linear-gradient(135deg, #10b981, #059669); }
.f-ico.c { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.f-ico.d { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.f-card h3 { margin: 0 0 8px; font-size: 17px; }
.f-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* 底部 CTA + 页脚 */
.foot { background: #fff; }
.foot-cta { text-align: center; padding: 64px 22px 50px; }
.foot-cta h3 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.4px; }
.foot-cta p { margin: 0 0 24px; color: var(--muted); }
.foot-base { border-top: 1px solid var(--border); text-align: center; padding: 20px; color: var(--muted); font-size: 13px; }

@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 56px 0 40px; }
  .sect-num { font-size: 34px; }
  .nav-link { display: none; }
}
@media (max-width: 700px) {
  .grid-3 { grid-template-columns: 1fr; }
  .sect-head { gap: 12px; }
  .sect-actions { margin-left: 0; width: 100%; }
}

/* ---------- 头像预览 / 裁剪（与 file-share 对齐） ---------- */
.ac-bg { z-index: 60; }
.ac-bg .modal { padding: 0; overflow: hidden; }
.ac-bg .ac-ico {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ac-cam { width: 20px; height: 20px; flex: none; }
.ac-edit { width: 470px; }
.ac-crop { width: 500px; }
.ac-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.ac-title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; color: var(--text); }
.ac-title .ac-ico { width: 20px; height: 20px; color: var(--accent); }
.ac-x {
  border: 0; background: none; cursor: pointer; color: var(--muted);
  font-size: 22px; line-height: 1; padding: 0 6px; border-radius: 8px;
}
.ac-x:hover { color: var(--text); background: var(--surface-2); }
.ac-body { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 24px 20px; }
.ac-preview {
  width: 118px; height: 118px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--accent-grad); color: #fff; font-size: 42px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--surface); box-shadow: 0 6px 22px rgba(99, 102, 241, .22);
}
.ac-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-pick { display: flex; flex-direction: column; }
.ac-hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
.ac-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px; border-top: 1px solid var(--border);
}
.ac-crop .crop-wrap { display: flex; flex-direction: column; gap: 12px; padding: 4px 4px 0; }
.ac-crop .crop-box {
  position: relative; width: 100%; height: 312px; box-sizing: border-box;
  padding: 12px; border-radius: 16px; overflow: hidden;
  background: #1f2a3d; border: 1px solid #e8ecf5;
}
.ac-crop .crop-box > img { display: block; max-width: 100%; }
.ac-crop .crop-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: 8px; color: #b9c2d4; font-size: 13px;
}
.ac-crop .cropper-view-box { outline: 1px solid #fff; border-radius: 0; }
.ac-crop .cropper-modal { background-color: #0b1220; opacity: .5; }
.ac-crop .cropper-face { background-color: transparent; opacity: 0; }
.ac-crop .cropper-line { background-color: transparent; }
.ac-crop .cropper-dashed { border-color: rgba(255, 255, 255, .45); border-style: solid; opacity: 1; }
.ac-crop .cropper-point {
  width: 16px; height: 16px; background-color: transparent; border: 0 solid #fff;
  border-radius: 0; box-shadow: none; opacity: 1;
}
.ac-crop .cropper-point.point-nw { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.ac-crop .cropper-point.point-ne { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.ac-crop .cropper-point.point-sw { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.ac-crop .cropper-point.point-se { bottom: -1px; right: -1px; opacity: 1; border-bottom-width: 2px; border-right-width: 2px; }
.ac-crop .cropper-point.point-se::before { display: none; }
.ac-crop .cropper-point.point-n, .ac-crop .cropper-point.point-s { width: 18px; height: 4px; margin-left: -9px; background-color: #fff; }
.ac-crop .cropper-point.point-n { top: -2px; }
.ac-crop .cropper-point.point-s { bottom: -2px; }
.ac-crop .cropper-point.point-e, .ac-crop .cropper-point.point-w { width: 4px; height: 18px; margin-top: -9px; background-color: #fff; }
.ac-crop .cropper-point.point-e { right: -2px; }
.ac-crop .cropper-point.point-w { left: -2px; }
.ac-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #f7f9ff; border: 1px solid #eaeefb; border-radius: 12px; padding: 7px 10px;
}
.ac-tools-left { display: flex; gap: 8px; }
.ac-tool {
  width: 30px; height: 30px; border: 0; border-radius: 9px; cursor: pointer;
  background: #fff; color: #5b6b8c; font-size: 15px;
  transition: background .15s, color .15s, transform .15s;
}
.ac-tool:hover { background: var(--accent-grad); color: #fff; transform: translateY(-1px); }
.ac-ratio { margin-left: auto; font-size: 12px; color: #8b93a7; letter-spacing: .3px; }
.ac-tilt {
  display: flex; align-items: center; gap: 10px;
  background: #f7f9ff; border: 1px solid #eaeefb; border-radius: 12px; padding: 2px 12px;
}
.ac-tilt-label { flex: none; font-size: 12.5px; color: #5b6b8c; }
.ac-tilt input[type="range"] { flex: 1; min-width: 80px; accent-color: var(--accent); }
.ac-tilt-val { flex: none; width: 52px; text-align: right; font-size: 12px; color: #8b93a7; font-variant-numeric: tabular-nums; }
.ac-zero { border: 0; background: none; cursor: pointer; color: var(--accent); font-size: 13px; padding: 2px 4px; flex: none; }
.ac-zero:hover { text-decoration: underline; }
.ac-tip {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 0 2px 2px; font-size: 12px; line-height: 1.65; color: var(--muted);
}
.ac-tip .ac-ico { width: 15px; height: 15px; margin-top: 2px; color: var(--accent); flex: none; }

/* ============================================================
   时钟式时间选择器（Material 风格表盘）
   ============================================================ */
/* 表单里的触发输入框 */
.tp-input { position: relative; }
.tp-input > .icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--green); pointer-events: none;
}
.tp-input .tp-chev { left: auto; right: 12px; width: 16px; height: 16px; }
.tp-input input {
  padding-left: 40px; padding-right: 40px; cursor: pointer;
  font-variant-numeric: tabular-nums; letter-spacing: .6px;
}
.tp-input input:focus {
  cursor: text;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .16);
}
/* 移动端：改用原生时间选择器（系统自带触感），隐藏只读回显框与右侧箭头 */
.tp-input.mobile-native input#fTime { display: none; }
.tp-input.mobile-native .tp-chev { display: none; }

body.tp-lock { overflow: hidden; }

/* 遮罩 + 弹层 */
.tp-bg {
  position: fixed; inset: 0; z-index: 70; padding: 16px;
  background: rgba(24, 24, 27, .45);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center;
}
.tp-bg.show { display: flex; animation: tpFade .16s ease; }
@keyframes tpFade { from { opacity: 0; } to { opacity: 1; } }

.tp-dialog {
  width: 330px; max-width: 100%; background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 18, 40, .34), 0 4px 12px rgba(15, 18, 40, .16);
  animation: tpPop .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes tpPop {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: none; }
}
/* 不支持 navigator.vibrate 的浏览器（如系统自带浏览器/WebView、iOS）：用一次轻微缩放脉冲作为替代反馈 */
@keyframes tpTick {
  0% { transform: scale(1); }
  45% { transform: scale(1.018); }
  100% { transform: scale(1); }
}
.tp-dialog.tp-tick { animation: tpTick 150ms ease-out; }

/* 顶部大号时间显示 */
.tp-head { background: var(--green-grad); color: #fff; padding: 16px 20px 18px; position: relative; }
.tp-head::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 150px; height: 150px;
  border-radius: 50%; background: rgba(255, 255, 255, .10);
}
.tp-hint { font-size: 12.5px; font-weight: 500; letter-spacing: .3px; opacity: .84; position: relative; z-index: 1; }
.tp-display { display: flex; align-items: center; gap: 2px; margin-top: 4px; position: relative; z-index: 1; }
.tp-seg {
  border: 0; background: none; color: #fff; cursor: pointer; padding: 2px 9px;
  border-radius: 10px; font: inherit; font-weight: 300; font-size: 48px; line-height: 1.12;
  letter-spacing: 1px; font-variant-numeric: tabular-nums;
  transition: background .18s ease, opacity .18s ease;
}
.tp-seg:not(.active) { opacity: .6; }
.tp-seg.active { background: rgba(255, 255, 255, .18); }
.tp-colon { font-size: 42px; font-weight: 300; opacity: .78; padding-bottom: 2px; }

/* 表盘 */
.tp-body { padding: 14px 16px 4px; }
.tp-face { position: relative; margin: 0 auto; width: min(268px, 72vw); height: min(268px, 72vw); }
.tp-svg { width: 100%; height: 100%; display: block; cursor: pointer; touch-action: none; }
.tp-disc { fill: #f5f6fb; }
.tp-num {
  fill: #4b5169; font-size: 16px; font-weight: 500; pointer-events: none;
  paint-order: stroke; stroke: #f5f6fb; stroke-width: 4px;
  -webkit-user-select: none; user-select: none;
}
.tp-num.inner { font-size: 13px; fill: #8b91a8; }
.tp-num.sel { fill: #fff; font-weight: 700; stroke: none; }
.tp-hand line, .tp-hand .tp-halo, .tp-hand .tp-knob, .tp-hand .tp-tip {
  transition: x2 .3s cubic-bezier(.4, 0, .2, 1), y2 .3s cubic-bezier(.4, 0, .2, 1),
              cx .3s cubic-bezier(.4, 0, .2, 1), cy .3s cubic-bezier(.4, 0, .2, 1);
}
.tp-hand line { stroke: var(--green); stroke-width: 2; stroke-linecap: round; }
.tp-hand .tp-halo { fill: rgba(20, 184, 166, .16); }
.tp-hand .tp-knob { fill: var(--green); }
/* 圆心小点；指针端点小点（未落在刻度数字上时用一个小点代表当前位置） */
.tp-hand .tp-pivot { fill: var(--green); }
.tp-hand .tp-tip { fill: #fff; opacity: 0; transition: opacity .12s ease; }
.tp-hand .tp-tip.show { opacity: 1; }

/* 键盘输入模式 */
.tp-typed {
  position: absolute; top: 50%; left: 0; width: 100%; transform: translateY(-50%);
  display: none; text-align: center; border: 0; background: #f5f6fb;
  border-radius: 14px; padding: 16px 14px; outline: none;
  font-size: 28px; font-weight: 300; letter-spacing: 2px; font-variant-numeric: tabular-nums;
  color: var(--text); box-shadow: inset 0 0 0 2px var(--green-soft);
}
.tp-typed::placeholder { color: #b6bacb; }
.tp-face.editing .tp-svg { visibility: hidden; }
.tp-face.editing .tp-typed { display: block; }

/* 底部操作区 */
.tp-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px 14px; }
.tp-key {
  width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s;
}
.tp-key:hover, .tp-key.on { background: var(--green-soft); color: var(--green); }
.tp-key .icon { width: 21px; height: 21px; }
.tp-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.tp-btn {
  border: 0; background: none; cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 600; padding: 9px 13px; border-radius: 999px;
  color: var(--muted); transition: background .15s, color .15s, opacity .15s;
}
.tp-btn.plain:hover { background: var(--surface-2); color: var(--text); }
.tp-btn.primary {
  background: var(--green); color: #fff; padding: 9px 20px;
  box-shadow: 0 6px 14px rgba(13, 148, 136, .3);
}
.tp-btn.primary:hover { opacity: .94; }

@media (max-width: 420px) {
  .tp-dialog { width: 100%; border-radius: 20px; }
  .tp-seg { font-size: 40px; }
  .tp-colon { font-size: 34px; }
  .tp-body { padding: 10px 10px 2px; }
}

/* 时间选择器 · 滚轮（iOS 风格双列） */
.tp-wheel {
  position: relative; display: flex; justify-content: center; gap: 10px;
  height: 220px; padding: 8px 0 12px;
}
.tp-wheel-band {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 184px; max-width: 84%; height: 40px; border-radius: 12px;
  background: var(--green-soft); pointer-events: none;
}
.tp-wheel-col {
  position: relative; width: 86px; height: 100%; overflow-y: auto;
  scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; text-align: center;
}
.tp-wheel-col::-webkit-scrollbar { display: none; }
.tp-wheel-col::before, .tp-wheel-col::after { content: ""; display: block; height: 90px; }
.tp-wheel-item {
  height: 40px; line-height: 40px; scroll-snap-align: center;
  font-size: 19px; color: var(--muted); font-variant-numeric: tabular-nums;
  transition: color .12s ease, font-size .12s ease, font-weight .12s ease;
}
.tp-wheel-item.on { color: var(--text); font-size: 23px; font-weight: 700; }

/* 时间选择器 · 列表（可滚动时间清单） */
.tp-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  max-height: 300px; overflow-y: auto; padding: 8px; scrollbar-width: thin;
}
.tp-list-item {
  border: 1px solid var(--border); background: #fff; border-radius: 10px;
  padding: 11px 0; font-size: 15px; font-weight: 600; cursor: pointer;
  color: var(--text); font-variant-numeric: tabular-nums;
  transition: background .12s, color .12s, border-color .12s;
}
.tp-list-item:hover { border-color: var(--green); }
.tp-list-item.on { background: var(--green); color: #fff; border-color: var(--green); }

/* ============================================================
   区块交替背景带（01 白 · 02 灰 · 03 白），用于区分数据 / 设置等区域
   ============================================================ */
html { overflow-x: clip; }

.sect { position: relative; z-index: 0; }
.sect::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%);
  background: var(--band, transparent); z-index: -1;
}
#publicView > .sect:nth-of-type(1),
#publicView > .sect:nth-of-type(3),
#app > .sect:nth-of-type(1) { --band: #fff; }

/* 登录后：隐藏仅对访客有意义的锚点，Hero 收紧 */
body.auth .nav-link { display: none; }
body.auth .hero { padding: 52px 0 46px; }
body.auth .sect { padding: 44px 0; }

/* 运行日志：显示筛选工具栏 */
.log-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.seg-group {
  display: inline-flex; background: var(--bg); border-radius: 10px;
  padding: 3px; gap: 2px;
}
.seg-btn {
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px;
  font-weight: 600; color: var(--muted); padding: 6px 15px; border-radius: 8px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.seg-btn:hover:not(.active) { color: var(--text); }
.seg-btn.active {
  background: #fff; color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 18, 40, .14);
}
.log-count { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* 日志表格：窄屏时只在卡片内横向滚动 */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.log-table { min-width: 520px; }
/* 运行日志：中性配色，与主题靛蓝区分开；斑马纹交替行 + 悬停高亮 */
.log-table thead th { background: #f1f3f8; color: #5b6472; }
.log-table tbody tr:nth-child(even) { background: #f7f8fb; }
.log-table tbody tr:hover,
.log-table tbody tr:nth-child(even):hover { background: #eef1f7; }
/* 结果列：独立的成功 / 失败徽标色 */
.res {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; line-height: 1.2;
}
.res::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.res.ok { background: var(--ok-soft); color: var(--ok); }
.res.err { background: var(--danger-soft); color: var(--danger); }

/* 运行日志：分页栏 */
.log-pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.pager-total { font-size: 13px; color: var(--muted); white-space: nowrap; }
.pager-ctrl { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.pager-size { position: relative; display: inline-flex; align-items: center; }
.pager-size select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font: inherit; font-size: 13px; color: var(--text); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 6px 30px 6px 12px;
  transition: border-color .15s, box-shadow .15s;
}
.pager-size select:hover { border-color: #94a3b8; }
.pager-size select:focus-visible { outline: none; border-color: #64748b; box-shadow: 0 0 0 3px #e2e8f0; }
.pager-size .icon {
  position: absolute; right: 9px; width: 14px; height: 14px;
  color: var(--muted); pointer-events: none;
}
.pager-btns { display: inline-flex; align-items: center; gap: 6px; }
.pg-btn {
  min-width: 30px; height: 30px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 8px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.pg-btn:hover:not(:disabled):not(.active) { border-color: #94a3b8; color: #334155; }
.pg-btn.active { background: #334155; border-color: #334155; color: #fff; }
.pg-btn:disabled { opacity: .45; cursor: default; }
.pg-btn .icon { width: 14px; height: 14px; }
.pg-btn.prev .icon { transform: rotate(90deg); }
.pg-btn.next .icon { transform: rotate(-90deg); }
.pg-gap { color: var(--muted); font-size: 13px; padding: 0 2px; }

/* 导航里的按钮：保持按钮自身配色（不被 .nav .links a 的链接色覆盖） */
.nav .links a.btn { color: #fff; }
.nav .links a.btn.secondary { color: var(--text); }
.nav .links a.btn:hover { background: var(--accent-grad); opacity: .94; text-decoration: none; }
.nav .links a.btn.secondary:hover { background: #f7f8fc; }
