/* LottoAI Official Website Styles */
/* Author: WorkBuddy */

:root {
  --bg: #070810;
  --bg-elevated: #0b0f1a;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #a855f7;
  --primary-2: #f43f5e;
  --accent: #22d3ee;
  --warning: #fbbf24;
  --success: #34d399;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --glow: 0 0 40px rgba(168, 85, 247, 0.25);
  --header-bg: rgba(7, 8, 16, 0.82);
  --nav-bg: rgba(7, 8, 16, 0.97);
}

/* ===== 浅色主题（明色模式）：覆盖核心变量，适合强光环境与视力较弱人群 ===== */
[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-elevated: #ffffff;
  --card: rgba(15, 23, 42, 0.04);
  --card-hover: rgba(15, 23, 42, 0.07);
  --border: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --primary: #7c3aed;
  --primary-2: #e11d48;
  --accent: #0891b2;
  --warning: #d97706;
  --success: #059669;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --glow: 0 0 40px rgba(124, 58, 237, 0.18);
  --header-bg: rgba(255, 255, 255, 0.88);
  --nav-bg: rgba(255, 255, 255, 0.98);
}

/* 浅色模式：页头始终铺一层浅色底，避免深字落在 hero/深色背景上看不清 */
[data-theme="light"] .header {
  background: var(--header-bg);
  border-bottom-color: var(--border);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 50%, var(--warning) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 680px;
  line-height: 1.7;
}

.section-head {
  margin-bottom: 56px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 76px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.header.scrolled {
  background: var(--header-bg);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: transparent;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}


/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 0 120px;
  overflow: hidden;
}

/* 内页 Hero：高度缩减三分之一（66vh + 收紧上下留白） */
.hero-short {
  min-height: 66vh;
  min-height: 66dvh;
  padding: 120px 0 90px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25), transparent 60%);
  filter: blur(60px);
  z-index: 0;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 60%);
  filter: blur(70px);
  z-index: 0;
  animation: floatOrb 12s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(40px, 60px) scale(1.08);
  }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero p {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  display: block;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stat .label {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* Sections */
.section {
  padding: 110px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-elevated);
}

/* Feature cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 26px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--primary);
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

a.card {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.card:hover {
  border-color: rgba(168, 85, 247, 0.5);
}

.card-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

/* Lottery cards */
.lottery-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.lottery-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--warning));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lottery-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: var(--glow);
}

.lottery-card:hover::before {
  opacity: 1;
}

.lottery-card .tag {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-ticai {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.tag-fucai {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warning);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.tag-zucai {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.tag-lanqiu {
  background: rgba(244, 63, 94, 0.12);
  color: var(--primary-2);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.lottery-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.lottery-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 18px;
  min-height: 70px;
}

.lottery-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.lottery-card .meta span {
  color: var(--text-dim);
  font-size: 13px;
}

.lottery-card h3 a {
  color: inherit;
  text-decoration: none;
}

.lottery-card h3 a:hover {
  color: var(--primary);
}

/* 首页数字彩卡片：真实最新开奖号码 */
.latest-draw {
  min-height: 64px;
  margin-bottom: 18px;
}
.home-draw-row { margin-bottom: 8px; }
.home-issue {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.2px;
}
.home-draw-balls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  row-gap: 5px;
}
.home-draw-label {
  color: var(--text-muted);
  font-size: 12px;
  margin-right: 4px;
  white-space: nowrap;
}
.home-balls { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.home-plus {
  color: var(--text-muted);
  margin: 0 2px;
  font-weight: 600;
}
.home-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #6b7280;
  flex-shrink: 0;
}
.home-ball-front, .home-ball-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.home-ball-back, .home-ball-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.home-ball-klb {
  width: 20px;
  height: 20px;
  font-size: 10px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.ld-loading { color: var(--text-dim); font-size: 13px; }


/* 彩种卡片底部：数据入口 / 工具入口 并列一行，推到卡片底部对齐 */
.lottery-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.lottery-actions .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
}

/* Filter buttons */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--card);
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.4);
}

/* About page */
.about-hero p,
.products-hero p,
.contact-hero p {
  max-width: 680px;
  margin: 0 auto;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.3);
}

