/* ==========================================================================
   LULUX ETA · 账号中心样式
   设计语言来自官网 site.css：纸白 + 墨黑 + 细分隔线 + 22px 圆角 + 弹簧缓动。
   界面不用渐变装饰、不用发光；颜色只表达状态。
   ========================================================================== */

:root {
  /* 墨色与其透明度：层级靠底色和分隔线，不靠阴影 */
  --ink: #0b0b0b;
  --ink-2: #6b6b6b;
  --ink-3: #9a9a9a;
  --ink-4: #c4c4c4;

  --paper: #ffffff;
  --canvas: #fafaf9;
  --soft: #f5f5f5;
  --soft-2: #efefef;
  --line: #e8e8e8;
  --line-2: #d5d5d5;
  --dark: #0a0a0a;

  /* 语义色：只用于状态 */
  --blue: #2b63f6;
  --blue-soft: #eef3ff;
  --good: #17804b;
  --good-soft: #eaf6ef;
  --warn: #9a6410;
  --warn-soft: #fdf4e6;
  --danger: #b42318;
  --danger-soft: #fdeceb;

  --quota-blue: #1680f3;
  --spring: cubic-bezier(.16, 1, .3, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --head: 640px;
  --side: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--ink); color: #fff; }
.hidden { display: none !important; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.grow { flex: 1; min-width: 0; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #d9d9d9; border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: #c2c2c2; }
::-webkit-scrollbar-track { background: transparent; }

/* ── 登录 / 注册：左侧大标题 + 右侧表单，与官网申请页同构 ────────────── */
.auth-main {
  min-height: 100svh;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
}
.auth-aside {
  position: relative;
  overflow: hidden;
  background: var(--soft);
  border-right: 1px solid var(--line);
  padding: 64px 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-aside::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -140px;
  bottom: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 11, 11, .05), transparent 66%);
  filter: blur(18px);
  pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h1 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.05em;
  font-weight: var(--head);
  max-width: 15ch;
  text-wrap: balance;
}
.auth-aside p {
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  max-width: 30ch;
  line-height: 1.7;
}
.auth-preview {
  --pv-window: #ffffff;
  --pv-chrome: #f5f5f4;
  --pv-surface: #fbfbfa;
  --pv-line: #e8e8e8;
  --pv-soft: #ededeb;
  --pv-ink: #0b0b0b;
  --pv-dim: #9a9a9a;
  --pv-accent: #2b63f6;
  --pv-accent-soft: #eef3ff;
  margin: 0;
  padding: 9px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 26px 60px -36px rgba(11, 11, 11, .38);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.auth-preview[data-preview-theme="dark"] {
  --pv-window: #161616;
  --pv-chrome: #111111;
  --pv-surface: #101010;
  --pv-line: #2a2a2a;
  --pv-soft: #242424;
  --pv-ink: #f2f2f2;
  --pv-dim: #8f8f8f;
  --pv-accent: #4da3ff;
  --pv-accent-soft: rgba(77, 163, 255, .16);
}
.preview-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 9px; }
.preview-kicker {
  font: 10px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.preview-tabs {
  margin-left: auto;
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: var(--soft);
  transition: background .3s var(--ease);
}
.preview-tabs button {
  border: 0;
  background: none;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10.5px;
  color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.preview-tabs button.on {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-1);
}

.mock-window {
  border-radius: 12px;
  border: 1px solid var(--pv-line);
  background: var(--pv-surface);
  overflow: hidden;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: var(--pv-chrome);
  border-bottom: 1px solid var(--pv-line);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.mock-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--pv-soft); display: block; }
.mock-bar span { margin-left: 6px; font: 9.5px/1 var(--mono); color: var(--pv-dim); letter-spacing: .1em; }
.mock-body { display: grid; grid-template-columns: 26px 58px minmax(0, 1fr); }
.mock-rail {
  display: grid;
  gap: 7px;
  justify-items: center;
  align-content: start;
  padding: 9px 0;
  border-right: 1px solid var(--pv-line);
}
.mock-rail b { width: 10px; height: 10px; border-radius: 3px; background: var(--pv-soft); }
.mock-rail b:first-child { background: var(--pv-ink); }
.mock-list {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 9px 7px;
  border-right: 1px solid var(--pv-line);
}
.mock-list-title { height: 4px; width: 60%; border-radius: 2px; background: var(--pv-ink); opacity: .75; }
.mock-item { height: 14px; border-radius: 4px; }
.mock-item.on { background: var(--pv-window); box-shadow: 0 0 0 1px var(--pv-line); }
.mock-main { display: grid; gap: 7px; align-content: start; padding: 9px; }
.mock-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.mock-head strong { font-size: 10px; font-weight: 600; color: var(--pv-ink); }
.mock-head em {
  font-style: normal;
  font-size: 8.5px;
  color: var(--pv-accent);
  background: var(--pv-accent-soft);
  border-radius: 999px;
  padding: 1.5px 5px;
}
.mock-card {
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid var(--pv-line);
  border-radius: 7px;
  background: var(--pv-window);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.mock-row { display: flex; align-items: center; gap: 6px; }
.mock-row span { font-size: 8.5px; color: var(--pv-dim); width: 20px; flex: none; }
.mock-row i { display: block; height: 3.5px; border-radius: 2px; background: var(--pv-soft); }
.mock-chips { display: flex; gap: 5px; }
.mock-chips b { height: 9px; width: 34px; border-radius: 999px; background: var(--pv-soft); }
.mock-chips b:first-child { background: var(--pv-accent-soft); }
.auth-preview figcaption { display: grid; gap: 2px; padding: 10px 6px 4px; }
.auth-preview b { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; }
.auth-preview span { font-size: 11.5px; color: var(--ink-3); line-height: 1.55; }

.auth-aside-foot {
  display: grid;
  gap: 10px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--ink-2);
}
.auth-aside-foot span { display: flex; gap: 8px; align-items: baseline; }
.auth-aside-foot b { color: var(--ink); font-weight: 600; }

.auth-panel {
  padding: 64px min(8vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-panel form, .auth-panel .auth-done { width: min(100%, 440px); }
.auth-panel h2 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -.035em;
  font-weight: var(--head);
}
.auth-lead { margin: 0 0 28px; color: var(--ink-2); font-size: 13.5px; line-height: 1.7; }

.tabs {
  display: inline-flex;
  width: fit-content;
  gap: 2px;
  padding: 3px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--soft);
  box-shadow: inset 0 1px 2px rgba(11, 11, 11, .04);
}
.tabs button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  color: var(--ink-2);
  transition: background .25s var(--spring), color .2s var(--ease), transform .25s var(--spring);
}
.tabs button:hover { color: var(--ink); }
.tabs button.on {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(11, 11, 11, .06), 0 4px 12px rgba(11, 11, 11, .07);
}
.tabs button:active { transform: scale(.97); }

