:/* 百家乐官方网站 style.css - 完整样式 */
:root {
  --bg: #f0f2f5;
  --surface: rgba(255,255,255,0.7);
  --text: #1a1a2e;
  --text2: #555;
  --primary: #e94560;
  --primary2: #0f3460;
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 24px;
  --glass: rgba(255,255,255,0.6);
  --border: rgba(255,255,255,0.3);
  --card-bg: #fff;
  --nav-bg: rgba(255,255,255,0.8);
  --footer-bg: #1a1a2e;
  --footer-text: #ccc;
}
.dark {
  --bg: #0f0f1a;
  --surface: rgba(30,30,50,0.7);
  --text: #e0e0e0;
  --text2: #aaa;
  --primary: #ff6b81;
  --primary2: #16213e;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --glass: rgba(20,20,40,0.6);
  --border: rgba(255,255,255,0.08);
  --card-bg: #1a1a2e;
  --nav-bg: rgba(15,15,30,0.9);
  --footer-bg: #0a0a15;
  --footer-text: #888;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
  scroll-behavior: smooth;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: 0.2s;
}
a:hover {
  opacity: 0.8;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo svg {
  width: 36px;
  height: 36px;
}
nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
nav a {
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: 0.2s;
  position: relative;
}
nav a:hover,
nav a.active {
  background: var(--primary);
  color: #fff;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 4px;
  transition: 0.3s;
}
.dark-toggle {
  background: none;
  border: 2px solid var(--border);
  border-radius: 40px;
  padding: 6px 14px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
  transition: 0.2s;
}
.dark-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-radius: 40px;
  padding: 4px 12px;
  border: 1px solid var(--border);
}
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  padding: 6px 8px;
  color: var(--text);
  width: 120px;
  font-size: 0.85rem;
}
.search-box input::placeholder {
  color: var(--text2);
}
.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text2);
  font-size: 1rem;
}
.banner {
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0f3460, #1a1a2e, #e94560);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 60px 24px;
}
.banner-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 800px;
}
.banner-slide.active {
  display: flex;
}
.banner h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.banner p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
}
.banner .btn {
  background: #fff;
  color: #1a1a2e;
  padding: 14px 40px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.banner .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.banner-dots {
  position: absolute;
  bottom: 30px;
  display: flex;
  gap: 12px;
}
.banner-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: 0.3s;
}
.banner-dots span.active {
  background: #fff;
  transform: scale(1.3);
}
section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title h2 {
  font-size: 2.4rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 4px;
  margin: 12px auto 0;
}
.section-title p {
  color: var(--text2);
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
}
.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.card p {
  color: var(--text2);
  font-size: 0.95rem;
}
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 80px;
  padding: 40px 0;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  color: var(--text2);
  margin-top: 4px;
}
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 4px;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--bg);
}
.timeline-item h4 {
  font-size: 1.2rem;
}
.timeline-item .date {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  cursor: pointer;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}
.faq-question span {
  transition: 0.3s;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  color: var(--text2);
  padding-top: 0;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 16px;
}
.faq-item.open .faq-question span {
  transform: rotate(45deg);
}
.article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.3s;
  border: 1px solid var(--border);
}
.article-card:hover {
  transform: translateY(-6px);
}
.article-card .art-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary2), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
}
.article-card .art-body {
  padding: 20px 24px;
}
.article-card .art-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.article-card .art-body .date {
  font-size: 0.8rem;
  color: var(--text2);
}
.article-card .art-body p {
  color: var(--text2);
  font-size: 0.9rem;
  margin: 8px 0;
}
.article-card .art-body .btn {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 6px 20px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.85rem;
}
.article-card .art-body .btn:hover {
  background: var(--primary);
  color: #fff;
}
.howto-steps {
  counter-reset: step;
}
.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}
.howto-step::before {
  counter-increment: step;
  content: counter(step);
  min-width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.howto-step h4 {
  margin-bottom: 6px;
}
.howto-step p {
  color: var(--text2);
}
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 30px;
  margin-top: 60px;
}
footer .grid-4 {
  gap: 40px;
}
footer h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.1rem;
}
footer a {
  color: var(--footer-text);
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
footer a:hover {
  color: var(--primary);
}
footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: 0.3s;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-4px);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  padding: 20px;
  border-bottom: 1px solid var(--border);
  z-index: 999;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu a {
  padding: 10px 16px;
  border-radius: 40px;
}
.search-modal {
  display: none;
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 1001;
  border: 1px solid var(--border);
}
.search-modal input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 40px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  outline: none;
}
.search-modal .results {
  margin-top: 16px;
  max-height: 300px;
  overflow-y: auto;
}
.search-modal .results div {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.search-modal .results div:hover {
  color: var(--primary);
}
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1000;
}
@media (max-width: 768px) {
  nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .search-box {
    display: none;
  }
  .header-inner .search-box {
    display: flex;
    order: 3;
    margin-left: auto;
  }
  .banner {
    min-height: 350px;
    padding: 40px 20px;
  }
  .stats {
    gap: 24px;
  }
  .stat-number {
    font-size: 2rem;
  }
  section {
    padding: 48px 0;
  }
  .section-title h2 {
    font-size: 1.8rem;
  }
  .back-to-top {
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.lazy-svg {
  background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
  border-radius: 12px;
}
.dark .lazy-svg {
  background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.friend-links a {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 0.85rem;
}