/* ===== 良心福利查询系统 — 统一样式表 ===== */
/* 变  量 */
:root {
  --dark: #1a1a2e;
  --dark-light: #16213e;
  --gold: #f6d365;
  --gold-warm: #fda085;
  --body-bg: #f0f2f5;
  --border-light: #e9ecef;
}

/* ---------- 全  局 ---------- */
body {
  background: var(--body-bg);
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ---------- 无障碍 ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--dark);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  text-decoration: none;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* 键盘焦点环 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- 骨架屏 ---------- */
@keyframes shimmer {
  0%   { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ===== 三栏等分布局（登录页） ===== */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
/* 注册页两栏等宽布局 */
.login-page.register-page {
  grid-template-columns: 1fr 1fr;
}
/* 管理登录页：login-container 跨三列，内部左右两栏布局 */
.login-page > .login-container {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-left {
  background: linear-gradient(135deg, #0b0b1a 0%, #1a0a2e 40%, #0a1628 100%);
  color: #fff;
  padding: 64px 44px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(246,211,101,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.login-left h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}
.login-left h2 span {
  background: linear-gradient(135deg, var(--gold), var(--gold-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-left p {
  font-size: 16px;
  opacity: 0.75;
  line-height: 1.7;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.login-left .feature-list {
  list-style: none;
  padding: 0;
  position: relative;
  z-index: 1;
}
.login-left .feature-list li {
  margin-bottom: 16px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-left .feature-list li .feat-icon {
  flex-shrink: 0;
}
.login-right {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== 左侧直播间侧边栏 ===== */
.sidebar-stream {
  background: #0d0d0d;
  color: #ccc;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar-stream .stream-section {
  display: flex;
  flex-direction: column;
}
.sidebar-stream .section-title {
  font-size: 13px;
  color: #888;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-stream .section-title i { font-size: 16px; }
.sidebar-stream .twitch-preview {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  position: relative;
}
.sidebar-stream .twitch-preview iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.sidebar-stream .twitch-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
}
.sidebar-stream .twitch-status .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sidebar-stream .twitch-status .live-dot.on {
  background: #ff4444;
  box-shadow: 0 0 6px rgba(255,68,68,0.6);
}
.sidebar-stream .twitch-status .live-dot.off { background: #555; }
.sidebar-stream .twitch-status .status-text { color: #aaa; }
.sidebar-stream .twitch-status .uptime-text {
  color: #888;
  margin-left: auto;
  font-size: 12px;
}
.sidebar-stream .stream-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 16px 0;
}
.sidebar-stream .yt-title {
  font-size: 13px;
  color: #aaa;
  line-height: 1.4;
  margin-bottom: 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sidebar-stream .yt-cover {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  position: relative;
}
.sidebar-stream .yt-cover a {
  display: block;
  width: 100%;
  height: 100%;
}
.sidebar-stream .yt-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sidebar-stream .yt-cover .yt-placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
}
.sidebar-stream .yt-cover .yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  z-index: 2;
}
.sidebar-stream .yt-cover .yt-play-btn i {
  font-size: 20px;
  color: #fff;
  margin-left: 3px;
}
.sidebar-stream .yt-cover a:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255,0,0,0.8);
}
.sidebar-stream .stream-spacer { flex: 1; }

/* ===== 登录表单 ===== */
.login-right .logo {
  text-align: center;
  margin-bottom: 30px;
}
.login-right .logo i {
  font-size: 48px;
  color: var(--dark);
}
.login-right .logo h3 {
  font-size: 20px;
  margin-top: 10px;
  color: var(--dark);
  font-weight: 600;
}
.login-form { max-width: 420px; }
.login-form .form-control {
  border-radius: 8px;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
}
.login-form .form-control:focus {
  border-color: var(--dark);
  box-shadow: none;
}
.login-form .btn-primary {
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
}
.login-form .extra-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 14px;
}

.alert-banner {
  background: rgba(246,211,101,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(246,211,101,0.20);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 28px;
  font-size: 15px;
  color: #5c3d00;
}

/* ===== 主页仪表盘 ===== */
.dashboard-header {
  background: var(--dark);
  color: #fff;
  display: flex;
  justify-content: center;
}
.dashboard-header .header-inner {
  width: 100%;
  max-width: 1200px;
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.dashboard-header .brand {
  font-size: 18px;
  font-weight: 700;
}
.dashboard-header .brand span { color: var(--gold); }
.dashboard-body {
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.summary-card {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.summary-card .amount {
  font-size: 36px;
  font-weight: 700;
}
.search-section,
.data-table-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.week-group {
  background: #e8f4f8;
  font-weight: 600;
}

/* ===== 管理后台 ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 220px;
  background: var(--dark);
  color: #fff;
  padding: 20px 0;
  flex-shrink: 0;
}
.admin-sidebar .sidebar-brand {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}
.admin-sidebar .sidebar-brand h5 span { color: var(--gold); }
.admin-sidebar a.nav-item {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
}
.admin-sidebar a.nav-item:hover,
.admin-sidebar a.nav-item.active {
  background: rgba(255,255,255,0.1);
}
.admin-main {
  flex: 1;
  padding: 24px;
  background: var(--body-bg);
}
.admin-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.badge-coefficient {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
}
.upload-zone {
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

/* ===== 右侧二维码区域 ===== */
.login-right .qr-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.login-right .qr-section .qr-title {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
  text-align: center;
}
.login-right .qr-codes {
  display: flex;
  gap: 24px;
  justify-content: center;
}
.login-right .qr-item {
  text-align: center;
  cursor: default;
}
.login-right .qr-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid var(--border-light);
  background: #fff;
  padding: 4px;
}
.login-right .qr-item .qr-label {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  display: block;
}

/* ===== 左侧底部引导链接 ===== */
.login-left .gg-guide-link {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}
.login-left .gg-guide-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-warm));
  border: none;
  border-radius: 12px;
  padding: 18px 28px;
  color: var(--dark);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.login-left .gg-guide-link a:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(246, 211, 101, 0.35);
}
.login-left .gg-guide-link a svg {
  flex-shrink: 0;
}

/* ===== 教程页面样式 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tutorial-card {
  animation: fadeInUp 0.5s ease-out both;
}
.tutorial-card:nth-child(1) { animation-delay: 0.05s; }
.tutorial-card:nth-child(2) { animation-delay: 0.15s; }
.tutorial-card:nth-child(3) { animation-delay: 0.25s; }
.tutorial-card:nth-child(4) { animation-delay: 0.35s; }
.tutorial-card:nth-child(5) { animation-delay: 0.45s; }

.tutorial-page {
  background: linear-gradient(135deg, #f0f2f5 0%, #e8ecf1 100%);
  min-height: 100vh;
}
.tutorial-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  color: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(26,26,46,0.3);
}
.tutorial-header .header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tutorial-header .header-inner a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tutorial-header .header-inner a:hover { color: var(--gold); }
.tutorial-header h1 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.tutorial-header h1 span { color: var(--gold); }
.tutorial-header .progress-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.tutorial-header .progress-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s;
}
.tutorial-header .progress-dots .dot.active {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(246,211,101,0.5);
}
.tutorial-header .progress-dots .dot.done {
  background: rgba(255,255,255,0.5);
}

.tutorial-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px 60px;
  display: flex;
  gap: 30px;
  position: relative;
}
.tutorial-sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
  align-self: flex-start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.tutorial-sidebar .sidebar-title {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 16px;
}
.tutorial-sidebar .sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: #888;
  text-decoration: none;
  transition: all 0.3s;
  margin-bottom: 4px;
  border-left: 3px solid transparent;
}
.tutorial-sidebar .sidebar-item:hover {
  background: rgba(26,26,46,0.05);
  color: #333;
}
.tutorial-sidebar .sidebar-item.active {
  background: rgba(26,26,46,0.08);
  color: var(--dark);
  border-left-color: var(--gold);
  font-weight: 600;
}
.tutorial-sidebar .sidebar-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
}
.tutorial-sidebar .sidebar-item.active .dot {
  background: var(--gold);
}
.tutorial-content {
  flex: 1;
  min-width: 0;
}

.tutorial-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease;
}
.tutorial-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
.tutorial-card .step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--dark), #2a2a4e);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(26,26,46,0.15);
}
.tutorial-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.tutorial-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
  line-height: 1.4;
}
.tutorial-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tutorial-card h4 .step-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--dark);
  color: var(--gold);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.tutorial-card p,
.tutorial-card li {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  text-wrap: balance;
}
.tutorial-card ul,
.tutorial-card ol { padding-left: 24px; }
.tutorial-card li { margin-bottom: 10px; }
.tutorial-card li strong { color: var(--dark); }
.tutorial-card .highlight-box {
  background: rgba(139,92,246,0.08);
  border-left: 4px solid #7c3aed;
  padding: 18px 22px;
  border-radius: 10px;
  margin: 18px 0;
  color: #1e1b4b;
  text-wrap: balance;
}
.tutorial-card .highlight-box.warning {
  background: rgba(251,146,60,0.10);
  border-left-color: #ea580c;
  color: #431407;
}
.tutorial-card .highlight-box.danger {
  background: rgba(239,68,68,0.08);
  border-left-color: #dc2626;
  color: #450a0a;
}
.tutorial-card .highlight-box.success {
  background: rgba(34,197,94,0.08);
  border-left-color: #16a34a;
  color: #052e16;
}
.tutorial-card .highlight-box.info {
  background: rgba(59,130,246,0.08);
  border-left-color: #2563eb;
  color: #172554;
}
.tutorial-card .highlight-box strong { color: inherit; }

.invite-code-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.tutorial-card .invite-code {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--dark), #2a2a4e);
  color: var(--gold);
  padding: 10px 28px;
  border-radius: 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 5px;
  font-family: 'Courier New', monospace;
  box-shadow: 0 2px 12px rgba(26,26,46,0.2);
  border: 1px solid rgba(246,211,101,0.2);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-copy:hover {
  background: #e8c44e;
  transform: translateY(-1px);
}
.btn-copy.copied { background: #43a047; color: #fff; }

.tutorial-card .btn-tutorial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.tutorial-card .btn-tutorial:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,26,46,0.3);
  color: var(--gold);
}
.tutorial-card .btn-tutorial.outline {
  background: transparent;
  border: 2px solid var(--dark);
  color: var(--dark);
}
.tutorial-card .btn-tutorial.outline:hover {
  background: var(--dark);
  color: #fff;
}
.tutorial-card .btn-tutorial.gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-warm));
  color: var(--dark);
  box-shadow: 0 4px 16px rgba(246,211,101,0.3);
}
.tutorial-card .btn-tutorial.gold:hover {
  box-shadow: 0 6px 24px rgba(246,211,101,0.4);
  transform: translateY(-2px);
}

.tutorial-card .qr-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin: 24px 0;
  flex-wrap: wrap;
}
.tutorial-card .qr-row .qr-item { text-align: center; }
.tutorial-card .qr-row .qr-item img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--border-light);
  padding: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.tutorial-card .qr-row .qr-item span {
  display: block;
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  font-weight: 500;
}

.tutorial-card .step-timeline {
  position: relative;
  padding-left: 44px;
}
.tutorial-card .step-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #e0e0e0;
}
.tutorial-card .timeline-item {
  position: relative;
  padding-bottom: 28px;
  animation: fadeInUp 0.4s ease-out both;
}
.tutorial-card .timeline-item:last-child { padding-bottom: 0; }
.tutorial-card .timeline-item .tl-dot {
  position: absolute;
  left: -44px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--gold);
  z-index: 1;
}
.tutorial-card .timeline-item .tl-dot.pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 2px var(--gold); }
  50%  { box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px rgba(246,211,101,0.2); }
  100% { box-shadow: 0 0 0 2px var(--gold); }
}
.tutorial-card .timeline-item .tl-content { min-height: 0; }
.tutorial-card .timeline-item .tl-content p {
  margin: 0;
  text-wrap: balance;
}

.tutorial-actions {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 手机版教程悬浮目录按钮 ---------- */
.tutorial-toc-fab {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold);
  border: none;
  font-size: 22px;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.tutorial-toc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}
.tutorial-toc-overlay.show { display: block; }
.tutorial-toc-drawer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 60vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 24px 20px 32px;
  z-index: 999;
  overflow-y: auto;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.tutorial-toc-drawer.show { display: block; }
.tutorial-toc-drawer .drawer-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  text-align: center;
}
.tutorial-toc-drawer a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.tutorial-toc-drawer a:hover,
.tutorial-toc-drawer a.active {
  background: rgba(26,26,46,0.06);
  border-left-color: var(--gold);
}

/* ===== 手机版滚动提示 ===== */
.login-page::after {
  content: '↓ 滑动查看完整内容';
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  letter-spacing: 1px;
  background: rgba(0,0,0,0.4);
  padding: 8px 18px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: scrollHint 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 999;
  white-space: nowrap;
}
@keyframes scrollHint {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1;   transform: translateX(-50%) translateY(6px); }
}

/* ---------- 响应式 ---------- */
@media (min-width: 769px) {
  .tutorial-sidebar-mobile { display: none; }
  .tutorial-toc-fab { display: none; }
}

/* ---------- 手机端悬浮直播按钮 ---------- */
.stream-fab {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  border: none;
  font-size: 20px;
  z-index: 997;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.stream-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 998;
  align-items: center;
  justify-content: center;
}
.stream-mobile-drawer {
  background: #0d0d0d;
  border-radius: 16px;
  padding: 20px;
  width: 92vw;
  max-width: 500px;
  position: relative;
}
.stream-mobile-close {
  position: absolute;
  top: 8px;
  right: 14px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 28px;
  cursor: pointer;
  z-index: 1;
}
.stream-mobile-drawer .twitch-preview {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
}
.stream-mobile-drawer .twitch-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.stream-mobile-drawer .section-title {
  font-size: 13px;
  color: #888;
  font-weight: 600;
  margin-bottom: 12px;
}
/* 骨架屏加载完成后隐藏 */
.twitch-preview.skeleton-loading { background: var(--dark); }
.twitch-preview:not(.skeleton-loading) .skeleton { display: none; }
.yt-cover.skeleton-loading { background: var(--dark); }

@media (max-width: 1100px) {
  .login-page { grid-template-columns: 1fr 1fr; }
  .login-page.register-page { grid-template-columns: 1fr 1fr; }
  .login-page > .login-container { grid-template-columns: 1fr 1fr; }
  .sidebar-stream { display: none; }
}

@media (max-width: 768px) {
  .login-page,
  .login-page.register-page {
    grid-template-columns: 1fr;
  }
  .login-page > .login-container { grid-template-columns: 1fr; }
  .login-page { overflow-x: hidden; }
  .sidebar-stream { display: flex; order: 1; }
  .login-left  { order: 0; display: flex; padding: 36px 24px; }
  .login-right { order: -1; padding: 32px 20px; }
  .stream-fab { display: flex; }
  .login-left h2 { font-size: 32px; }
  .login-page::after { display: block; }
  .admin-sidebar { width: 72px; }
  .admin-sidebar a.nav-item span { display: none; }

  /* 教程页 */
  .tutorial-header h1 { font-size: 15px; }
  .tutorial-header .progress-dots { display: none; }
  .tutorial-sidebar { display: none; }
  .tutorial-layout { padding: 20px 16px 40px; }
  .tutorial-card { padding: 24px 20px; border-radius: 12px; margin-bottom: 20px; }
  .tutorial-card h3 { font-size: 18px; }
  .tutorial-card .qr-row { flex-direction: column; align-items: center; }
  .tutorial-card .qr-row .qr-item img { width: 110px; height: 110px; }
  .tutorial-card .invite-code { font-size: 20px; padding: 8px 20px; }
  .tutorial-card .step-timeline { padding-left: 36px; }
  .tutorial-card .step-timeline::before { left: 15px; }
  .tutorial-card .timeline-item .tl-dot { left: -36px; width: 14px; height: 14px; }
  .invite-code-wrapper { flex-direction: column; }
  .tutorial-actions { flex-direction: column; align-items: center; }
  .tutorial-actions .btn-tutorial { width: 100%; max-width: 300px; justify-content: center; }
  .tutorial-toc-fab { display: flex; }
}
