/* ===== C7娱乐 - 全站样式 ===== */
/* 独特配色：深紫+金色+暗红 渐变风格 */

:root {
  --primary: #6b21a8;
  --primary-dark: #4c1d95;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --danger: #b91c1c;
  --dark: #0f0b1a;
  --dark-card: #1a1230;
  --dark-surface: #231b3a;
  --text-main: #f1e8ff;
  --text-muted: #a78bfa;
  --text-gold: #fcd34d;
  --border-color: #3b2d5e;
  --gradient-hero: linear-gradient(135deg, #1a0533 0%, #2d1054 40%, #4c1d95 100%);
  --gradient-card: linear-gradient(160deg, #1a1230 0%, #2a1f45 100%);
  --gradient-btn: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-btn-hover: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --shadow-card: 0 8px 32px rgba(107, 33, 168, 0.18);
  --shadow-glow: 0 0 24px rgba(245, 158, 11, 0.15);
  --radius: 14px;
  --radius-sm: 8px;
  --font-main: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--dark);
  color: var(--text-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== 顶部导航 ===== */
.site-header {
  background: linear-gradient(180deg, #0f0b1a 0%, #1a1230 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  position: relative;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { width: 44px; height: 44px; border-radius: 50%; }
.site-logo span { font-size: 1.35rem; font-weight: 800; color: var(--text-gold); letter-spacing: 1px; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.5rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
  flex-wrap: wrap;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--text-main);
  font-size: .92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background .25s, color .25s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--primary);
  color: var(--text-gold);
}

/* ===== Hero 横幅 ===== */
.hero-section {
  position: relative;
  background: var(--gradient-hero);
  padding: 56px 0 48px;
  overflow: hidden;
  text-align: center;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 160%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(107,33,168,.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-bg-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: .18;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-content h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-gold);
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(245,158,11,.3);
}
.hero-content p {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 24px;
}

/* ===== 通用按钮 ===== */
.btn-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gradient-btn);
  color: #1a0533;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .3s;
  box-shadow: 0 4px 20px rgba(245,158,11,.3);
}
.btn-cta:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(245,158,11,.45);
  color: #1a0533;
}
.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  border-radius: 50px;
  transition: background .25s, color .25s;
}
.btn-outline:hover {
  background: var(--accent);
  color: #1a0533;
}

/* ===== 区块标题 ===== */
.section-title {
  text-align: center;
  margin-bottom: 36px;
}
.section-title h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-gold);
  margin-bottom: 10px;
}
.section-title p {
  color: var(--text-muted);
  font-size: .98rem;
}
.section-title .divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== 卡片网格 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.game-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.game-card .card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.game-card .card-body {
  padding: 18px;
}
.game-card .card-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-gold);
  margin-bottom: 8px;
}
.game-card .card-body p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 14px 0;
  font-size: .88rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { color: var(--text-gold); }

/* ===== 各模块区域 ===== */
.section-block {
  padding: 52px 0;
}
.section-block:nth-child(even) {
  background: var(--dark-surface);
}

/* 充值活动 */
.promo-banner {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #6b21a8 100%);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  border: 1px solid rgba(245,158,11,.2);
  position: relative;
  overflow: hidden;
}
.promo-banner::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,.15) 0%, transparent 70%);
  pointer-events: none;
}
.promo-banner h3 {
  font-size: 1.5rem;
  color: var(--text-gold);
  margin-bottom: 12px;
}
.promo-banner p { color: #e0d4f5; margin-bottom: 18px; }

/* 牌照模块 */
.license-block {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.license-block .license-img {
  flex: 0 0 280px;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  overflow: hidden;
}
.license-block .license-info { flex: 1; min-width: 260px; }
.license-block .license-info h3 {
  font-size: 1.3rem;
  color: var(--text-gold);
  margin-bottom: 12px;
}

/* 时时彩走势 */
.trend-module {
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border-color);
}
.trend-module img {
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

/* 彩票游戏 */
.lottery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.lottery-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.lottery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.lottery-item h4 {
  color: var(--text-gold);
  margin-bottom: 8px;
}

/* 文章列表 */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.article-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .3s;
}
.article-card:hover { transform: translateY(-4px); }
.article-card h4 {
  color: var(--text-gold);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.article-card p { color: var(--text-muted); font-size: .9rem; }
.article-card .read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
}

/* 注册模块 */
.register-section {
  background: linear-gradient(135deg, #1a0533 0%, #3b1a6e 100%);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border-color);
}
.register-section h3 {
  font-size: 1.5rem;
  color: var(--text-gold);
  margin-bottom: 12px;
}
.register-form {
  max-width: 420px;
  margin: 20px auto 0;
}
.register-form input {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: .95rem;
}
.register-form input::placeholder { color: var(--text-muted); }

/* 公司简介 */
.about-flex {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.about-flex .about-img {
  flex: 0 0 340px;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-flex .about-text { flex: 1; min-width: 280px; }
.about-flex .about-text h3 {
  color: var(--text-gold);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* 支付方式 */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.payment-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: transform .3s;
}
.payment-item:hover { transform: translateY(-3px); }
.payment-item img { width: 64px; height: 64px; margin: 0 auto 12px; object-fit: contain; }
.payment-item h4 { color: var(--text-gold); font-size: .95rem; }

/* 客户支持 */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.support-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.support-item .icon-circle {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
}
.support-item h4 { color: var(--text-gold); margin-bottom: 8px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--text-gold);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
}
.faq-question:hover { background: rgba(107,33,168,.15); }
.faq-question .arrow {
  transition: transform .3s;
  font-size: 1.2rem;
}
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  padding: 0 22px;
  color: var(--text-muted);
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 22px 18px;
}

/* 用户评论 */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.review-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.review-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-gold);
}
.review-meta h4 { color: var(--text-main); font-size: .95rem; }
.review-meta .badge {
  display: inline-block;
  padding: 2px 10px;
  background: var(--primary-dark);
  color: var(--accent);
  font-size: .75rem;
  border-radius: 20px;
  margin-top: 4px;
}
.stars { color: var(--accent); font-size: 1rem; margin-bottom: 10px; }
.review-card p { color: var(--text-muted); font-size: .9rem; }
.review-date { color: var(--text-muted); font-size: .8rem; margin-top: 10px; opacity: .7; }

