*, *::before, *::after { box-sizing: border-box; }

/* 必须在最前：类选择器上的 display 会盖掉 UA 的 [hidden]{display:none} */
[hidden] { display: none !important; }

:root {
  --bg: #07080f;
  --panel: rgba(255,255,255,.035);
  --panel-solid: #10121d;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --text: #edeff7;
  --muted: #8d95b0;
  --dim: #666e88;
  --accent: #7c5cff;
  --accent-soft: #b3a3ff;
  --cyan: #35e0f0;
  --danger: #ff7a7a;
  --radius: 18px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, monospace;
}

html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-booting { overflow: hidden; }
body.no-scroll { overflow: hidden; }

/* ══════════ 入场动画 ══════════ */
.boot {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #05060c;
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1), visibility .7s;
}
.boot.done { opacity: 0; visibility: hidden; transform: scale(1.06); pointer-events: none; }

.boot-grid {
  position: absolute; inset: -50%;
  background-image: linear-gradient(rgba(124,92,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(124,92,255,.16) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 62%);
  animation: gridDrift 14s linear infinite;
}
@keyframes gridDrift { to { transform: translate3d(48px, 48px, 0); } }

.boot-core { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid transparent; }
.orbit-1 {
  inset: 0; border-top-color: var(--accent); border-right-color: rgba(124,92,255,.25);
  animation: spin 1.5s cubic-bezier(.55,.15,.45,.85) infinite;
}
.orbit-2 {
  inset: 17px; border-bottom-color: var(--cyan); border-left-color: rgba(53,224,240,.2);
  animation: spin 2.1s cubic-bezier(.55,.15,.45,.85) infinite reverse;
}
.orbit-3 {
  inset: 34px; border-top-color: rgba(255,255,255,.5); border-left-color: rgba(255,255,255,.12);
  animation: spin 2.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.core-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff, var(--accent) 55%, #4a32c9);
  box-shadow: 0 0 28px 6px rgba(124,92,255,.65);
  animation: corePulse 1.6s ease-in-out infinite;
}
@keyframes corePulse { 0%,100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.35); opacity: 1; } }

.boot-kicker {
  margin-top: 38px; font-family: var(--mono);
  font-size: clamp(9px, 1.9vw, 11.5px); letter-spacing: .5em; text-indent: .5em;
  color: rgba(179,163,255,.6); opacity: 0;
  animation: fadeUp .6s ease forwards .12s;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.boot-title {
  position: relative; display: flex; gap: clamp(2px, 1.1vw, 9px); margin-top: 13px;
  font-size: clamp(31px, 8.6vw, 62px); font-weight: 900; letter-spacing: .03em;
}
.boot-title span {
  display: inline-block; color: #fff; opacity: 0;
  filter: blur(15px); transform: translateY(18px) scale(.93);
  animation: letterIn .7s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--i) * .062s + .3s);
  text-shadow: 0 0 30px rgba(124,92,255,.8), 0 0 70px rgba(53,224,240,.3);
}
@keyframes letterIn { to { opacity: 1; filter: blur(0); transform: none; } }

/* 字母落定后扫过的高光 */
.boot-sheen {
  position: absolute; inset: -14% -6%; pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgba(53,224,240,.85) 50%, transparent 62%);
  mix-blend-mode: overlay; opacity: 0; transform: translateX(-120%);
  animation: sheenSweep 1.1s cubic-bezier(.4,0,.2,1) forwards .95s;
}
@keyframes sheenSweep { 0% { opacity: 0; transform: translateX(-120%); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateX(120%); } }

.boot-bar {
  position: relative; width: min(230px, 52vw); height: 2px; margin-top: 32px;
  background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden;
}
.boot-bar i {
  position: absolute; inset: 0 100% 0 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  box-shadow: 0 0 14px rgba(124,92,255,.9);
  animation: barFill 1.5s cubic-bezier(.5,.05,.2,1) forwards .15s;
}
@keyframes barFill { 0% { right: 100%; } 60% { right: 22%; } 100% { right: 0; } }