.value-card .value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.value-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 15px;
}

.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 16px var(--primary);
}

.timeline-item h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.timeline-item span {
  display: block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(168, 85, 247, 0.1);
  color: var(--primary);
  font-size: 22px;
}

.contact-info-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--text-muted);
  font-size: 15px;
}

/* 官方微信（二维码）模块 */
.contact-qr-module {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.contact-qr-box {
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.contact-qr-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-shrink: 0;
}

.contact-qr-canvas {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin-top: 16px;
}

.contact-qr-img {
  width: auto;
  max-width: 320px;
  max-height: 340px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* 打赏赞赏码 */
.dashang-qr-img {
  width: 260px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .dashang-qr-img {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #14141f;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* 后台下拉框：强制黑色背景 + 浅色文字，避免选项文字不可见 */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23aab' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option,
.form-group select optgroup {
  background: #14141f;
  color: #f3f3f7;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.form-group textarea {
  min-height: 240px;
  resize: vertical;
}

.form-note {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 16px;
}

/* CTA section */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(244, 63, 94, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.25), transparent 60%);
  filter: blur(40px);
}

.cta-box h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 28px;
  position: relative;
}

/* Footer */
.footer {
  padding: 64px 0 24px;
  border-top: 1px solid var(--border);
  background: #05060c;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 13px;
}

.disclaimer {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--warning);
  font-size: 13px;
  line-height: 1.6;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Product detail sections */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.3);
}

.feature-item .fi-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.data-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.data-stat {
  text-align: center;
  padding: 30px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(34, 211, 238, 0.05));
  border: 1px solid var(--border);
}

.data-stat .num {
  font-size: 38px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.data-stat .lbl {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}

/* Waterfall mock */
.waterfall {
  column-count: 3;
  column-gap: 20px;
}

.feed-card {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feed-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.3);
}

.feed-card .fc-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.fc-tag.news {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
}

.fc-tag.guide {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warning);
}

.fc-tag.charity {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
}

.fc-tag.expert {
  background: rgba(244, 63, 94, 0.12);
  color: var(--primary-2);
}

.feed-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.45;
}

.feed-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.feed-card .fc-meta {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 12px;
}

/* Zone entrance */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.zone-tile {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.zone-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: var(--glow);
}

.zone-tile .zt-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.zone-tile h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.zone-tile p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.zone-tile .zt-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .feature-grid,
  .data-stats,
  .zone-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .waterfall {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .feature-grid,
  .data-stats,
  .zone-grid {
    grid-template-columns: 1fr;
  }

  .waterfall {
    column-count: 1;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
      background: var(--nav-bg);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    width: 100%;
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--border);
  }

  .nav a::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-cta .btn {
    display: none;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .section {
    padding: 80px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ================= 资讯标签（彩种/分类通用） ================= */
.tag.news { background: rgba(34, 211, 238, 0.12); color: var(--accent); border: 1px solid rgba(34, 211, 238, 0.25); }
.tag.guide { background: rgba(251, 191, 36, 0.12); color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.25); }
.tag.charity { background: rgba(52, 211, 153, 0.12); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.25); }
.tag.expert { background: rgba(244, 63, 94, 0.12); color: var(--primary-2); border: 1px solid rgba(244, 63, 94, 0.25); }

.btn-block { width: 100%; }

/* ================= 后台登录 ================= */
.login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.12), transparent 45%),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow);
}
.login-brand { justify-content: center; margin-bottom: 18px; }
.login-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.login-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 26px; }
.login-form { text-align: left; }
.login-error { color: var(--primary-2); font-size: 13px; margin-top: 12px; min-height: 18px; }
.login-back { display: inline-block; margin-top: 22px; color: var(--text-muted); font-size: 14px; }
.login-back:hover { color: var(--accent); }

