/* ==========================================================================
   AF88 - 永恒金爵风格 CSS样式系统
   核心理念：复刻蒙特卡洛赌场的经典与尊贵
   ========================================================================== */

/* CSS变量定义 */
:root {
  /* 永恒金爵颜色系统 */
  --primary-black: #0D0D0D;        /* 哑光黑 */
  --secondary-charcoal: #1A1A1A;   /* 深炭灰 */
  --accent-gold: #D4AF37;          /* 香槟金 */
  --light-gold: #F4E4BC;           /* 浅金色 */
  --ivory-white: #F8F6F0;          /* 象牙白 */
  --text-white: #FFFFFF;           /* 纯白文字 */
  --text-light: #CCCCCC;           /* 浅灰文字 */
  --text-muted: #888888;           /* 暗灰文字 */

  /* 功能性颜色 */
  --success-green: #22C55E;        /* 成功绿 */
  --warning-orange: #F59E0B;       /* 警告橙 */
  --error-red: #EF4444;            /* 错误红 */
  --info-blue: #3B82F6;            /* 信息蓝 */

  /* 渐变定义 */
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 100%);
  --gradient-dark: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 100%);
  --gradient-overlay: linear-gradient(rgba(13, 13, 13, 0.8), rgba(26, 26, 26, 0.9));

  /* 阴影系统 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 4px 16px rgba(212, 175, 55, 0.3);

  /* 间距系统 */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */

  /* 边框半径 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 50%;

  /* 字体大小 */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */

  /* 过渡效果 */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* 字体族 */
  --font-serif: 'Playfair Display', 'Times New Roman', serif;
  --font-sans: 'Lato', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   基础重置和全局样式
   ========================================================================== */

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--primary-black);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   排版系统
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text-white);
}

h1 {
  font-size: var(--text-5xl);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: var(--text-4xl);
  color: var(--accent-gold);
}

h3 {
  font-size: var(--text-3xl);
  color: var(--light-gold);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-light);
  font-size: var(--text-base);
}

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

a:hover {
  color: var(--light-gold);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* ==========================================================================
   布局容器
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-dark {
  background: var(--gradient-dark);
}

.section-gold {
  background: var(--gradient-gold);
  color: var(--primary-black);
}

/* ==========================================================================
   Header主导航
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent-gold);
  transition: var(--transition-normal);
}

.header.scrolled {
  background: rgba(13, 13, 13, 0.98);
  box-shadow: var(--shadow-lg);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.logo {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

/* Logo图片样式 */
.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-white);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold);
}

.nav-link.active {
  background: var(--gradient-gold);
  color: var(--primary-black);
  font-weight: 600;
}

/* 下拉菜单 */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--secondary-charcoal);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-fast);
  min-width: 200px;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-light);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold);
}

.dropdown-item:last-child {
  border-bottom: none;
}

/* CTA按钮 */
.nav-cta {
  display: flex;
  gap: var(--space-sm);
  margin-left: var(--space-lg);
}

/* 移动端菜单切换 */
.mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--accent-gold);
  margin: 2px 0;
  transition: var(--transition-fast);
}

/* ==========================================================================
   按钮组件
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: var(--text-base);
  line-height: 1.5;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--primary-black);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5);
  color: var(--primary-black);
}

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

.btn-secondary:hover {
  background: var(--accent-gold);
  color: var(--primary-black);
}

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

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

.btn-large {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-lg);
}

.btn-small {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
}

/* ==========================================================================
   Hero区域
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary-black);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-lg);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-light);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   卡片组件
   ========================================================================== */

.card {
  background: var(--secondary-charcoal);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-gold);
}

.card-header {
  margin-bottom: var(--space-md);
}

