/* =============================================
   六合彩官网 - 主样式文件
   xympv.com | 原创设计 © 2026
   ============================================= */

/* ---- CSS变量 ---- */
:root {
  --primary: #0a1628;
  --secondary: #1a2d4f;
  --accent: #c8a84b;
  --accent2: #e63946;
  --gold: #f0c040;
  --gold-light: #fde68a;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray: #8a9bb5;
  --text: #1e2d45;
  --text-light: #5a6e8a;
  --border: #d4e0f0;
  --shadow: 0 4px 24px rgba(10,22,40,0.12);
  --shadow-lg: 0 8px 40px rgba(10,22,40,0.18);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-main: 'PingFang SC','Microsoft YaHei','Hiragino Sans GB',sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--gray-light);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- 容器 ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--white); }

/* ---- 标题 ---- */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 40px;
}

/* ---- 顶部公告栏 ---- */
.top-bar {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--gold-light);
  font-size: 0.82rem;
  padding: 6px 0;
  overflow: hidden;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.top-bar-marquee { flex: 1; overflow: hidden; }
.top-bar-marquee span {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.top-bar-links { display: flex; gap: 16px; flex-shrink: 0; }
.top-bar-links a { color: var(--gold-light); font-size: 0.82rem; }
.top-bar-links a:hover { color: var(--white); }

/* ---- 头部导航 ---- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(10,22,40,0.10);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-logo img.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.site-logo img.logo-full {
  height: 44px;
  width: auto;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-text .brand-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
}
.logo-text .brand-sub {
  font-size: 0.72rem;
  color: var(--text-light);
}

/* ---- 主导航 ---- */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--accent);
  background: rgba(200,168,75,0.08);
}
.main-nav a.nav-live {
  background: var(--accent2);
  color: var(--white);
  border-radius: 20px;
  padding: 6px 16px;
}
.main-nav a.nav-live:hover { background: #b02030; color: var(--white); }

/* ---- 汉堡菜单 ---- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- 搜索框 ---- */
.search-bar {
  background: linear-gradient(90deg, var(--secondary) 0%, #0d1f3c 100%);
  padding: 10px 0;
  border-bottom: 2px solid var(--accent);
}
.search-bar .container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-bar-inner {
  display: flex;
  flex: 1;
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(200,168,75,0.2);
  border: 2px solid var(--accent);
}
.search-bar-inner input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 20px;
  font-size: 0.93rem;
  font-family: var(--font-main);
  background: transparent;
  color: var(--text);
}
.search-bar-inner button {
  background: linear-gradient(90deg, var(--accent), var(--gold));
  color: var(--white);
  border: none;
  padding: 9px 24px;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}
.search-bar-inner button:hover { background: linear-gradient(90deg, var(--gold), var(--accent)); }
.search-hot-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-top: 6px;
  justify-content: center;
}
.search-hot-tags span { color: var(--gray); }
.search-hot-tags a {
  color: var(--gold-light);
  background: rgba(255,255,255,0.08);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  transition: var(--transition);
}
.search-hot-tags a:hover { background: var(--accent); color: var(--white); }

