/* =========================================================
   18183cq 传奇私服发布网 · 样式表
   纯 CSS，无外部依赖，无 JS，对搜索引擎友好
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  background: #f4f6f9;
}
a { color: #c0392b; text-decoration: none; transition: color .2s; }
a:hover { color: #e67e22; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 15px; }
.sec { margin: 24px auto; }
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid #c0392b; padding-bottom: 8px; margin-bottom: 16px;
}
.sec-head h2 {
  font-size: 20px; color: #1a1a1a; position: relative; padding-left: 12px;
}
.sec-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 18px; background: #c0392b; border-radius: 2px;
}
.more { font-size: 13px; color: #888; white-space: nowrap; }
.more:hover { color: #c0392b; }
.text-center { text-align: center; }

/* ================= 顶部 ================= */
.site-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff; padding: 18px 0; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.brand .logo {
  display: inline-block; font-size: 26px; font-weight: 700; color: #f5a623;
  letter-spacing: 1px;
}
.brand .logo:hover { color: #ffd166; }
.slogan { font-size: 12px; color: #aab; margin-top: 4px; }
.site-nav { flex: 1; min-width: 320px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.site-nav a {
  display: block; padding: 8px 14px; color: #ddd; border-radius: 4px; font-size: 14px;
}
.site-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-nav li.active a { background: #c0392b; color: #fff; }

/* ================= 横幅 ================= */
.hero {
  background: linear-gradient(135deg, #c0392b 0%, #e67e22 100%);
  color: #fff; padding: 40px 0; text-align: center;
}
.hero h1 { font-size: 30px; margin-bottom: 12px; text-shadow: 0 2px 4px rgba(0,0,0,.2); }
.hero-sub { font-size: 16px; opacity: .95; }
.hero-ann {
  display: inline-block; margin-top: 16px; background: rgba(0,0,0,.18);
  padding: 8px 18px; border-radius: 20px; font-size: 13px;
}

/* ================= 开服表 ================= */
.table-box { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.open-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.open-table th {
  background: #2c3e50; color: #fff; padding: 12px 10px; text-align: left; font-weight: 400;
}
.open-table td { padding: 12px 10px; border-bottom: 1px solid #eee; }
.open-table tbody tr:hover { background: #fdf6f0; }
.open-table .t-time { font-weight: 700; color: #c0392b; white-space: nowrap; }
.open-table .t-name { font-weight: 700; color: #1a1a1a; }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px;
  color: #fff; white-space: nowrap;
}
.tag-new { background: #27ae60; }
.tag-hot { background: #e74c3c; }
.tag-soon { background: #f39c12; }
.btn-mini {
  display: inline-block; padding: 4px 14px; background: #c0392b; color: #fff;
  border-radius: 4px; font-size: 12px;
}
.btn-mini:hover { background: #e67e22; color: #fff; }
.btn {
  display: inline-block; padding: 10px 28px; background: #c0392b; color: #fff;
  border-radius: 4px; font-size: 15px;
}
.btn:hover { background: #e67e22; color: #fff; }
.update-time { text-align: right; font-size: 12px; color: #999; margin-top: 10px; }

/* ================= 版本卡片 ================= */
.ver-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.ver-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ver-card {
  background: #fff; border-radius: 8px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.ver-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.ver-card h4 { font-size: 16px; color: #1a1a1a; margin-bottom: 8px; }
.ver-tag { display: inline-block; background: #fdf0e6; color: #e67e22; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.ver-card p { font-size: 13px; color: #666; margin: 10px 0; min-height: 40px; }
.ver-meta { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed #eee; padding-top: 10px; font-size: 13px; }
.ver-meta span { color: #c0392b; font-weight: 700; }

/* ================= 两栏布局 ================= */
.cols-2 { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.news-list { background: #fff; border-radius: 8px; padding: 8px 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.news-item { padding: 14px 0; border-bottom: 1px dashed #eee; }
.news-item:last-child { border-bottom: none; }
.news-item h4 { font-size: 15px; font-weight: 400; line-height: 1.6; }
.news-item h4 a { color: #333; }
.news-item h4 a:hover { color: #c0392b; }
.news-date { font-size: 12px; color: #999; }
.news-list.detailed .news-item p { font-size: 13px; color: #888; margin-top: 6px; }

/* 侧边栏 */
.side-box {
  background: #fff; border-radius: 8px; padding: 16px 18px; margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.side-box h3 { font-size: 15px; border-left: 3px solid #c0392b; padding-left: 8px; margin-bottom: 12px; }
.simple-list li, .nav-list li { padding: 7px 0; border-bottom: 1px dashed #f0f0f0; }
.simple-list a, .nav-list a { color: #444; font-size: 13px; display: block; }
.simple-list a:hover, .nav-list a:hover { color: #c0392b; padding-left: 4px; }

.top-list li {
  display: flex; align-items: center; padding: 8px 0; border-bottom: 1px dashed #f0f0f0;
}
.top-list .num { font-weight: 700; color: #c0392b; width: 48px; font-size: 13px; }
.top-list .name { flex: 1; font-size: 13px; color: #333; }
.top-list .score { color: #f39c12; font-size: 12px; }
.top-list .top .num { color: #e74c3c; }

/* ================= 面包屑 ================= */
.bread { padding: 12px 15px; font-size: 13px; color: #888; }
.bread ol { display: flex; flex-wrap: wrap; gap: 6px; }
.bread li::after { content: ">"; margin-left: 6px; color: #bbb; }
.bread li:last-child::after { content: ""; }
.bread a { color: #666; }
.bread .cur { color: #c0392b; }
.bread .cur a { color: #c0392b; }

.channel-head { background: #fff; border-radius: 8px; padding: 22px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.channel-head h1 { font-size: 24px; color: #1a1a1a; margin-bottom: 8px; }
.channel-head p { color: #666; font-size: 14px; }

/* ================= 文章 ================= */
.article { background: #fff; border-radius: 8px; padding: 28px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.article-head { border-bottom: 1px solid #eee; padding-bottom: 16px; margin-bottom: 20px; }
.article-head h1 { font-size: 24px; color: #1a1a1a; line-height: 1.5; margin-bottom: 12px; }
.article-meta { font-size: 12px; color: #999; display: flex; gap: 16px; flex-wrap: wrap; }
.article-meta a { color: #c0392b; }
.article-summary { margin-top: 12px; background: #fdf6f0; padding: 12px; border-radius: 4px; color: #666; font-size: 14px; }
.article-body h2 { font-size: 18px; color: #1a1a1a; margin: 24px 0 12px; padding-left: 10px; border-left: 4px solid #c0392b; }
.article-body p { margin-bottom: 14px; text-indent: 2em; color: #444; font-size: 15px; line-height: 1.9; }
.article-tags { margin-top: 24px; padding-top: 16px; border-top: 1px dashed #eee; }
.tag-mini { display: inline-block; background: #fdf0e6; color: #e67e22; padding: 3px 10px; border-radius: 3px; font-size: 12px; margin-right: 8px; }
.tag-mini:hover { background: #c0392b; color: #fff; }
.article-nav { margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; display: flex; justify-content: space-between; }
.article-nav a { color: #c0392b; font-size: 14px; }

/* ================= 网站地图 ================= */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sitemap-sec { background: #fff; border-radius: 8px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.sitemap-sec h3 { font-size: 16px; color: #c0392b; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; }
.sitemap-sec li { padding: 6px 0; border-bottom: 1px dashed #f5f5f5; }
.sitemap-sec a { color: #444; font-size: 13px; }
.sitemap-sec a:hover { color: #c0392b; }

/* ================= 底部 ================= */
.site-footer { background: #1a1a2e; color: #aaa; padding: 30px 0 20px; margin-top: 40px; }
.site-footer .wrap { text-align: center; }
.foot-links { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.foot-links a { color: #ccc; padding: 0 10px; border-right: 1px solid #444; font-size: 13px; }
.foot-links a:last-child { border-right: none; }
.foot-about { color: #ccc; margin-bottom: 8px; }
.foot-disclaimer { font-size: 12px; color: #888; margin-bottom: 8px; }
.copyright { font-size: 12px; color: #666; }

/* ================= 响应式 ================= */
@media (max-width: 900px) {
  .cols-2 { grid-template-columns: 1fr; }
  .col-side { order: 2; }
  .ver-grid, .ver-grid.cols-3 { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 22px; }
  .site-nav ul { justify-content: center; }
}
@media (max-width: 600px) {
  .open-table { font-size: 12px; }
  .open-table th:nth-child(3), .open-table td:nth-child(3) { display: none; }
  .article { padding: 18px; }
  .article-head h1 { font-size: 20px; }
}