.card-title {
  color: var(--accent-gold);
  margin-bottom: var(--space-sm);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.card-content {
  color: var(--text-light);
}

/* ==========================================================================
   网格系统
   ========================================================================== */

.grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ==========================================================================
   内容块组件
   ========================================================================== */

/* Expert Badge */
.expert-badge {
  background: var(--gradient-gold);
  color: var(--primary-black);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 20px;
  font-size: 0.9rem;
  margin: var(--space-sm) 0 var(--space-lg) 0;
  display: inline-block;
  box-shadow: var(--shadow-gold);
  font-weight: 500;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.expert-badge strong {
  font-weight: 700;
  color: var(--primary-black);
}

/* Expert page specific styles */
.contact-info {
  background: var(--secondary-charcoal);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.contact-info p {
  margin: var(--space-sm) 0;
  color: var(--text-light);
}

.disclaimer {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-top: var(--space-xl);
}

.disclaimer p {
  color: var(--text-light);
  margin: 0;
}

.card-meta {
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.content-block {
  display: flex;
  gap: var(--space-2xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
  padding: var(--space-2xl);
  background: var(--secondary-charcoal);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.content-block.horizontal {
  flex-direction: row;
}

.content-block.vertical {
  flex-direction: column;
  text-align: center;
}

.content-block.reverse {
  flex-direction: row-reverse;
}

.content-image {
  flex: 0 0 40%;
  max-width: 400px;
}

.content-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.content-text {
  flex: 1;
}

.content-text h3 {
  color: var(--accent-gold);
  margin-bottom: var(--space-md);
}

.content-text p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--primary-black);
  border-top: 1px solid var(--accent-gold);
  padding: var(--space-3xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h4 {
  color: var(--accent-gold);
  margin-bottom: var(--space-md);
}

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

.footer-section li {
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: var(--text-light);
  transition: var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--text-muted);
}

.payment-methods {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.payment-icon {
  width: 50px;
  height: 30px;
  object-fit: contain;
  background: white;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   表单组件
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--accent-gold);
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: var(--space-md);
  background: var(--secondary-charcoal);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: var(--text-base);
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23D4AF37' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  background-size: 20px;
  padding-right: var(--space-2xl);
}

/* ==========================================================================
   工具类
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-gold { color: var(--accent-gold); }
.text-white { color: var(--text-white); }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }

.bg-dark { background: var(--primary-black); }
.bg-charcoal { background: var(--secondary-charcoal); }
.bg-gold { background: var(--gradient-gold); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.p-0 { padding: 0; }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.hidden { display: none; }
.visible { display: block; }

/* ==========================================================================
   动画效果
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes goldGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.6);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-right {
  animation: fadeInRight 0.8s ease-out;
}

.animate-glow {
  animation: goldGlow 2s ease-in-out infinite;
}

/* ==========================================================================
   响应式设计
   ========================================================================== */

/* 平板设备 */
@media (max-width: 768px) {
  .logo-img {
    height: 32px;
    max-width: 100px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-charcoal);
    flex-direction: column;
    padding: var(--space-lg);
    border-top: 1px solid var(--accent-gold);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-md);
  }

  .content-block.horizontal {
    flex-direction: column;
  }

  .content-block.reverse {
    flex-direction: column;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

/* 手机设备 */
@media (max-width: 480px) {
  .logo-img {
    height: 28px;
    max-width: 80px;
  }

  .container,
  .container-fluid {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  h3 {
    font-size: var(--text-xl);
  }

  .card {
    padding: var(--space-md);
  }

  .content-block {
    padding: var(--space-lg);
    gap: var(--space-lg);
  }

  .grid {
    gap: var(--space-md);
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .payment-methods {
    gap: var(--space-sm);
  }

  .payment-icon {
    width: 40px;
    height: 25px;
  }
}

/* ==========================================================================
   打印样式
   ========================================================================== */

@media print {
  .header,
  .footer,
  .nav-cta,
  .mobile-toggle {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 1rem 0;
  }
}

/* ==========================================================================
   可访问性优化
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  :root {
    --accent-gold: #FFD700;
    --text-light: #E5E5E5;
  }
}

/* 焦点指示器 */
*:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* 屏幕阅读器隐藏 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}