/* ============================================================
   时人不识凌云木 · 玻璃拟态主题（透明 + 白）
   用户端 / 管理端共用；DOM 与 JS 行为保持不变
   ============================================================ */

:root {
  --f-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --bg: #eef4fb;
  --ink: #16202c;
  --ink-2: #5b6b7c;
  --ink-3: #7b8b9b;

  --line: rgba(22, 32, 44, 0.09);
  --line-2: rgba(22, 32, 44, 0.16);

  --accent: #2563eb;
  --accent-2: #0d9488;
  --ok: #0b7a5c;
  --err: #b02c2c;

  --r: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.38));
  --glass-soft: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(255, 255, 255, 0.95);

  --shadow-1: 0 18px 44px -36px rgba(30, 64, 110, 0.8);
  --shadow-2: 0 34px 70px -44px rgba(30, 64, 110, 0.6);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font: 15px/1.65 var(--f-sans);
  letter-spacing: -0.01em;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景：冷色光晕 + 磨砂玻璃的底色 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(640px 560px at 6% -12%, rgba(96, 165, 250, 0.55), transparent 66%),
    radial-gradient(560px 520px at 94% -6%, rgba(45, 212, 191, 0.45), transparent 66%),
    radial-gradient(820px 620px at 45% 112%, rgba(165, 180, 252, 0.5), transparent 68%),
    linear-gradient(155deg, #dce9fb 0%, #e9f4f4 46%, #f4f7fc 100%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 28px 72px;
}

body.project-mode .wrap { padding-top: 18px; }

#app {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
}

#app #stats { display: none !important; }

/* ---------- 品牌 / 标题 ---------- */
.brand { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; }

.brand .logo {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 23px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-1), inset 0 1px 0 #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-weight: 700;
  color: #1d4ed8;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.2;
}

h2 {
  font-size: 13px;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
}

h2::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.sub,
.hint {
  color: var(--ink-3);
  font-size: 13px;
  margin: 0 0 20px;
  line-height: 1.7;
}

code {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  padding: 1.5px 7px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  font-family: var(--f-mono);
}

/* ---------- 登录页 ---------- */
#auth,
#loginBox {
  max-width: 420px;
  margin: 9vh auto 0;
}

#auth .brand,
#loginBox .brand {
  justify-content: center;
  margin-bottom: 16px;
}

#auth .brand .logo,
#loginBox .brand .logo {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  border-radius: 18px;
  font-size: 28px;
}

#auth .brand h1,
#loginBox .brand h1 { font-size: 26px; }

#auth .tabs {
  display: flex;
  width: max-content;
  margin: 0 auto 18px;
}

#auth .hint,
#loginBox .hint,
#loginBox .sub { text-align: center; }

#loginBox .sub {
  margin: -4px 0 18px;
  color: var(--ink-3);
  font-size: 13px;
}

#auth .card,
#loginBox .card { padding: 24px; }