.boot-status {
  margin-top: 14px; font-size: 11.5px; letter-spacing: .1em; color: var(--dim);
  font-family: var(--mono); opacity: 0; animation: fadeUp .6s ease forwards .95s;
}

/* ══════════ 背景 ══════════ */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.orb-a { top: -180px; left: 6%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(124,92,255,.55), transparent 68%); animation: float1 18s ease-in-out infinite; }
.orb-b { top: -120px; right: 2%; width: 440px; height: 440px; background: radial-gradient(circle, rgba(53,224,240,.32), transparent 68%); animation: float2 22s ease-in-out infinite; }
.orb-c { top: 42%; left: 42%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(255,86,180,.16), transparent 70%); animation: float1 26s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px, 50px) scale(1.12); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-70px, 40px) scale(1.1); } }
.bg-noise {
  position: absolute; inset: 0; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ── 进场揭示 ── */
.reveal { opacity: 0; transform: translateY(22px); }
body.booted .reveal { animation: revealUp .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

/* ══════════ 顶栏 ══════════ */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px clamp(16px, 4vw, 34px);
  background: rgba(7,8,15,.6);
  backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand-mark {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #4a32c9);
  box-shadow: 0 0 18px -2px rgba(124,92,255,.85);
}
.brand-mark i { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }
.brand-name { font-weight: 800; letter-spacing: .16em; font-size: 13px; }
.brand-sub { color: var(--muted); font-size: 12px; padding-left: 11px; border-left: 1px solid var(--border); }

.top-right { display: flex; align-items: center; gap: 12px; }
.skill-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border-color: rgba(124,92,255,.38); background: rgba(124,92,255,.12); color: #d3c9ff;
}
.skill-btn:hover:not(:disabled) { background: rgba(124,92,255,.22); border-color: rgba(124,92,255,.6); }
.skill-btn.copied { background: rgba(74,222,128,.16); border-color: rgba(74,222,128,.5); color: #b7f3cd; }
.skill-btn .ico { margin: 0; font-size: 13px; opacity: .9; }
.skill-label-min { display: none; }

.user-slot { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.user-slot .u-name { color: var(--text); font-weight: 500; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-slot img { width: 27px; height: 27px; border-radius: 50%; object-fit: cover; background: var(--panel-solid); border: 1px solid var(--border-strong); }
.user-slot .logout { color: var(--dim); text-decoration: none; font-size: 12.5px; padding-left: 10px; border-left: 1px solid var(--border); }
.user-slot .logout:hover { color: var(--text); }

/* ══════════ 布局 ══════════ */
.wrap { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px) 80px; }

.hero { padding: clamp(50px, 9vw, 92px) 0 clamp(34px, 5vw, 52px); text-align: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px 6px 12px; border-radius: 999px;
  background: rgba(124,92,255,.12); border: 1px solid rgba(124,92,255,.32);
  color: #cfc4ff; font-size: 12px; font-weight: 600; letter-spacing: .03em;
  backdrop-filter: blur(6px);
}
.badge.closed { background: rgba(255,255,255,.05); border-color: var(--border-strong); color: var(--muted); }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(74,222,128,.6); animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
.badge.closed .pulse { background: var(--dim); }
.badge.closed .pulse::after { display: none; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 80%,100% { transform: scale(1.9); opacity: 0; } }

h1 { margin: 22px 0 16px; font-size: clamp(34px, 7vw, 66px); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; }
.h1-line { display: block; }
.h1-line.grad {
  background: linear-gradient(100deg, #fff 5%, #b3a3ff 45%, #35e0f0 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 0 auto; max-width: 600px; color: var(--muted); font-size: clamp(14px, 2.3vw, 16px); }
.lede b { color: var(--text); font-weight: 600; }

.countdown { display: flex; align-items: stretch; justify-content: center; gap: 10px; margin: clamp(26px, 4vw, 40px) 0 30px; }
.cd-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 84px; padding: 14px 10px 11px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border); border-radius: 15px;
  backdrop-filter: blur(10px); overflow: hidden;
}
.cd-item::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(124,92,255,.75), transparent); }
.cd-num { font-family: var(--mono); font-size: clamp(23px, 4.4vw, 31px); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cd-label { font-size: 9.5px; letter-spacing: .22em; color: var(--dim); font-family: var(--mono); }
.countdown.over .cd-num { color: var(--dim); }

.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hint { font-size: 12.5px; color: var(--dim); }

/* ══════════ 按钮 ══════════ */
.btn {
  position: relative; appearance: none; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  padding: 11px 22px; border-radius: 12px; background: transparent;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
  overflow: hidden; white-space: nowrap;
}
.btn.lg { padding: 14px 34px; font-size: 15px; border-radius: 14px; }
.btn.sm { padding: 8px 15px; font-size: 13px; border-radius: 10px; }
.btn.primary {
  background: linear-gradient(135deg, #8a6bff, #5b40e0);
  color: #fff; box-shadow: 0 10px 30px -12px rgba(124,92,255,.95), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(124,92,255,1), inset 0 1px 0 rgba(255,255,255,.28); }
.btn.primary:active:not(:disabled) { transform: translateY(0); }
.btn-glow { position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent); transform: skewX(-18deg); }
.btn.primary:hover .btn-glow { animation: sheen .8s ease; }
@keyframes sheen { to { left: 130%; } }
.btn.ghost { background: rgba(255,255,255,.045); border-color: var(--border); }
.btn.ghost:hover:not(:disabled) { background: rgba(255,255,255,.09); border-color: var(--border-strong); transform: translateY(-1px); }
.btn.ghost.danger { color: var(--danger); border-color: rgba(255,122,122,.28); }
.btn.ghost.danger:hover { background: rgba(255,122,122,.12); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.block { display: block; width: 100%; text-align: center; text-decoration: none; }
.btn .ico { font-size: 12px; opacity: .8; margin-right: 3px; }

.icon-btn { background: none; border: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 6px 9px; border-radius: 9px; line-height: 1; }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.07); }

/* ══════════ 列表 ══════════ */
.list-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0 18px; margin-top: 8px; border-top: 1px solid var(--border);
}
.list-count { font-size: 13px; color: var(--muted); }
.list-count b { color: var(--text); font-size: 17px; font-weight: 700; margin-right: 3px; font-family: var(--mono); }
.dot-sep { opacity: .4; margin: 0 6px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }

.card {
  position: relative; display: flex; flex-direction: column; padding: 20px;
  background: linear-gradient(165deg, rgba(255,255,255,.062), rgba(255,255,255,.022));
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .22s ease, box-shadow .22s ease;
  opacity: 0; animation: cardIn .5s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .22s ease; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124,92,255,.16), transparent 62%);
}
.card:hover { transform: translateY(-4px); border-color: rgba(124,92,255,.42); box-shadow: 0 26px 52px -30px rgba(0,0,0,1), 0 0 0 1px rgba(124,92,255,.1); }
.card:hover::before { opacity: 1; }

