/* 泰达娱乐 - 电子竞技网站样式 */
:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --accent: #00cec9;
  --bg-dark: #0a0a1a;
  --bg-card: #141428;
  --bg-card-hover: #1a1a3e;
  --text-primary: #e8e8f0;
  --text-secondary: #a0a0b8;
  --border-color: #2a2a4a;
  --gradient-1: linear-gradient(135deg, #6c5ce7, #00cec9);
  --gradient-2: linear-gradient(135deg, #0a0a1a, #141428);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

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

a:hover {
  color: #33e0db;
}

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

/* 头部导航 */
.site-header {
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 15px;
  transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
  background: rgba(108, 92, 231, 0.15);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* 面包屑导航 */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

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

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

.breadcrumb span {
  margin: 0 8px;
  color: var(--border-color);
}

/* 主内容区 */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

/* 横幅区域 */
.hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(0, 206, 201, 0.06) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, 3%); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
}

/* Hero 按钮区域 */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
}

.hero-btn-primary {
  background: var(--gradient-1);
  color: #fff;
  border: 2px solid transparent;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
  color: #fff;
}

.hero-btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.hero-btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

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

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* 区块标题 */
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gradient-1);
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

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

.card-body {
  padding: 20px;
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary);
  margin-bottom: 12px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-title a {
  color: var(--text-primary);
}

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

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
}

/* 赛事列表 */
.match-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.match-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s;
}

.match-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  font-weight: 600;
}

.match-vs {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.match-info {
  text-align: right;
  color: var(--text-secondary);
  font-size: 14px;
}

.match-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.match-status.live {
  background: rgba(255, 71, 87, 0.15);
  color: #ff4757;
}

.match-status.upcoming {
  background: rgba(0, 206, 201, 0.15);
  color: var(--accent);
}

.match-status.finished {
  background: rgba(160, 160, 184, 0.15);
  color: var(--text-secondary);
}

/* 侧边栏布局 */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-bottom: 48px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
}

.widget-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.hot-list {
  list-style: none;
}

.hot-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(42, 42, 74, 0.5);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-rank {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.hot-list li:nth-child(1) .hot-rank {
  background: rgba(255, 71, 87, 0.2);
  color: #ff4757;
}

.hot-list li:nth-child(2) .hot-rank {
  background: rgba(255, 165, 2, 0.2);
  color: #ffa502;
}

.hot-list li:nth-child(3) .hot-rank {
  background: rgba(0, 206, 201, 0.2);
  color: var(--accent);
}

.hot-list a {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
}

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

/* 标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  background: rgba(108, 92, 231, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.tag-cloud a:hover {
  background: rgba(108, 92, 231, 0.2);
  color: var(--text-primary);
  border-color: var(--primary);
}

/* 文章页 */
.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

.article-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.article-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.article-body {
  font-size: 16px;
  line-height: 2;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body h2 {
  font-size: 22px;
  margin: 32px 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

.article-body h3 {
  font-size: 18px;
  margin: 24px 0 12px;
}

.article-body ul,
.article-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

/* 页脚 */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 48px 20px 24px;
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.footer-brand .site-logo {
  margin-bottom: 12px;
  display: inline-block;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-bottom p {
  margin-bottom: 6px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.98);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
  }

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

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .match-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .match-info {
    text-align: left;
  }

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

  .article-title {
    font-size: 22px;
  }

  .article-content {
    padding: 20px;
  }
}

/* 页面过渡 */
.page-enter {
  animation: fadeIn 0.4s ease;
}

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