/* ================= 后台主视图 ================= */
.admin-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(7, 8, 16, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.admin-bar-left { display: flex; align-items: center; gap: 14px; }
.admin-bar .brand { font-size: 18px; }
.admin-bar .brand img { width: 36px; height: 36px; }
.admin-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.admin-bar-right { display: flex; align-items: center; gap: 10px; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 32px 24px 80px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-search, .news-search {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.admin-search:focus, .news-search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12); }

.ptable { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.ptable th, .ptable td { padding: 14px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.ptable th { color: var(--text-muted); font-weight: 700; background: rgba(255, 255, 255, 0.02); }
.ptable tr:last-child td { border-bottom: none; }
.ptable tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.pt-title { color: var(--text); font-weight: 600; max-width: 360px; }
.pt-date { color: var(--text-dim); white-space: nowrap; }
.pt-ops { white-space: nowrap; }
.op-btn {
  padding: 6px 12px;
  margin-right: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.op-btn:hover { color: var(--text); border-color: rgba(168, 85, 247, 0.4); }
.op-del:hover { color: var(--primary-2); border-color: rgba(244, 63, 94, 0.4); }
.st { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.st-pub { background: rgba(52, 211, 153, 0.12); color: var(--success); }
.st-draft { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); }
.empty-tip { padding: 40px; text-align: center; color: var(--text-muted); }

/* ================= 编辑器弹窗 ================= */
.editor-mask {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 6, 12, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.editor {
  width: 100%;
  max-width: 640px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.editor-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.editor-head h3 { font-size: 20px; font-weight: 700; }
.editor-close { background: transparent; border: none; color: var(--text-muted); font-size: 28px; line-height: 1; cursor: pointer; }
.editor-close:hover { color: var(--text); }
.editor-content { min-height: 180px; }
.editor-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.editor-msg { color: var(--primary-2); font-size: 13px; margin-top: 12px; min-height: 16px; }

/* ================= 资讯汇总（二级） ================= */
.news-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.news-toolbar .filter-bar { margin-bottom: 0; }
.feed-loading { color: var(--text-muted); padding: 40px; text-align: center; grid-column: 1 / -1; }
.feed-empty { text-align: center; color: var(--text-muted); padding: 40px; }

.feed-card.fc-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.feed-card.fc-link:hover { transform: translateY(-4px); border-color: rgba(168, 85, 247, 0.4); box-shadow: var(--glow); }
.fc-cover {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 14px;
  background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.22);
}
.fc-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.mini-tag { padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-dim); font-size: 11px; }

/* 首页最新资讯卡片 */
.home-news-card { text-decoration: none; color: inherit; }
.home-news-card h3 { font-size: 16px; line-height: 1.4; min-height: 44px; }
.hn-cover {
  width: 44px; height: 44px; border-radius: 11px; font-size: 22px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
  background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.22);
}
.home-news-card .meta span:first-child { color: var(--accent); font-weight: 600; }

/* ================= 资讯详情（三级） ================= */
.detail-section { padding-top: 120px; }
.detail-wrap { max-width: 820px; margin: 0 auto; }
.detail-loading { color: var(--text-muted); text-align: center; padding: 60px 0; }
.detail-article { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 44px 40px; }
.detail-back { display: inline-block; color: var(--accent); font-size: 14px; margin-bottom: 20px; }
.detail-cover { width: 64px; height: 64px; border-radius: 16px; font-size: 32px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.22); }
.detail-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.3; margin: 14px 0 18px; letter-spacing: -0.02em; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-dim); font-size: 13px; margin-bottom: 22px; }
.detail-summary { background: rgba(168, 85, 247, 0.08); border: 1px solid rgba(168, 85, 247, 0.2); border-radius: 12px; padding: 14px 18px; color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }
.detail-body p { color: var(--text); font-size: 16px; line-height: 1.85; margin-bottom: 18px; }
.detail-tags { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dt-label { color: var(--text-muted); font-size: 14px; }
.detail-disclaimer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px; line-height: 1.7; }
.detail-related { max-width: 820px; margin: 48px auto 0; }
.related-title { font-size: 20px; font-weight: 700; margin-bottom: 22px; }
.related-card { text-decoration: none; color: inherit; display: block; }
.related-card h4 { font-size: 16px; line-height: 1.4; margin: 10px 0 8px; }
.related-card p { font-size: 13px; margin-bottom: 0; -webkit-line-clamp: 2; }
.related-grid .card { min-height: auto; }