.card-top { display: flex; gap: 15px; align-items: flex-start; }
.card-logo {
  width: 56px; height: 56px; flex: none; border-radius: 15px; object-fit: cover;
  background: #171a28; border: 1px solid var(--border-strong);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.9);
}
.card-head { min-width: 0; flex: 1; }
.card-title {
  margin: 1px 0 7px; font-size: 16.5px; font-weight: 700; line-height: 1.38; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-host {
  display: inline-block; max-width: 100%; padding: 2px 9px; border-radius: 7px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-summary {
  margin: 15px 0 0; color: #b9bfd2; font-size: 13.5px; line-height: 1.62;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  white-space: pre-wrap; word-break: break-word;
}
.card-foot {
  display: flex; align-items: center; gap: 9px; margin-top: auto;
  padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted); height: 53px;
}
.card-foot .date { font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: .03em; }
.card-acts { margin-left: auto; display: inline-flex; align-items: center; gap: 15px; }
.card-acts .detail {
  padding: 0; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 500; color: var(--muted); transition: color .16s ease;
}
.card-acts .detail:hover { color: #fff; }
.card-acts .open {
  color: var(--accent-soft); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px; transition: gap .18s ease, color .16s ease;
}
.card-acts .open:hover { color: #fff; }
.card:hover .card-acts .open { gap: 7px; }
.mine-tag { padding: 2px 9px; border-radius: 999px; background: rgba(124,92,255,.18); color: #cfc4ff; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.card-edit {
  padding: 3px 11px; border-radius: 8px; background: rgba(255,255,255,.06);
  border: 1px solid var(--border); color: var(--muted);
  font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: .16s ease;
}
.card-edit:hover { background: rgba(124,92,255,.28); border-color: rgba(124,92,255,.55); color: #fff; }

/* 详情弹窗 */
.detail-head { align-items: center; gap: 14px; padding-bottom: 16px; }
.detail-logo { width: 58px; height: 58px; flex: none; border-radius: 15px; object-fit: cover; background: #171a28; border: 1px solid var(--border-strong); }
.detail-headtext { flex: 1; min-width: 0; }
.detail-headtext h2 { margin: 0 0 7px; font-size: 18px; line-height: 1.35; word-break: break-word; }
.detail-summary {
  margin: 0; font-size: 14.5px; line-height: 1.75; color: #c3c9dc;
  white-space: pre-wrap; word-break: break-word;
}

.empty { text-align: center; padding: 70px 20px 40px; }
.empty-ring {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  background: rgba(124,92,255,.08); border: 1px dashed rgba(124,92,255,.35); font-size: 30px;
}
.empty-title { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.empty-sub { margin: 0; color: var(--muted); font-size: 13.5px; }

.foot {
  position: relative; z-index: 1; text-align: center; padding: 26px 20px 44px;
  font-size: 12px; color: var(--dim); border-top: 1px solid var(--border);
}

/* ══════════ 登录门 ══════════ */
.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(7,8,15,.86); backdrop-filter: blur(14px); animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.gate-card {
  width: 100%; max-width: 390px; text-align: center; padding: 38px 30px 32px;
  background: linear-gradient(170deg, rgba(255,255,255,.08), rgba(255,255,255,.03)), #0c0e18;
  border: 1px solid var(--border-strong); border-radius: 22px;
  box-shadow: 0 40px 90px -40px #000;
  animation: gateIn .5s cubic-bezier(.2,.8,.2,1);
}
@keyframes gateIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.gate-mark {
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #4a32c9); box-shadow: 0 0 34px -4px rgba(124,92,255,.9);
}
.gate-mark i { width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; }
.gate-card h2 { margin: 0 0 10px; font-size: 19px; letter-spacing: -.01em; }
.gate-card p { margin: 0 0 24px; color: var(--muted); font-size: 13.5px; }
.gate-alt {
  display: block; width: 100%; margin-top: 14px; padding: 9px; border: none; border-radius: 10px;
  background: none; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; transition: .16s ease;
}
.gate-alt:hover { color: #d3c9ff; background: rgba(124,92,255,.1); }

/* ══════════ 弹窗 ══════════ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-mask { position: absolute; inset: 0; background: rgba(3,4,9,.78); backdrop-filter: blur(8px); animation: fadeIn .28s ease; }
.modal-card {
  position: relative; width: 100%; max-width: 540px; max-height: 88vh; display: flex; flex-direction: column;
  background: linear-gradient(170deg, rgba(255,255,255,.07), rgba(255,255,255,.025)), #0c0e18;
  border: 1px solid var(--border-strong); border-radius: 22px;
  box-shadow: 0 50px 100px -40px #000; overflow: hidden;
  animation: gateIn .38s cubic-bezier(.2,.8,.2,1);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 24px 14px; }
.modal-head h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.modal-desc { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); }
.modal-body { padding: 6px 24px 22px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); background: rgba(0,0,0,.22); }
.modal-foot .spacer { flex: 1; }

.field { display: block; margin-bottom: 19px; }
.label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.label i { font-style: normal; font-size: 10.5px; font-weight: 600; color: #ff9a9a; background: rgba(255,122,122,.12); padding: 1px 6px; border-radius: 5px; }
.counter { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--dim); font-family: var(--mono); }
.counter.over { color: var(--danger); }

input[type=text], input[type=url], textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 14px; color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 12px;
  outline: none; transition: .16s ease; resize: vertical;
}
input::placeholder, textarea::placeholder { color: rgba(141,149,176,.55); }
input:focus, textarea:focus { border-color: rgba(124,92,255,.65); background: rgba(124,92,255,.06); box-shadow: 0 0 0 3px rgba(124,92,255,.13); }

.logo-row { display: flex; align-items: center; gap: 16px; }
.logo-picker {
  position: relative; width: 96px; height: 96px; flex: none; border-radius: 20px; cursor: pointer;
  border: 1px dashed var(--border-strong); background: rgba(255,255,255,.03);
  display: grid; place-items: center; overflow: hidden; transition: .16s ease; outline: none;
}
.logo-picker:hover, .logo-picker:focus-visible { border-color: rgba(124,92,255,.7); background: rgba(124,92,255,.09); }
.logo-picker img { width: 100%; height: 100%; object-fit: cover; }
.logo-placeholder { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); }
.logo-placeholder .plus { font-size: 21px; line-height: 1; }
.logo-placeholder .tip { font-size: 11.5px; }
.logo-tip { font-size: 12.5px; color: var(--muted); }
.logo-tip p { margin: 0 0 4px; }
.logo-tip .dim { color: var(--dim); font-size: 11.5px; }

.form-error { margin: 4px 0 0; padding: 11px 13px; border-radius: 11px; background: rgba(255,122,122,.1); border: 1px solid rgba(255,122,122,.28); color: #ffb8b8; font-size: 13px; }

/* ══════════ toast ══════════ */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 0); z-index: 120;
  padding: 12px 22px; border-radius: 13px; font-size: 13.5px; font-weight: 500;
  background: rgba(24,27,42,.96); border: 1px solid var(--border-strong);
  box-shadow: 0 20px 46px -20px #000; backdrop-filter: blur(10px);
  animation: toastIn .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast.err { background: rgba(58,31,38,.96); border-color: rgba(255,122,122,.4); color: #ffcaca; }
.toast.ok::before { content: "✓ "; color: #4ade80; font-weight: 700; }

/* ══════════ 骨架屏 ══════════ */
.skeleton { border-radius: var(--radius); height: 214px; border: 1px solid var(--border); background: rgba(255,255,255,.03); position: relative; overflow: hidden; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 680px) {
  .hero { padding: 42px 0 28px; }
  .countdown { gap: 7px; }
  .cd-item { min-width: 0; flex: 1; padding: 12px 4px 9px; border-radius: 13px; }
  .cd-label { font-size: 8.5px; letter-spacing: .14em; }
  .grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .card-edit { opacity: 1; transform: none; }
  .user-slot .u-name { display: none; }
  .user-slot .logout { padding-left: 0; border-left: none; }
  .top-right { gap: 8px; }
  .skill-btn { padding: 7px 11px; }
  .skill-label-full { display: none; }
  .skill-label-min { display: inline; }
  .logo-tip { display: none; }
  .modal-card { max-height: 92vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .card { opacity: 1; }
}
