/* ============================================================
   股神系统 · Divine Stock System Theme
   小说系统流风格 - 金色光效 + 深紫底色 + 吉祥尊贵
   ============================================================ */

/* -------- CSS Variables -------- */
:root {
  /* Core palette - 深紫暗金 */
  --bg-primary: #0d0518;
  --bg-secondary: #1a0533;
  --bg-tertiary: #250845;
  --bg-glass: rgba(26, 5, 51, 0.65);
  --bg-glass-strong: rgba(13, 5, 24, 0.85);

  /* Gold / Amber tones */
  --gold-primary: #FFD700;
  --gold-light: #FFEC8B;
  --gold-amber: #FFA500;
  --gold-deep: #B8860B;
  --gold-glow: rgba(255, 215, 0, 0.4);
  --gold-glow-soft: rgba(255, 215, 0, 0.2);

  /* Red accents (吉利) */
  --red-lucky: #DC143C;
  --red-deep: #8B0000;
  --red-glow: rgba(220, 20, 60, 0.4);

  /* Purple tones */
  --purple-light: #9B59B6;
  --purple-soft: rgba(155, 89, 182, 0.3);

  /* Market colors (A股配色) */
  --market-up: #FF4444;
  --market-up-glow: rgba(255, 68, 68, 0.45);
  --market-down: #00C853;
  --market-down-glow: rgba(0, 200, 83, 0.45);

  /* Text */
  --text-primary: #F5E6D3;
  --text-secondary: #C9A96E;
  --text-muted: #7A5C3A;
  --text-dim: #4A3520;

  /* Borders */
  --border-line: rgba(255, 215, 0, 0.18);
  --border-line-strong: rgba(255, 215, 0, 0.45);
  --border-soft: rgba(200, 169, 110, 0.12);

  /* Shadows / glows */
  --glow-sm: 0 0 8px rgba(255, 215, 0, 0.25);
  --glow-md: 0 0 15px rgba(255, 215, 0, 0.2), 0 0 30px rgba(255, 165, 0, 0.1);
  --glow-lg: 0 0 30px rgba(255, 215, 0, 0.35), 0 0 60px rgba(255, 165, 0, 0.15);
  --glow-text: 0 0 6px rgba(255, 215, 0, 0.7), 0 0 18px rgba(255, 165, 0, 0.35);

  /* Typography */
  --font-display: 'Orbitron', 'Share Tech Mono', monospace;
  --font-mono: 'Share Tech Mono', 'Consolas', 'Courier New', monospace;

  /* Sizing */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --header-h: 72px;

  --easing: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* -------- Reset -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color 0.2s var(--easing), text-shadow 0.2s var(--easing);
}
a:hover {
  text-shadow: var(--glow-text);
}

button {
  font-family: var(--font-display);
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
}

input,
select,
textarea {
  font-family: var(--font-mono);
  outline: none;
  border: none;
  background: transparent;
  color: var(--text-primary);
}

::selection {
  background: var(--gold-primary);
  color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-deep), var(--gold-primary));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-glow);
}

/* ============================================================
   背景效果层 - 星空粒子
   ============================================================ */

/* 星空紫金渐变背景 */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(155, 89, 182, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 165, 0, 0.08), transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(139, 0, 0, 0.05), transparent 70%),
    radial-gradient(1px 1px at 20% 30%, rgba(255, 215, 0, 0.8), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255, 236, 139, 0.6), transparent),
    radial-gradient(1px 1px at 60% 20%, rgba(255, 215, 0, 0.7), transparent),
    radial-gradient(1px 1px at 80% 50%, rgba(255, 236, 139, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, rgba(255, 215, 0, 0.9), transparent),
    radial-gradient(1px 1px at 90% 10%, rgba(255, 236, 139, 0.7), transparent),
    radial-gradient(1px 1px at 50% 90%, rgba(255, 215, 0, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 30% 50%, rgba(255, 215, 0, 0.5), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255, 236, 139, 0.8), transparent),
    radial-gradient(1px 1px at 15% 60%, rgba(255, 215, 0, 0.4), transparent),
    radial-gradient(1px 1px at 85% 85%, rgba(255, 236, 139, 0.6), transparent),
    radial-gradient(1px 1px at 45% 15%, rgba(255, 215, 0, 0.7), transparent);
  animation: starTwinkle 8s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0% { opacity: 1; }
  50% { opacity: 0.85; }
  100% { opacity: 1; }
}

