/* ============================================
   传奇私服发布网 - 全站样式表
   Target: vm.17173game-s.com.cn
   ============================================ */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  background: #f5f5f5;
}
a { color: #c0392b; text-decoration: none; transition: color .2s; }
a:hover { color: #e74c3c; }
img { max-width: 100%; border: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Top Bar */
.top-bar {
  background: #1a1a2e;
  color: #ccc;
  font-size: 13px;
  padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #f0c040; }
.update-time { color: #e74c3c; font-weight: bold; }

/* Header */
.header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 30px 0;
  text-align: center;
}
.header h1 {
  font-size: 32px;
  color: #f0c040;
  text-shadow: 2px 2px 4px rgba(0,0,0,.5);
  margin-bottom: 8px;
}
.header h1 a { color: #f0c040; }
.header .slogan { color: #aaa; font-size: 14px; }

/* Nav */
.nav {
  background: #c0392b;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.nav li { position: relative; }
.nav a {
  display: block;
  padding: 14px 28px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  transition: background .2s;
}
.nav a:hover, .nav a.active {
  background: #e74c3c;
  color: #fff;
}

/* Breadcrumb */
.breadcrumb {
  background: #fff;
  padding: 10px 0;
  font-size: 13px;
  color: #999;
  border-bottom: 1px solid #eee;
}
.breadcrumb a { color: #666; }

/* Main Content */
.main { padding: 25px 0; }
.content-wrap { display: flex; gap: 25px; }
.content-left { flex: 1; min-width: 0; }
.content-right { width: 300px; flex-shrink: 0; }

/* Card */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding: 25px;
  margin-bottom: 20px;
}
.card h2 {
  font-size: 22px;
  color: #1a1a2e;
  border-left: 4px solid #c0392b;
  padding-left: 12px;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 18px;
  color: #2c3e50;
  margin: 20px 0 10px;
}

/* Stats Row */
.stats-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  border-radius: 8px;
  padding: 25px 15px;
  margin-bottom: 20px;
  color: #fff;
}
.stat-item { text-align: center; }
.stat-num { font-size: 36px; font-weight: bold; color: #f0c040; }
.stat-label { font-size: 14px; opacity: .9; margin-top: 4px; }

/* Keyword Tags */
.keyword-tags { margin: 15px 0; }
.keyword-tags a {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  margin: 0 6px 8px 0;
  transition: all .2s;
}
.keyword-tags a:hover { background: #c0392b; color: #fff; }

/* Tables */
table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 14px;
}
.data-table th {
  background: #1a1a2e;
  color: #f0c040;
  padding: 10px 12px;
  text-align: left;
  font-weight: normal;
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}
.data-table tr:hover td { background: #f9f9f9; }
.data-table .status-open { color: #27ae60; font-weight: bold; }
.data-table .status-hot { color: #e74c3c; font-weight: bold; }
.data-table .status-soon { color: #f39c12; font-weight: bold; }
.star { color: #f39c12; }

/* Version Cards */
.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.version-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  transition: all .2s;
}
.version-card:hover {
  border-color: #c0392b;
  box-shadow: 0 4px 12px rgba(192,57,43,.15);
  transform: translateY(-2px);
}
.version-card .badge {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.version-card h3 { margin: 0 0 10px; font-size: 18px; color: #1a1a2e; }
.version-card ul { padding-left: 18px; color: #666; font-size: 14px; }
.version-card .audience { margin-top: 12px; font-size: 13px; color: #888; border-top: 1px dashed #ddd; padding-top: 10px; }

/* Sidebar */
.sidebar-widget {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-widget h3 {
  font-size: 16px;
  color: #1a1a2e;
  border-bottom: 2px solid #c0392b;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget li {
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-widget li:last-child { border-bottom: none; }

/* FAQ */
.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}
.faq-q {
  font-weight: bold;
  color: #1a1a2e;
  margin-bottom: 8px;
  cursor: pointer;
}
.faq-q:before { content: "Q："; color: #c0392b; }
.faq-a { color: #555; padding-left: 20px; }
.faq-a:before { content: "A："; color: #27ae60; font-weight: bold; }

/* Filter Bar */
.filter-bar {
  background: #f8f8f8;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 13px;
}
.filter-bar label { color: #666; margin-right: 8px; }
.filter-bar select {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 15px;
}

/* Banner Ad */
.banner-ad {
  background: linear-gradient(135deg, #f0c040 0%, #e67e22 100%);
  color: #fff;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.banner-ad h3 { font-size: 20px; margin-bottom: 5px; }

/* Footer */
.footer {
  background: #1a1a2e;
  color: #999;
  padding: 30px 0 15px;
  margin-top: 30px;
  font-size: 13px;
}
.footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.footer .footer-links a {
  color: #ccc;
  margin: 0 15px;
  font-size: 14px;
}
.footer .footer-links a:hover { color: #f0c040; }
.footer .copyright {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 15px;
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 900px) {
  .content-wrap { flex-direction: column; }
  .content-right { width: 100%; }
  .header h1 { font-size: 24px; }
  .nav a { padding: 10px 15px; font-size: 14px; }
  .stats-row { padding: 15px; }
  .stat-num { font-size: 28px; }
}
