/* 九游官网 style.css - 完整样式表 */

/* 自定义属性 */
:root {
  --primary: #6c63ff;
  --primary-dark: #4a42d4;
  --secondary: #ff6584;
  --accent: #00d2ff;
  --bg: #f8f9ff;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --shadow: 0 8px 32px rgba(108, 99, 255, 0.12);
  --radius: 20px;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --gradient: linear-gradient(135deg, #6c63ff, #ff6584, #00d2ff);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --footer-bg: #1a1a2e;
  --footer-text: #e0e0e0;
  --hover-bg: rgba(108, 99, 255, 0.1);
  --card-hover: translateY(-6px);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="dark"] {
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --text: #e0e0e0;
  --text-light: #9ca3af;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(30, 30, 50, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(15, 15, 26, 0.9);
  --footer-bg: #0a0a12;
  --hover-bg: rgba(108, 99, 255, 0.2);
}

/* 全局重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--secondary);
}

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

ul,
ol {
  list-style: none;
}

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

section {
  padding: 80px 0;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* 毛玻璃卡片 */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.glass-card:hover {
  transform: var(--card-hover);
  box-shadow: var(--shadow);
}

/* 标题 */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* 网格布局 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

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

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 2rem;
  }
  section {
    padding: 60px 0;
  }
}

/* 滚动动画 */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 导航栏 */
.nav-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s;
}

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

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--hover-bg);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
}

.dark-toggle {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s;
}

.dark-toggle:hover {
  background: var(--hover-bg);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}

/* Hero 区域 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(255, 101, 132, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(0, 210, 255, 0.08) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero-visual {
    display: none;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* 轮播 */
.swiper {
  position: relative;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.swiper-slide {
  min-width: 100%;
  padding: 20px;
}

.swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.swiper-btn:hover {
  background: var(--primary);
  color: #fff;
}

.swiper-prev {
  left: 10px;
}

.swiper-next {
  right: 10px;
}

.swiper-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.swiper-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-light);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.swiper-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
  cursor: pointer;
}

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

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding-top: 0;
  color: var(--text-light);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 16px;
}

/* 返回顶部 */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  pointer-events: none;
}

.back-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 页脚 */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 30px;
}

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

.footer h4 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #fff;
}

.footer a {
  color: var(--footer-text);
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-bottom p {
  margin: 4px 0;
}

/* 统计数字 */
.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-light);
  font-size: 1rem;
}

/* 文章卡片 */
.article-card .read-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}

.article-card .read-more:hover {
  color: var(--secondary);
}

/* 步骤指南 */
.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.howto-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.howto-step-content h5 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.howto-step-content p {
  color: var(--text-light);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

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

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

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

/* 搜索框 */
.search-box {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto 40px;
}

.search-box input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 50px;
  border: 2px solid var(--glass-border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border 0.3s;
}

.search-box input:focus {
  border-color: var(--primary);
}

.search-box button {
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* EEAT 徽章 */
.eeat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--glass-bg);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--text-light);
  border: 1px solid var(--glass-border);
}

/* 联系信息 */
.contact-info p {
  margin: 4px 0;
  font-size: 0.95rem;
}

.contact-info strong {
  color: var(--text);
}

/* 辅助类 */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 16px;
}

.mt-8 {
  margin-top: 32px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-8 {
  margin-bottom: 32px;
}

/* 响应式微调 */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  .glass-card {
    padding: 24px;
  }
  .stat-number {
    font-size: 2rem;
  }
}