/* ========================================
   腾龙游戏官网 - 主样式表
   SEO优化：关键CSS内联友好，语义化类名
   ======================================== */

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #667eea;
  --primary-dark: #5568d3;
  --secondary: #764ba2;
  --accent: #f093fb;
  --bg-dark: #0a0e27;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --text: #ffffff;
  --text-muted: #a0a5c0;
  --text-light: #ccc;
  --border: rgba(255,255,255,0.08);
  --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 50%, #0d1137 100%);
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

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

/* ===== Top Bar ===== */
.top-bar {
  background: rgba(0,0,0,0.4);
  padding: 8px 0;
  font-size: 12px;
  color: #888;
  border-bottom: 1px solid var(--border);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-bar-date { color: #667eea; white-space: nowrap; margin-left: 16px; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 33px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,14,39,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { border-radius: 10px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 20px; font-weight: 700; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-text em { font-size: 10px; color: #666; font-style: normal; letter-spacing: 2px; }

.main-nav ul { display: flex; gap: 8px; }
.main-nav a {
  display: block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: rgba(102,126,234,0.15);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-download-header {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--gradient-main);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}
.btn-download-header:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102,126,234,0.6); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn span { width: 24px; height: 2px; background: #fff; border-radius: 1px; transition: var(--transition); }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient-main);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(102,126,234,0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(102,126,234,0.6); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--primary); background: rgba(102,126,234,0.1); }

.btn-lg { padding: 16px 40px; font-size: 17px; }

/* ===== Section Header ===== */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header.light h2 { color: #fff; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: -2;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(102,126,234,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 30%, rgba(118,75,162,0.1) 0%, transparent 50%);
  animation: drift 20s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 20px); }
}
.hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(102,126,234,0.15);
  border: 1px solid rgba(102,126,234,0.3);
  border-radius: 20px;
  font-size: 13px;
  color: #a0b4ff;
  margin-bottom: 24px;
}
.badge-icon { font-size: 16px; }

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-title .highlight {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  display: inline;
}
.stat-unit { font-size: 20px; font-weight: 700; color: var(--primary); }
.stat-label { display: block; font-size: 13px; color: #888; margin-top: 4px; }

.hero-cta { display: flex; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }

.hero-trust { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #888; }
.trust-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  font-size: 12px;
}

/* ===== Phone Mockup ===== */
.hero-visual { display: flex; justify-content: center; }
.phone-mockup { position: relative; }
.phone-frame {
  width: 280px;
  height: 560px;
  background: #1a1a2e;
  border-radius: 36px;
  border: 3px solid #333;
  padding: 12px;
  box-shadow: var(--shadow);
  position: relative;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #16213e 0%, #0f3460 100%);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px 8px;
  font-size: 12px;
  color: #fff;
}
.phone-app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(102,126,234,0.2);
  font-size: 16px;
  font-weight: 700;
}
.phone-app-header .phone-logo { font-size: 20px; }
.phone-app-games {
  flex: 1;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  overflow: hidden;
}
.phone-game-card {
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  min-height: 80px;
  animation: cardPulse 3s ease-in-out infinite;
}
.phone-game-card:nth-child(1) { animation-delay: 0s; }
.phone-game-card:nth-child(2) { animation-delay: 0.5s; }
.phone-game-card:nth-child(3) { animation-delay: 1s; }
.phone-game-card:nth-child(4) { animation-delay: 1.5s; }
.phone-game-card:nth-child(5) { animation-delay: 2s; }
.phone-game-card:nth-child(6) { animation-delay: 2.5s; }
@keyframes cardPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.phone-app-tabbar {
  display: flex;
  justify-content: space-around;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  font-size: 18px;
}
.phone-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 40px;
  background: var(--primary);
  filter: blur(30px);
  opacity: 0.4;
  border-radius: 50%;
}

/* ===== Download Platforms ===== */
.download-platforms { padding: 100px 0; background: rgba(0,0,0,0.2); }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transition: var(--transition);
}
.platform-card:hover::before { transform: scaleX(1); }
.platform-card:hover { transform: translateY(-6px); background: var(--bg-card-hover); box-shadow: var(--shadow); }
.platform-icon { font-size: 48px; margin-bottom: 16px; }
.platform-card h3 { font-size: 20px; margin-bottom: 8px; }
.platform-version { font-size: 13px; color: #888; margin-bottom: 16px; }
.platform-features { text-align: left; margin-bottom: 24px; }
.platform-features li { padding: 6px 0; font-size: 14px; color: var(--text-light); }
.btn-platform {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gradient-main);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  width: 100%;
  text-align: center;
}
.btn-platform:hover { opacity: 0.9; transform: scale(1.02); }
.platform-size { font-size: 12px; color: #666; margin-top: 10px; }

/* ===== Hot Games ===== */
.hot-games { padding: 100px 0; }
.game-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(102,126,234,0.3); }
.game-cover {
  height: 180px;
  background: linear-gradient(135deg, var(--gc1), var(--gc2));
  position: relative;
}
.game-cover::after {
  content: '🎮';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  opacity: 0.3;
}
.game-info { padding: 20px; }
.game-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(102,126,234,0.2);
  color: #a0b4ff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.game-info h3 { font-size: 18px; margin-bottom: 8px; }