/* 微光粒子漂浮效果 */
.bg-scanline {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-scanline::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background:
    radial-gradient(2px 2px at 25% 25%, rgba(255, 215, 0, 0.3), transparent),
    radial-gradient(2px 2px at 75% 75%, rgba(255, 215, 0, 0.2), transparent),
    radial-gradient(1.5px 1.5px at 50% 50%, rgba(255, 236, 139, 0.3), transparent),
    radial-gradient(2px 2px at 33% 66%, rgba(255, 165, 0, 0.2), transparent),
    radial-gradient(1.5px 1.5px at 66% 33%, rgba(255, 215, 0, 0.25), transparent);
  animation: particleFloat 20s linear infinite;
}
.bg-scanline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(13, 5, 24, 0.4) 100%);
}

@keyframes particleFloat {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-25%, -25%) rotate(360deg); }
}

/* ============================================================
   顶部 Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    180deg,
    rgba(13, 5, 24, 0.95),
    rgba(26, 5, 51, 0.7)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-line);
  box-shadow: 0 1px 0 rgba(255, 215, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.header::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-primary) 20%,
    var(--gold-amber) 50%,
    var(--gold-primary) 80%,
    transparent
  );
  opacity: 0.6;
}

.header-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  background: linear-gradient(135deg, var(--gold-primary), #FFF8DC 50%, var(--gold-amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 24px rgba(255, 215, 0, 0.45);
  position: relative;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.username {
  color: var(--gold-primary);
  text-shadow: 0 0 6px var(--gold-glow);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border-line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 215, 0, 0.06);
  color: var(--text-primary);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.08);
}
.score-badge .score-icon {
  color: var(--gold-primary);
  filter: drop-shadow(0 0 4px var(--gold-primary));
}
.score-badge #displayScore {
  color: var(--gold-primary);
  font-family: var(--font-display);
  font-weight: 700;
}

/* ============================================================
   主内容区
   ============================================================ */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 32px 80px;
  animation: pageEnter 0.6s var(--easing) both;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   倒计时区
   ============================================================ */
.countdown-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  margin-bottom: 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--glow-md), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  animation: cardIn 0.7s var(--easing) 0.05s both;
}

.countdown-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-primary), var(--gold-amber));
  box-shadow: 0 0 12px var(--gold-glow);
}

.countdown-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.countdown-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.countdown-timer {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  text-shadow:
    0 0 10px var(--gold-primary),
    0 0 24px var(--gold-glow),
    0 0 60px rgba(255, 165, 0, 0.35);
  animation: goldPulse 2.4s ease-in-out infinite;
}

@keyframes goldPulse {
  0%, 100% {
    text-shadow:
      0 0 10px var(--gold-primary),
      0 0 24px var(--gold-glow),
      0 0 60px rgba(255, 165, 0, 0.35);
  }
  50% {
    text-shadow:
      0 0 18px var(--gold-primary),
      0 0 36px var(--gold-primary),
      0 0 80px rgba(255, 215, 0, 0.55);
  }
}

.countdown-bar {
  margin-top: 6px;
  height: 4px;
  width: 100%;
  max-width: 360px;
  background: rgba(255, 215, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.countdown-progress {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-primary));
  box-shadow: 0 0 10px var(--gold-glow);
  transition: width 1s linear;
}

.btn-refresh {
  flex-shrink: 0;
}

/* ============================================================
   状态栏
   ============================================================ */
.status-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  animation: cardIn 0.7s var(--easing) 0.12s both;
}

.status-item {
  padding: 14px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  transition: all 0.3s var(--easing);
}
.status-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.3s var(--easing);
}
.status-item:hover {
  border-color: var(--border-line-strong);
  box-shadow: var(--glow-sm);
}

.status-label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.status-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.25);
}

/* Market status colors */
.market-open {
  color: var(--gold-primary) !important;
  text-shadow: 0 0 8px var(--gold-glow) !important;
}
.market-closed {
  color: var(--text-muted) !important;
}

/* ============================================================
   按钮
   ============================================================ */
.btn-neon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.12),
    rgba(255, 165, 0, 0.08)
  );
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s var(--easing);
  box-shadow:
    0 0 0 rgba(255, 215, 0, 0),
    inset 0 0 12px rgba(255, 215, 0, 0.08);
}

.btn-neon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.35),
    transparent
  );
  transition: left 0.6s var(--easing);
}

.btn-neon:hover {
  color: #fff;
  transform: translateY(-1px) scale(1.02);
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.25),
    rgba(255, 165, 0, 0.18)
  );
  box-shadow:
    0 0 18px var(--gold-primary),
    0 0 36px var(--gold-glow),
    inset 0 0 18px rgba(255, 215, 0, 0.18);
  text-shadow: 0 0 8px var(--gold-primary);
}
.btn-neon:hover::before {
  left: 100%;
}

