/* 网站公共页面（账号、积分、项目、后台）。设计依据：D:/CLAUDE CODE/20261115_网站公共部分/页面设计稿_20261117（第五版，2026-11-17 用户认可）。
   只做电脑端；颜色只用紫 + 一点珊瑚；页面上不放说明性小字，提示只在出错时就近出现。
   CSP 为 style-src 'self'：页面和脚本都不用内联 style 属性，动态数值一律用 element.style 设置。 */
:root {
  --ink: #292b4a; --ink-strong: #1f1d36; --muted: #6c6a86; --faint: #8d8ca4;
  --line: #26284312; --line-2: #26284324; --line-soft: #eeeef6;
  --violet: #5850c7; --violet-2: #7b72e8; --violet-ink: #4a42ad; --violet-50: #f4f2fd; --violet-100: #ecebff; --violet-200: #cfcaf8;
  --coral: #e0806a; --coral-ink: #a8523d; --coral-50: #fdf1ec;
  --green: #23946a; --green-ink: #246a52; --green-50: #e1f3ea;
  --amber: #d39a2c; --amber-ink: #7f5614; --amber-50: #fbefd8;
  --red: #b23a48; --red-ink: #8d263a; --red-50: #fbe8ed;
  --card-shadow: 0 1px 2px #2f2a5e0a, 0 14px 34px #2f2a5e0f, inset 0 1px 0 #fff;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Segoe UI", system-ui, sans-serif;
  color: var(--ink); font-size: 16px; line-height: 1.6; font-synthesis: none; color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; min-width: 1200px;
  background: radial-gradient(1100px 520px at 88% -12%, #fde7df 0%, #fde7df00 60%), radial-gradient(900px 520px at -8% 108%, #e8e4ff 0%, #e8e4ff00 60%), linear-gradient(180deg, #f7f7fd 0%, #eff0f9 100%) fixed;
}
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--violet-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
::selection { background: #dad7ff; color: #302b68; }
[hidden] { display: none !important; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: "Cascadia Mono", Consolas, "Microsoft YaHei UI", monospace; letter-spacing: .1em; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 #5850c759; } 50% { box-shadow: 0 0 0 5px #5850c700; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes drift1 { to { transform: translate(90px, 70px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-100px, -60px) scale(1.15); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes svgbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes grow { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes growx { 0% { transform: scaleX(.15); } 70%, 100% { transform: scaleX(1); } }
@keyframes typein { 0% { transform: scaleX(0); } 30%, 100% { transform: scaleX(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes popin { 0% { transform: scale(.6); opacity: 0; } 18%, 100% { transform: scale(1); opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes shim { from { transform: translateX(-80px); } to { transform: translateX(80px); } }
@keyframes dotpulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes sunglow { 50% { opacity: .7; } }
@keyframes sweep { 0%, 62% { left: -45%; } 100% { left: 135%; } }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 #5850c733; } 50% { box-shadow: 0 0 0 8px #5850c700; } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* ---------- 应用页背景：细网格 ---------- */
body.app::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(#5850c70b 1px, transparent 1px), linear-gradient(90deg, #5850c70b 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(1300px 640px at 72% -6%, #000 0%, transparent 72%); mask-image: radial-gradient(1300px 640px at 72% -6%, #000 0%, transparent 72%); }
body.app .page, body.app .home { position: relative; z-index: 1; }

/* ---------- 顶栏：品牌 + 首页 + 全部功能 | 积分 + 头像 ---------- */
.site-top { position: sticky; top: 0; z-index: 20; height: 64px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 0 24px; background: radial-gradient(520px 120px at 100% 0%, #fbe8e1b3 0%, #fbe8e100 70%), radial-gradient(420px 120px at 0% 0%, #ecebffcc 0%, #ecebff00 70%), #ffffffd9; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #2628430f; box-shadow: 0 1px 0 #fff inset, 0 6px 18px #1f1d360a; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 6px; border-radius: 11px; background: linear-gradient(135deg, #7b72e8 0%, #c06fa8 60%, #e0806a 100%); box-shadow: 0 6px 16px #7b72e859, inset 0 1px 0 #ffffff66; }
.brand-mark svg { width: 24px; height: 24px; }
.brand b { display: block; font-size: 17px; line-height: 1.3; color: var(--ink-strong); white-space: nowrap; letter-spacing: .01em; }
.brand small { display: block; font-size: 12px; line-height: 1.4; color: #7a7992; white-space: nowrap; }
.top-nav { position: relative; display: flex; align-items: center; gap: 2px; margin-left: 26px; }
.tn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 11px; background: transparent; color: #55536e; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .16s ease, color .16s ease; }
.tn svg.i { width: 18px; height: 18px; color: var(--faint); transition: color .16s ease, transform .25s ease; }
.tn .chev { width: 14px; height: 14px; }
.tn:hover { background: #5850c70d; color: var(--violet-ink); text-decoration: none; }
.tn:hover svg.i { color: var(--violet); }
.tn[aria-current="page"] { background: var(--violet-50); color: var(--violet-ink); box-shadow: inset 0 0 0 1px #5850c71f; }
.tn[aria-current="page"] svg.i { color: var(--violet); }
.tn[aria-expanded="true"] { background: var(--violet-50); color: var(--violet-ink); }
.tn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mega { position: absolute; top: 52px; left: 0; z-index: 40; width: 780px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 30px 80px #2f2a5e2e; animation: rise .2s ease both; }
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.tool-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: inherit; transition: background .14s ease; }
.tool-item:hover { background: var(--violet-50); text-decoration: none; }
.tool-item b { display: block; font-size: 15px; color: var(--ink-strong); }
.tool-item.is-off .t-ico { background: #f4f4f8; color: #b3b2c4; box-shadow: none; }
.tool-item.is-off b { color: #8d8ca4; }
.t-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #f6f5fe, #e9e6ff); color: var(--violet); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #5850c714; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.tool-item:not(.is-off):hover .t-ico, .tile.on .t-ico { background: linear-gradient(135deg, #7b72e8, #5850c7); color: #fff; box-shadow: 0 8px 18px #5850c740; }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.credit-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border: 1px solid #e3e1f0; border-radius: 999px; background: #ffffffcc; color: var(--ink-strong); font-weight: 700; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .12s ease; }
.credit-chip:hover { background: var(--violet-50); border-color: var(--violet-200); box-shadow: 0 6px 14px #2f2a5e14; text-decoration: none; }
.credit-chip:active { transform: scale(.97); }
.credit-chip[aria-current="page"] { border-color: var(--violet-200); background: var(--violet-50); }
.credit-chip .coin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #7b72e8, #c06fa8 70%, #e0806a); color: #fff; font-size: 13px; box-shadow: inset 0 1px 0 #ffffff66; }
.credit-chip small { font-size: 13px; font-weight: 500; color: var(--muted); }
.avatar-wrap { position: relative; }
.avatar-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 8px 0 4px; border: 1px solid transparent; border-radius: 999px; background: transparent; transition: background .16s ease, border-color .16s ease; }
.avatar-btn:hover, .avatar-btn[aria-expanded="true"] { background: #ffffffcc; border-color: #e3e1f0; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #efecff, #e1dcff); color: var(--violet-ink); font-weight: 700; font-size: 14px; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #5850c71f; }
.avatar-btn svg.i { width: 16px; height: 16px; color: var(--faint); }
.menu { position: absolute; top: 52px; right: 0; z-index: 30; width: 260px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 24px 64px #2f2a5e2e; text-align: left; animation: rise .18s ease both; }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.menu-head b { display: block; font-size: 15px; color: var(--ink-strong); overflow: hidden; text-overflow: ellipsis; }
.menu-head small { font-size: 13px; color: var(--muted); }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-size: 15px; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--violet-50); color: var(--violet-ink); text-decoration: none; }
.menu svg.i { width: 18px; height: 18px; color: var(--faint); }
.menu a:hover svg.i, .menu button:hover svg.i { color: var(--violet); }
.menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: 6px 4px; }
.menu .admin-entry { color: var(--violet-ink); font-weight: 600; }
.menu .admin-entry svg.i { color: var(--violet); }

/* ---------- 页面骨架：左栏卡片 + 内容 ---------- */
.page { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; padding: 24px 32px 40px; }
.rail { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 6px; min-height: calc(100vh - 120px); padding: 20px 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--card-shadow); }
.rail-title { padding: 2px 10px 12px; }
.rail-title b { display: block; font-size: 17px; color: var(--ink-strong); }
.rail-title small { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail a.nav { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #45435f; font-size: 15.5px; font-weight: 600; transition: background .16s ease, color .16s ease, transform .12s ease; }
.rail a.nav:hover { background: #5850c70d; color: var(--violet-ink); text-decoration: none; }
.rail a.nav:active { transform: scale(.98); }
.rail a.nav svg.i { color: var(--faint); transition: color .16s ease; }
.rail a.nav:hover svg.i { color: var(--violet); }
.rail a.nav[aria-current="page"] { background: linear-gradient(135deg, #f4f2fd, #fff 85%); color: var(--violet-ink); box-shadow: inset 0 0 0 1px #5850c72e; }
.rail a.nav[aria-current="page"] svg.i { color: var(--violet); }
.rail a.nav[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #7b72e8, #5850c7); }
.rail a.nav .count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--faint); }
.rail-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rail-foot a, .rail-foot button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 14px; }
.rail-foot a:hover, .rail-foot button:hover { color: var(--violet-ink); text-decoration: none; }
.rail-foot svg.i { width: 16px; height: 16px; }
.main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 4px 2px 0; }
.page-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; color: var(--ink-strong); }

/* ---------- 卡片 ---------- */
.card { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--card-shadow); animation: rise .3s ease both; }
.card-pad { padding: 24px 26px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px 16px; }
.card-head h3 { font-size: 18px; font-weight: 700; color: var(--ink-strong); letter-spacing: -.01em; }
.card-head h3 small { margin-left: 8px; font-size: 14px; font-weight: 500; color: var(--faint); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; }
.empty { padding: 34px 26px; text-align: center; color: var(--faint); font-size: 15px; }

/* ---------- 按钮、输入 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid #d7d7e7; border-radius: 11px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease; }
.btn:hover:not(:disabled) { border-color: #a69edb; background: #f9f8ff; transform: translateY(-1px); box-shadow: 0 6px 14px #2f2a5e14; text-decoration: none; }
.btn:active:not(:disabled) { transform: scale(.97); transition-duration: .06s; }
.btn svg.i { width: 18px; height: 18px; }
.btn.primary { min-height: 44px; padding: 9px 22px; border-color: transparent; border-radius: 12px; background: linear-gradient(135deg, #7b72e8, #5850c7); color: #fff; font-weight: 700; box-shadow: 0 8px 18px #5850c73d, inset 0 1px 0 #ffffff5c; }
.btn.primary:hover:not(:disabled) { background: linear-gradient(135deg, #6f66e0, #4a42ad); border-color: transparent; box-shadow: 0 12px 24px #5850c74d, inset 0 1px 0 #ffffff5c; }
.btn.block { width: 100%; }
.btn.lg { min-height: 52px; font-size: 16px; border-radius: 14px; }
.btn.sm { min-height: 34px; padding: 5px 12px; font-size: 14px; border-radius: 10px; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--violet-ink); }
.btn.quiet:hover:not(:disabled) { background: var(--violet-50); border-color: transparent; box-shadow: none; }
.btn.danger { color: var(--red); border-color: #e7c3ca; }
.btn.danger:hover:not(:disabled) { background: var(--red-50); border-color: #d99aa6; color: var(--red-ink); }
.btn.danger-solid { border-color: transparent; background: linear-gradient(135deg, #c8505d, #a52c39); color: #fff; box-shadow: 0 8px 18px #a52c3933; }
.btn.danger-solid:hover:not(:disabled) { background: #a52c39; border-color: transparent; color: #fff; }
.btn.busy { pointer-events: none; opacity: .75; }
.btn.shine { position: relative; overflow: hidden; }
.btn.shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, #ffffff55, transparent); transform: skewX(-20deg); transition: left .7s ease; }
.btn.shine:hover::after { left: 130%; }
.btn .go-arrow { transition: transform .25s ease; }
.btn:hover .go-arrow { transform: translateX(4px); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .label { font-size: 15px; font-weight: 600; color: var(--ink-strong); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field > label a, .field > .label a, .field > .label .calc { font-size: 14px; font-weight: 600; }
.calc { color: var(--violet-ink); font-weight: 600; font-size: 13.5px; }
.input { display: block; width: 100%; min-width: 0; height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 16px; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.input::placeholder { color: #9a99ae; font-size: 15px; }
.input:hover:not(:disabled) { border-color: #b9b4ea; }
.input:focus { border-color: var(--violet); outline: 0; box-shadow: 0 0 0 4px #5850c71f; }
.input.is-error { border-color: #d48f9b; box-shadow: 0 0 0 4px #b23a4814; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.input-wrap .eye { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--faint); }
.input-wrap .eye:hover, .input-wrap .eye[aria-pressed="true"] { background: var(--violet-50); color: var(--violet); }
.input-ico { position: relative; }
.input-ico > svg.i { position: absolute; left: 14px; top: 14px; color: var(--faint); transition: color .16s ease; pointer-events: none; }
.input-ico .input { padding-left: 44px; }
.input-ico:focus-within > svg.i { color: var(--violet); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: #f0eff8; box-shadow: inset 0 1px 2px #2f2a5e0d; }
.seg button { min-height: 32px; padding: 4px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; transition: background .16s ease, color .16s ease, box-shadow .16s ease; }
.seg button:hover { color: var(--violet-ink); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--violet-ink); box-shadow: 0 1px 2px #2f2a5e14, 0 4px 10px #2f2a5e0f; }
.seg.lg button { min-height: 40px; padding: 6px 18px; font-size: 15px; }
.err { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--red-50); color: var(--red-ink); font-size: 14.5px; animation: rise .2s ease both; }
.err svg.i { width: 18px; height: 18px; }
.err .actions-inline { display: flex; gap: 6px; margin-left: auto; }
.err .actions-inline button { padding: 2px 10px; border: 1px solid #e7c3ca; border-radius: 8px; background: #fff; color: var(--red-ink); font-size: 13.5px; font-weight: 600; }
.err .actions-inline button:hover { background: #fff6f8; }
.msg:empty { display: none; }
.ok-line { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--green-50); color: var(--green-ink); font-size: 14.5px; animation: rise .2s ease both; }
.shake { animation: shake .35s ease; }

/* ---------- 状态胶囊、标签 ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: 999px; background: #f0f0f6; color: #5d5f75; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.chip.ok { background: var(--green-50); color: var(--green-ink); }
.chip.busy { background: var(--violet-100); color: var(--violet-ink); }
.chip.busy::before { opacity: 1; animation: pulse 1.6s ease-in-out infinite; }
.chip.warn { background: var(--amber-50); color: var(--amber-ink); }
.chip.bad { background: var(--red-50); color: var(--red-ink); }
.chip.coral { background: var(--coral-50); color: var(--coral-ink); }
.chip.plain::before, .chip.soon::before { display: none; }
.chip.soon { background: transparent; color: var(--violet-ink); box-shadow: inset 0 0 0 1px #5850c740; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 1px 9px; border-radius: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--violet-100); color: var(--violet-ink); }
.tag.coral { background: var(--coral-50); color: var(--coral-ink); }

/* ---------- 提示条（操作成功后右下角出现一下） ---------- */
.toast { position: fixed; right: 28px; bottom: 28px; z-index: 80; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: #221d4f; color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 18px 40px #1f1d3640; animation: rise .25s ease both; }
.toast svg.i { width: 18px; height: 18px; color: #b9f0d6; }

/* ---------- 功能首页 ---------- */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding: 26px 40px 44px; }
.home-glow { position: fixed; z-index: 0; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.home-glow.g1 { left: 18%; top: 30%; width: 620px; height: 420px; background: #e6e2ff; opacity: .8; animation: drift1 24s ease-in-out infinite alternate; }
.home-glow.g2 { right: 12%; bottom: -10%; width: 560px; height: 400px; background: #fde3da; opacity: .7; animation: drift2 28s ease-in-out infinite alternate; }
.hello h2 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; color: var(--ink-strong); }
.hello h2 em { font-style: normal; background: linear-gradient(90deg, #5850c7, #9a6fd0 55%, #e0806a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; margin-top: 20px; }
.big-grid .col { display: flex; flex-direction: column; gap: 24px; }
.big-grid .col .tool-card.more { flex: 1; min-height: 160px; }
.big-grid .feature { animation-delay: .05s; }
.big-grid .col > :nth-child(1) { animation-delay: .15s; }
.big-grid .col > :nth-child(2) { animation-delay: .25s; }
.big-grid .col > :nth-child(3) { animation-delay: .35s; }
.tool-card { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--card-shadow); overflow: hidden; color: inherit; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease; animation: rise .45s ease both; }
.tool-card::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(260px 200px at var(--mx) var(--my), #7b72e824, transparent 70%); }
.tool-card:hover { transform: translateY(-5px); border-color: #5850c733; box-shadow: 0 1px 2px #2f2a5e0a, 0 26px 50px #2f2a5e21; text-decoration: none; }
.tool-card:hover::before { opacity: 1; }
.tool-card .art, .tile .art { position: relative; overflow: hidden; background: radial-gradient(200px 120px at 15% 0%, #fff, #fff0 70%), linear-gradient(160deg, #f3f1fd 0%, #f7f3fb 55%, #fcefea 100%); }
.tool-card .art { height: 150px; border-bottom: 1px solid var(--line-soft); }
.tool-card .art::after, .tile .art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#5850c70f 1px, transparent 1px), linear-gradient(90deg, #5850c70f 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.tool-card .body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 14px 18px 16px; }
.tool-card .row1 { display: flex; align-items: center; gap: 10px; }
.tool-card .row1 b { font-size: 17px; font-weight: 700; color: var(--ink-strong); }
.tool-card .row1 .chip { margin-left: auto; }
.tool-card.is-off .art-svg, .tool-card.is-soon .art-svg { filter: grayscale(.9); opacity: .5; }
.tool-card.is-off:hover, .tool-card.is-soon:hover { transform: none; box-shadow: var(--card-shadow); border-color: var(--line); }
.tool-card.more { display: grid; place-items: center; padding: 24px; border: 1.5px dashed #d5d1ee; background: #ffffff8c; box-shadow: none; text-align: center; font-size: 14px; color: var(--muted); }
.tool-card.more b { display: block; margin: 10px 0 2px; font-size: 16px; color: var(--ink-strong); }
.tool-card.more .t-ico { margin: 0 auto; animation: ring 2.8s ease-in-out infinite; }
.tool-card.more:hover { transform: none; box-shadow: none; border-color: #d5d1ee; }
.tool-card.feature .art { height: 300px; }
.tool-card.feature .body { gap: 16px; padding: 20px 24px 22px; }
.tool-card.feature .row1 { gap: 14px; }
.tool-card.feature .row1 .t-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #7b72e8, #5850c7); color: #fff; box-shadow: 0 10px 22px #5850c740, inset 0 1px 0 #ffffff55; }
.tool-card.feature .row1 b { font-size: 22px; letter-spacing: -.01em; }
.track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border: 1px solid var(--line-soft); border-radius: 14px; background: #faf9ff; }
.track li { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 12px 14px 12px 50px; font-size: 15px; font-weight: 700; color: var(--ink-strong); cursor: default; transition: color .4s ease; }
.track li .mono { position: absolute; left: 14px; top: 16px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--violet); font-size: 12px; letter-spacing: 0; box-shadow: inset 0 0 0 1.5px #5850c740; transition: background .4s ease, color .4s ease, box-shadow .4s ease, transform .4s cubic-bezier(.2, .8, .2, 1); }
.track li small { font-size: 13px; font-weight: 500; color: var(--faint); }
.track li + li::before { content: ""; position: absolute; left: -18px; top: 28px; width: 28px; height: 2px; background: repeating-linear-gradient(90deg, #b9b2f1 0 4px, transparent 4px 8px); }
.track li.off { color: #a3a2b8; }
.track li.off .mono { color: #b3b2c4; box-shadow: inset 0 0 0 1.5px #dcdbe8; }
.track li.on { color: var(--violet-ink); }
.track li.on .mono { background: linear-gradient(135deg, #7b72e8, #5850c7); color: #fff; box-shadow: 0 6px 14px #5850c759; transform: scale(1.12); }
.feature-go { display: flex; align-items: center; gap: 16px; }
.side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.side > :nth-child(1) { animation: rise .45s ease .1s both; }
.side > :nth-child(2) { animation: rise .45s ease .2s both; }
.wallet-mini { position: relative; overflow: hidden; padding: 22px 24px 20px; border: 0; color: #f4f2ff; background: radial-gradient(260px 180px at 110% -10%, #e0806a66, transparent 70%), radial-gradient(240px 200px at -10% 120%, #7b72e866, transparent 70%), linear-gradient(150deg, #231e57, #2b2369 60%, #3a2763); box-shadow: 0 24px 50px #231e5733; }
.wallet-mini::before { content: ""; position: absolute; top: 0; bottom: 0; left: -45%; z-index: 1; width: 30%; background: linear-gradient(100deg, transparent, #ffffff1f, transparent); transform: skewX(-20deg); animation: sweep 7s ease-in-out infinite; pointer-events: none; }
.wallet-mini::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%); mask-image: linear-gradient(135deg, #000, transparent 70%); }
.wallet-mini > * { position: relative; z-index: 1; }
.wallet-mini .wm-label { font-size: 14px; font-weight: 600; color: #c9c4f2; }
.wallet-mini .wm-num { display: flex; align-items: baseline; gap: 8px; margin: 2px 0; }
.wallet-mini .wm-num b { font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.wallet-mini .wm-num span { font-size: 15px; color: #c9c4f2; font-weight: 600; }
.wallet-mini .wm-sub { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #d6d2f5; }
.wallet-mini .wm-sub i { width: 7px; height: 7px; border-radius: 50%; background: #a49ded; animation: pulse 1.6s ease-in-out infinite; }
.wallet-mini .wm-actions { display: flex; gap: 10px; margin-top: 16px; }
.wallet-mini .btn { min-height: 38px; font-size: 14px; }
.wallet-mini .btn.wm-primary { border: 0; background: #fff; color: var(--violet-ink); box-shadow: 0 8px 18px #0b08263d; }
.wallet-mini .btn.wm-primary:hover { background: #f4f2fd; color: var(--violet-ink); }
.wallet-mini .btn.wm-ghost { border-color: #ffffff38; background: #ffffff10; color: #f4f2ff; }
.wallet-mini .btn.wm-ghost:hover { background: #ffffff1f; border-color: #ffffff5c; color: #fff; }
.recent { list-style: none; margin: 0; padding: 0 10px 8px; }
.recent li { animation: rise .4s ease both; }
.recent li:nth-child(1) { animation-delay: .3s; } .recent li:nth-child(2) { animation-delay: .38s; } .recent li:nth-child(3) { animation-delay: .46s; } .recent li:nth-child(4) { animation-delay: .54s; }
.recent li a { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: inherit; transition: background .14s ease; }
.recent li a:hover { background: var(--violet-50); text-decoration: none; }
.recent .t-ico { width: 38px; height: 38px; border-radius: 11px; }
.recent .t-ico svg.i { width: 18px; height: 18px; }
.recent b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: var(--ink-strong); }
.recent small { display: block; font-size: 13px; color: var(--faint); }
.recent li a > svg.i { width: 16px; height: 16px; color: var(--faint); transition: transform .2s ease, color .2s ease; }
.recent li a:hover > svg.i { transform: translateX(3px); color: var(--violet); }
.recent .empty { padding: 18px 12px 22px; }

/* ---------- 插画（art.js）及其动效 ---------- */
.art-svg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.tool-card:hover .art-svg { transform: scale(1.05) translateY(-2px); }
.tool-card.feature:hover .art-svg { transform: none; }
.art-svg .grow { transform-box: fill-box; transform-origin: bottom; animation: grow 2.8s ease-in-out infinite alternate; }
.art-svg .grow-x { transform-box: fill-box; transform-origin: left; animation: growx 3.2s ease-out infinite; }
.art-svg .grow-x.slow { animation-duration: 5s; }
.art-svg .type { transform-box: fill-box; transform-origin: left; animation: typein 4.5s ease-out infinite; }
.art-svg .caret { animation: blink 1s steps(1) infinite; }
.art-svg .pop { transform-box: fill-box; transform-origin: center; animation: popin 5s cubic-bezier(.2, .8, .2, 1) infinite; }
.art-svg .tw { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; }
.art-svg .shim { animation: shim 1.8s linear infinite; }
.art-svg .dots { animation: dotpulse 1.2s ease-in-out infinite; }
.art-svg .sun { animation: sunglow 3s ease-in-out infinite; }
.art-svg .bob { animation: svgbob 7s ease-in-out infinite; }
.art-svg .par { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.art-svg .piece { transform-box: fill-box; transform-origin: center; transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .7s ease, filter .7s ease; }
.feature[data-on] .art-svg .piece { opacity: .72; }
.feature[data-on] .art-svg .piece.on { opacity: 1; transform: scale(1.07); filter: drop-shadow(0 12px 20px #5850c740); }

/* ---------- 我的积分 ---------- */
.balance-card { position: relative; overflow: hidden; padding: 26px 28px; background: radial-gradient(420px 220px at 105% -10%, #fde7df 0%, #fde7df00 70%), radial-gradient(380px 240px at -10% 120%, #ecebff 0%, #ecebff00 70%), #fff; }
.balance-card .label { font-size: 15px; font-weight: 600; color: var(--muted); }
.balance-num { position: relative; display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.balance-num b { font-size: 56px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--ink-strong); }
.balance-num span { font-size: 16px; font-weight: 600; color: var(--muted); }
.balance-num .gain { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-ink); font-size: 15px; font-weight: 700; animation: pop .4s ease both; }
.balance-meta { font-size: 14px; color: var(--faint); }
.held-note { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--violet-50); color: #45435f; font-size: 14px; }
.held-note b { color: var(--violet-ink); }
.held-note .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); animation: pulse 1.6s ease-in-out infinite; }
.redeem-card { padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.redeem-card h3 { font-size: 18px; font-weight: 700; color: var(--ink-strong); }
.redeem-row { display: flex; gap: 12px; }
.code-input { flex: 1; height: 56px; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: #fcfcff; font-family: "Cascadia Mono", Consolas, "Microsoft YaHei UI", monospace; font-size: 22px; font-weight: 600; letter-spacing: .14em; color: var(--ink-strong); transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.code-input::placeholder { color: #c3c2d3; letter-spacing: .14em; }
.code-input:hover { border-color: #b9b4ea; }
.code-input:focus { border-color: var(--violet); outline: 0; box-shadow: 0 0 0 4px #5850c71f; background: #fff; }
.code-input.is-error { border-color: #d48f9b; box-shadow: 0 0 0 4px #b23a4814; }
.redeem-row .btn.primary { min-width: 120px; height: 56px; border-radius: 14px; font-size: 16px; }
.redeem-result { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; font-size: 15px; animation: rise .25s ease both; }
.redeem-result.ok { background: var(--green-50); color: var(--green-ink); }
.redeem-result.err { background: var(--red-50); color: var(--red-ink); }
.redeem-result .badge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; animation: pop .4s ease both; }
.redeem-result .badge svg.i { width: 16px; height: 16px; stroke-width: 2.6; }
.ledger { list-style: none; margin: 0; padding: 0 12px 6px; }
.ledger li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 160px 150px; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; transition: background .14s ease; animation: rise .3s ease both; }
.ledger li + li { box-shadow: 0 -1px 0 var(--line-soft); }
.ledger li:hover { background: #faf9ff; box-shadow: none; }
.ledger li:hover + li { box-shadow: none; }
.ledger .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--violet-100); color: var(--violet); }
.ledger .ico.in { background: var(--green-50); color: var(--green); }
.ledger .ico.coral { background: var(--coral-50); color: var(--coral); }
.ledger .what b { display: block; font-size: 15.5px; font-weight: 650; color: var(--ink-strong); }
.ledger .what small { display: block; font-size: 13.5px; color: var(--faint); }
.ledger .amt { text-align: right; font-size: 18px; font-weight: 700; color: var(--ink-strong); }
.ledger .amt.plus { color: var(--green-ink); }
.ledger .amt.zero { color: var(--faint); font-weight: 600; }

/* ---------- 我的项目 ---------- */
.storage { padding: 24px 28px; }
.storage .label { font-size: 15px; font-weight: 600; color: var(--muted); }
.storage .big { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 14px; }
.storage .big b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--ink-strong); }
.storage .big span { font-size: 16px; color: var(--muted); font-weight: 600; }
.storage .big .chip { margin-left: 8px; align-self: center; }
.meter { display: flex; height: 12px; border-radius: 999px; background: #eeedf6; overflow: hidden; box-shadow: inset 0 1px 2px #2f2a5e14; }
.meter i { display: block; height: 100%; width: 0; transition: width .6s ease; }
.meter i + i { box-shadow: -2px 0 0 #fff; }
.c0 { background: linear-gradient(90deg, #ef9d88, #e0806a); }
.c1 { background: linear-gradient(90deg, #8a82ec, #5850c7); }
.c2 { background: linear-gradient(90deg, #cfcaf8, #b0a8ee); }
.c3 { background: linear-gradient(90deg, #f6c3b5, #eaa18d); }
.c4 { background: linear-gradient(90deg, #6d63c9, #3d3590); }
.legend { display: flex; gap: 18px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.plist { list-style: none; margin: 0; padding: 0 12px 8px; }
.plist li { display: grid; grid-template-columns: 42px minmax(0, 1fr) 110px 96px; align-items: center; gap: 16px; padding: 14px; border-radius: 12px; transition: background .14s ease; animation: rise .3s ease both; }
.plist li + li { box-shadow: 0 -1px 0 var(--line-soft); }
.plist li:hover { background: #faf9ff; box-shadow: none; }
.plist li:hover + li { box-shadow: none; }
.plist .title b { display: block; font-size: 15.5px; font-weight: 650; color: var(--ink-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist .title small { display: block; font-size: 13.5px; color: var(--faint); }
.plist .total { text-align: right; font-size: 16px; font-weight: 700; color: var(--ink-strong); }
.plist .del { justify-self: end; opacity: .55; transition: opacity .16s ease; }
.plist li:hover .del { opacity: 1; }
.part-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.part-list label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 15px; cursor: pointer; transition: border-color .14s ease, background .14s ease; }
.part-list label:hover { border-color: var(--violet-200); }
.part-list label:has(input:checked) { border-color: #d99aa6; background: #fff8f9; }
.part-list input { width: 17px; height: 17px; accent-color: var(--red); }
.part-list span.size { margin-left: auto; color: var(--muted); font-weight: 600; }

/* ---------- 对话框 ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: #30274466; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.dialog { width: min(480px, 100%); padding: 26px 28px 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 24px 64px #2f2a5e33; animation: rise .22s ease both; }
.dialog.wide { width: min(560px, 100%); }
.dialog .d-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; background: var(--red-50); color: var(--red); }
.dialog .d-ico.violet { background: var(--violet-100); color: var(--violet); }
.dialog h3 { font-size: 20px; font-weight: 700; color: var(--ink-strong); margin-bottom: 8px; overflow-wrap: anywhere; }
.dialog p { font-size: 15px; color: #45435f; line-height: 1.75; }
.dialog .actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 22px; }
.dialog .actions .left { margin-right: auto; font-size: 14px; }
.dialog form { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.dialog .err { margin-top: 14px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick button { min-height: 34px; padding: 4px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; color: #45435f; transition: border-color .14s ease, background .14s ease, color .14s ease; }
.quick button:hover { border-color: var(--violet-200); color: var(--violet-ink); }
.quick button[aria-pressed="true"] { border-color: var(--violet); background: var(--violet-50); color: var(--violet-ink); box-shadow: 0 0 0 3px #5850c714; }
.once { margin: 14px 0 0; padding: 16px 18px; border: 1px solid #ecd3a3; border-radius: 14px; background: linear-gradient(180deg, #fffaf0, #fff); }
.once-head { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--amber-ink); }
.once-head svg.i { color: var(--amber); }
.once ol { max-height: 300px; overflow: auto; margin: 12px 0 14px; padding: 0 0 0 34px; font-family: "Cascadia Mono", Consolas, monospace; font-size: 17px; font-weight: 600; letter-spacing: .08em; color: var(--ink-strong); line-height: 1.95; }
.once ol li::marker { color: var(--faint); font-size: 13px; }
.once .row { display: flex; gap: 8px; }
.once .pw { margin: 12px 0 14px; font-family: "Cascadia Mono", Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: .06em; color: var(--ink-strong); }

/* ---------- 登录注册（左边会动，右边表单） ---------- */
.auth-b { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 11fr) minmax(480px, 9fr); background: #fff; }
.hero2 { --mx: 30%; --my: 40%; position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 30px 56px 28px; color: #f4f2ff; background: linear-gradient(160deg, #1f1a4f 0%, #19153e 55%, #241a43 100%); }
.hero2::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#ffffff0c 1px, transparent 1px), linear-gradient(90deg, #ffffff0c 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(900px 600px at 40% 30%, #000, transparent 75%); mask-image: radial-gradient(900px 600px at 40% 30%, #000, transparent 75%); }
.hero2::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 320px at var(--mx) var(--my), #ffffff10, transparent 70%); }
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.aurora.a1 { left: -140px; top: -160px; width: 560px; height: 440px; background: #5d53d6; opacity: .55; animation: drift1 18s ease-in-out infinite alternate; }
.aurora.a2 { right: -160px; bottom: -150px; width: 520px; height: 400px; background: #e0806a; opacity: .32; animation: drift2 22s ease-in-out infinite alternate; }
.aurora.a3 { left: 46%; top: 38%; width: 320px; height: 300px; background: #8f55b0; opacity: .22; animation: drift1 26s ease-in-out infinite alternate-reverse; }
.hero2 > *:not(.aurora) { position: relative; z-index: 2; }
.hero2-top { display: flex; align-items: center; justify-content: space-between; }
.hero2 .brand b { color: #fff; }
.hero2 .brand small { color: #c9c4f2; }
.beta-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid #ffffff26; background: #ffffff12; color: #e7e4ff; font-size: 13px; font-weight: 600; }
.beta-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.hero2-copy { margin-top: 100px; }
.hero2-copy h2 { font-size: 46px; font-weight: 800; line-height: 1.22; letter-spacing: -.02em; color: #fff; }
.hero2-copy h2 em { font-style: normal; background: linear-gradient(90deg, #c9c3ff, #f6b7a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stage { flex: 1; margin-top: 44px; perspective: 1400px; }
.stage-in { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 7deg)) rotateY(var(--ry, -9deg)); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.tile { --r: 0deg; --s: 1; position: absolute; width: 250px; overflow: hidden; border-radius: 18px; background: #fffffff0; box-shadow: 0 30px 60px #0b08264d, 0 0 0 1px #ffffff26; transform: rotate(var(--r)) scale(var(--s)); transition: transform .7s cubic-bezier(.2, .8, .2, 1), box-shadow .7s ease, filter .7s ease; animation: bob 7s ease-in-out infinite; filter: saturate(.9) brightness(.94); }
.tile .art { height: 124px; }
.tile .cap { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14.5px; font-weight: 700; color: var(--ink-strong); }
.tile .cap .t-ico { width: 30px; height: 30px; border-radius: 9px; }
.tile .cap .t-ico svg.i { width: 16px; height: 16px; }
.tile .cap .chip { margin-left: auto; min-height: 22px; font-size: 12px; }
.tile.on { --s: 1.07; z-index: 5; filter: none; box-shadow: 0 34px 70px #0b08265c, 0 0 0 2px #a49ded, 0 0 46px #7b72e870; }
.tile.more { display: grid; place-items: center; width: 210px; height: 112px; border: 1.5px dashed #ffffff40; background: #ffffff0d; box-shadow: none; color: #d6d2f5; font-size: 14px; text-align: center; filter: none; }
.tile.more b { display: block; color: #fff; font-size: 15px; }
.hero2-foot { display: flex; align-items: center; justify-content: flex-end; margin-top: 12px; }
.pager { display: flex; gap: 6px; }
.pager i { width: 18px; height: 3px; border-radius: 3px; background: #ffffff2e; transition: width .5s ease, background .5s ease; }
.pager i.on { width: 32px; background: linear-gradient(90deg, #a49ded, #f3a08b); }
.auth-side2 { position: relative; overflow: hidden; display: grid; place-items: center; padding: 32px; background: #fff; }
.auth-side2::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#5850c70a 1px, transparent 1px), linear-gradient(90deg, #5850c70a 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(520px 380px at 100% 0%, #000, transparent 75%); mask-image: radial-gradient(520px 380px at 100% 0%, #000, transparent 75%); }
.auth-side2 .glow { position: absolute; right: -120px; top: -120px; width: 380px; height: 320px; border-radius: 50%; background: #fbd9cf; filter: blur(70px); opacity: .7; animation: drift2 20s ease-in-out infinite alternate; pointer-events: none; }
.auth-form2 { position: relative; z-index: 1; width: min(400px, 100%); animation: rise .45s ease both; }
.auth-form2 .hi { font-size: 13px; color: var(--violet); }
.auth-form2 h1 { margin: 6px 0 28px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--ink-strong); }
.auth-fields { display: flex; flex-direction: column; gap: 18px; }
.auth-alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); text-align: center; font-size: 15px; color: var(--muted); }
.auth-alt a, .auth-alt button { padding: 0; border: 0; background: transparent; color: var(--violet-ink); font-weight: 700; font-size: 15px; }
.auth-alt button:hover { text-decoration: underline; text-underline-offset: 4px; }
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.code-boxes input { width: 100%; height: 58px; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: #fcfcff; text-align: center; font-size: 24px; font-weight: 700; color: var(--ink-strong); transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease; }
.code-boxes input.filled { border-color: #b9b4ea; background: #fff; }
.code-boxes input:focus { border-color: var(--violet); outline: 0; box-shadow: 0 0 0 4px #5850c71f; transform: translateY(-1px); }
.sent-to { display: flex; gap: 12px; align-items: center; margin: 0 0 22px; padding: 12px 14px; border-radius: 12px; background: var(--violet-50); font-size: 14.5px; color: #45435f; overflow-wrap: anywhere; }
.sent-to svg.i { color: var(--violet); }
.sent-to b { color: var(--ink-strong); }
.resend { display: flex; justify-content: flex-end; }
.resend button { padding: 0; border: 0; background: transparent; color: var(--violet-ink); font-size: 14px; font-weight: 600; }
.resend button:disabled { color: var(--faint); opacity: 1; cursor: default; }
.stepper-dots { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; }
.stepper-dots i { width: 22px; height: 4px; border-radius: 4px; background: #e3e2ee; }
.stepper-dots i.on { background: linear-gradient(90deg, #7b72e8, #5850c7); }

/* ---------- 账号与密码 ---------- */
.account-card { padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.account-card h3 { font-size: 18px; font-weight: 700; color: var(--ink-strong); }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-row .who { display: flex; align-items: center; gap: 14px; }
.account-row .who .avatar { width: 48px; height: 48px; font-size: 19px; }
.account-row .who b { font-size: 17px; color: var(--ink-strong); }

/* ---------- 后台 ---------- */
.tab { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 18px 20px; }
.kpi .label { font-size: 14px; font-weight: 600; color: var(--muted); }
.kpi b { display: block; margin-top: 4px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--ink-strong); }
.admin-split { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 20px; align-items: start; }
.search { position: relative; }
.search svg.i { position: absolute; left: 12px; top: 10px; color: var(--faint); width: 18px; height: 18px; }
.search .input { height: 40px; padding-left: 38px; font-size: 15px; border-radius: 11px; width: 280px; }
.table-wrap { overflow-x: auto; padding: 0 12px 8px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.table th { padding: 10px 14px; text-align: left; font-size: 13px; font-weight: 600; color: var(--faint); border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td.r, .table th.r { text-align: right; }
.table td.note { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.table tbody tr { transition: background .14s ease; }
.table.pick tbody tr { cursor: pointer; }
.table tbody tr:hover { background: #faf9ff; }
.table tbody tr.sel { background: linear-gradient(90deg, #f4f2fd, #faf9ff); box-shadow: inset 3px 0 0 var(--violet); }
.table tbody tr.dim td { color: var(--faint); }
.table .email { font-weight: 600; color: var(--ink-strong); }
.table .email .tag { margin-left: 6px; }
.detail { position: sticky; top: 88px; }
.detail-top { padding: 22px 24px 18px; border-bottom: 1px solid var(--line-soft); background: radial-gradient(360px 180px at 100% 0%, #fde7df99 0%, #fde7df00 70%); border-radius: 18px 18px 0 0; }
.detail-top .who { display: flex; align-items: center; gap: 12px; }
.detail-top .who .avatar { width: 44px; height: 44px; font-size: 18px; }
.detail-top .who b { display: block; font-size: 17px; color: var(--ink-strong); overflow-wrap: anywhere; }
.detail-bal { display: flex; gap: 28px; margin-top: 16px; }
.detail-bal div small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.detail-bal div b { font-size: 26px; font-weight: 800; color: var(--ink-strong); letter-spacing: -.02em; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 24px; border-bottom: 1px solid var(--line-soft); }
.detail-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.detail-row .k { color: var(--muted); font-weight: 600; font-size: 14px; }
.detail-row .v { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-strong); }
.detail-row .v .input { width: 110px; height: 36px; padding: 6px 10px; font-size: 15px; border-radius: 10px; }
.mini-ledger { list-style: none; margin: 0; padding: 8px 24px 14px; }
.mini-ledger li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--line-soft); }
.mini-ledger li:last-child { border-bottom: 0; }
.mini-ledger li span { color: #45435f; }
.mini-ledger li small { color: var(--faint); margin-left: 8px; }
.mini-ledger li b { font-variant-numeric: tabular-nums; }
.mini-ledger li b.plus { color: var(--green-ink); }
.sec-title { padding: 14px 24px 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.codes-split { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 20px; align-items: start; }
.gen-form { display: flex; flex-direction: column; gap: 16px; padding: 4px 26px 24px; }
.gen-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.money-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 26px 18px; }
.money-strip div { padding: 12px 14px; border-radius: 12px; background: #faf9ff; border: 1px solid var(--line-soft); }
.money-strip small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.money-strip b { font-size: 20px; font-weight: 800; color: var(--ink-strong); }
.money-strip b small { display: inline; font-size: 13px; color: var(--faint); font-weight: 500; margin-left: 4px; }
.filters { display: flex; gap: 10px; align-items: center; padding: 0 26px 12px; flex-wrap: wrap; }
.status-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.modes { list-style: none; margin: 0; padding: 0 14px 10px; }
.modes li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 12px; }
.modes li + li { box-shadow: 0 -1px 0 var(--line-soft); }
.modes .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--violet-100); color: var(--violet); }
.modes .ico.coral { background: var(--coral-50); color: var(--coral); }
.modes .ico.gray { background: #f0f0f6; color: #8d8ca4; }
.modes b { display: block; font-size: 15.5px; color: var(--ink-strong); }
.gauges { display: flex; flex-direction: column; }
.gauge-wrap { display: flex; align-items: center; gap: 30px; padding: 6px 28px 24px; }
.gauge { position: relative; width: 168px; height: 168px; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .bg { stroke: #eeedf6; }
.gauge .fg { stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.gauge .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge .center b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: var(--ink-strong); line-height: 1; }
.gauge .center small { font-size: 14px; color: var(--muted); font-weight: 600; }
.gauge-facts { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.gauge-facts div { display: flex; align-items: center; gap: 10px; }
.gauge-facts i { width: 10px; height: 10px; border-radius: 3px; }
.gauge-facts i.run { background: var(--violet); }
.gauge-facts i.wait { background: var(--coral); }
.gauge-facts b { font-size: 20px; color: var(--ink-strong); margin-left: 4px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green-ink); font-weight: 600; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.6s ease-in-out infinite; }
.late { list-style: none; margin: 0; padding: 0 0 8px; }
.late li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 26px; border-top: 1px solid var(--line-soft); font-size: 14.5px; }
.late b { color: var(--ink-strong); }
.late small { display: block; color: var(--faint); font-size: 13px; }

@media (max-width: 1400px) { .admin-split, .codes-split, .status-grid { grid-template-columns: minmax(0, 1fr); } .detail { position: static; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