/* ---- 面包屑 ---- */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.85rem;
}
.breadcrumb ol { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--text-light); }
.breadcrumb li::after { content: '/'; color: var(--border); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li a { color: var(--accent); }
.breadcrumb li:last-child { color: var(--text); font-weight: 600; }

/* ---- Hero 横幅 ---- */
.hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #0d2244 50%, #1a0a30 100%);
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent2);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(230,57,70,0); }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(240,192,64,0.5);
}
.hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-main);
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--gold));
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(200,168,75,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,168,75,0.5);
  color: var(--primary);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-red {
  background: var(--accent2);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(230,57,70,0.3);
}
.btn-red:hover {
  background: #b02030;
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- 当期开奖展示 ---- */
.lottery-result-bar {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  padding: 18px 0;
  border-bottom: 3px solid var(--accent);
}
.lottery-result-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.lottery-result-label {
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}
.lottery-balls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ball {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--white);
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  position: relative;
  flex-shrink: 0;
}
.ball::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 8px;
  width: 12px;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: rotate(-30deg);
}
.ball-red { background: radial-gradient(circle at 35% 35%, #ff6b6b, #c0392b); }
.ball-blue { background: radial-gradient(circle at 35% 35%, #74b9ff, #2980b9); }
.ball-green { background: radial-gradient(circle at 35% 35%, #55efc4, #00b894); }
.ball-yellow { background: radial-gradient(circle at 35% 35%, #fdcb6e, #e17055); }
.ball-purple { background: radial-gradient(circle at 35% 35%, #a29bfe, #6c5ce7); }
.ball-orange { background: radial-gradient(circle at 35% 35%, #fd79a8, #e84393); }
.ball-special {
  background: radial-gradient(circle at 35% 35%, #ffeaa7, #fdcb6e);
  color: var(--primary);
  border: 3px solid var(--gold);
  width: 48px;
  height: 48px;
  font-size: 1rem;
}
.ball-separator {
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0 4px;
}
.lottery-result-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.lottery-result-meta .period {
  color: var(--gold-light);
  font-size: 0.85rem;
}
.live-badge {
  background: var(--accent2);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  animation: pulse 2s infinite;
}

/* ---- 视频卡片 ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--primary);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,22,40,0.3);
  opacity: 0;
  transition: var(--transition);
}
.video-card:hover .video-play-btn { opacity: 1; }
.video-play-btn svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  transform: scale(0.85);
  transition: transform 0.3s ease;
}
.video-card:hover .video-play-btn svg { transform: scale(1); }
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 4px;
}
.video-live-tag {
  position: absolute;
  top: 8px;
  left: 10px;
  background: var(--accent2);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  animation: pulse 2s infinite;
}
.video-info { padding: 14px 16px; }
.video-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-light);
}
.video-stats { display: flex; gap: 12px; }
.video-stats span { display: flex; align-items: center; gap: 3px; }
.video-category {
  background: rgba(200,168,75,0.12);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ---- 开奖号码表格 ---- */
.result-table-wrap { overflow-x: auto; }
.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.result-table th {
  background: var(--primary);
  color: var(--gold-light);
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}
.result-table td {
  padding: 10px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.result-table tr:hover td { background: rgba(200,168,75,0.05); }
.result-table td .balls-row { display: flex; gap: 5px; justify-content: center; align-items: center; }
.ball-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}

/* ---- 专家卡片 ---- */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.expert-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--accent);
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.expert-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--accent);
}
.expert-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.expert-title {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.expert-desc {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.expert-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}
.expert-awards span {
  background: rgba(200,168,75,0.1);
  color: var(--accent);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(200,168,75,0.3);
}
.expert-btns { display: flex; gap: 8px; justify-content: center; }
.btn-sm {
  padding: 6px 16px;
  font-size: 0.82rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-main);
}
.btn-sm-primary {
  background: linear-gradient(90deg, var(--accent), var(--gold));
  color: var(--primary);
}
.btn-sm-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-sm-outline:hover { background: var(--accent); color: var(--white); }

/* ---- 评论卡片 ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}
.review-user-name { font-weight: 700; color: var(--text); font-size: 0.93rem; }
.review-date { font-size: 0.75rem; color: var(--text-light); }
.review-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 8px; }
.review-text { color: var(--text-light); font-size: 0.88rem; line-height: 1.7; }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-question {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
  font-size: 0.97rem;
}
.faq-question:hover { color: var(--accent); }
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 22px 18px; }

/* ---- 社区功能 ---- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.community-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}
.community-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); background: var(--primary); }
.community-card:hover .community-title { color: var(--gold); }
.community-card:hover .community-desc { color: rgba(255,255,255,0.7); }
.community-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  transition: var(--transition);
}
.community-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  transition: var(--transition);
}
.community-desc {
  font-size: 0.83rem;
  color: var(--text-light);
  transition: var(--transition);
}

/* ---- AI功能 ---- */
.ai-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.ai-card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  padding: 28px 24px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.ai-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(200,168,75,0.1);
  border-radius: 50%;
}
.ai-card:hover { transform: translateY(-4px); }
.ai-card-icon { font-size: 2.2rem; margin-bottom: 14px; }
.ai-card-title { font-size: 1.05rem; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.ai-card-desc { font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.7; }

/* ---- 合作品牌 ---- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.partner-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}
.partner-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.partner-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 8px;
}
.partner-logo-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
}

/* ---- 联系我们 ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-info-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.contact-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(200,168,75,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item-label { font-weight: 700; color: var(--text); margin-bottom: 2px; }
.contact-item-value { color: var(--text-light); }
.qrcode-row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.qrcode-item { text-align: center; }
.qrcode-item img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  object-fit: cover;
}
.qrcode-item p { font-size: 0.78rem; color: var(--text-light); margin-top: 6px; }

/* ---- 社交分享 ---- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.share-label { font-size: 0.88rem; color: var(--text-light); font-weight: 600; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-main);
  color: var(--white);
}
.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #000000; }
.share-bilibili { background: #00a1d6; }
.share-btn:hover { opacity: 0.85; transform: translateY(-2px); color: var(--white); }

/* ---- 统计数字 ---- */
.stats-bar {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ---- 底部 ---- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 48px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; margin-bottom: 16px; }
.footer-col h4 {
  color: var(--gold-light);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }
.footer-qrcodes {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}
.footer-qr-item { text-align: center; }
.footer-qr-item img { width: 80px; height: 80px; border-radius: 6px; }
.footer-qr-item p { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* ---- 悬浮工具栏 ---- */
.float-bar {
  position: fixed;
  right: 20px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border: none;
  text-decoration: none;
}
.float-btn:hover { transform: scale(1.1); }
.float-live { background: var(--accent2); color: var(--white); }
.float-top { background: var(--accent); color: var(--primary); }

/* ---- 标签 ---- */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-red { background: rgba(230,57,70,0.1); color: var(--accent2); }
.tag-gold { background: rgba(200,168,75,0.12); color: var(--accent); }
.tag-blue { background: rgba(41,128,185,0.1); color: #2980b9; }

/* ---- 分页 ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ---- 图片展示 ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay p { color: var(--white); font-size: 0.85rem; font-weight: 600; }

/* ---- 弹幕效果 ---- */
.danmu-bar {
  background: rgba(10,22,40,0.85);
  border-radius: var(--radius);
  padding: 12px 16px;
  overflow: hidden;
  height: 44px;
  position: relative;
}
.danmu-item {
  position: absolute;
  white-space: nowrap;
  color: var(--gold-light);
  font-size: 0.85rem;
  animation: danmu-scroll 12s linear infinite;
  top: 50%;
  transform: translateY(-50%);
}
@keyframes danmu-scroll {
  0% { left: 100%; }
  100% { left: -100%; }
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow-lg); padding: 16px; gap: 4px; }
  .main-nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .header-inner { position: relative; }
  .hero { min-height: 360px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .lottery-result-inner { gap: 12px; }
  .ball { width: 34px; height: 34px; font-size: 0.78rem; }
  .ball-special { width: 40px; height: 40px; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: 1fr 1fr; }
  .top-bar-links { display: none; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr 1fr; }
  .footer-qrcodes { flex-direction: column; align-items: center; }
  .lottery-result-meta { display: none; }
}

/* ---- 工具类 ---- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-red { color: var(--accent2); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none; }

/* ---- 内页布局 ---- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 32px 0;
}
.page-main { min-width: 0; }
.page-sidebar {}
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.sidebar-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a { color: var(--text); }
.sidebar-list li a:hover { color: var(--accent); }
.sidebar-hot-num {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.hot-ball {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--white);
}

@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { display: none; }
}

/* ---- 面包屑 ---- */
.breadcrumb {
  background: var(--gray-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-light);
}
.breadcrumb ol li:not(:last-child)::after {
  content: '›';
  margin-left: 8px;
  color: var(--gray);
}
.breadcrumb ol li a { color: var(--accent); }
.breadcrumb ol li a:hover { text-decoration: underline; }

/* ---- 开奖记录表格 ---- */
.result-table-wrap { overflow-x: auto; }
.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.result-table th {
  background: var(--primary);
  color: var(--gold);
  padding: 12px 10px;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}
.result-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.result-table tr:hover td { background: var(--gray-light); }
.balls-row {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
}
.ball-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: white;
}

/* ---- 分页 ---- */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
}

/* ---- 联系页 ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-info-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.contact-item-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item-label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 2px;
}
.contact-item-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.qrcode-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.qrcode-item {
  text-align: center;
}
.qrcode-item img {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
}
.qrcode-item p {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* ---- 用户评价 ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}
.review-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}
.review-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.review-date {
  font-size: 0.75rem;
  color: var(--text-light);
}
.review-stars {
  color: #f0c040;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.review-text {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(10,22,40,0.06);
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
}
.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-item.open .faq-question { color: var(--accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer > div {
  padding: 0 20px 16px;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ---- 专家卡片 ---- */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.expert-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}
.expert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.expert-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  border: 3px solid var(--accent);
}
.expert-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.expert-title {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.expert-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}
.expert-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}
.expert-awards span {
  background: var(--gray-light);
  color: var(--text-light);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
}
.expert-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* ---- 合作伙伴 ---- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}
.partner-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}
.partner-item:hover { transform: translateY(-3px); }
.partner-logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: white;
  margin: 0 auto 8px;
}
.partner-name {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ---- 分享按钮 ---- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.share-label {
  font-size: 0.82rem;
  color: var(--text-light);
}
.share-btn {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.share-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.text-center { text-align: center; }

/* ---- 悬浮工具栏 ---- */
.float-bar {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}
.float-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(230,57,70,0.4);
  transition: var(--transition);
  animation: pulse 2s infinite;
}
.float-btn:hover { transform: scale(1.1); }
.float-top {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--gold);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.float-top:hover { background: var(--accent); color: var(--primary); }

/* ---- 统计数字区 ---- */
.stats-bar {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* ---- 底部 ---- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img {
  height: 40px;
  margin-bottom: 14px;
  display: block;
}
.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.footer-qrcodes {
  display: flex;
  gap: 16px;
}
.footer-qr-item {
  text-align: center;
}
.footer-qr-item img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 4px;
}
.footer-qr-item p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.footer-col h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
  padding: 5px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---- 动画 ---- */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(230,57,70,0); }
}
@keyframes danmuSlide {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}
.danmu-item {
  position: absolute;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--gold-light);
  animation: danmuSlide linear forwards;
  pointer-events: none;
}
