/* 问鼎娱乐(中国)官方网站 – style.css */
/* 随机渐变风格：金色/深蓝/紫罗兰 */
:root {
  --brand-primary: #1a1a2e;
  --brand-secondary: #16213e;
  --brand-accent: #f0c040;
  --brand-accent-light: #f5d86a;
  --brand-text: #e0e0e0;
  --brand-text-dark: #1a1a2e;
  --brand-bg: #0f0f1a;
  --brand-card-bg: rgba(26, 26, 46, 0.8);
  --brand-glass: rgba(255, 255, 255, 0.05);
  --brand-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --brand-radius: 16px;
  --brand-transition: 0.3s ease;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--brand-bg);
  color: var(--brand-text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

body.light-mode {
  --brand-bg: #f5f5fa;
  --brand-text: #1a1a2e;
  --brand-card-bg: rgba(255, 255, 255, 0.85);
  --brand-glass: rgba(0, 0, 0, 0.03);
  --brand-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --brand-primary: #1a1a2e;
  --brand-secondary: #e8e8f0;
}

a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: color var(--brand-transition);
}

a:hover {
  color: var(--brand-accent-light);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

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

/* header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 192, 64, 0.15);
  transition: background 0.4s;
}

body.light-mode .header {
  background: rgba(245, 245, 250, 0.85);
  border-bottom-color: rgba(26, 26, 46, 0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-accent);
}

.logo svg {
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  color: var(--brand-text);
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  transition: width var(--brand-transition);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--brand-accent);
  border-radius: 2px;
  transition: var(--brand-transition);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--brand-accent);
  color: var(--brand-accent);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--brand-transition);
}

.theme-toggle:hover {
  background: var(--brand-accent);
  color: var(--brand-text-dark);
}

/* hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 192, 64, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -200px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 192, 64, 0.05) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--brand-accent);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--brand-transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--brand-accent);
  color: var(--brand-text-dark);
}

.btn-primary:hover {
  background: var(--brand-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 192, 64, 0.3);
}

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

.btn-outline:hover {
  background: var(--brand-accent);
  color: var(--brand-text-dark);
}

.hero-carousel {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-carousel span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--brand-transition);
}

.hero-carousel span.active {
  background: var(--brand-accent);
  width: 30px;
  border-radius: 6px;
}

/* sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--brand-card-bg);
  backdrop-filter: blur(8px);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--brand-accent);
}

.section-subtitle {
  text-align: center;
  color: var(--brand-text);
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--brand-glass);
  border-radius: var(--brand-radius);
  padding: 28px 24px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(240, 192, 64, 0.08);
  box-shadow: var(--brand-shadow);
  transition: var(--brand-transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-accent);
  box-shadow: 0 12px 40px rgba(240, 192, 64, 0.15);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--brand-accent);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--brand-accent);
}

.card p {
  opacity: 0.8;
  font-size: 0.95rem;
}

.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  text-align: center;
}

.stat-item {
  flex: 1;
  min-width: 150px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--brand-accent);
}

.stat-label {
  opacity: 0.7;
  margin-top: 6px;
}

.testimonial {
  font-style: italic;
  padding: 24px;
  border-left: 4px solid var(--brand-accent);
  background: var(--brand-glass);
  border-radius: 8px;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
  margin-top: 12px;
  color: var(--brand-accent);
}

.faq-item {
  border-bottom: 1px solid rgba(240, 192, 64, 0.1);
  padding: 16px 0;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-question span {
  transition: transform 0.3s;
}

.faq-item.open .faq-question span {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding-top: 0;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 12px;
}

.howto-step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.howto-step-num {
  background: var(--brand-accent);
  color: var(--brand-text-dark);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.footer {
  background: var(--brand-primary);
  padding: 60px 0 20px;
  border-top: 1px solid rgba(240, 192, 64, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: var(--brand-accent);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer a, .footer p {
  opacity: 0.7;
  font-size: 0.9rem;
  line-height: 2;
}

.footer a:hover {
  opacity: 1;
  color: var(--brand-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(240, 192, 64, 0.08);
  opacity: 0.6;
  font-size: 0.85rem;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--brand-accent);
  color: var(--brand-text-dark);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(240, 192, 64, 0.3);
  transition: var(--brand-transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: scale(1.1);
}

.search-box {
  display: flex;
  max-width: 400px;
  margin: 0 auto 40px;
}

.search-box input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 30px 0 0 30px;
  border: 1px solid var(--brand-accent);
  background: var(--brand-glass);
  color: var(--brand-text);
  outline: none;
}

.search-box button {
  padding: 12px 24px;
  border-radius: 0 30px 30px 0;
  border: 1px solid var(--brand-accent);
  background: var(--brand-accent);
  color: var(--brand-text-dark);
  font-weight: 600;
  cursor: pointer;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  font-size: 0.85rem;
  opacity: 0.6;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--brand-text);
}

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

@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    padding: 20px;
    gap: 16px;
  }
  .nav.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 50px 0;
  }
  .stats {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}