/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 浅色主题（默认） */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --bg: #f0f4f8;
  --bg-alt: #e8eef4;
  --text: #1e293b;
  --text-muted: #64748b;
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(255, 255, 255, 0.5);
  --border: rgba(13, 148, 136, 0.15);
  --shadow: rgba(0, 0, 0, 0.08);
  --divider: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* 深色主题 */
[data-theme="dark"] {
  --primary: #14b8a6;
  --primary-dark: #0d9488;
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
  --border: rgba(20, 184, 166, 0.2);
  --shadow: rgba(0, 0, 0, 0.3);
  --divider: linear-gradient(90deg, transparent, var(--primary), transparent);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

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

/* 液态玻璃效果 */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  box-shadow: 
    0 4px 24px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .glass {
  box-shadow: 
    0 4px 24px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-hover {
  transition: all 0.3s ease;
}

.glass-hover:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 40px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* 导航栏 - 液态玻璃 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.8);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-highlight {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s;
}

.theme-toggle:hover {
  transform: rotate(20deg);
  background: var(--primary);
  color: white;
}

.nav-cta {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

/* Hero 区域 */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 60px;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(13, 148, 136, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(13, 148, 136, 0.08) 0%, transparent 50%);
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/laishu.png');
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: 0;
}

/* 背景遮罩层，让文字更清晰 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--bg) 0%,
    rgba(240, 244, 248, 0.4) 25%,
    rgba(240, 244, 248, 0.2) 40%,
    rgba(240, 244, 248, 0.4) 50%,
    var(--bg) 100%
  );
  z-index: 0;
}

[data-theme="dark"] .hero::after {
  background: linear-gradient(180deg,
    var(--bg) 0%,
    rgba(15, 23, 42, 0.4) 25%,
    rgba(15, 23, 42, 0.2) 50%,
    rgba(15, 23, 42, 0.4) 75%,
    var(--bg) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.badge-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px var(--primary);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.hero-title {
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -3px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 28px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.hero-card {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
  border-radius: 20px;
}

.card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.card-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--border);
}

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

.btn-large {
  padding: 18px 36px;
  font-size: 16px;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--text-muted);
  text-decoration: none;
  animation: bounce 2s infinite;
  opacity: 0.6;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* 区域分隔线 */
.section-divider {
  height: 1px;
  background: var(--divider);
  margin: 0 auto;
  max-width: 200px;
  opacity: 0.5;
}

/* 通用区域样式 */
section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* 特色区域 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.feature-card {
  padding: 36px;
  border-radius: 20px;
  text-align: center;
}

.feature-icon {
  font-size: 52px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 图集区域 */
.gallery {
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

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

.gallery-img .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.gallery-img .placeholder span {
  font-size: 64px;
}

.gallery-img .placeholder p {
  color: var(--text-muted);
  font-size: 14px;
}

.gallery-info {
  padding: 24px;
}

.gallery-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.gallery-info p {
  color: var(--text-muted);
  font-size: 14px;
}

.gallery-tip {
  text-align: center;
  padding: 20px;
  border-radius: 16px;
}

.gallery-tip p {
  color: var(--text-muted);
  font-size: 14px;
}

.gallery-tip code {
  background: var(--bg-alt);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  color: var(--primary);
}

/* 玩法区域 */
.play-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.play-card {
  padding: 40px;
  border-radius: 20px;
  position: relative;
}

.play-number {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.play-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 8px;
  color: var(--text);
}

.play-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* 加入区域 */
.join {
  background: var(--bg);
}

.join-steps {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  max-width: 240px;
  padding: 36px;
  border-radius: 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3);
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.step p {
  color: var(--text-muted);
  font-size: 15px;
}

.join-cta {
  text-align: center;
  padding: 48px;
  border-radius: 24px;
  max-width: 500px;
  margin: 0 auto;
}

.join-note {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* 页脚 */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.footer-logo .logo-img {
  height: 60px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  border-radius: 10px;
}

.footer-slogan {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.8;
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: 100px 20px 40px;
  }
  
  .hero-title {
    font-size: 52px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .hero-card {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    padding: 20px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .join-steps {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    width: 100%;
    max-width: 300px;
  }
}
