/* gjsg.live —— 浅色系 · 金/黄/白主题 */

:root {
  --gold: #d4a017;
  --gold-deep: #a87c00;
  --gold-soft: #f5d76e;
  --cream: #fffdf6;
  --ink: #5c4a12;
  --ink-soft: #8a7648;
  --card-bg: rgba(255, 255, 255, 0.86);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream) url("assets/room-cover.jpg") center / cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

/* 白色柔光罩，保证浅色主题与文字可读性 */
.bg-veil {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 253, 246, 0.93), rgba(255, 248, 224, 0.88));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: -1;
}

.card {
  background: var(--card-bg);
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(168, 124, 0, 0.14);
  padding: 40px 48px;
  max-width: 640px;
  width: 100%;
  text-align: center;
}

/* 主播信息 */
.anchor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 215, 110, 0.45);
  object-fit: cover;
}

.anchor-meta { text-align: left; }

.anchor-name {
  font-size: 1.6rem;
  color: var(--gold-deep);
  letter-spacing: 0.02em;
}

.anchor-sub { font-size: 0.9rem; color: var(--ink-soft); margin-top: 4px; }
.anchor-sub a { color: var(--gold); text-decoration: none; }
.anchor-sub a:hover { text-decoration: underline; }

/* 倒计时 */
.countdown-label {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.countdown-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(245, 215, 110, 0.5);
}

#timer-days { font-size: 3.4rem; }

.timer-unit {
  font-size: 1.4rem;
  margin: 0 10px 0 6px;
  color: var(--gold);
}

#timer-hms { font-size: 3.4rem; letter-spacing: 0.03em; }

.last-live {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* 开播状态 */
.live-view { padding: 8px 0 4px; }

.live-line1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.live-line2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-deep);
  margin-bottom: 22px;
  text-shadow: 0 2px 14px rgba(245, 215, 110, 0.6);
}

.live-jump {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-radius: 999px;
  padding: 12px 34px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: pulse 1.6s ease-in-out infinite;
}

.live-jump:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 26px rgba(212, 160, 23, 0.55);
}

@keyframes pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

/* 同步延迟提示 */
.stale-badge {
  margin-top: 20px;
  font-size: 0.82rem;
  color: #b3261e;
}

/* 页脚 */
.footer {
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  opacity: 0.85;
  text-align: center;
}

/* 窄屏适配 */
@media (max-width: 560px) {
  .card { padding: 28px 20px; }
  #timer-days, #timer-hms { font-size: 2.4rem; }
  .timer-unit { font-size: 1.1rem; }
  .live-line1 { font-size: 1.2rem; }
  .live-line2 { font-size: 1.5rem; }
}