/* ===== 页脚 ===== */
.site-footer {
  background: linear-gradient(180deg, #0f0b1a 0%, #080510 100%);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: var(--text-gold);
  font-size: 1rem;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: .82rem;
}
.footer-bottom .age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 2px solid var(--danger);
  border-radius: 50%;
  color: var(--danger);
  font-weight: 900;
  font-size: .9rem;
  margin: 10px auto;
}
.footer-payments {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.footer-payments img { height: 32px; width: auto; opacity: .7; transition: opacity .2s; }
.footer-payments img:hover { opacity: 1; }

/* ===== 内页通用 ===== */
.page-hero {
  background: var(--gradient-hero);
  padding: 40px 0;
  text-align: center;
}
.page-hero h1 {
  font-size: 1.8rem;
  color: var(--text-gold);
  margin-bottom: 10px;
}
.page-content {
  padding: 40px 0;
}
.page-content h2 {
  color: var(--text-gold);
  font-size: 1.4rem;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}
.page-content h3 {
  color: var(--accent-light);
  font-size: 1.15rem;
  margin: 20px 0 10px;
}
.page-content p {
  margin-bottom: 14px;
  color: var(--text-muted);
}
.page-content ul, .page-content ol {
  margin: 10px 0 18px 24px;
  color: var(--text-muted);
}
.page-content li { margin-bottom: 6px; }
.content-img {
  border-radius: var(--radius);
  margin: 18px 0;
  border: 1px solid var(--border-color);
}

/* 表格 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}
.info-table th, .info-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  text-align: left;
}
.info-table th {
  background: var(--primary-dark);
  color: var(--text-gold);
  font-weight: 700;
}
.info-table td { color: var(--text-muted); }

/* ===== APP下载页 ===== */
.download-hero {
  background: linear-gradient(135deg, #1a0533 0%, #4c1d95 60%, #7c3aed 100%);
  padding: 60px 0;
  text-align: center;
}
.download-hero .phone-mockup {
  max-width: 280px;
  margin: 24px auto;
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(107,33,168,.4);
}
.download-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.download-btns .btn-cta { min-width: 180px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 2px;
  }
  .main-nav a { padding: 12px 16px; }
  .hero-content h1 { font-size: 1.6rem; }
  .card-grid { grid-template-columns: 1fr; }
  .license-block { flex-direction: column; }
  .license-block .license-img { flex: none; width: 100%; }
  .about-flex { flex-direction: column; }
  .about-flex .about-img { flex: none; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .lottery-grid { grid-template-columns: 1fr 1fr; }
  .payment-grid { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .hero-content h1 { font-size: 1.35rem; }
  .section-title h2 { font-size: 1.35rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .lottery-grid { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: 1fr; }
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0;
  animation: fadeInUp .6s ease forwards;
}
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* 负责任博彩声明 */
.responsible-section {
  background: linear-gradient(135deg, #1a0a0a 0%, #2d1010 100%);
  border: 1px solid rgba(185,28,28,.3);
  border-radius: var(--radius);
  padding: 28px;
}
.responsible-section h3 { color: #fca5a5; margin-bottom: 12px; }
.responsible-section p { color: #d4a0a0; }
