/* PUBG UC攻略 - 游戏风格主题样式 */

/* ========== 变量定义 ========== */
:root {
  /* PUBG 风格配色 - 军事/战术风格 */
  --primary-color: #f5a623;      /* PUBG金 - 主要强调色 */
  --primary-dark: #e08e0b;        /* 深金色 */
  --secondary-color: #1a1a2e;     /* 深空蓝黑 */
  --accent-color: #e94560;        /* 警示红 */
  --success-color: #4ecca3;       /* 成功绿 */
  
  /* 背景色 */
  --bg-dark: #0f0f1a;             /* 深色背景 */
  --bg-card: #1a1a2e;             /* 卡片背景 */
  --bg-card-hover: #252542;       /* 卡片悬停 */
  --bg-light: #16213e;            /* 次级背景 */
  
  /* 文字颜色 */
  --text-primary: #ffffff;
  --text-secondary: #b8b8d0;
  --text-muted: #7a7a8c;
  
  /* 边框颜色 */
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(245, 166, 35, 0.3);
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ========== 重置样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

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

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: var(--shadow-glow);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #000 !important;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* ========== Hero 区域 ========== */
.hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-light) 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 30px 30px;
  pointer-events: none;
}

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

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-color), #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #000;
  padding: 15px 40px;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 700;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-glow);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(245, 166, 35, 0.5);
  color: #000;
}

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

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ========== 主内容布局 ========== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 40px 0;
}

/* ========== 充值悬浮条 ========== */
.recharge-banner {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  padding: 15px 25px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  color: #000;
  font-weight: 600;
}

.recharge-banner a {
  background: #000;
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.recharge-banner a:hover {
  transform: scale(1.05);
}

/* ========== 筛选标签 ========== */
.filter-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #000;
}

/* ========== 文章卡片 ========== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

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

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.article-card a {
  display: block;
}

.article-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--secondary-color), var(--bg-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.article-content {
  padding: 20px;
}

.article-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(245, 166, 35, 0.2);
  color: var(--primary-color);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.category-recharge { background: rgba(245, 166, 35, 0.2); color: var(--primary-color); }
.category-tips { background: rgba(78, 204, 163, 0.2); color: var(--success-color); }
.category-news { background: rgba(233, 69, 96, 0.2); color: var(--accent-color); }
.category-events { background: rgba(155, 89, 182, 0.2); color: #9b59b6; }

.article-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-views {
  display: flex;
  align-items: center;
  gap: 5px;
}

.read-more {
  color: var(--primary-color);
  font-weight: 500;
}

/* ========== 侧边栏 ========== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

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

.widget-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

/* CTA 盒子 */
.cta-box {
  text-align: center;
}

.cta-box h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.cta-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.cta-btn {
  display: block;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.recharge-cta .cta-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #000;
}

.recharge-cta .cta-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

/* 分类导航 */
.category-nav li {
  margin-bottom: 8px;
}

.category-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.category-nav a:hover {
  background: var(--primary-color);
  color: #000;
}

.category-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.category-nav a:hover .category-count {
  background: rgba(0, 0, 0, 0.2);
}

/* 热门文章列表 */
.popular-list li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.popular-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
}

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

.popular-num {
  background: var(--primary-color);
  color: #000;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.popular-title {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* 最新资讯列表 */
.news-list li {
  margin-bottom: 10px;
  padding-left: 15px;
  position: relative;
}

.news-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.news-list a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

/* ========== 页脚 ========== */
.footer {
  background: var(--secondary-color);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

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

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

.footer-section ul a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-section ul a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========== 加载状态 ========== */
.loading {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    order: -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero-stats {
    gap: 30px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .sidebar {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .recharge-banner {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* ========== 文章页面样式 ========== */
.article-page {
  padding-top: 40px;
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
}

.article-header .article-category {
  margin-bottom: 15px;
}

.article-header h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.article-header .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.article-body h2 {
  color: var(--primary-color);
  margin: 30px 0 15px;
  font-size: 1.5rem;
}

.article-body h3 {
  color: var(--text-primary);
  margin: 25px 0 10px;
  font-size: 1.2rem;
}

.article-body p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.8;
}

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

.article-body li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-body strong {
  color: var(--primary-color);
}

.article-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  margin: 30px 0;
}

.article-cta h3 {
  color: #000;
  margin-bottom: 10px;
}

.article-cta p {
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 15px;
}

.article-cta a {
  display: inline-block;
  background: #000;
  color: var(--primary-color);
  padding: 12px 30px;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.article-cta a:hover {
  transform: scale(1.05);
}
