:root {
  --primary: #0288d1;
  --primary-light: #039be5;
  --accent: #29b6f6;
  --bg: #e3f2fd;
  --bg-gradient: linear-gradient(135deg, #e3f2fd 0%, #f5f9fc 50%, #e1f5fe 100%);
  --text: #263238;
  --text-muted: #546e7a;
  --border: rgba(2, 136, 209, 0.2);
  --glass: rgba(255, 255, 255, 0.5);
  --glass-hover: rgba(255, 255, 255, 0.65);
  --shadow-sm: 0 4px 12px rgba(2, 136, 209, 0.15);
  --shadow-md: 0 8px 24px rgba(2, 136, 209, 0.2);
  --shadow-lg: 0 16px 48px rgba(2, 136, 209, 0.25);
  --success: #4caf50;
  --danger: #ef5350;
  --warning: #ffa726;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg-gradient); overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
input, textarea, select { width: 100%; color: var(--text); border: 1px solid var(--border); outline: 0; background: var(--glass); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; background: var(--bg-gradient); }
.orb { position: fixed; width: 400px; height: 400px; border-radius: 50%; filter: blur(120px); opacity: 0.3; pointer-events: none; animation: float 8s ease-in-out infinite alternate; }
.orb-one { right: -150px; top: -100px; background: linear-gradient(135deg, #0288d1, #039be5); }
.orb-two { left: 150px; bottom: -200px; background: linear-gradient(135deg, #29b6f6, #4fc3f7); animation-delay: -4s; }
.sidebar { position: sticky; top: 0; height: 100vh; z-index: 20; padding: 24px; display: flex; flex-direction: column; gap: 20px; border-right: 1px solid var(--border); background: var(--glass); backdrop-filter: blur(20px); }
.brand { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, rgba(2, 136, 209, 0.1), rgba(41, 182, 246, 0.1)); border: 1px solid var(--border); }
.brand-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; font-weight: 900; font-size: 18px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; box-shadow: var(--shadow-md); }
.brand strong { font-size: 16px; }
.brand span { font-size: 12px; color: var(--text-muted); }
.nav { display: grid; gap: 8px; }
.nav button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 16px; border-radius: 14px; color: var(--text-muted); background: transparent; transition: all 0.2s ease; font-weight: 500; }
.nav button:hover { background: var(--glass-hover); color: var(--text); transform: translateX(4px); }
.nav button.active { color: white; background: linear-gradient(135deg, var(--primary), var(--primary-light)); box-shadow: var(--shadow-md); }
.user-mini { margin-top: auto; padding: 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--border); }
.user-mini small { font-size: 12px; color: var(--text-muted); }
.user-mini strong { display: block; margin: 8px 0; font-size: 14px; }
.user-mini button { width: 100%; min-height: 36px; border-radius: 10px; background: var(--glass); border: 1px solid var(--border); color: var(--text); font-size: 13px; }
.user-mini button:hover { background: var(--glass-hover); }
.user-mini small { display: block; overflow-wrap: anywhere; font-size: 12px; color: var(--text-muted); }
.user-mini strong { display: block; margin: 8px 0; font-size: 14px; overflow-wrap: anywhere; }
.main { position: relative; z-index: 2; padding: 28px 32px; min-width: 0; }
.topbar { display: none; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 16px; z-index: 25; margin-bottom: 16px; padding: 12px 16px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(20px); border: 1px solid var(--border); }
.topbar strong { font-size: 15px; }
.topbar span { font-size: 12px; color: var(--text-muted); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--glass); border: 1px solid var(--border); color: var(--text); }
.notice { margin-bottom: 16px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 167, 38, 0.15), rgba(255, 107, 107, 0.15)); border: 1px solid var(--border); color: var(--text); font-size: 14px; }
.glass-card { position: relative; overflow: hidden; border-radius: 24px; padding: 28px; background: var(--glass); border: 1px solid var(--border); box-shadow: var(--shadow-sm); backdrop-filter: blur(20px); }
.glass-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 50%, rgba(255, 255, 255, 0.3)); opacity: 0.6; }
.glass-card > * { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) 400px; gap: 20px; }
.hero { min-height: 400px; display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.tag { display: inline-flex; align-items: center; width: fit-content; gap: 6px; padding: 8px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; box-shadow: var(--shadow-sm); }
h1 { margin: 20px 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.1; letter-spacing: -0.03em; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
h2 { margin: 0 0 12px; font-size: 24px; letter-spacing: -0.02em; }
h3 { margin: 0; }
p { color: var(--text-muted); line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 16px; color: white; font-weight: 700; transition: all 0.2s ease; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); box-shadow: var(--shadow-md); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn.ghost { background: var(--glass); border: 1px solid var(--border); color: var(--text); }
.btn.ghost:hover { background: var(--glass-hover); border-color: var(--primary); }
.btn.danger { background: rgba(255, 107, 107, 0.15); color: var(--danger); border: 1px solid rgba(255, 107, 107, 0.3); }
.btn.danger:hover { background: rgba(255, 107, 107, 0.25); }
.btn:active { transform: translateY(-1px); }
.btn.full { width: 100%; margin-top: 16px; }
.mini-btn { margin-left: 8px; padding: 5px 10px; border-radius: 999px; color: var(--danger); background: rgba(255,107,107,.15); border: 1px solid rgba(255,107,107,.3); font-size: 11px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.mini-btn:hover { background: rgba(255,107,107,.25); transform: translateY(-1px); }
.manage-box { margin-top: 16px; padding: 18px; border-radius: 22px; background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(14px); }
.check { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--text-muted); }
.check input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.check a { color: var(--primary); text-decoration: none; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--border); }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.metric { min-height: 140px; padding: 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--border); text-align: center; }
.metric strong { display: block; margin-top: 16px; font-size: 36px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.metric span { font-size: 13px; color: var(--text-muted); }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 160px 120px; gap: 12px; margin-bottom: 20px; }
.toolbar.rich { grid-template-columns: minmax(0, 1fr) 140px 160px 140px 100px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin-bottom: 8px; color: var(--text); font-size: 14px; font-weight: 600; }
.field input, .field textarea, .toolbar input, .toolbar select { min-height: 52px; padding: 0 16px; border-radius: 14px; transition: all 0.2s ease; }
.field textarea { min-height: 120px; padding-top: 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .toolbar input:focus, .toolbar select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(2, 136, 209, 0.15); background: var(--glass-hover); }
.field input::placeholder, .toolbar input::placeholder { color: var(--text-muted); }
.field select, .toolbar select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23636e72'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field select:focus, .toolbar select:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230288d1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); }
.field input[type="number"]::-webkit-inner-spin-button, .toolbar input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.field input[type="number"], .toolbar input[type="number"] { -moz-appearance: textfield; }
.field input[type="file"] { padding: 0 12px; cursor: pointer; }
.field input[type="file"]::file-selector-button { display: none; }
.check { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--text-muted); }
.check input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.link-btn { background: none; border: none; color: var(--primary); cursor: pointer; padding: 0; font-size: inherit; text-decoration: underline; }
.link-btn:hover { color: var(--primary-light); }
.code-btn { min-height: 52px; white-space: nowrap; font-size: 14px; padding: 0 22px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border: none; cursor: pointer; font-weight: 700; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); flex-shrink: 0; box-shadow: var(--shadow-md); }
.code-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.code-btn:active { transform: translateY(0); }
.create-page { max-width: 800px; margin: 0 auto; padding: 24px; }
.create-page h3 { margin: 24px 0 12px; font-size: 16px; color: var(--text); }
.game-picker, .time-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.duration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.duration-grid button { min-height: 56px; padding: 16px; border-radius: 16px; color: var(--text); background: var(--glass); border: 1px solid var(--border); transition: all 0.2s ease; font-weight: 600; font-size: 14px; }
.duration-grid button:hover { transform: translateY(-2px); border-color: var(--primary); background: var(--glass-hover); }
.duration-grid button.active { color: white; background: linear-gradient(135deg, var(--primary), var(--accent)); border-color: transparent; box-shadow: var(--shadow-md); }
.pick-card { min-height: 80px; padding: 16px; text-align: left; border-radius: 18px; color: var(--text); background: var(--glass); border: 1px solid var(--border); transition: all 0.2s ease; }
.pick-card strong, .pick-card small { display: block; }
.pick-card small { margin-top: 6px; color: var(--text-muted); font-size: 12px; }
.pick-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.pick-card.active { color: white; border-color: var(--primary); background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: var(--shadow-md); }
.pick-card.active small { color: rgba(255, 255, 255, 0.85); }
.date-scroll { margin-bottom: 16px; padding: 8px; border-radius: 18px; background: var(--glass); border: 1px solid var(--border); overflow-x: auto; }
.date-scroll::-webkit-scrollbar { height: 4px; }
.date-scroll::-webkit-scrollbar-track { background: transparent; }
.date-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }
.date-scroll-inner { display: flex; gap: 10px; padding: 4px; }
.date-scroll-inner button { flex-shrink: 0; min-width: 80px; min-height: 64px; padding: 10px 14px; border-radius: 16px; color: var(--text-muted); background: transparent; border: 1px solid transparent; transition: all 0.2s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.date-scroll-inner button:hover { background: var(--glass); }
.date-scroll-inner button span { font-size: 14px; font-weight: 700; }
.date-scroll-inner button small { font-size: 11px; color: var(--text-muted); }
.date-scroll-inner button.active { color: white; background: linear-gradient(135deg, var(--primary), var(--accent)); border-color: var(--primary); box-shadow: var(--shadow-sm); }
.date-scroll-inner button.active small { color: rgba(255, 255, 255, 0.85); }
.time-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; padding: 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--border); }
.time-grid button { min-height: 48px; border-radius: 14px; color: var(--text); background: var(--glass-hover); border: 1px solid var(--border); transition: all 0.2s ease; font-size: 14px; font-weight: 600; }
.time-grid button:hover { transform: translateY(-2px); border-color: var(--primary); background: var(--glass); }
.time-grid button.active { color: white; background: linear-gradient(135deg, var(--primary), var(--accent)); border-color: transparent; box-shadow: var(--shadow-md); }
.time-preview { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 16px; margin-bottom: 16px; background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 167, 38, 0.1)); border: 1px solid var(--border); }
.time-preview strong { color: var(--text); font-size: 14px; }
.time-preview .time-value { font-size: 18px; font-weight: 800; color: var(--primary); }
.empty { display: grid; place-items: center; min-height: 200px; padding: 32px; text-align: center; border-radius: 20px; color: var(--text-muted); background: var(--glass); border: 1px dashed var(--border); }
.empty::before { content: '📭'; display: block; font-size: 48px; margin-bottom: 16px; opacity: 0.6; }
.message { padding: 14px 18px; border-radius: 14px; margin-top: 14px; font-weight: 600; font-size: 14px; }
.message.success { background: rgba(78, 205, 196, 0.15); color: #2d9a93; border: 1px solid rgba(78, 205, 196, 0.3); }
.message.error { background: rgba(255, 107, 107, 0.15); color: var(--danger); border: 1px solid rgba(255, 107, 107, 0.3); }
.popup-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(45, 52, 54, 0.5); backdrop-filter: blur(8px); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.popup-box { max-width: 580px; max-height: 85vh; overflow-y: auto; padding: 28px; border-radius: 24px; background: var(--glass); border: 1px solid var(--border); box-shadow: var(--shadow-lg); backdrop-filter: blur(24px); }
.popup-content { display: flex; flex-direction: column; gap: 16px; }
.popup-header { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.popup-header h2 { margin: 0; font-size: 22px; }
.popup-date { font-size: 13px; color: var(--text-muted); }
.popup-body { display: flex; flex-direction: column; gap: 16px; max-height: 55vh; overflow-y: auto; padding-right: 8px; }
.popup-body .section { display: flex; flex-direction: column; gap: 8px; }
.popup-body h3 { margin: 0; font-size: 16px; color: var(--text); }
.popup-body p { margin: 0; line-height: 1.6; color: var(--text-muted); font-size: 14px; }
.popup-close { margin-top: 16px; min-height: 48px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; font-weight: 700; cursor: pointer; transition: all 0.2s ease; }
.popup-close:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tag { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: var(--shadow-sm); }
.countdown { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: rgba(255, 107, 107, 0.15); color: var(--primary); border: 1px solid rgba(255, 107, 107, 0.25); }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.team-card { min-height: 200px; padding: 20px; border-radius: 22px; background: var(--glass); border: 1px solid var(--border); cursor: pointer; transition: all 0.2s ease; }
.team-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.game-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-weight: 800; font-size: 18px; box-shadow: var(--shadow-sm); }
.team-title { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.team-title h3 { margin: 0; font-size: 16px; }
.team-title span { height: fit-content; white-space: nowrap; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; background: rgba(78, 205, 196, 0.15); color: #2d9a93; border: 1px solid rgba(78, 205, 196, 0.25); }
.team-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; color: var(--text-muted); font-size: 13px; }
.profile-grid, .detail-grid, .admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; }

/* ========== 独立全屏登录/注册页 · 海蓝拟态风 ========== */
.auth-screen {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #0b1a3b 0%, #0f2b5e 30%, #164a8a 60%, #1a6fb5 100%);
  overflow: hidden;
}
.auth-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-particles .particle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(100,200,255,0.2), rgba(100,200,255,0.02));
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0) rotate(0deg); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 0.8; }
  100% { transform: translateY(-15vh) scale(1.2) rotate(180deg); opacity: 0; }
}
.auth-container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 1fr;
  width: min(1160px, 94vw); min-height: min(700px, 88vh);
  border-radius: 32px; overflow: hidden;
  background: rgba(255,255,255,0.04);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(2px);
  animation: authCardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes authCardIn {
  from { opacity: 0; transform: translateY(50px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- 左侧品牌区 --- */
.auth-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 56px; position: relative; overflow: hidden;
  background: linear-gradient(170deg, #0d3b7a 0%, #1565c0 40%, #1e88e5 100%);
  color: white;
}
.auth-left::before {
  content: ''; position: absolute; top: -120px; right: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(100,200,255,0.18), transparent 70%);
  animation: orbDrift 10s ease-in-out infinite;
}
.auth-left::after {
  content: ''; position: absolute; bottom: -100px; left: -50px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(66,165,245,0.15), transparent 70%);
  animation: orbDrift 14s ease-in-out infinite reverse;
}
@keyframes orbDrift {
  0%,100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  33% { transform: translate(20px, -30px) scale(1.1); opacity: 0.8; }
  66% { transform: translate(-15px, 20px) scale(0.95); opacity: 0.6; }
}
.auth-left-content { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.auth-logo-box { margin-bottom: 40px; }
.auth-logo-icon {
  width: 76px; height: 76px;
  display: grid; place-items: center;
  border-radius: 24px; font-weight: 900; font-size: 26px; color: white;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.auth-title {
  margin: 0 0 14px; font-size: 36px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.2;
  background: linear-gradient(135deg, #fff, #b3e5fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-subtitle { margin: 0 0 48px; font-size: 16px; color: rgba(179,229,252,0.8); line-height: 1.7; }
.auth-feature-list { display: flex; flex-direction: column; gap: 16px; }
.auth-feature-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: 20px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}
.auth-feature-item:hover {
  background: rgba(255,255,255,0.15);
  transform: translateX(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.2);
}
.afi-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 16px; font-size: 22px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.auth-feature-item div { display: flex; flex-direction: column; }
.auth-feature-item strong { display: block; font-size: 15px; margin-bottom: 3px; color: white; }
.auth-feature-item div > span { font-size: 12px; color: rgba(179,229,252,0.7); }
.auth-left-footer { margin-top: auto; padding-top: 44px; font-size: 13px; color: rgba(179,229,252,0.35); letter-spacing: 0.03em; }

/* --- 右侧表单区 --- */
.auth-right {
  display: flex; align-items: center; justify-content: center;
  padding: 56px 52px;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 40%, #f8fbff 100%);
}
.auth-right-inner {
  width: 100%; max-width: 420px;
  animation: formSlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
@keyframes formSlideIn { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: translateX(0); } }
.auth-right-inner h2 {
  font-size: 30px; margin: 0 0 10px; letter-spacing: -0.02em; font-weight: 800;
  color: #0d3b7a;
}
.auth-right-inner > p { margin: 0 0 36px; font-size: 15px; color: #6b8299; line-height: 1.5; }
.auth-right-inner .field { margin-bottom: 24px; }
.auth-right-inner .field span {
  font-size: 13px; font-weight: 700; color: #3a5a7c;
  margin-bottom: 10px; display: block; letter-spacing: 0.02em;
}
.auth-right-inner .field input {
  background: #eef4fa;
  border: 2px solid transparent; border-radius: 16px;
  min-height: 54px; padding: 0 20px; font-size: 15px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%; color: #1a3a5c;
  box-shadow: inset 2px 2px 6px rgba(0,40,100,0.08), inset -2px -2px 6px rgba(255,255,255,0.9);
}
.auth-right-inner .field input:focus {
  background: #fff;
  border-color: #42a5f5;
  box-shadow: 0 0 0 4px rgba(66,165,245,0.15), inset 0 1px 3px rgba(0,40,100,0.06);
  transform: translateY(-1px);
}
.auth-right-inner .field input::placeholder { color: #9bb5cc; }
.auth-right-inner .code-row { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 24px; }
.auth-right-inner .code-row .field { flex: 1; margin-bottom: 0; }
.auth-right-inner .code-row .code-btn {
  min-height: 54px; white-space: nowrap; font-size: 14px;
  padding: 0 22px; border-radius: 16px;
  background: linear-gradient(135deg, #1976d2, #42a5f5);
  color: white; border: none; cursor: pointer; font-weight: 700;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(25,118,210,0.3);
}
.auth-right-inner .code-row .code-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(25,118,210,0.4);
}
.auth-right-inner .code-row .code-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(25,118,210,0.3);
}
.auth-right-inner .auth-submit {
  width: 100%; min-height: 58px; border-radius: 18px;
  font-size: 17px; font-weight: 800; margin-top: 16px;
  background: linear-gradient(135deg, #1565c0, #1e88e5, #42a5f5);
  background-size: 200% 100%;
  color: white; border: none; cursor: pointer;
  box-shadow: 0 10px 36px rgba(21,101,192,0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.08em;
  position: relative; overflow: hidden;
}
.auth-right-inner .auth-submit::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.auth-right-inner .auth-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(21,101,192,0.45);
  background-position: 100% 0;
}
.auth-right-inner .auth-submit:hover::after { transform: translateX(100%); }
.auth-right-inner .auth-submit:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 6px 20px rgba(21,101,192,0.35);
}
.auth-right-inner .auth-links {
  text-align: center; margin-top: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.auth-right-inner .auth-links span { font-size: 14px; color: #8aa4bc; }
.auth-right-inner .auth-links button {
  background: none; border: none; color: #1976d2;
  cursor: pointer; font-size: 14px; font-weight: 700; padding: 0;
  transition: all 0.25s ease;
}
.auth-right-inner .auth-links button:hover { color: #42a5f5; text-decoration: underline; }
.auth-right-inner .check {
  margin: 12px 0 8px; font-size: 13px;
  display: flex; align-items: center; gap: 10px; color: #8aa4bc;
}
.auth-right-inner .check input { width: 18px; height: 18px; accent-color: #1976d2; cursor: pointer; }
.auth-right-inner .link-btn {
  background: none; border: none; color: #1976d2;
  cursor: pointer; padding: 0; font-size: inherit;
  text-decoration: underline; font-weight: 700;
}
.auth-right-inner .link-btn:hover { color: #42a5f5; }
.auth-right-inner #authMsg { margin-top: 20px; }
.auth-right-inner .message {
  padding: 14px 18px; border-radius: 16px; font-size: 14px; font-weight: 600;
  animation: msgIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-right-inner .message.error {
  background: linear-gradient(135deg, rgba(239,83,80,0.08), rgba(239,83,80,0.04));
  color: #c62828; border: 1px solid rgba(239,83,80,0.2);
}
.auth-right-inner .message.success, .auth-right-inner .message:not(.error) {
  background: linear-gradient(135deg, rgba(38,166,154,0.08), rgba(38,166,154,0.04));
  color: #00695c; border: 1px solid rgba(38,166,154,0.2);
}
@keyframes msgIn { from { opacity: 0; transform: translateY(-10px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 900px) {
  .auth-container { grid-template-columns: 1fr; max-width: 480px; min-height: auto; border-radius: 28px; }
  .auth-left { display: none; }
  .auth-right { padding: 44px 32px; border-radius: 28px; }
}
/* --- Steam 预览卡片 --- */
.steam-section { margin-bottom: 8px; }
.steam-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 18px; margin-top: 14px;
  background: linear-gradient(135deg, rgba(21,101,192,0.06), rgba(66,165,245,0.06));
  border: 1px solid rgba(21,101,192,0.12);
  animation: msgIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.steam-card.loading {
  justify-content: center; color: #1976d2; font-weight: 600; font-size: 14px;
  background: rgba(21,101,192,0.04); min-height: 72px;
}
.steam-card img {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  object-fit: cover; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border: 2px solid rgba(21,101,192,0.15);
}
.steam-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.steam-info strong { font-size: 15px; color: #0d3b7a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steam-info span { font-size: 13px; color: #6b8299; display: flex; align-items: center; gap: 6px; }
.steam-info small { font-size: 12px; color: #9bb5cc; font-family: monospace; }
.steam-info .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #9e9e9e; flex-shrink: 0;
}
.steam-info .dot.online { background: #43a047; box-shadow: 0 0 6px rgba(67,160,71,0.5); }
.steam-info .dot.away { background: #ffa726; box-shadow: 0 0 6px rgba(255,167,38,0.5); }
.steam-info .dot.offline { background: #9e9e9e; }
.steam-bound-info { margin-bottom: 16px; }
.steam-bound-info .steam-card { margin-top: 0; background: linear-gradient(135deg, rgba(21,101,192,0.04), rgba(66,165,245,0.04)); }
/* ========== END auth screen ========== */
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; }
.profile-header { text-align: center; padding: 32px 24px; }
.profile-sections { display: flex; flex-direction: column; gap: 18px; }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-title .icon { font-size: 20px; }
.section-title h3 { margin: 0; font-size: 17px; }
.section-desc { margin: -8px 0 16px; font-size: 13px; color: var(--text-muted); }
.file-input-wrapper { position: relative; }
.file-input-wrapper input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; }
.file-input-wrapper .file-label { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 16px; border-radius: 14px; color: var(--text); background: var(--glass); border: 1px solid var(--border); cursor: pointer; transition: all 0.2s ease; }
.file-input-wrapper:hover .file-label { border-color: var(--primary); background: var(--glass-hover); }
.file-input-wrapper input:focus + .file-label { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(2, 136, 209, 0.15); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats-grid .stat-item { padding: 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--border); text-align: center; }
.stats-grid .stat-item strong { display: block; margin-top: 8px; font-size: 26px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stats-grid .stat-item span { font-size: 13px; color: var(--text-muted); }
.sync-notice { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--border); }
.sync-notice .icon { font-size: 22px; }
.sync-notice p { margin: 0; color: var(--text-muted); font-size: 14px; }
.sync-notice.error { background: rgba(239, 83, 80, 0.1); border-color: rgba(239, 83, 80, 0.25); }
.sync-notice.error p { color: var(--danger); }
.sync-status { padding: 12px 0; }
.sync-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sync-header .icon { font-size: 20px; }
.sync-header h4 { margin: 0; font-size: 15px; }
.linked-accounts { display: flex; flex-direction: column; gap: 10px; }
.linked-account { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--border); }
.linked-account .platform { padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.linked-account .platform.miniprogram { background: rgba(78, 205, 196, 0.15); color: #2d9a93; border: 1px solid rgba(78, 205, 196, 0.25); }
.linked-account .platform.web { background: rgba(2, 136, 209, 0.15); color: var(--primary); border: 1px solid rgba(2, 136, 209, 0.25); }
.linked-account small { margin-left: auto; color: var(--text-muted); font-size: 12px; }
.avatar { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 28px; font-size: 38px; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; box-shadow: var(--shadow-md); }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badges span { padding: 6px 12px; border-radius: 14px; font-size: 12px; font-weight: 600; background: var(--glass); border: 1px solid var(--border); color: var(--text); }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-row span { color: var(--text-muted); }
.info-row strong { text-align: right; overflow-wrap: anywhere; }
footer { padding: 28px 0 12px; color: var(--text-muted); text-align: center; font-size: 14px; }
.beian-box { text-align: center; padding: 0 0 20px; font-size: 13px; }
.beian-box a { color: var(--text-muted); text-decoration: none; transition: 0.2s ease; }
.beian-box a:hover { color: var(--primary); }
.fade-in { animation: enter 0.4s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(24px, -20px, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-105%); transition: 0.25s ease; }
  .sidebar.open { transform: translateX(0); }
  .topbar { display: flex; }
  .main { padding: 16px 20px; }
  .hero-grid, .profile-grid, .detail-grid, .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { min-height: 340px; padding: 24px; }
  h1 { font-size: 40px; }
  .cards-grid, .metrics, .toolbar, .toolbar.rich, .game-picker, .time-picker { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; gap: 16px; }
  .profile-header { padding: 24px 20px; }
  .profile-sections { gap: 14px; }
  .duration-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .duration-picker button { min-height: 52px; }
  .date-scroll-inner { gap: 8px; }
  .date-scroll-inner button { min-width: 70px; min-height: 58px; padding: 8px 12px; }
  .time-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px; }
  .time-grid button { min-height: 40px; font-size: 12px; }
  .time-preview { flex-direction: column; align-items: flex-start; gap: 8px; }
  .time-preview .time-value { font-size: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
