/* ===== 开云·体育 style.css 完整样式表 ===== */
/* 基础重置与CSS变量 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0b0e1a;
  --bg-secondary: #11162b;
  --bg-card: rgba(20, 28, 52, 0.7);
  --text-primary: #f0f4ff;
  --text-secondary: #b0bcdd;
  --accent: #f0c040;
  --accent2: #3b82f6;
  --glass: rgba(255, 255, 255, 0.06);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --gradient-banner: linear-gradient(135deg, #0b0e1a 0%, #1a2a4a 50%, #0b0e1a 100%);
  --glass-heavy: rgba(255, 255, 255, 0.08);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.6);
}

body.light {
  --bg-primary: #f5f7fc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.8);
  --text-primary: #0b0e1a;
  --text-secondary: #2d3a5e;
  --glass: rgba(0, 0, 0, 0.04);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --gradient-banner: linear-gradient(135deg, #e8ecf4 0%, #d0d9e8 50%, #e8ecf4 100%);
  --glass-heavy: rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

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

/* ===== 容器 ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== 头部导航 ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 14, 26, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition), border-color var(--transition);
}

body.light header {
  background: rgba(245, 247, 252, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  transition: color var(--transition);
}

.logo svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

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

.nav-links li a {
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: var(--glass);
  color: var(--accent);
}

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

.dark-toggle,
.search-toggle,
.menu-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.dark-toggle:hover,
.search-toggle:hover,
.menu-toggle:hover {
  background: var(--glass);
  color: var(--text-primary);
}

.menu-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 20px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links li a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 12px;
  }
}

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

.section-title {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.badge {
  display: inline-block;
  background: rgba(240, 192, 64, 0.15);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(240, 192, 64, 0.1);
}

/* ===== 卡片 ===== */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  background: var(--glass-heavy);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #0b0e1a;
  padding: 14px 32px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(240, 192, 64, 0.3);
  text-decoration: none;
}

.btn:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(240, 192, 64, 0.4);
  opacity: 1;
}

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

.btn-outline:hover {
  background: rgba(240, 192, 64, 0.1);
  box-shadow: 0 4px 20px rgba(240, 192, 64, 0.2);
}

/* ===== 网格布局 ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

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

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

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-sub {
    font-size: 1rem;
    margin-bottom: 32px;
  }
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h1 span {
  display: block;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.7;
}

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

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

  .hero p {
    font-size: 1rem;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Banner 滑块 ===== */
.banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 40px;
  background: var(--bg-card);
  min-height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.banner-slide {
  display: none;
  padding: 40px;
  animation: fadeSlide 0.6s ease;
}

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

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

.banner-slide h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.banner-slide p {
  color: var(--text-secondary);
  font-size: 1rem;
}

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

.banner-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.banner-dots button.active {
  background: var(--accent);
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(240, 192, 64, 0.4);
}

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

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

/* ===== 数字动画 ===== */
.number-anim {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  display: inline-block;
  line-height: 1.2;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  cursor: pointer;
  transition: border-color var(--transition);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  gap: 16px;
}

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

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

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

.faq-icon {
  transition: transform 0.3s;
  flex-shrink: 0;
  font-size: 0.8rem;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b0e1a;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(240, 192, 64, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(240, 192, 64, 0.5);
}

/* ===== 搜索覆盖层 ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.search-box {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.search-box input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 60px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.1);
}

.search-results {
  margin-top: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.search-results > div {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: color 0.3s;
}

.search-results > div:hover {
  color: var(--accent);
}

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

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

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

/* ===== 相关文章 ===== */
.related-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.article-card h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.article-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination a {
  padding: 8px 16px;
  border-radius: 40px;
  background: var(--glass);
  color: var(--text-secondary);
  transition: all 0.3s;
  text-decoration: none;
  font-size: 0.9rem;
}

.pagination a.active {
  background: var(--accent);
  color: #0b0e1a;
  font-weight: 600;
}

.pagination a:hover {
  background: var(--accent);
  color: #0b0e1a;
}

/* ===== 页脚 ===== */
footer {
  background: var(--bg-secondary);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition);
}

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

.footer-grid h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer-grid h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer-grid p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-grid a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 2;
  transition: color 0.3s;
}

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

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-bottom a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

/* ===== 网站地图 ===== */
#sitemap .grid-3 {
  gap: 16px;
}

#sitemap .grid-3 div {
  line-height: 2.2;
}

#sitemap .grid-3 a {
  color: var(--text-secondary);
  transition: color 0.3s;
  font-size: 0.95rem;
}

#sitemap .grid-3 a:hover {
  color: var(--accent);
}

/* ===== 友情链接 ===== */
#links .card {
  text-align: center;
}

#links .card a {
  font-weight: 500;
  font-size: 1rem;
}

/* ===== 联系方式卡片 ===== */
#contact .card p {
  margin-bottom: 8px;
}

/* ===== 渐变横幅装饰 ===== */
.hero-bg svg {
  filter: blur(0);
}

/* ===== 响应式微调 ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .card {
    padding: 24px;
  }

  .banner-slide {
    padding: 24px;
  }

  .search-box {
    padding: 24px;
  }

  .back-to-top {
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

/* ===== 毛玻璃效果增强 ===== */
.glass-effect {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== 选择文本颜色 ===== */
::selection {
  background: rgba(240, 192, 64, 0.3);
  color: var(--text-primary);
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4a832;
}

/* ===== 暗色模式特殊调整 ===== */
body.light .hero-bg svg {
  filter: brightness(0.95);
}

body.light .banner-dots button {
  background: rgba(0, 0, 0, 0.15);
}

body.light .faq-item {
  border-color: rgba(0, 0, 0, 0.06);
}

/* ===== 动画延迟辅助 ===== */
.fade-in:nth-child(2) {
  transition-delay: 0.1s;
}

.fade-in:nth-child(3) {
  transition-delay: 0.2s;
}

.fade-in:nth-child(4) {
  transition-delay: 0.3s;
}

/* ===== 打印样式 ===== */
@media print {
  header,
  .back-to-top,
  .search-overlay,
  .banner-dots,
  .pagination,
  .nav-actions {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding-top: 0;
  }

  .section {
    padding: 40px 0;
    page-break-inside: avoid;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section-title {
    -webkit-text-fill-color: #000;
    background: none;
    color: #000;
  }
}