/* ── 表单 ───────────────────────────────────────────────────────────── */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 12px; color: var(--ink-2); }
.req { color: var(--danger); font-style: normal; font-weight: 600; margin-left: 1px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 11px 13px;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field select:hover { border-color: var(--line-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px #ededed;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-note { font-size: 11.5px; color: var(--ink-3); margin: -8px 0 16px; }
.hp { position: absolute; left: -9999px; }

.hint { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.error { margin: 12px 0 0; font-size: 12.5px; color: var(--danger); line-height: 1.6; }

.auth-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.auth-foot .link, .link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink-2);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.auth-foot .link:hover, .link:hover { color: var(--ink); }

/* ── 按钮 ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .35s var(--spring), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn:hover { transform: translateY(-1px); background: rgba(11, 11, 11, .04); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }

.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 8px 18px -12px rgba(11, 11, 11, .7); }
.btn.primary:hover { background: #2b2b2b; }
.btn.soft { border-color: transparent; background: var(--soft); }
.btn.soft:hover { background: var(--soft-2); }
.btn.ghost { border-color: var(--line); color: var(--ink-2); }
.btn.ghost:hover { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn.danger { border-color: transparent; background: var(--danger-soft); color: var(--danger); }
.btn.danger:hover { background: #fbdedb; }
.btn.wide { width: 100%; min-height: 42px; }
.btn.sm { min-height: 30px; padding: 0 12px; font-size: 12px; }
.btn.icon { width: 32px; min-height: 32px; padding: 0; border-radius: 50%; border-color: var(--line); color: var(--ink-2); }
.btn.icon:hover { color: var(--ink); border-color: var(--line-2); }

/* ── 应用外壳 ───────────────────────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  height: 100svh;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 14px;
  background: var(--soft);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 18px;
  margin-bottom: 6px;
}
.side-user img, .side-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  object-fit: cover;
}
.side-user span:last-child { min-width: 0; display: grid; gap: 1px; }
.side-user b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-user span span { font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); }

/* ── 吉祥物 Lulu ────────────────────────────────────────────────────── */
.auth-lulu {
  width: 132px;
  height: 132px;
  margin-bottom: 26px;
  transition: transform .35s var(--spring);
  will-change: transform;
}
.auth-lulu img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(11, 11, 11, .12));
  animation: lulu-bob 4.8s var(--spring) infinite;
}
@keyframes lulu-bob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.5deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(1.5deg); }
}

