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

:root {
  --primary-color: #c0392b;
  --primary-dark: #a5281b;
  --primary-light: #e74c3c;
  --gold-color: #f39c12;
  --dark-bg: #1a1a2e;
  --dark-card: #16213e;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* ===== 顶部公告条 ===== */
.top-announcement {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
}

.top-announcement .container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.announcement-icon {
  font-size: 16px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.announcement-text {
  flex: 1;
}

.announcement-date {
  opacity: 0.8;
  font-size: 12px;
}

/* ===== 头部导航 ===== */
.site-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo-area {
  display: flex;
  flex-direction: column;
}

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

.logo-icon {
  font-size: 32px;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 1px;
}

.logo-highlight {
  color: var(--primary-color);
}

.logo-tagline {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

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

.main-nav a {
  display: block;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s;
}

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

.btn-kaifu {
  background: linear-gradient(135deg, var(--gold-color), #e67e22);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
  animation: glow 2s infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3); }
  50% { box-shadow: 0 2px 15px rgba(243, 156, 18, 0.6); }
}

/* ===== 搜索区域 ===== */
.search-section {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 30px 0;
}

.search-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.search-box form {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.search-box input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}

.search-box input:focus {
  border-color: var(--gold-color);
}

.search-box button {
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s;
}

.search-box button:hover {
  transform: scale(1.05);
}

.hot-search {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.hot-search a {
  color: rgba(255,255,255,0.85);
  margin: 0 5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  font-size: 12px;
}

.hot-search a:hover {
  background: var(--gold-color);
  color: #fff;
}

/* ===== 主视觉横幅 ===== */
.hero-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.hero-banner::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" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
}

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

.hero-banner h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gold-color);
  margin-bottom: 30px;
}

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

.stat-item {
  text-align: center;
  color: #fff;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-color);
}

.stat-label {
  font-size: 13px;
  opacity: 0.8;
}

/* ===== 通用区块标题 ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  font-size: 24px;
}

.section-more {
  color: var(--text-light);
  font-size: 14px;
}

.section-more:hover {
  color: var(--primary-color);
}

/* ===== 开服表 ===== */
.kaifu-section {
  padding: 40px 0;
}

.kaifu-table-wrapper {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.kaifu-table {
  width: 100%;
  border-collapse: collapse;
}

.kaifu-table thead {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.kaifu-table th {
  padding: 14px 12px;
  color: #fff;
  font-weight: 600;
  text-align: center;
  font-size: 14px;
}

.kaifu-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.kaifu-table tbody tr:hover {
  background: #fef5f4;
}

.kaifu-table tbody tr:last-child td {
  border-bottom: none;
}

.time-cell {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 16px !important;
}

.name-cell strong {
  color: var(--text-dark);
  font-size: 15px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}

.tag-blue { background: #3498db; }
.tag-gold { background: var(--gold-color); }
.tag-purple { background: #9b59b6; }
.tag-red { background: var(--primary-color); }
.tag-green { background: #27ae60; }

.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-hot {
  background: #ffebee;
  color: var(--primary-color);
}

.status-new {
  background: #e8f5e9;
  color: #27ae60;
}

.status-wait {
  background: #fff3e0;
  color: var(--gold-color);
}

.btn-enter {
  display: inline-block;
  padding: 5px 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.3s;
}

.btn-enter:hover {
  transform: scale(1.1);
}

/* ===== 版本分类 ===== */
.version-section {
  padding: 40px 0;
  background: #fff;
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.version-card {
  text-align: center;
  padding: 25px 15px;
  border-radius: 12px;
  background: var(--bg-light);
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

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

.version-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.version-card h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.version-card p {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.version-count {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 600;
}

/* ===== 攻略区域 ===== */
.guide-section {
  padding: 40px 0;
}

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

.guide-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

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

.guide-card.featured {
  grid-column: span 2;
}

.guide-thumb {
  height: 160px;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-card.featured .guide-thumb {
  height: 220px;
}

.thumb-2 { background: linear-gradient(135deg, #2980b9, #3498db); }
.thumb-3 { background: linear-gradient(135deg, #8e44ad, #9b59b6); }
.thumb-4 { background: linear-gradient(135deg, #d35400, #e67e22); }
.thumb-5 { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.thumb-6 { background: linear-gradient(135deg, #2c3e50, #34495e); }

.guide-thumb::after {
  content: '📖';
  font-size: 48px;
  opacity: 0.5;
}

.guide-card.featured .guide-thumb::after {
  font-size: 64px;
}

.guide-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.9);
  color: var(--primary-color);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.guide-content {
  padding: 18px;
}

.guide-content h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.guide-card.featured .guide-content h3 {
  font-size: 18px;
}

.guide-content p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--text-light);
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

/* ===== 最新动态 ===== */
.news-section {
  padding: 40px 0;
  background: #fff;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 30px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}

.news-date {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 13px;
  min-width: 45px;
}

.news-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--bg-light);
  color: var(--text-light);
  min-width: 36px;
  text-align: center;
}

.news-tag.tag-hot { background: #ffebee; color: var(--primary-color); }
.news-tag.tag-new { background: #e8f5e9; color: #27ae60; }
.news-tag.tag-rec { background: #fff3e0; color: var(--gold-color); }

.news-item a {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

/* ===== 信任保障 ===== */
.trust-section {
  padding: 40px 0;
}

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

.trust-item {
  text-align: center;
  padding: 25px 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.trust-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.trust-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.trust-item h4 {
  font-size: 15px;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.trust-item p {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== 友情链接 ===== */
.links-section {
  padding: 30px 0;
  background: #fff;
}

.links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.links-grid a {
  padding: 6px 16px;
  background: var(--bg-light);
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.links-grid a:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* ===== 页脚 ===== */
.site-footer {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 20px;
}

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

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col ul li {
  margin-bottom: 8px;
  font-size: 13px;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
}

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

.footer-desc {
  max-width: 800px;
  margin: 8px auto;
  opacity: 0.6;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  margin: 0 5px;
}

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

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .version-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header-main {
    flex-wrap: wrap;
  }
  .main-nav {
    order: 3;
    width: 100%;
    margin-top: 10px;
    overflow-x: auto;
  }
  .main-nav ul {
    width: max-content;
  }
  .hero-banner h1 {
    font-size: 24px;
  }
  .hero-stats {
    gap: 25px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-card.featured {
    grid-column: span 1;
  }
  .news-list {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
  .version-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kaifu-table {
    font-size: 12px;
  }
  .kaifu-table th,
  .kaifu-table td {
    padding: 8px 5px;
  }
}

@media (max-width: 480px) {
  .hero-banner h1 {
    font-size: 20px;
  }
  .hero-subtitle {
    font-size: 14px;
  }
  .stat-number {
    font-size: 24px;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
}