/* ================= 彩种专区 / 详情 ================= */
.zone-tile.zone-active { border-color: rgba(168, 85, 247, 0.5); box-shadow: var(--glow); }
.lottery-detail { max-width: 900px; margin: 0 auto; }
.ld-crumbs { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14px; margin-bottom: 28px; }
.ld-crumbs a:hover { color: var(--accent); }
.ld-crumbs strong { color: var(--text); }
.ld-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.ld-name { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 6px; }
.ld-org { color: var(--text-muted); font-size: 15px; }
.ld-facts { display: flex; gap: 14px; flex-wrap: wrap; }
.ld-fact { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; min-width: 130px; }
.lf-k { display: block; color: var(--text-dim); font-size: 12px; margin-bottom: 6px; }
.lf-v { display: block; color: var(--text); font-size: 15px; font-weight: 700; }
.ld-desc { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-bottom: 36px; }
.ld-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; margin-bottom: 36px; }
.ld-block { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.ld-block h3 { font-size: 18px; margin-bottom: 16px; }
.ld-rules { list-style: none; }
.ld-rules li { position: relative; padding-left: 22px; color: var(--text-muted); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.ld-rules li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.ld-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ld-chip { padding: 8px 16px; border-radius: 999px; background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.25); color: var(--primary); font-size: 14px; font-weight: 600; }
.ld-chip-dim { background: rgba(34, 211, 238, 0.08); border-color: rgba(34, 211, 238, 0.22); color: var(--accent); }
.ld-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(168, 85, 247, 0.14), rgba(244, 63, 94, 0.08)); border: 1px solid rgba(168, 85, 247, 0.25); border-radius: 18px; padding: 28px 32px; margin-bottom: 28px; }
.ld-cta h3 { font-size: 19px; margin-bottom: 6px; }
.ld-cta p { color: var(--text-muted); font-size: 14px; }
.ld-back { display: flex; gap: 12px; flex-wrap: wrap; }

/* ================= 大乐透数据统计分析页 ================= */
.dlt-subnav { position: sticky; top: 72px; z-index: 30; background: rgba(10, 10, 18, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.dlt-subnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0; }
.dlt-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.dlt-tab { padding: 8px 16px; border-radius: 999px; color: var(--text-muted); font-size: 14px; text-decoration: none; transition: 0.2s; }
.dlt-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.dlt-tab.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.dlt-range { display: flex; align-items: center; gap: 8px; }
.dlt-range-label { color: var(--text-dim); font-size: 13px; margin-right: 2px; }
.range-btn { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text-muted); font-size: 13px; cursor: pointer; transition: 0.2s; }
.range-btn:hover { color: var(--text); }
.range-btn.active { color: #fff; border-color: rgba(168, 85, 247, 0.5); background: rgba(168, 85, 247, 0.16); }

/* 彩种专区二级菜单：紧贴一级导航下方，跨专区各页通用 */
.zone-subnav { position: fixed; top: 76px; left: 0; right: 0; z-index: 999; background: rgba(10, 10, 18, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
body.has-zone-subnav { scroll-padding-top: 138px; }
.zone-subnav-inner { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px 18px; padding: 12px 0; overflow-x: auto; scrollbar-width: thin; }
.zone-subnav-group { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; padding: 6px 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 999px; }
.zone-subnav-group + .zone-subnav-group { margin-left: 6px; }
.zone-subnav-label { font-weight: 700; color: var(--primary); font-size: 13px; letter-spacing: .5px; white-space: nowrap; padding-right: 10px; border-right: 1px solid var(--border); margin-right: 8px; }
.zone-subnav-items { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; }
.zone-subnav-items a { color: var(--text-muted); font-size: 14px; text-decoration: none; padding: 6px 14px; border-radius: 999px; transition: color .2s, background .2s, transform .2s; white-space: nowrap; border: 1px solid transparent; }
.zone-subnav-items a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); transform: translateY(-1px); }
.zone-subnav-items a.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35); }
/* 一级栏目（体育彩票/福利彩票）：当本组下有彩种处于当前页时高亮，指示当前所在栏目 */
.zone-subnav-group.is-active { border-color: rgba(168, 85, 247, 0.45); box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.22); }
.zone-subnav-label.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-right: none; border-radius: 999px; padding: 4px 12px; margin-right: 8px; box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3); }