/* 空状态里的小号吉祥物 */
.empty-art { width: 58px; height: 58px; margin: 0 auto 14px; }
.empty-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .9;
  animation: lulu-bob 5.2s var(--spring) infinite;
}

/* 侧栏顶部：品牌 + 收起 */
.side-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 14px;
}
.side-brand .brand { gap: 8px; font-size: 13.5px; }
.side-brand .brand img { width: 24px; height: 24px; }
.side-brand .brand span { white-space: nowrap; }
.side-collapse {
  margin-left: auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-3);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.side-collapse:hover { background: rgba(11, 11, 11, .06); color: var(--ink); }
.side-collapse svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--spring);
}

/* 收起状态：只留图标 */
.app-shell.collapsed { grid-template-columns: 64px minmax(0, 1fr); }
.side.collapsed { padding: 14px 8px; }
.side.collapsed .side-brand { flex-direction: column; gap: 8px; padding: 0 0 12px; }
.side.collapsed .side-brand .brand span,
.side.collapsed .news-card,
.side.collapsed .dock,
.side.collapsed .side-group,
.side.collapsed .account-chip-text,
.side.collapsed .account-chevron { display: none; }
.side.collapsed .side-nav button { font-size: 0; gap: 0; justify-content: center; padding: 10px 0; }
.side.collapsed .side-nav button svg { width: 19px; height: 19px; }
.side.collapsed .side-nav .badge { display: none; }
.side.collapsed .account-chip { justify-content: center; padding: 6px 0; }
.side.collapsed .side-collapse { margin: 0; }
.side.collapsed .side-collapse svg { transform: rotate(180deg); }

.side-group {
  padding: 18px 10px 6px;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .06em;
}
.side-nav { display: grid; gap: 2px; }
.side-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  text-align: left;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.side-nav button svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.side-nav button:hover { background: rgba(11, 11, 11, .05); color: var(--ink); }
.side-nav button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(11, 11, 11, .05); }
.side-nav button:active { transform: scale(.99); }

