/* 六合彩网站 - 主样式表 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #d32f2f;
  --secondary-color: #ffd700;
  --accent-color: #1a237e;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --warning-color: #ff9800;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* 头部导航 */
header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #c62828 100%);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary-color);
  font-size: 20px;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.search-box {
  flex: 1;
  max-width: 300px;
  margin: 0 30px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 2px var(--secondary-color);
}

.search-box button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 16px;
}

.header-contact {
  display: flex;
  gap: 20px;
  font-size: 12px;
}

.header-contact span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 导航菜单 */
nav {
  background: rgba(0, 0, 0, 0.1);
  padding: 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  padding: 0 40px;
}

nav ul {
  list-style: none;
  display: flex;
  width: 100%;
}

nav li {
  flex: 1;
  text-align: center;
}

nav a {
  display: block;
  padding: 14px 15px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--secondary-color);
}

nav a.active {
  background: rgba(255, 255, 255, 0.15);
  border-bottom-color: var(--secondary-color);
}

/* 主容器 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .header-top {
    padding: 10px 20px;
    flex-wrap: wrap;
  }
  
  .search-box {
    max-width: 100%;
    margin: 10px 0 0 0;
    order: 3;
    flex-basis: 100%;
  }
  
  .header-contact {
    font-size: 11px;
    gap: 10px;
  }
  
  .nav-container {
    padding: 0 20px;
    overflow-x: auto;
  }
  
  nav ul {
    flex-wrap: nowrap;
  }
  
  nav li {
    flex: 0 0 auto;
    min-width: 80px;
  }
}

/* 横幅区域 */
.banner {
  background: linear-gradient(135deg, var(--accent-color) 0%, #283593 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  margin: 20px 0;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.5;
}

.banner h1 {
  font-size: 36px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.banner p {
  font-size: 16px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .banner {
    padding: 40px 0;
  }
  
  .banner h1 {
    font-size: 24px;
  }
}

/* 内容区域 */
main {
  min-height: calc(100vh - 300px);
  padding: 40px 0;
}

section {
  margin-bottom: 60px;
}

section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--primary-color);
  border-left: 4px solid var(--secondary-color);
  padding-left: 15px;
  position: relative;
}

section h2::after {
  content: '六合彩';
  position: absolute;
  right: 0;
  font-size: 12px;
  color: var(--secondary-color);
  background: var(--bg-light);
  padding: 2px 8px;
  border-radius: 3px;
}

/* 视频卡片网格 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.video-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
}

.play-button::after {
  content: '▶';
  color: var(--primary-color);
  font-size: 24px;
  margin-left: 3px;
}

.video-card:hover .play-button {
  opacity: 1;
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
  line-height: 1.4;
  min-height: 40px;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.video-stats {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--text-light);
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* FAQ 区域 */
.faq-container {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  margin: 40px 0;
}

.faq-item {
  background: var(--bg-white);
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
  border-left: 4px solid var(--secondary-color);
}

.faq-question {
  padding: 15px;
  background: var(--bg-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-light);
}

.faq-item.active .faq-answer {
  padding: 15px;
  max-height: 500px;
}

/* 用户评论 */
.reviews-container {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  margin: 40px 0;
}

.review-item {
  background: var(--bg-white);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 6px;
  border-left: 4px solid var(--primary-color);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-author {
  font-weight: 600;
  color: var(--text-dark);
}

.review-rating {
  color: var(--secondary-color);
  font-size: 14px;
}

.review-date {
  font-size: 12px;
  color: var(--text-light);
}

.review-content {
  color: var(--text-light);
  line-height: 1.6;
}

/* 专家展示 */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.expert-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.expert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.expert-avatar {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 60px;
}

.expert-info {
  padding: 20px;
}

.expert-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.expert-title {
  font-size: 14px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.expert-description {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.5;
}

.expert-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.expert-actions a {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.expert-actions a:first-child {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.expert-actions a:first-child:hover {
  background: #c62828;
}

.expert-actions a:last-child {
  color: var(--primary-color);
}

.expert-actions a:last-child:hover {
  background: var(--bg-light);
}

/* 合作品牌 */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.partner-logo {
  background: var(--bg-light);
  height: 120px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  padding: 15px;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  background: var(--bg-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 加入指南 */
.guide-container {
  background: linear-gradient(135deg, var(--accent-color) 0%, #283593 100%);
  color: white;
  padding: 40px;
  border-radius: 8px;
  margin: 40px 0;
}

.guide-title {
  font-size: 24px;
  margin-bottom: 25px;
  text-align: center;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.guide-step {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 6px;
  border-left: 4px solid var(--secondary-color);
}

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 10px;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-description {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.9;
}

/* 联系信息 */
.contact-section {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 8px;
  margin: 40px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.contact-item {
  background: var(--bg-white);
  padding: 20px;
  border-radius: 6px;
  border-top: 3px solid var(--primary-color);
}

.contact-label {
  font-size: 12px;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.contact-value {
  font-size: 14px;
  color: var(--text-dark);
  word-break: break-all;
}

.contact-qr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.qr-item {
  text-align: center;
}

.qr-code {
  width: 120px;
  height: 120px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-light);
}

.qr-label {
  font-size: 12px;
  color: var(--text-light);
}

/* 页脚 */
footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, #2c2c2c 100%);
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
  margin-bottom: 10px;
}

/* 面包屑导航 */
.breadcrumb {
  padding: 15px 0;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--secondary-color);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--border-color);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: #c62828;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: #ffc107;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* 标签 */
.tag {
  display: inline-block;
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.tag-primary {
  background: var(--primary-color);
  color: white;
}

.tag-secondary {
  background: var(--secondary-color);
  color: var(--text-dark);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .experts-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  
  .partners-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .guide-steps {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  section h2 {
    font-size: 22px;
  }
  
  .banner h1 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .header-top {
    padding: 8px 15px;
  }
  
  .header-contact {
    display: none;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .experts-grid {
    grid-template-columns: 1fr;
  }
  
  nav a {
    padding: 10px 8px;
    font-size: 12px;
  }
  
  section h2 {
    font-size: 18px;
  }
}

/* 懒加载占位符 */
.lazy-placeholder {
  background: linear-gradient(90deg, var(--bg-light) 25%, rgba(255, 255, 255, 0.2) 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* 动画效果 */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: slideInUp 0.6s ease-out;
}

/* 打印样式 */
@media print {
  header, nav, footer, .faq-container, .reviews-container {
    display: none;
  }
  
  body {
    background: white;
  }
}