/* 最新开奖 */
.dlt-latest { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 32px; }
.dlt-balls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ball-group { display: flex; gap: 10px; }
.ball-group--stacked { flex-direction: column; align-items: flex-start; gap: 10px; flex-wrap: nowrap; }
.ball-row { display: flex; gap: 10px; }
.dlt-balls-row--stacked { align-items: flex-start; }
.dlt-ball { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; font-size: 20px; font-weight: 800; color: #fff; }
.dlt-ball.front { background: linear-gradient(135deg, #7c5cff, #a855f7); box-shadow: 0 6px 18px rgba(124, 92, 255, 0.35); }
.dlt-ball.back { background: linear-gradient(135deg, #f43f5e, #fb7185); box-shadow: 0 6px 18px rgba(244, 63, 94, 0.32); }
.dlt-ball.red { background: linear-gradient(135deg, #e11d48, #fb7185); box-shadow: 0 6px 18px rgba(225, 29, 72, 0.32); }
.dlt-ball.blue { background: linear-gradient(135deg, #2563eb, #60a5fa); box-shadow: 0 6px 18px rgba(37, 99, 235, 0.30); }
.dlt-ball.digits { background: linear-gradient(135deg, #0ea5e9, #38bdf8); box-shadow: 0 6px 18px rgba(14, 165, 233, 0.30); }
.dlt-ball.amber { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 6px 18px rgba(245, 158, 11, 0.30); }
.ball-plus { font-size: 26px; color: var(--text-muted); font-weight: 700; }
.dlt-meta { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 16px 28px; }
.dlt-meta-item { display: flex; flex-direction: column; gap: 4px; }
.dlt-meta-item span { color: var(--text-dim); font-size: 13px; }
.dlt-meta-item b { font-size: 17px; font-weight: 700; }
/* 奖级与单注奖金（固定 / 浮动奖结构） */
.dlt-meta-prizes { grid-column: 1 / -1; }
.dlt-meta-prizes .meta-label { color: var(--text-dim); font-size: 13px; margin-bottom: 10px; }
.prize-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 14px; }
.prize-row { display: flex; align-items: baseline; gap: 8px; padding: 8px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.prize-name { font-weight: 600; font-size: 14px; color: var(--text); }
.prize-money { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--accent); white-space: nowrap; }
.prize-num { font-size: 12px; color: var(--text-dim); }

/* 表格 */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); }
.dlt-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.dlt-table th, .dlt-table td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--border); }
.dlt-table th { color: var(--text-dim); font-weight: 600; font-size: 13px; background: rgba(255, 255, 255, 0.03); }
.dlt-table td i { color: var(--text-dim); font-style: normal; font-size: 12px; }
.dlt-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.cell-balls { white-space: nowrap; }
.mini-ball { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; margin: 0 2px; }
.mini-ball.front { background: linear-gradient(135deg, #7c5cff, #a855f7); }
.mini-ball.back { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.mini-ball.mini-red { background: linear-gradient(135deg, #e11d48, #fb7185); }
.dlt-omit .omit-cold td:nth-child(3) { color: #fb7185; font-weight: 800; }

/* 频率热力 */
.freq-block { margin-bottom: 30px; }
.freq-title { font-size: 16px; margin-bottom: 16px; color: var(--text); }
.freq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 18px; }
.freq-grid-back { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.freq-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.freq-num { width: 26px; text-align: center; font-weight: 700; color: var(--text-muted); }
.freq-bar { flex: 1; height: 10px; background: rgba(255, 255, 255, 0.06); border-radius: 999px; overflow: hidden; }
.freq-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7c5cff, #a855f7); border-radius: 999px; }
.freq-grid-back .freq-bar i { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.freq-count { width: 22px; text-align: right; color: var(--text); font-weight: 600; }
.hot-tag { font-size: 11px; color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.4); border-radius: 6px; padding: 1px 5px; }
.cold-tag { font-size: 11px; color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); border-radius: 6px; padding: 1px 5px; }

/* 形态分析 */
.shape-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.shape-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.shape-card h3 { font-size: 17px; margin-bottom: 18px; }
.shape-bars { display: flex; flex-direction: column; gap: 10px; }
.shape-bar-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.shape-bar-label { width: 84px; color: var(--text-muted); flex-shrink: 0; }
.shape-bar-track { flex: 1; height: 12px; background: rgba(255, 255, 255, 0.06); border-radius: 999px; overflow: hidden; }
.shape-bar-track i { display: block; height: 100%; background: linear-gradient(90deg, #7c5cff, #a855f7); border-radius: 999px; }
.shape-bar-val { width: 28px; text-align: right; font-weight: 700; color: var(--text); }

/* 基本走势 */
.trend-grid { display: flex; flex-direction: column; gap: 3px; min-width: 1000px; }
.trend-grid-back { min-width: 560px; }
.trend-row { display: grid; grid-template-columns: 50px repeat(35, minmax(24px, 1fr)); gap: 3px; }
.trend-grid-back .trend-row { grid-template-columns: 50px repeat(12, minmax(34px, 1fr)); }
.trend-issue { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-dim); font-weight: 600; }
.trend-empty { display: flex; align-items: center; justify-content: center; font-size: 11px; color: rgba(255, 255, 255, 0.12); border-radius: 6px; height: 26px; }
.trend-ball { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; border-radius: 6px; height: 26px; background: linear-gradient(135deg, #7c5cff, #a855f7); }
.trend-grid-back .trend-ball { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.trend-ball.repeat { box-shadow: 0 0 0 2px #fbbf24 inset; }
.trend-ball.conn { background: linear-gradient(135deg, #34d399, #10b981); }

/* 和值折线 */
.sum-chart { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }

.hot-dot { color: #a855f7; font-weight: 700; }
.repeat-dot { color: #fbbf24; font-weight: 700; }

@media (max-width: 768px) {
  .shape-grid { grid-template-columns: 1fr; }
  .dlt-latest { padding: 22px; }
  .dlt-ball { width: 44px; height: 44px; font-size: 17px; }
  .dlt-meta { grid-template-columns: 1fr 1fr; }
  .dlt-subnav-inner { flex-direction: column; align-items: stretch; }
  .dlt-tabs { justify-content: space-between; }
}

@media (max-width: 768px) {
  .ld-grid { grid-template-columns: 1fr; }
  .detail-article { padding: 28px 22px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .ptable { font-size: 13px; }
  .ptable th:nth-child(4), .ptable td:nth-child(4) { display: none; }
}

/* ===== 通用彩种数据页补充样式 ===== */
.dlt-balls { flex-direction: column; align-items: flex-start; gap: 10px; }
.dlt-balls-row { display: flex; align-items: center; gap: 12px; }
.dlt-balls-label { width: 56px; color: var(--text-dim); font-size: 13px; flex-shrink: 0; }

/* 大乐透专属页开奖公告：红球 + 蓝球 保持同一行（覆盖上方通用数据页的 column 规则） */
.dlt-balls.dlt-balls--inline { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px; }

.mini-ball.mini-digits { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.mini-ball.mini-compact { width: 20px; height: 20px; font-size: 11px; margin: 0 1px; background: linear-gradient(135deg, #7c5cff, #a855f7); }
.mini-ball.mini-blue { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.mini-ball.mini-back { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

.freq-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 10px 8px; }
.freq-cell { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 56px; padding-bottom: 5px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); font-size: 12px; color: var(--text); overflow: hidden; font-weight: 600; }
.freq-cell i { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: linear-gradient(180deg, rgba(168, 85, 247, 0.55), rgba(168, 85, 247, 0.16)); }
.freq-cell.hot { color: #fb7185; }
.freq-cell.cold { color: #38bdf8; }
.freq-cell.hot i { background: linear-gradient(180deg, rgba(244, 63, 94, 0.55), rgba(244, 63, 94, 0.16)); }

.trend-grid-wide { min-width: 1500px; }
.freq-blocks .freq-block:last-child { margin-bottom: 0; }


/* ===== 浅色主题专属覆盖：反转硬编码的暗色 / 白雾叠层 ===== */
[data-theme="light"] .header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
}
[data-theme="light"] .btn-secondary:hover {
  border-color: rgba(15, 23, 42, 0.18);
}
[data-theme="light"] .card:hover {
  border-color: rgba(15, 23, 42, 0.15);
}
[data-theme="light"] .lottery-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.02));
}
[data-theme="light"] .hero-badge {
  background: rgba(15, 23, 42, 0.05);
}
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
  background: #ffffff;
  color: #0f172a;
}
[data-theme="light"] .form-group select option,
[data-theme="light"] .form-group select optgroup {
  background: #ffffff;
  color: #0f172a;
}
[data-theme="light"] .admin-search,
[data-theme="light"] .news-search {
  background: rgba(15, 23, 42, 0.05);
}
[data-theme="light"] .ptable th { background: rgba(15, 23, 42, 0.04); }
[data-theme="light"] .ptable tbody tr:hover { background: rgba(15, 23, 42, 0.05); }
[data-theme="light"] .dlt-table th { background: rgba(15, 23, 42, 0.04); }
[data-theme="light"] .dlt-table tbody tr:hover { background: rgba(15, 23, 42, 0.05); }
[data-theme="light"] .mini-tag { background: rgba(15, 23, 42, 0.05); }
[data-theme="light"] .dlt-tab:hover { background: rgba(15, 23, 42, 0.05); }
/* 浅色模式：提升数据页标签/按钮文字对比度（白天模式下原配色偏弱/不可见） */
[data-theme="light"] .dlt-tab { color: #fff; font-weight: 600; }
[data-theme="light"] .dlt-tab.active { color: #fff; }
[data-theme="light"] .badge { color: var(--text-dim); border-color: rgba(15, 23, 42, 0.18); }
[data-theme="light"] .dlt-range-label { color: #fff; font-weight: 600; }
[data-theme="light"] .zone-subnav { background: rgba(244, 246, 251, 0.92); box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08); }
[data-theme="light"] .zone-subnav-group { background: rgba(15, 23, 42, 0.04); border-color: rgba(15, 23, 42, 0.08); }
[data-theme="light"] .zone-subnav-label { border-right-color: rgba(15, 23, 42, 0.14); }
[data-theme="light"] .zone-subnav-items a:hover { background: rgba(15, 23, 42, 0.06); }
[data-theme="light"] .zone-subnav-group.is-active { border-color: rgba(168, 85, 247, 0.4); box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.18); }
[data-theme="light"] .zone-subnav-label.active { color: #fff; }
[data-theme="light"] .range-btn { color: #fff; border-color: rgba(15, 23, 42, 0.2); }
[data-theme="light"] .range-btn:hover { color: var(--primary); }
[data-theme="light"] .range-btn.active { color: #fff; background: var(--primary); border-color: var(--primary); }
[data-theme="light"] .freq-bar,
[data-theme="light"] .shape-bar-track { background: rgba(15, 23, 42, 0.08); }
[data-theme="light"] .trend-empty { color: rgba(15, 23, 42, 0.28); }
[data-theme="light"] .freq-cell { background: rgba(15, 23, 42, 0.04); }
/* 和值走势 SVG：浅色下反转网格线与坐标文字 */
[data-theme="light"] #sum-chart line { stroke: rgba(15, 23, 42, 0.12) !important; }
[data-theme="light"] #sum-chart text { fill: #64748b !important; }
[data-theme="light"] #sum-chart polyline { stroke: var(--primary); }
[data-theme="light"] #sum-chart circle { fill: var(--primary); }

/* 主题切换按钮 */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--card-hover);
  transform: translateY(-1px);
}
.theme-toggle svg { display: block; }

/* 轻提示浮层（替代原先硬编码深色内联样式，跟随主题） */
.lottoai-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 15, 26, 0.95);
  color: #f8fafc;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.lottoai-toast.show { opacity: 1; }
[data-theme="light"] .lottoai-toast {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