.side-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  display: grid;
  gap: 2px;
}
.side-foot a, .side-foot button {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: var(--radius-xs);
  background: none;
  color: var(--ink-2);
  font-size: 12.5px;
  text-align: left;
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.side-foot a:hover, .side-foot button:hover { background: rgba(11, 11, 11, .05); color: var(--ink); }

/* ── 侧栏顶部：最新资讯（常驻，无关闭） ────────────────────────────── */
.news-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px -18px rgba(11, 11, 11, .4), 0 0 0 1px rgba(11, 11, 11, .04);
}
.news-kicker {
  font: 10.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.news-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: radial-gradient(130% 110% at 80% 0%, #f8f8f7 0%, #eeeeec 52%, #e2e2df 100%);
}
.news-doc {
  position: relative;
  width: 62%;
  aspect-ratio: 4 / 3;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 9px 9px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(11, 11, 11, .1);
  box-shadow: 0 15px 26px -18px rgba(11, 11, 11, .42);
}
.news-doc-head {
  width: 46%;
  height: 5px;
  border-radius: 2px;
  background: var(--ink);
  opacity: .82;
  margin-bottom: 2px;
}
.news-doc-line { height: 3px; border-radius: 2px; background: #deddd9; }
.news-doc-line.short { width: 58%; }
.news-doc-chip {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--ink-2);
  font: 9px/1.6 var(--mono);
  letter-spacing: .02em;
}
.news-copy { display: grid; gap: 2px; }
.news-copy b { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; }
.news-copy span { font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }
.news-link {
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  justify-self: start;
  transition: border-color .2s var(--ease);
}
.news-link:hover { border-color: var(--ink); }

/* ── 底部账户条与弹出菜单 ──────────────────────────────────────────── */
.side-account { position: relative; z-index: 65; }
.side.menu-open .dock { visibility: hidden; }
.account-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px -18px rgba(11, 11, 11, .45);
  text-align: left;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.account-chip:hover {
  border-color: var(--line-2);
  box-shadow: 0 12px 26px -18px rgba(11, 11, 11, .5);
}
.avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
  overflow: hidden;
}
.avatar svg { width: 100%; height: 100%; display: block; }
.account-chip-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.account-chip-text b {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-chip-text span { font-size: 11px; color: var(--ink-3); font-family: var(--mono); }
.account-chevron {
  width: 15px;
  height: 15px;
  stroke: var(--ink-3);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform .2s var(--ease);
}
.account-chip[aria-expanded="true"] .account-chevron { transform: rotate(-90deg); }

.account-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 70;
  padding: 6px;
  display: grid;
  gap: 1px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 56px -24px rgba(11, 11, 11, .36), 0 2px 6px rgba(11, 11, 11, .05);
  animation: menu-in .2s var(--spring) both;
}
.account-menu.hidden { display: none; }
.account-menu a,
.account-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink-2);
  font-size: 12.5px;
  text-align: left;
  text-decoration: none;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.account-menu a:hover,
.account-menu button:hover { background: var(--soft); color: var(--ink); }
.account-menu svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.account-menu .menu-sep { height: 1px; background: var(--line); margin: 4px 2px; }
.account-menu .menu-danger { color: var(--danger); }
.account-menu .menu-danger:hover { background: var(--danger-soft); color: var(--danger); }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* ── 内容区 ─────────────────────────────────────────────────────────── */
.content { overflow-y: auto; padding: 40px 44px 72px; background: var(--canvas); }
.view { display: grid; gap: 26px; max-width: 1180px; }

.page-head { display: flex; align-items: flex-end; gap: 24px; }
.page-head .grow { display: grid; gap: 6px; }
.page-head h1 {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: var(--head);
}
.page-head p { margin: 0; color: var(--ink-2); font-size: 13px; }
.head-actions { display: flex; align-items: center; gap: 10px; }