.game-info p { font-size: 14px; color: #999; line-height: 1.6; margin-bottom: 12px; }
.game-meta { display: flex; gap: 16px; font-size: 13px; color: #888; margin-bottom: 14px; }
.game-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgba(102,126,234,0.4);
  border-radius: 8px;
  font-size: 14px;
  color: #a0b4ff;
  transition: var(--transition);
}
.game-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Advantages ===== */
.advantages { padding: 100px 0; background: linear-gradient(135deg, #0d1137 0%, #1a1a3e 100%); }
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.adv-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
}
.adv-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-4px); }
.adv-icon { font-size: 40px; margin-bottom: 16px; }
.adv-card h3 { font-size: 18px; margin-bottom: 12px; }
.adv-card p { font-size: 14px; color: #999; line-height: 1.7; }

/* ===== News Section ===== */
.news-section { padding: 100px 0; }
.news-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}
.news-featured {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.news-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-img {
  height: 280px;
  background: linear-gradient(135deg, var(--ni1), var(--ni2));
}
.news-content { padding: 28px; }
.news-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(102,126,234,0.2);
  color: #a0b4ff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.news-category.tag-hot { background: rgba(255,107,107,0.2); color: #ff6b6b; }
.news-category.tag-new { background: rgba(67,233,123,0.2); color: #43e97b; }
.news-category.tag-event { background: rgba(250,112,154,0.2); color: #fa709a; }
.news-category.tag-notice { background: rgba(254,225,64,0.2); color: #fee140; }
.news-content h3 { font-size: 22px; margin-bottom: 12px; line-height: 1.4; }
.news-content h3 a:hover { color: var(--primary); }
.news-content p { font-size: 15px; color: #999; line-height: 1.7; margin-bottom: 16px; }
.news-meta { display: flex; gap: 20px; font-size: 13px; color: #888; }

.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  transition: var(--transition);
}
.news-item:hover { background: var(--bg-card-hover); }
.news-item h4 { font-size: 15px; margin: 6px 0; line-height: 1.5; }
.news-item h4 a:hover { color: var(--primary); }
.news-date { font-size: 12px; color: #666; }

/* ===== Testimonials ===== */
.testimonials { padding: 100px 0; background: rgba(0,0,0,0.2); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testi-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.testi-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.05); }
.testi-stars { font-size: 16px; margin-bottom: 12px; }
.testi-card p { font-size: 15px; color: #ccc; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testi-user { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.testi-user strong { display: block; font-size: 15px; }
.testi-user span { font-size: 12px; color: #888; }

/* ===== FAQ ===== */
.faq-section { padding: 100px 0; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item[open] { background: rgba(102,126,234,0.05); border-color: rgba(102,126,234,0.2); }
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { font-size: 20px; color: var(--primary); transition: transform 0.3s; }
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 20px; }
.faq-answer p { font-size: 15px; color: #999; line-height: 1.8; }

/* ===== Bottom CTA ===== */
.bottom-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  text-align: center;
}
.cta-content h2 { font-size: 36px; margin-bottom: 12px; }
.cta-content p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.cta-tip { font-size: 14px; opacity: 0.8; }

/* ===== Footer ===== */
.footer { padding: 60px 0 30px; background: #060918; border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 1.5fr 3fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 20px; margin: 12px 0 8px; }
.footer-brand p { font-size: 14px; color: #888; line-height: 1.6; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  font-size: 18px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }

.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col h4 { font-size: 15px; margin-bottom: 14px; color: #fff; }
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a, .footer-col ul li { font-size: 13px; color: #888; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-cert { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; color: #888; }
.copyright { font-size: 13px; color: #666; margin-bottom: 8px; }
.footer-links-inline { font-size: 12px; color: #666; }
.footer-links-inline a { color: #888; }
.footer-links-inline a:hover { color: var(--primary); }

/* ===== Float Download Button ===== */
.float-download {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}
.float-download a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  background: var(--gradient-main);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(102,126,234,0.5);
  animation: floatPulse 2s ease-in-out infinite;
}
.float-icon { font-size: 24px; }
.float-text { font-size: 13px; font-weight: 600; }
@keyframes floatPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .hero-stats { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .news-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .header { top: 0; }
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: rgba(10,14,39,0.98); padding: 20px; }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 14px 16px; }
  .mobile-menu-btn { display: flex; }
  .btn-download-header span { display: none; }
  .hero-title { font-size: 32px; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 28px; }
  .section-header h2 { font-size: 26px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .float-download { bottom: 16px; right: 16px; }
  .float-download a { padding: 10px 14px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .phone-frame { width: 240px; height: 480px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .platform-grid { grid-template-columns: 1fr; }
  .game-showcase { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ===== SEO: Schema.org hidden content ===== */
[itemscope] { position: relative; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ===== Print Styles ===== */
@media print {
  .header, .footer, .float-download, .top-bar { display: none; }
  body { background: #fff; color: #000; }
}

/* ===== Accessibility ===== */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
::selection { background: var(--primary); color: #fff; }

/* ===== Lazy Load Fade In ===== */
img[loading="lazy"] { opacity: 0; transition: opacity 0.5s; }
img[loading="lazy"].loaded { opacity: 1; }

/* ===== Scroll Reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