.btn-neon:active {
  transform: translateY(0) scale(0.99);
}

.btn-neon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.btn-small {
  padding: 7px 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--easing);
  text-transform: uppercase;
}
.btn-small:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 10px var(--gold-glow-soft);
}

/* ============================================================
   表格
   ============================================================ */
.results-section {
  animation: cardIn 0.7s var(--easing) 0.18s both;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--gold-primary);
  text-shadow: 0 0 8px var(--gold-glow-soft);
}

.table-container {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--glow-md);
  position: relative;
}

.table-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-primary),
    transparent
  );
  opacity: 0.7;
}

.stock-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.stock-table thead {
  background: linear-gradient(
    180deg,
    rgba(255, 215, 0, 0.1),
    rgba(255, 165, 0, 0.05)
  );
}

.stock-table th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-primary);
  border-bottom: 1px solid var(--border-line-strong);
  white-space: nowrap;
  text-shadow: 0 0 6px var(--gold-glow-soft);
}

.stock-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-primary);
  transition: background 0.25s var(--easing);
  white-space: nowrap;
}

.stock-table tbody tr {
  position: relative;
  transition: all 0.25s var(--easing);
}

.stock-table tbody tr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(180deg, var(--gold-primary), var(--gold-amber));
  box-shadow: 0 0 8px var(--gold-primary);
  transition: width 0.25s var(--easing);
}

.stock-table tbody tr:hover {
  background: rgba(255, 215, 0, 0.05);
}
.stock-table tbody tr:hover::before {
  width: 3px;
}
.stock-table tbody tr:hover td {
  color: #fff;
}

.stock-table tbody tr:last-child td {
  border-bottom: none;
}

/* 涨跌色 */
.price-up,
.up,
.value-up {
  color: var(--market-up) !important;
  text-shadow: 0 0 6px var(--market-up-glow);
}
.price-down,
.down,
.value-down {
  color: var(--market-down) !important;
  text-shadow: 0 0 6px var(--market-down-glow);
}
.flat {
  color: var(--text-secondary) !important;
}

/* 信号强度 - 气运值 */
.signal-score .stars {
  color: var(--gold-primary);
  text-shadow: 0 0 4px var(--gold-glow);
  letter-spacing: 2px;
}
.signal-score .score-num {
  margin-left: 6px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold-light);
}

.signal-bar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.signal-bar .bar {
  width: 4px;
  background: rgba(255, 215, 0, 0.18);
  border-radius: 1px;
}
.signal-bar .bar.active {
  background: var(--gold-primary);
  box-shadow: 0 0 6px var(--gold-primary);
}
.signal-bar .bar:nth-child(1) { height: 6px; }
.signal-bar .bar:nth-child(2) { height: 10px; }
.signal-bar .bar:nth-child(3) { height: 14px; }
.signal-bar .bar:nth-child(4) { height: 18px; }
.signal-bar .bar:nth-child(5) { height: 22px; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid var(--border-line);
  border-radius: 2px;
}

/* 空状态 / 加载 */
.empty-state,
.loading-state {
  padding: 80px 32px;
  text-align: center;
  color: var(--text-secondary);
}
.empty-icon {
  font-size: 3rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.empty-sub {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
}

.loading-spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 215, 0, 0.15);
  border-top-color: var(--gold-primary);
  border-right-color: var(--gold-amber);
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 18px var(--gold-glow-soft);
  position: relative;
}
.loading-spinner::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 215, 0, 0.25);
  animation: spin 4s linear infinite reverse;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state p {
  font-family: var(--font-display);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-size: 0.85rem;
  animation: textPulse 1.6s ease-in-out infinite;
}
@keyframes textPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ============================================================
   登录 / 注册页
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: cardIn 0.8s var(--easing) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-card {
  position: relative;
  padding: 42px 36px 36px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-line-strong);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.2),
    0 0 80px rgba(255, 165, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0%, rgba(255, 215, 0, 0.03) 50%, transparent 100%);
  pointer-events: none;
}

.auth-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  filter: blur(0.5px);
}