.auth-foot {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.auth-switch {
  border: 0;
  background: none;
  padding: 4px 2px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.auth-tip {
  color: var(--ink-3);
  font-weight: 400;
  margin-right: 6px;
}

.auth-closed { font-size: 12px; color: var(--ink-3); }
.auth-switch:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 分段控件 ---------- */
.tabs {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tab {
  background: transparent;
  color: var(--ink-3);
  border: 0;
  padding: 7px 22px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  transition: 0.22s var(--ease);
}

.tab.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 16px -10px rgba(30, 64, 110, 0.5);
}

/* ---------- 表单 ---------- */
input,
textarea {
  width: 100%;
  color: var(--ink);
  font: inherit;
  letter-spacing: inherit;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(22, 32, 44, 0.12);
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input::placeholder,
textarea::placeholder { color: var(--ink-3); }

input:hover,
textarea:hover { border-color: rgba(22, 32, 44, 0.2); }

input:focus,
textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea {
  resize: vertical;
  min-height: 88px;
  font-family: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  letter-spacing: inherit;
  transition: 0.22s var(--ease);
}

.primary {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 0;
  color: #f4f8fc;
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  border-radius: 14px;
  letter-spacing: 0.02em;
  background: #16202c;
  box-shadow: 0 18px 34px -22px rgba(22, 32, 44, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #22303f;
  box-shadow: 0 24px 40px -22px rgba(22, 32, 44, 0.85);
}

.primary:active:not(:disabled) { transform: translateY(0) scale(0.997); }
.primary:disabled { opacity: 0.5; cursor: default; }

.ghost {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  color: var(--ink-2);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.ghost:hover {
  background: #fff;
  color: var(--ink);
  transform: translateY(-1px);
}

.ghost.small {
  padding: 4px 12px;
  font-size: 12px;
  margin-left: auto;
}

.ghost:disabled { opacity: 0.55; cursor: default; }

/* 邮箱验证码：输入框 + 获取验证码 */
.code-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.code-row input {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.code-row .ghost {
  flex: 0 0 auto;
  align-self: stretch;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 24px;
  margin-top: 16px;
  box-shadow: var(--shadow-2), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

/* 顶部账号栏（首页即大标题区） */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  margin-bottom: 18px;
  border-radius: 26px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-2), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

.top .brand { margin: 0; gap: 15px; }

.top .brand .logo {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
  border-radius: 16px;
  font-size: 25px;
}

.top .brand h1 { font-size: 21px; }

#app .top #who {
  display: block;
  font-size: clamp(22px, 3.2vw, 32px) !important;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

#app .top #who::before {
  content: "你好，";
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.badge {
  color: var(--ink-2);
  font-size: 12px;
  margin: 6px 0 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
}

.badge:empty { display: none; }

.admin-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.admin-head h1 { font-size: 22px; }

.msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.msg:empty { display: none; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.msg.warn { color: #9a5c08; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: #16202c;
  color: #f4f8fc;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 18px 44px -18px rgba(15, 30, 50, 0.65);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 50;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 列表 ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.empty { color: var(--ink-3); font-size: 13px; padding: 12px 2px; }

.item {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: 0.2s var(--ease);
}

.item:hover {
  background: rgba(255, 255, 255, 0.62);
  border-color: #fff;
}

.item .row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.item .meta { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }

.item .steps {
  color: var(--ink-2);
  font-size: 12px;
  white-space: pre-wrap;
  margin-top: 10px;
  background: rgba(22, 32, 44, 0.05);
  padding: 11px 13px;
  border-radius: 10px;
  font-family: var(--f-mono);
}

/* ---------- 状态 ---------- */
.tag {
  padding: 2.5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.tag.pending { background: rgba(245, 158, 11, 0.14); color: #9a5c08; }
.tag.running { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.tag.done { background: rgba(15, 157, 118, 0.13); color: var(--ok); }
.tag.failed { background: rgba(220, 61, 61, 0.11); color: var(--err); }
.tag.danger { background: rgba(220, 61, 61, 0.11); color: var(--err); }
.tag.muted { background: rgba(22, 32, 44, 0.07); color: var(--ink-3); }

/* ---------- 卡密 ---------- */
.cardrow { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.cardrow b {
  color: #1d4ed8;
  font-family: var(--f-mono);
  letter-spacing: 0.02em;
}

.copy { margin-left: auto; }

/* ---------- 项目列表 ---------- */
.pgrid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  perspective: none;
}

.pcard {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  color: var(--ink);
  font: inherit;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  cursor: pointer;
  transform: none !important;
  transition: background 0.24s, border-color 0.24s, box-shadow 0.24s;
}

.pcard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 45%);
  opacity: 0.6;
}

.pcard::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%),
    rgba(37, 99, 235, 0.14), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s;
}

.pcard:hover::after { opacity: 1; }

.pcard:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: #fff;
  box-shadow: 0 28px 52px -34px rgba(30, 64, 110, 0.7), inset 0 1px 0 #fff;
}

.pcard .pc-ico {
  position: relative;
  z-index: 1;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 32px;
  background: linear-gradient(145deg, #e8f1ff, #dbeafe);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 #fff, 0 14px 26px -20px rgba(30, 64, 110, 0.7);
  transition: transform 0.3s var(--ease);
}

.pcard:nth-child(4n + 2) .pc-ico { background: linear-gradient(145deg, #fff1e6, #ffe4d3); }
.pcard:nth-child(4n + 3) .pc-ico { background: linear-gradient(145deg, #e3f8f1, #d1fae5); }
.pcard:nth-child(4n + 4) .pc-ico { background: linear-gradient(145deg, #e9e8ff, #e0e7ff); }

.pcard:hover .pc-ico { transform: scale(1.05); }

.pcard .pc-main {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.pcard .pc-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.pcard .pc-main::after {
  content: "点击进入";
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-3);
}

/* 用户端卡片右侧的进入按钮（管理端有统计文字时不显示） */
.pcard:not(:has(.pc-stat)) .pc-main::before {
  content: "→";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: var(--ink-2);
  font-size: 14px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pcard:hover:not(:has(.pc-stat)) .pc-main::before {
  background: #16202c;
  border-color: #16202c;
  color: #fff;
}

.pcard .pc-desc { display: none; }
.pcard .pc-arrow { display: none; }

.pcard .pc-stat {
  position: relative;
  z-index: 1;
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
}

.pcard .pc-stat:not(:empty)::after {
  content: "  ↗";
  color: var(--ink-2);
}

/* 滚动渐入 */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

/* ---------- 项目详情头 ---------- */
.back { margin: 0 0 14px; }

.phead {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 18px;
  padding: 20px 24px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-2), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

.phead .picon-big {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: linear-gradient(145deg, #e8f1ff, #dbeafe);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 #fff, 0 14px 26px -20px rgba(30, 64, 110, 0.7);
}

/* ---------- 管理端统计 ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-1), inset 0 1px 0 #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 60%);
  pointer-events: none;
}

.stat .n {
  position: relative;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #2563eb, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .l {
  position: relative;
  color: var(--ink-3);
  font-size: 12.5px;
  margin-top: 3px;
}

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }

th,
td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(255, 255, 255, 0.5); }

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.ops button { padding: 4px 11px; font-size: 12px; margin-right: 6px; }

#userWrap,
#taskWrap,
#cardWrap,
#qhAccWrap,
#qhGoodsWrap,
#cfgWrap { overflow-x: auto; }

#userWrap table,
#taskWrap table,
#cardWrap table,
#qhAccWrap table,
#qhGoodsWrap table { min-width: 560px; }

/* ---------- 项目详情 tab ---------- */
.tabs2 { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.tabs2 button {
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink-3);
  border: 1px solid var(--glass-border);
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tabs2 button:hover { color: var(--ink-2); background: #fff; }

.tabs2.mi-tabs button.on {
  background: linear-gradient(135deg, #3b82f6, #0d9488);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px -14px rgba(37, 99, 235, 0.9);
}

.tabs2 button.on {
  background: #16202c;
  border-color: #16202c;
  color: #fff;
  box-shadow: 0 10px 22px -14px rgba(22, 32, 44, 0.9);
}

.pane { display: none; }
.pane.on { display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.danger { border-color: rgba(220, 61, 61, 0.25); color: var(--err); }
.danger:hover {
  background: rgba(220, 61, 61, 0.08);
  border-color: rgba(220, 61, 61, 0.35);
  color: #8f1f1f;
}

/* ---------- 账号池 ---------- */
.acc-list { gap: 8px; }

.acc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  transition: 0.18s var(--ease);
  cursor: pointer;
}

.acc-item:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: #fff;
}

.acc-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.acc-name { font-weight: 600; min-width: 84px; }
.acc-tok {
  flex: 1;
  color: var(--ink-3);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc-st { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.acc-item .danger { flex: 0 0 auto; }

.acc-actions { display: flex; gap: 10px; margin-top: 14px; }
.acc-actions .ghost { flex: 1; }

/* 草原云账号行内的查询/删除保持左对齐（.ghost.small 默认 margin-left:auto） */
#cyyList .ghost.small { margin-left: 0; }

/* 品赞代理账号行内的查询/领取/删除保持左对齐 */
#pzdlList .ghost.small { margin-left: 0; }


/* ---------- 名创优品 ---------- */
.mi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mi-head h2 { margin: 0; }
.mi-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #0d9488);
  color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 14px 28px -18px rgba(37, 99, 235, .85);
  transition: transform .18s, filter .18s;
}
.mi-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.mi-btn:disabled { opacity: .55; cursor: default; transform: none; }
.mi-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.mi-notice { display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px; }
.mi-dot {
  flex: 0 0 8px; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #0d9488);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, .1);
}
.mi-notice b { display: block; font-size: 13.5px; }
.mi-notice p { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.mi-row-actions { display: flex; gap: 6px; margin-top: 8px; }
.mi-row-actions .ghost.small { margin-left: 0; }
.mi-phone { font-family: var(--f-mono); font-size: 12.5px; }
.mi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mi-field { display: flex; flex-direction: column; gap: 5px; }
.mi-field > span { font-size: 11px; letter-spacing: .08em; color: var(--ink-3); }
.mi-field input, .mi-field select { width: 100%; margin-bottom: 0; }
.mi-field.mi-span2 { grid-column: 1 / -1; }
.mi-field.mi-actions { grid-column: 1 / -1; justify-content: flex-end; }
.mi-log { max-height: 280px; overflow: auto; }
.mi-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 16px; color: var(--ink-3); font-size: 12px; }
.mi-or::before, .mi-or::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(22, 32, 44, .14), transparent); }
.mi-qr { border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .34); border-radius: 18px; padding: 16px 18px; }
.mi-qr-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.mi-qr-head b { font-size: 13.5px; }
.mi-qr-tip { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.mi-qr-body { display: flex; gap: 18px; align-items: center; margin-top: 14px; }
.mi-qr-body img { width: 164px; height: 164px; object-fit: contain; border-radius: 14px; background: #fff; padding: 8px; border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 16px 32px -26px rgba(30, 64, 110, .7); }
.mi-qr-side { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.mi-qr-status { font-size: 12.5px; color: var(--ink-2); min-height: 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
  .wrap { padding: 16px 20px 60px; }
  .top { padding: 18px 20px; }
  #app .top #who { font-size: 24px !important; }
}

@media (max-width: 640px) {
  .wrap { padding: 14px 16px 56px; }

  .top {
    padding: 16px 18px;
    border-radius: 22px;
    flex-wrap: wrap;
  }

  .top .brand { gap: 12px; }

  .top .brand .logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 14px;
    font-size: 21px;
  }

  #app .top #who { font-size: 21px !important; }
  .brand h1 { font-size: 21px; }

  .stat-row { grid-template-columns: 1fr; }

  .stat-row .stat {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 18px;
  }

  .stat .n { font-size: 24px; }

  .pcard {
    padding: 10px 12px;
    gap: 12px;
    border-radius: 18px;
  }

  .pcard .pc-ico {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 15px;
    font-size: 26px;
  }

  .pcard .pc-name { font-size: 16px; }
  .pcard .pc-stat { font-size: 10.5px; }

  .card { padding: 18px; border-radius: 20px; }
  .phead { padding: 16px 18px; border-radius: 20px; }
  .tabs2 button { padding: 7px 14px; }

  #auth,
  #loginBox { margin-top: 5vh; }

  .acc-item { flex-wrap: wrap; }
  .acc-tok { flex-basis: 100%; }
  .item .row1 { flex-wrap: wrap; }
  .cardrow { gap: 8px; }
  .copy { margin-left: 0; }
  .ops button { margin-bottom: 4px; }
}

@media (max-width: 420px) {
  .pcard .pc-stat { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* backdrop-filter 不可用时退化为高不透明度白底 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card,
  .top,
  .phead,
  .pcard,
  .stat,
  .item,
  .acc-item {
    background: rgba(255, 255, 255, 0.9);
  }
}

@media (max-width: 560px) {
  .mi-qr-head { flex-direction: column; align-items: flex-start; }
  .mi-qr-body { flex-direction: column; align-items: flex-start; }
  .mi-qr-body img { width: 150px; height: 150px; }
}

/* ---------- 平台管理：注册开关 ---------- */
.mi-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0 18px; }
.mi-switch-row b { font-size: 13.5px; }
.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: 0 0 52px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; cursor: pointer; border-radius: 999px;
  background: rgba(22, 32, 44, 0.16); transition: background .2s;
}
.switch .slider::before {
  content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .2s;
}
.switch input:checked + .slider { background: linear-gradient(135deg, #3b82f6, #0d9488); }
.switch input:checked + .slider::before { transform: translateX(22px); }

/* ---------- 项目广场：三列卡片 ---------- */
.plaza-head { margin: 22px 0 16px; }
.plaza-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.plaza-head .hint { margin: 0; font-size: 13px; }

/* 标题行：项目广场 + 统计 + 退出 */
.plaza-head .ph-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}
.plaza-head .ph-row h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.ghost.tiny {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 10px;
  opacity: .75;
}
.ghost.tiny:hover { opacity: 1; }

.pgrid.plaza {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  perspective: none;
}

.plaza .pcard {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  height: 100%;
  min-height: 88px;
  padding: 16px 20px;
  border-radius: 20px;
  text-align: left;
}

.plaza .pcard .pc-ico {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  font-size: 25px;
}

.plaza .pcard:hover .pc-ico { transform: scale(1.05); }

.plaza .pcard .pc-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.plaza .pcard .pc-name {
  white-space: normal;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.plaza .pcard .pc-poem {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.plaza .pcard .pc-main::after,
.plaza .pcard:not(:has(.pc-stat)) .pc-main::before { content: none; }

@media (max-width: 1180px) {
  .pgrid.plaza { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .pgrid.plaza { grid-template-columns: 1fr; gap: 12px; }
  .plaza-head { margin: 18px 0 12px; }
  .plaza-head h2 { font-size: 20px; }
  .plaza .pcard { min-height: 80px; padding: 14px 16px; border-radius: 18px; gap: 12px; }
  .plaza .pcard .pc-ico {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 22px;
  }
  .plaza .pcard .pc-poem { font-size: 11.5px; }
}

/* App 图标风格 Logo：蓝底白字，与 favicon 一致 */
.brand .logo.logo-app {
  background: #3c74fa;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 14px 28px -18px rgba(60, 116, 250, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* 扫码前备注：区分账号归属 */
.mi-qr-note { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.mi-qr-note span { flex: 0 0 auto; font-size: 12.5px; color: var(--ink-3); }
.mi-qr-note input { flex: 1 1 auto; width: auto; min-width: 0; margin: 0; }

/* 丝路账号池：中奖卡密 */
.sichou-cards { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.sichou-card-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.sichou-jiang { font-size: 11.5px; color: var(--accent-2); }

/* ---------- 品赞账号池 / 提取 ---------- */
#pPzdlAcc h2 .badge,
#pPzdlExtract h2 .badge,
#pPzdlWl h2 .badge { margin-right: auto; }
#pPzdlAcc h2 .ghost.small,
#pPzdlExtract h2 .ghost.small,
#pPzdlWl h2 .ghost.small { margin-left: 0; }

.ex-accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ex-acc {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: 0.2s var(--ease);
}
.ex-acc:hover { background: rgba(255, 255, 255, 0.78); transform: translateY(-1px); }
.ex-acc:has(input:checked) {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 26px -22px rgba(37, 99, 235, 0.75), inset 0 1px 0 #fff;
}
.ex-acc input[type="checkbox"] {
  width: 16px; height: 16px; flex: 0 0 auto;
  padding: 0; margin: 0; border: 0; background: none; box-shadow: none;
  accent-color: var(--accent);
}
.ex-acc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ex-acc-name { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink); }
.ex-acc-sub { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ex-acc .tag { flex: 0 0 auto; }

.ex-panel {
  margin-top: 16px; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.ex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; align-items: end; }
.ex-field { display: flex; flex-direction: column; gap: 7px; }
.ex-field > span { font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); }
.ex-field input,
.ex-field select {
  width: 100%; margin: 0; padding: 11px 14px; border-radius: 12px;
  border: 1px solid rgba(22, 32, 44, 0.12);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px; color: var(--ink); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.ex-field select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.ex-field input:focus,
.ex-field select:focus {
  border-color: var(--accent); background-color: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.ex-run-wrap { display: flex; align-items: end; }
.ex-run { width: 100%; padding: 11px 20px; font-size: 13.5px; border-radius: 12px; }

.ex-api {
  margin-top: 16px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px dashed rgba(22, 32, 44, 0.16);
}
.ex-api-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.ex-api-head b { font-size: 13px; }
.ex-api-head span { font-size: 11.5px; color: var(--ink-3); }
.ex-api input {
  width: 100%; margin: 0; padding: 10px 12px; border-radius: 11px;
  font-family: var(--f-mono); font-size: 11.5px;
  background: rgba(255, 255, 255, 0.72);
}
.ex-api-actions { display: flex; gap: 8px; margin-top: 10px; }
.ex-api-actions .ghost.small { margin-left: 0; }

.ex-result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; }
.ex-result-bar .msg { margin: 0; }
.ex-result-bar .ghost.small { margin-left: 0; flex: 0 0 auto; }
.ex-results { max-height: 360px; overflow: auto; }

@media (max-width: 760px) {
  .ex-accounts, .ex-grid { grid-template-columns: 1fr; }
}

.ex-api-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ex-api-item {
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
.ex-api-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ex-api-item-head b { font-size: 12.5px; color: var(--ink); }
.ex-api-item-head span { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.ex-api-item input {
  width: 100%; margin: 0; padding: 9px 11px; border-radius: 10px;
  font-family: var(--f-mono); font-size: 11px;
  background: rgba(255, 255, 255, 0.72);
}
.ex-api-item-actions { display: flex; gap: 8px; margin-top: 8px; }
.ex-api-item-actions .ghost.small { margin-left: 0; }
.ex-api-item-actions .danger { color: var(--err); }

/* === TC SMS LOGIN (user) === */
.tc-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.tc-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #666; }
.tc-field input { padding: 11px 12px; border-radius: 10px; border: 1px solid #d8dde6;
  font-size: 15px; background: #fff; outline: none; }
.tc-field input:focus { border-color: #1f2d3d; }
.tc-code-row { display: flex; gap: 8px; }
.tc-code-row input { flex: 1; }
.tc-code-row button { white-space: nowrap; }
.tc-acc-row { display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid #eef1f5; }
/* === TC SMS LOGIN (user) END === */
