/* 九游体育 (JIUYOU) 官方网站 - style.css */
/* 全局重置与变量 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #e94560;
  --accent-light: #f06a7a;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bg: #0f0f23;
  --text: #f0f0f5;
  --text-secondary: #b0b0c0;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(15, 15, 35, 0.85);
  --footer-bg: #0a0a1a;
  --max-w: 1200px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  scroll-behavior: smooth;
}

body.light {
  --bg: #f5f5fa;
  --text: #1a1a2e;
  --text-secondary: #4a4a6a;
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(0, 0, 0, 0.06);
  --nav-bg: rgba(245, 245, 250, 0.85);
  --footer-bg: #e8e8f0;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(0, 0, 0, 0.08);
}

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

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

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

/* 容器 */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* 通用区块 */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* 按钮 */
.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: var(--transition);
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  color: #fff;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
}

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

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

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

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* 网格布局 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

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

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

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

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

/* 响应式 */
@media (max-width: 992px) {
  .grid-2,
  .grid-3,
  .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;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
  padding: 0 20px;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

#main-nav a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

#main-nav a:hover,
#main-nav a.active {
  color: var(--accent);
}

/* 暗黑模式与菜单按钮 */
#darkModeToggle,
#menuToggle {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 1.2rem;
  transition: var(--transition);
}

#darkModeToggle:hover,
#menuToggle:hover {
  background: var(--accent);
  color: #fff;
}

#menuToggle {
  display: none;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  #menuToggle {
    display: flex;
  }
  #main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
  }
  #main-nav a {
    padding: 12px 16px;
  }
}

/* 首页 Hero */
#home {
  padding-top: 140px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#home::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.15), transparent 70%);
  pointer-events: none;
}

#home::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.1), transparent 70%);
  pointer-events: none;
}

#home .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

#home h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#home p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

#home .btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

#home .stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

#home .stats .stat-item {
  text-align: center;
}

#home .stats .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

#home .stats .stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Hero 卡片 */
#home .hero-card {
  display: flex;
  justify-content: center;
  align-items: center;
}

#home .hero-card .glass-card {
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

/* 品牌介绍 */
#brand .brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

#brand .brand-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}

#brand .info-cards .glass-card {
  margin-bottom: 1rem;
}

#brand .info-cards h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

/* 产品中心 */
#products {
  background: var(--card-bg);
}

#products .product-card svg {
  margin: 0 auto 1rem;
}

#products .product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

/* 服务支持 */
#service .service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--accent);
}

/* 新闻资讯 */
#news {
  background: var(--card-bg);
}

#news article time {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

#news article h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

#news article p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* 案例展示 */
#cases .case-card svg {
  border-radius: 12px;
  margin-bottom: 1rem;
}

#cases .case-card h3 {
  font-size: 1.1rem;
}

#cases .case-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* FAQ */
#faq {
  background: var(--card-bg);
}

#faq .faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  cursor: pointer;
}

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

.faq-question span {
  font-size: 1.3rem;
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-top: 1rem;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

/* 联系我们 */
#contact .contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

#contact .contact-card p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

#contact .legal-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

#contact .legal-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

/* 使用指南 */
#howto {
  background: var(--card-bg);
}

#howto .guide-card {
  max-width: 800px;
  margin: 0 auto;
}

#howto .guide-card h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

#howto .guide-card ul,
#howto .guide-card ol {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

#howto .guide-card li {
  margin-bottom: 0.5rem;
}

/* 页脚 */
footer {
  background: var(--footer-bg);
  padding: 60px 20px 30px;
  border-top: 1px solid var(--glass-border);
}

footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

footer h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

footer ul {
  list-style: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a {
  color: var(--text-secondary);
  transition: var(--transition);
}

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

footer .footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer .footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

footer .footer-bottom .footer-links {
  display: flex;
  gap: 1rem;
}

footer .footer-bottom .footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

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

/* 返回顶部按钮 */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: var(--transition);
}

#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5);
}

/* 响应式微调 */
@media (max-width: 768px) {
  #home .container {
    grid-template-columns: 1fr;
  }
  #home h1 {
    font-size: 2.5rem;
  }
  #brand .brand-grid {
    grid-template-columns: 1fr;
  }
  footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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