/* ── 授权主卡：全页唯一的深色锚点 ───────────────────────────────────── */
.hero-license {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 34px 36px 30px;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}
.hero-license::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .09), transparent 68%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; display: grid; gap: 2px; }
.hero-eyebrow {
  font: 11px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .52);
  margin-bottom: 16px;
}
.hero-days {
  display: flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: -.06em;
  line-height: .92;
  font-weight: var(--head);
}
.hero-days span { font-size: clamp(56px, 7vw, 86px); }
.hero-days.is-text span { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.03em; }
.hero-days small { font-size: 15px; color: rgba(255, 255, 255, .55); letter-spacing: 0; font-weight: 400; }
.hero-sub { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .62); }
.hero-side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  justify-items: end;
  text-align: right;
}
.hero-side .meta { display: grid; gap: 3px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.hero-side .meta b { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.hero-side .meta span:last-child { font-family: var(--mono); font-size: 11.5px; }

/* 24 格授权条：与桌面端账户卡同一套格子 */
.license-bar {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 4px;
  margin-top: 24px;
  height: 12px;
}
.license-bar i {
  border-radius: 3px;
  background: rgba(255, 255, 255, .16);
  transform-origin: left center;
  transition: background .3s var(--ease);
}
.license-bar i.on {
  background: var(--quota-blue);
  animation: quota-fill .36s var(--spring) both;
  animation-delay: calc(var(--i, 0) * 18ms);
}
.panel .license-bar i { background: rgba(11, 11, 11, .09); }
.panel .license-bar i.on { background: var(--quota-blue); }
@keyframes quota-fill {
  from { opacity: .2; transform: scaleX(.32); }
  to { opacity: 1; transform: none; }
}

/* ── 指标：分隔线风格，不用盒子 ─────────────────────────────────────── */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.metric {
  padding: 20px 22px 18px;
  border: 1px solid #ececea;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(11, 11, 11, .03), 0 16px 36px -32px rgba(11, 11, 11, .38);
}
.metric-label { font-size: 11px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.metric-value {
  margin-top: 10px;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -.045em;
  font-weight: var(--head);
  line-height: 1.1;
  white-space: nowrap;
}
.metric-note { margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }

/* ── 面板 / 卡片 ────────────────────────────────────────────────────── */
.panel {
  background: var(--paper);
  border: 1px solid #ececea;
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: 0 1px 2px rgba(11, 11, 11, .03), 0 16px 36px -32px rgba(11, 11, 11, .38);
}
.panel.flush { padding: 0; overflow: hidden; }
.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.panel-title { margin: 0; font-size: 15px; font-weight: var(--head); letter-spacing: -.02em; }
.panel-head .grow { display: flex; align-items: center; gap: 10px; }
.panel-note { font-size: 11.5px; color: var(--ink-3); }
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }

/* ── 表格 ───────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table thead th {
  background: #f7f7f6;
}
.table th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: .02em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
#ordersView .table th, #ordersView .table td { padding-left: 10px; padding-right: 10px; }
.panel.flush .table th:first-child,
.panel.flush .table td:first-child { padding-left: 26px; }
.panel.flush .table th:last-child,
.panel.flush .table td:last-child { padding-right: 26px; }
.table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: middle;
}
.table th, .table td { white-space: nowrap; }
.table .sub {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .16s var(--ease); cursor: pointer; }
.table tbody tr:hover { background: var(--soft); }
.table tbody tr.selected { background: var(--soft); }
.table td b, .table td strong { color: var(--ink); font-weight: 600; }
.table .sub { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table th.num { text-align: right; }
/* 版本小卡 */
.edition-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ink);
  font-size: 11.5px;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 6px 16px -12px rgba(11, 11, 11, .9);
}
.edition-badge i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #fff;
  flex: none;
}
.edition-badge.cloud {
  border-color: transparent;
  background: linear-gradient(135deg, #2b63f6, #4d8dff);
  color: #fff;
  box-shadow: 0 6px 16px -10px rgba(43, 99, 246, .8);
}
.edition-badge.cloud i { background: #fff; }
.edition-badge.cloud::after {
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
}
.edition-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: shimmer 4.8s var(--ease) infinite;
}

/* 激活码与复制 */
.code-cell { font-family: var(--mono); font-size: 12px; color: var(--ink); letter-spacing: .02em; }
.code-wrap { display: inline-flex; align-items: center; gap: 8px; }
.copy-btn {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.copy-btn:hover { border-color: var(--ink); color: var(--ink); }
.copy-btn.done { border-color: var(--good); color: var(--good); background: var(--good-soft); }
.copy-btn svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#clientsBody td:nth-child(4) { min-width: 132px; }

.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions .btn { padding: 0 10px; }

/* ── 列表行 ─────────────────────────────────────────────────────────── */
.list { display: grid; }
.list-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: 0; }
.list-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.list-main b { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.list-main span { font-size: 11.5px; color: var(--ink-3); }
.list-row .btn { flex-shrink: 0; }

/* ── 状态胶囊 ───────────────────────────────────────────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--soft);
  color: var(--ink-2);
  white-space: nowrap;
}
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.status.active { background: var(--good-soft); color: var(--good); }
.status.trial { background: var(--blue-soft); color: var(--blue); }
.status.pending, .status.registered { background: var(--warn-soft); color: var(--warn); }
.status.suspended, .status.expired { background: var(--danger-soft); color: var(--danger); }
.status.approved { background: var(--good-soft); color: var(--good); }
.status.rejected { background: var(--danger-soft); color: var(--danger); }
.status.dark { background: rgba(255, 255, 255, .12); color: #fff; }

/* ── 状态分布：24 格，与授权条同一套语言 ───────────────────────────── */
.status-strip {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 3px;
  height: 12px;
}
.status-strip i {
  display: block;
  border-radius: 3px;
  background: var(--soft-2);
  transform-origin: left center;
  animation: quota-fill .36s var(--spring) both;
  animation-delay: calc(var(--i, 0) * 16ms);
}
.status-strip i.pending, .status-strip i.registered { background: #e6b766; }
.status-strip i.trial { background: #7ba0f8; }
.status-strip i.active { background: #4fa87a; }
.status-strip i.suspended, .status-strip i.expired { background: #e08d86; }
.status-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 11.5px; color: var(--ink-2); }
.status-legend span { display: inline-flex; align-items: center; gap: 6px; }
.status-legend span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); }
.status-legend .pending::before, .status-legend .registered::before { background: #e6b766; }
.status-legend .trial::before { background: #7ba0f8; }
.status-legend .active::before { background: #4fa87a; }
.status-legend .suspended::before, .status-legend .expired::before { background: #e08d86; }

/* ── 趋势柱 ─────────────────────────────────────────────────────────── */
.trend-card { display: grid; gap: 22px; }
.trend-figure { display: flex; align-items: baseline; gap: 8px; }
.trend-figure span { font-size: 44px; letter-spacing: -.055em; font-weight: var(--head); line-height: 1; }
.trend-figure small { font-size: 12px; color: var(--ink-3); }
.trend-bars { display: flex; align-items: flex-end; gap: 8px; height: 84px; }
.trend-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.trend-bar i {
  width: 100%;
  max-width: 30px;
  border-radius: 4px 4px 2px 2px;
  background: var(--quota-blue);
  transition: background .2s var(--ease), height .5s var(--spring);
  min-height: 3px;
}
.trend-bar:hover i { background: #126fd4; }
.trend-bar i.zero { background: #dbe4f7; }
.trend-bar:hover i.zero { background: #c9d6f0; }
.trend-bar span { font-size: 10px; color: var(--ink-3); font-family: var(--mono); }

/* ── 侧栏式 KPI 组 ──────────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.kpi { padding: 17px 18px 2px 0; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi span { display: block; font-size: 11.5px; color: var(--ink-3); }
.kpi b { display: block; margin-top: 7px; font-size: 26px; letter-spacing: -.05em; font-weight: var(--head); line-height: 1; }

/* ── 详情面板 ───────────────────────────────────────────────────────── */
.detail-panel { position: sticky; top: 24px; display: grid; gap: 22px; }
.detail-empty { color: var(--ink-3); font-size: 13px; padding: 28px 4px; text-align: center; }
.detail-title { margin: 0; font-size: 19px; letter-spacing: -.035em; font-weight: var(--head); }
.detail-sub { margin-top: 4px; font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.detail-facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.detail-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.detail-facts > div:last-child { border-bottom: 0; }
.detail-facts span { color: var(--ink-3); flex-shrink: 0; }
.detail-facts b { font-weight: 500; color: var(--ink); text-align: right; word-break: break-word; }
.detail-facts a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
  transition: border-color .2s var(--ease);
}
.detail-facts a:hover { border-color: var(--ink); }
.detail-form { display: grid; gap: 14px; }
.detail-form .field-row { gap: 10px; }
.detail-form .actions { display: flex; flex-wrap: wrap; gap: 8px; }

.customer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }

/* ── 筛选标签 ───────────────────────────────────────────────────────── */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-tabs button {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.admin-tabs button:hover { background: var(--soft); color: var(--ink); }
.admin-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── 徽标 / 提示 ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}
.badge.muted {
  background: transparent;
  color: var(--ink-3);
  font-weight: 400;
  font-size: 10.5px;
  min-width: 0;
  padding: 0;
  height: auto;
}

.empty-state {
  padding: 36px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.7;
}
.empty-state p { margin: 0; }
.soon {
  padding: 30px 26px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.8;
  background: var(--soft);
}
.soon code { font-family: var(--mono); font-size: 11.5px; background: #fff; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.65;
}
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.danger { background: var(--danger-soft); color: var(--danger); }

@keyframes shimmer {
  0%, 12% { transform: translateX(-130%); }
  88%, 100% { transform: translateX(130%); }
}

/* ── 模态 ───────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, .38);
  backdrop-filter: blur(2px);
}
.modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(86vh, 880px);
  overflow-y: auto;
  padding: 24px 28px 26px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 40px 90px -40px rgba(11, 11, 11, .55);
  animation: modal-in .28s var(--spring) both;
}
.modal-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; font-weight: var(--head); }
.modal-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1;
}
.modal-close:hover { background: var(--soft-2); color: var(--ink); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.form-done {
  display: grid;
  gap: 4px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}
.form-done b { font-size: 17px; font-weight: var(--head); letter-spacing: -.02em; }
.form-done span { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.form-done.hidden { display: none; }

/* ── 右侧详情抽屉 ───────────────────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 88;
  width: min(400px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -28px 0 70px -40px rgba(11, 11, 11, .45);
  animation: drawer-in .3s var(--spring) both;
}
.drawer.hidden { display: none; }
@keyframes drawer-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; font-weight: var(--head); }
.drawer-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1;
}
.drawer-close:hover { background: var(--soft-2); color: var(--ink); }
.drawer-body { padding: 18px 22px 28px; overflow-y: auto; display: grid; gap: 18px; }
.drawer-section { display: grid; gap: 0; }
.drawer-section-title {
  font: 10.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.drawer-orders { display: grid; gap: 6px; }
.drawer-order {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
}
.drawer-order b { font-family: var(--mono); font-weight: 500; font-size: 11.5px; }
.drawer-order span { color: var(--ink-3); }

/* ── Toast ─────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 95;
  max-width: min(620px, calc(100% - 32px));
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.55;
  box-shadow: 0 20px 44px -22px rgba(11, 11, 11, .6);
  transform: translateX(-50%);
  animation: toast-in .3s var(--spring) both;
}
.toast.hidden { display: none; }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.status.withdrawn { background: var(--soft-2); color: var(--ink-3); }

/* ── 右下角浮动小卡 ────────────────────────────────────────────────── */
.dock {
  position: fixed;
  left: 16px;
  bottom: 96px;
  z-index: 60;
  width: 216px;
  padding: 12px;
  display: grid;
  gap: 11px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 28px 64px -28px rgba(11, 11, 11, .32), 0 2px 6px rgba(11, 11, 11, .05);
  animation: dock-in .55s var(--spring) both;
  overflow: hidden;
}
.dock::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 34%, rgba(11, 11, 11, .045) 50%, transparent 66%);
  transform: translateX(-130%);
  animation: shimmer 6.4s var(--ease) infinite;
}
.dock > * { position: relative; z-index: 1; }
.dock.hidden { display: none; }

/* 放进侧栏时成为侧栏的一层：不浮在内容上，也不遮住底部链接 */
.side .dock {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: auto;
  margin-top: auto;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px -18px rgba(11, 11, 11, .38), 0 0 0 1px rgba(11, 11, 11, .04);
  animation: none;
}
.side-account { margin-top: auto; }
.side:not(.collapsed) .dock:not(.hidden) + .side-account { margin-top: 14px; }
@keyframes dock-in {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.dock-kicker {
  font: 10.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dock-head { display: flex; align-items: center; gap: 8px; }
.dock-tabs {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: var(--soft);
}
.dock-tabs button {
  border: 0;
  background: none;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11.5px;
  color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.dock-tabs button.on {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-1);
}
.dock-close {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.dock-close:hover { background: var(--soft); color: var(--ink); }

.dock-caption { font-size: 11.5px; color: var(--ink-3); }

.dock-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 11px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 18% 8%, #fefcf8 0%, #f5f0e5 46%, #e9e2d3 100%);
}
.dock-device { width: 58%; display: grid; justify-items: center; gap: 3px; }
.dock-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(11, 11, 11, .13);
  box-shadow: 0 10px 20px -12px rgba(11, 11, 11, .4);
}
.dock-screen img { width: 40%; opacity: .92; }
.dock-base {
  width: 128%;
  height: 4px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(#d9d2c3, #c6bfae);
}
.dock .btn { min-height: 36px; font-size: 12.5px; }

@media (max-width: 860px) {
  .dock { display: none; }
}

/* ── 快捷操作 ───────────────────────────────────────────────────────── */
.quick { display: grid; gap: 0; }
.quick a, .quick button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink-2);
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  transition: color .18s var(--ease), padding-left .28s var(--spring);
}
.quick a:last-child, .quick button:last-child { border-bottom: 0; }
.quick a:hover, .quick button:hover { color: var(--ink); padding-left: 4px; }
.quick svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ── 下载卡片 ───────────────────────────────────────────────────────── */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dl-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  min-height: 210px;
}
.dl-card.dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.dl-top { display: flex; align-items: center; gap: 10px; }
.dl-top h3 { margin: 0; font-size: 24px; letter-spacing: -.045em; font-weight: var(--head); }
.dl-chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--ink);
}
.dl-card.dark .dl-chip { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .26); color: #fff; }
.dl-card p { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.dl-card.dark p { color: rgba(255, 255, 255, .62); }
.dl-links { margin-top: auto; padding-top: 22px; display: grid; }
.dl-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  text-decoration: none;
  color: var(--ink);
  transition: padding-left .26s var(--spring), opacity .2s var(--ease);
}
.dl-links a:hover { padding-left: 3px; }
.dl-links a span:last-child { color: var(--ink-3); }
.dl-card.dark .dl-links a { border-color: rgba(255, 255, 255, .18); color: #fff; }
.dl-card.dark .dl-links a span:last-child { color: rgba(255, 255, 255, .5); }

/* ── 设备卡 ─────────────────────────────────────────────────────────── */
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.device {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 12px;
}
.device-head { display: flex; align-items: flex-start; gap: 12px; }
.device-head .grow { display: grid; gap: 2px; min-width: 0; }
.device-head b { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.device-head span { font-size: 11.5px; color: var(--ink-3); }
.device-meta { font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); }
.device-actions { display: flex; justify-content: flex-end; }

/* ── 响应式 ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .content { padding: 32px 28px 64px; }
  .customer-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-panel { position: static; }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .auth-main { grid-template-columns: 1fr; }
  .auth-aside { padding: 40px 28px 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-aside h1 { font-size: 34px; }
  .auth-aside-foot { display: none; }
  .auth-panel { padding: 40px 28px 56px; }
  .app-shell { grid-template-columns: 1fr; height: auto; }
  .side {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .side-user { padding: 0 10px 0 0; margin: 0; border: 0; }
  .side-user span:last-child { display: none; }
  .side-group { display: none; }
  .auth-lulu { width: 96px; height: 96px; margin-bottom: 20px; }
  .side-nav { display: flex; gap: 4px; }
  .side-nav button { width: auto; white-space: nowrap; padding: 7px 12px; }
  .side-foot { margin: 0 0 0 auto; padding: 0; border: 0; display: flex; gap: 4px; }
  .side-foot a, .side-foot button { width: auto; padding: 7px 10px; }
  .side .news-card { display: none; }
  .side-brand { padding: 0 4px; }
  .side-brand .brand span { display: none; }
  .side-account { margin: 0 0 0 auto; }
  .account-chip { padding: 6px; border: 0; box-shadow: none; background: transparent; }
  .account-chip-text, .account-chevron { display: none; }
  .content { padding: 24px 18px 56px; overflow: visible; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi { padding-bottom: 14px; }
  .kpi:nth-child(2n) { border-right: 0; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric { padding-bottom: 14px; }
  .metric:nth-child(2n) { border-right: 0; }
  .hero-license { grid-template-columns: 1fr; gap: 22px; padding: 26px 24px; }
  .hero-side { justify-items: start; text-align: left; }
  .dl-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .page-head { flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 720px) {
  .page-head .head-actions { width: 100%; }
  .hero-days span { font-size: 52px; }
  .dl-card { padding: 22px; }
  .panel { padding: 20px 18px; }
  #ordersView .table th, #ordersView .table td { padding-left: 10px; padding-right: 10px; }
.panel.flush .table th:first-child,
  .panel.flush .table td:first-child { padding-left: 18px; }
  .panel.flush .table th:last-child,
  .panel.flush .table td:last-child { padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