.auth-logo {
  text-align: center;
  margin-bottom: 30px;
}
.auth-logo h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 0.22em;
  background: linear-gradient(135deg, var(--gold-primary), #FFF8DC 50%, var(--gold-amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px var(--gold-glow));
  margin-bottom: 6px;
}
.auth-logo .subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-line);
}
.tab-btn {
  flex: 1;
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s var(--easing);
}
.tab-btn:hover {
  color: var(--text-secondary);
}
.tab-btn.active {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
  text-shadow: 0 0 8px var(--gold-glow-soft);
  box-shadow: 0 1px 0 var(--gold-primary), 0 4px 16px var(--gold-glow-soft);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-form.hidden {
  display: none;
}

.input-group {
  position: relative;
}
.input-group input {
  width: 100%;
  padding: 14px 14px 14px 14px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--easing);
}
.input-group input::placeholder {
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.input-group input:hover {
  border-color: var(--border-line-strong);
}
.input-group input:focus {
  border-color: var(--gold-primary);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 1px var(--gold-primary), 0 0 18px var(--gold-glow-soft);
}
.input-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold-primary);
  transform: translateX(-50%);
  transition: width 0.35s var(--easing);
  box-shadow: 0 0 8px var(--gold-primary);
  pointer-events: none;
}
.input-group input:focus + .input-glow {
  width: 100%;
}

.auth-form .btn-neon {
  margin-top: 8px;
  width: 100%;
  padding: 14px;
}

/* Auth footer text */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

/* 消息提示 */
.message {
  margin-top: 16px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid transparent;
  animation: cardIn 0.3s var(--easing);
}
.message.hidden {
  display: none;
}
.message.success {
  color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}
.message.error {
  color: var(--red-lucky);
  background: rgba(220, 20, 60, 0.08);
  border-color: rgba(220, 20, 60, 0.4);
  box-shadow: 0 0 12px rgba(220, 20, 60, 0.2);
}
.message.info {
  color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.06);
  border-color: var(--border-line-strong);
}

/* ============================================================
   管理员面板
   ============================================================ */
.admin-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
  animation: cardIn 0.7s var(--easing) 0.05s both;
}

.admin-card {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--glow-md);
  transition: all 0.3s var(--easing);
}
.admin-card:hover {
  border-color: var(--border-line-strong);
  box-shadow: var(--glow-lg);
  transform: translateY(-2px);
}
.admin-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 16px;
  width: 36px;
  height: 2px;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-line);
  text-shadow: 0 0 6px var(--gold-glow-soft);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.card-body p span {
  color: var(--text-primary);
  font-family: var(--font-display);
  margin-left: 6px;
}
.hint {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.08em;
}

.result-box {
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.4);
  border-left: 3px solid var(--gold-primary);
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-all;
}
.result-box.hidden {
  display: none;
}
.result-box.success {
  border-left-color: var(--gold-primary);
  color: var(--gold-primary);
}
.result-box.error {
  border-left-color: var(--red-lucky);
  color: var(--red-lucky);
}
.result-box.info {
  border-left-color: var(--gold-amber);
  color: var(--gold-amber);
}

/* ============================================================
   积分不足（灵石不足）
   ============================================================ */
.no-score-section {
  margin-top: 32px;
  animation: cardIn 0.6s var(--easing);
}
.no-score-section.hidden { display: none; }

.no-score-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px;
  background: var(--bg-glass-strong);
  border: 1px solid rgba(220, 20, 60, 0.4);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 0 24px rgba(220, 20, 60, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.no-score-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.25em;
  color: var(--red-lucky);
  text-shadow: 0 0 12px var(--red-glow);
  margin-bottom: 14px;
}
.no-score-card p {
  color: var(--text-secondary);
  margin: 6px 0;
}
.admin-contact {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-line);
}
.contact-box {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.06);
  border: 1px dashed var(--gold-primary);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 12px rgba(255, 215, 0, 0.1);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  margin-top: 60px;
  padding: 22px 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  border-top: 1px solid var(--border-line);
  background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.02));
}

/* ============================================================
   工具类
   ============================================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .header { padding: 0 18px; height: 64px; }
  .logo { font-size: 1.3rem; letter-spacing: 0.12em; }
  .logo-sub { display: none; }
  .main-content { padding: 20px 18px 60px; }
  .countdown-section { flex-direction: column; align-items: flex-start; padding: 22px; }
  .countdown-timer { font-size: 3rem; }
  .auth-card { padding: 32px 24px 26px; }
}

@media (max-width: 768px) {
  .user-info { gap: 8px; font-size: 0.78rem; }
  .score-badge { padding: 4px 8px; font-size: 0.7rem; }

  .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .stock-table { min-width: 760px; }

  .admin-panels { grid-template-columns: 1fr; }
  .countdown-timer { font-size: 2.6rem; }
  .auth-logo h1 { font-size: 1.6rem; letter-spacing: 0.18em; }
}

@media (max-width: 480px) {
  .header-left { gap: 0; }
  .countdown-timer { font-size: 2.2rem; letter-spacing: 0.05em; }
  .btn-neon { padding: 11px 18px; font-size: 0.82rem; letter-spacing: 0.18em; }
  .status-bar { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 26px 20px 22px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
