/* ===== 九游官方网站 style.css ===== */
/* 风格：现代渐变+毛玻璃+圆角卡片+暗色模式+响应式+滚动动画 */

:root {
  --primary: #6c63ff;
  --primary-dark: #5a52d5;
  --secondary: #ff6584;
  --accent: #43e97b;
  --bg: #f8f9fe;
  --bg-card: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --shadow: 0 10px 40px rgba(0,0,0,0.08);
  --radius: 20px;
  --glass: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.3);
  --nav-bg: rgba(255,255,255,0.95);
  --footer-bg: #1a1a2e;
  --footer-text: #e0e0e0;
  --gradient: linear-gradient(135deg,#6c63ff,#ff6584,#43e97b);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

[data-theme=dark] {
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --text: #e0e0e0;
  --text-light: #a0a0b0;
  --shadow: 0 10px 40px rgba(0,0,0,0.4);
  --glass: rgba(30,30,50,0.7);
  --glass-border: rgba(255,255,255,0.1);
  --nav-bg: rgba(15,15,26,0.95);
  --footer-bg: #0a0a12;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

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

/* 按钮 */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 25px rgba(108,99,255,0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(108,99,255,0.4);
}

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

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

/* 区块 */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  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 60px;
  text-align: center;
}

/* 卡片 */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* 网格 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 24px; }

@media(max-width:1024px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

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

/* 头部 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

header.scrolled {
  background: var(--nav-bg);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.logo svg {
  width: 40px;
  height: 40px;
}

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

.nav-links a {
  padding: 8px 16px;
  border-radius: 30px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: var(--transition);
}

@media(max-width:1024px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-links a {
    padding: 12px 20px;
    border-radius: 12px;
  }
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,#0f0f1a 0%,#1a1a2e 50%,#16213e 100%);
  z-index: -2;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-particles svg {
  position: absolute;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg,#fff 30%,#6c63ff 70%,#ff6584);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn {
  background: #fff;
  color: #1a1a2e;
  box-shadow: 0 8px 30px rgba(108,99,255,0.3);
}

.hero .btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.hero .btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

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

/* 轮播 */
.banner-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 60px;
}

.banner-slide {
  display: none;
  padding: 60px 40px;
  background: var(--gradient);
  border-radius: var(--radius);
  color: #fff;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

.banner-slide.active {
  display: flex;
}

.banner-slide h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.banner-slide p {
  font-size: 1.1rem;
  opacity: 0.9;
}

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

.banner-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.banner-dots span.active {
  background: var(--primary);
  width: 36px;
  border-radius: 6px;
}

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

/* 品牌 */
.brand-section { background: var(--bg); }

.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media(max-width:768px) {
  .brand-grid { grid-template-columns: 1fr; gap: 40px; }
}

.brand-visual {
  position: relative;
  padding: 40px;
}

.brand-visual svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.brand-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--glass);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat-item .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

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

/* 产品 */
.products-section { background: var(--bg); }

.product-card {
  text-align: center;
  padding: 40px 24px;
}

.product-card svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.product-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* 服务 */
.services-section { background: var(--bg); }

.service-card {
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* 案例 */
.cases-section { background: var(--bg); }

.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.case-card .case-img {
  height: 200px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}

.case-card .case-body {
  padding: 24px;
}

.case-card h3 {
  margin-bottom: 8px;
}

.case-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* 评价 */
.testimonials-section { background: var(--bg); }

.testimonial-card {
  padding: 32px;
  text-align: center;
}

.testimonial-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1rem;
}

.testimonial-card .name {
  font-weight: 600;
}

/* 新闻 */
.news-section { background: var(--bg); }

.article-card {
  padding: 28px;
}

.article-card .date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.article-card .read-more {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

/* FAQ */
.faq-section { background: var(--bg); }

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 20px 0;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 8px 0;
  user-select: none;
}

.faq-question .icon {
  font-size: 1.4rem;
  transition: transform var(--transition);
}

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

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

.faq-item.open .faq-answer {
  max-height: 400px;
  opacity: 1;
  padding: 12px 0 8px;
}

/* 指南 */
.howto-section { background: var(--bg); }

.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

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

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

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

/* 合作伙伴 */
.partners-section { background: var(--bg); }

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 40px 0;
}

.partner-logos svg {
  width: 120px;
  height: 60px;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.partner-logos svg:hover {
  opacity: 1;
}

/* CTA */
.cta-section {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  background: #fff;
  color: #1a1a2e;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media(max-width:1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media(max-width:768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

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

.footer p,
.footer a {
  color: var(--footer-text);
  font-size: 0.9rem;
  line-height: 2;
  text-decoration: none;
  display: block;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  display: inline;
  margin: 0 8px;
}

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

/* 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(108,99,255,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* 暗色切换 */
.dark-toggle {
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow);
  z-index: 999;
  transition: var(--transition);
}

.dark-toggle:hover {
  transform: scale(1.1);
}

/* 搜索模态 */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.search-modal.open {
  display: flex;
}

.search-modal .search-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow);
}

.search-modal input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid var(--glass-border);
  background: var(--bg);
  color: var(--text);
  font-size: 1.1rem;
  outline: none;
  transition: var(--transition);
}

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

.search-modal .close-search {
  display: block;
  margin-top: 20px;
  text-align: right;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.9rem;
}

/* 相关 */
.related-section { background: var(--bg); }

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media(max-width:768px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* EEAT */
.eeat-section {
  background: var(--bg);
  padding: 60px 0;
  border-top: 1px solid var(--glass-border);
}

.eeat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  text-align: center;
}

@media(max-width:768px) {
  .eeat-grid { grid-template-columns: 1fr; }
}

.eeat-item {
  padding: 30px;
}

.eeat-item h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.eeat-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* 网站地图 */
.sitemap-section {
  background: var(--bg);
  padding: 40px 0;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}

@media(max-width:768px) {
  .sitemap-grid { grid-template-columns: 1fr 1fr; }
}

.sitemap-grid a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
  display: block;
}

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

/* 友链 */
.friend-links {
  padding: 30px 0;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.friend-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

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

/* 面包屑 */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

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

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

.breadcrumb span {
  margin: 0 8px;
}

/* 相关文章 */
.related-articles {
  margin-top: 40px;
}

.related-articles h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.related-articles ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media(max-width:768px) {
  .related-articles ul { grid-template-columns: 1fr; }
}

.related-articles li a {
  color: var(--text);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--glass);
  display: block;
  transition: var(--transition);
}

.related-articles li a:hover {
  background: var(--primary);
  color: #fff;
}

/* 推荐 */
.recommend-section {
  background: var(--bg);
  padding: 40px 0;
}

.recommend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

@media(max-width:768px) {
  .recommend-grid { grid-template-columns: 1fr; }
}

.recommend-card {
  padding: 20px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.recommend-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.recommend-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* 免责声明 */
.disclaimer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}