/* =====================================================
   18183传奇发布站 - 传奇私服发布网 公共样式
   ===================================================== */
* { 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.8; color:#2b2118;
  background:#0c0a08;
  -webkit-font-smoothing:antialiased;
}
a { color:#b8860b; text-decoration:none; transition:color .2s; }
a:hover { color:#ffd700; }
img { max-width:100%; border:0; }
ul,ol { list-style:none; }
.container { width:100%; max-width:1180px; margin:0 auto; padding:0 15px; }

/* ---------- 顶部信息条 ---------- */
.topbar { background:#050403; border-bottom:1px solid #2a1f12; font-size:12px; color:#8a7555; }
.topbar .container { display:flex; justify-content:space-between; align-items:center; height:34px; }
.topbar a { color:#a8906a; }
.topbar a:hover { color:#ffd700; }

/* ---------- 头部 ---------- */
.header {
  background:linear-gradient(180deg,#1a120a 0%,#241609 100%);
  border-bottom:3px solid #8b0000;
  padding:26px 0 20px;
  position:relative;
}
.header::after {
  content:""; position:absolute; left:0; right:0; bottom:-3px; height:1px;
  background:linear-gradient(90deg,transparent,#c8a24a,transparent);
}
.logo { display:flex; align-items:center; gap:16px; }
.logo .badge {
  width:64px; height:64px; border-radius:12px; flex:0 0 64px;
  background:radial-gradient(circle at 50% 40%,#c8a24a,#8b6914 70%,#4a3508);
  display:flex; align-items:center; justify-content:center;
  font-size:30px; color:#fff; font-weight:900; text-shadow:0 2px 4px rgba(0,0,0,.6);
  box-shadow:0 4px 14px rgba(200,162,74,.3);
}
.logo h1 { font-size:30px; color:#ffd700; letter-spacing:1px; text-shadow:0 2px 6px rgba(0,0,0,.8); }
.logo h1 small { display:block; font-size:14px; color:#c9a24a; letter-spacing:3px; font-weight:400; margin-top:4px; }
.header .container { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:18px; }
.header-right { text-align:right; }
.search-box { display:flex; margin-top:8px; }
.search-box input {
  width:230px; height:36px; padding:0 12px; border:1px solid #5a4018; border-right:0;
  background:#0d0905; color:#e8d5a8; border-radius:4px 0 0 4px; outline:none; font-size:13px;
}
.search-box input:focus { border-color:#c8a24a; }
.search-box button {
  height:36px; padding:0 20px; border:0; cursor:pointer;
  background:linear-gradient(180deg,#a80d0d,#7a0808); color:#fff; font-size:14px; border-radius:0 4px 4px 0;
}
.search-box button:hover { background:linear-gradient(180deg,#c81010,#900a0a); }
.hot-keywords { font-size:12px; color:#8a7555; margin-top:8px; }
.hot-keywords a { margin-right:10px; color:#a8906a; }

/* ---------- 导航 ---------- */
.nav-wrap { background:#140d06; border-bottom:1px solid #2a1f12; }
.nav { display:flex; flex-wrap:wrap; }
.nav a {
  display:block; padding:14px 22px; color:#e8d5a8; font-size:16px; font-weight:700;
  border-right:1px solid #221709; position:relative;
}
.nav a::after {
  content:""; position:absolute; left:50%; right:50%; bottom:0; height:3px;
  background:#c00; transition:all .25s;
}
.nav a:hover::after, .nav a.active::after { left:12px; right:12px; }
.nav a:hover, .nav a.active { color:#fff; background:#1c1208; }
.nav a.active { color:#ffd700; }

/* ---------- 布局 ---------- */
.section { padding:28px 0; }
.section-title {
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:2px solid #8b0000; margin-bottom:18px; padding-bottom:8px;
}
.section-title h2 {
  font-size:20px; color:#ffd700; display:flex; align-items:center; gap:8px;
}
.section-title h2::before {
  content:""; width:6px; height:20px; background:#8b0000; border-radius:2px;
}
.section-title .more { font-size:13px; color:#a8906a; }
.section-title .more:hover { color:#ffd700; }

/* ---------- 面包屑 ---------- */
.crumb { font-size:13px; color:#8a7555; margin-bottom:16px; }
.crumb a { color:#c9a24a; }
.crumb span { color:#ffd700; }

/* ---------- 首页焦点图 ---------- */
.focus { display:grid; grid-template-columns:2fr 1fr; gap:18px; }
.focus-main {
  position:relative; border-radius:8px; overflow:hidden; min-height:320px;
  background:linear-gradient(135deg,#3a1c08,#1a0d04 70%);
  display:flex; flex-direction:column; justify-content:flex-end; padding:30px;
  border:1px solid #5a4018;
}
.focus-main::before {
  content:"今日推荐"; position:absolute; top:18px; left:-30px;
  background:#c00; color:#fff; font-size:13px; padding:5px 36px; transform:rotate(-45deg);
}
.focus-main h3 { font-size:26px; color:#fff; margin-bottom:10px; text-shadow:0 2px 8px rgba(0,0,0,.8); }
.focus-main p { color:#e8d5a8; font-size:14px; }
.focus-main .btn {
  display:inline-block; margin-top:16px; padding:10px 28px; align-self:flex-start;
  background:linear-gradient(180deg,#c00,#8b0000); color:#fff; border-radius:4px; font-size:15px; font-weight:700;
}
.focus-main .btn:hover { background:linear-gradient(180deg,#e00,#a00); color:#fff; }
.focus-side { display:flex; flex-direction:column; gap:18px; }
.focus-card {
  flex:1; border-radius:8px; overflow:hidden; padding:22px; position:relative;
  border:1px solid #5a4018;
}
.focus-card.s1 { background:linear-gradient(135deg,#4a2a08,#241209); }
.focus-card.s2 { background:linear-gradient(135deg,#3a0d0d,#1a0606); }
.focus-card h4 { color:#ffd700; font-size:17px; margin-bottom:6px; }
.focus-card p { color:#c9a98a; font-size:13px; }

/* ---------- 开服列表 ---------- */
.server-table { width:100%; border-collapse:collapse; background:#140d06; border:1px solid #5a4018; border-radius:6px; overflow:hidden; }
.server-table th, .server-table td { padding:11px 12px; text-align:center; font-size:13px; border-bottom:1px solid #2a1f12; }
.server-table th { background:#241609; color:#ffd700; font-weight:700; }
.server-table td { color:#d8c39a; }
.server-table tr:hover td { background:#1c1208; }
.tag { display:inline-block; padding:2px 8px; border-radius:3px; font-size:12px; color:#fff; }
.tag-hot { background:#c00; }
.tag-new { background:#0a7a2a; }
.tag-rec { background:#c8a24a; color:#2b2118; }
.btn-play {
  display:inline-block; padding:5px 16px; background:#8b0000; color:#fff;
  border-radius:3px; font-size:13px; font-weight:700;
}
.btn-play:hover { background:#c00; color:#fff; }

/* ---------- 双栏通用 ---------- */
.two-col { display:grid; grid-template-columns:2fr 1fr; gap:28px; }
.panel { background:#140d06; border:1px solid #5a4018; border-radius:8px; padding:20px; }
.panel h3 { font-size:18px; color:#ffd700; margin-bottom:14px; padding-left:10px; border-left:4px solid #8b0000; }
.news-list li { padding:10px 0; border-bottom:1px dashed #332410; display:flex; align-items:baseline; gap:10px; }
.news-list li:last-child { border-bottom:0; }
.news-list .n-date { color:#8a7555; font-size:12px; flex:0 0 auto; }
.news-list .n-cat { color:#c00; font-size:12px; flex:0 0 auto; }
.news-list a { color:#e8d5a8; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.news-list a:hover { color:#ffd700; }
.rank-list li { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px dashed #332410; }
.rank-list li:last-child { border-bottom:0; }
.rank-list .num { width:22px; height:22px; border-radius:3px; background:#332410; color:#c9a24a; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; flex:0 0 22px; }
.rank-list li:nth-child(1) .num, .rank-list li:nth-child(2) .num, .rank-list li:nth-child(3) .num { background:#8b0000; color:#ffd700; }
.rank-list a { color:#d8c39a; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rank-list a:hover { color:#ffd700; }

/* ---------- 下载列表 ---------- */
.download-list { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.download-card { background:#140d06; border:1px solid #5a4018; border-radius:8px; padding:20px; text-align:center; transition:transform .2s,border-color .2s; }
.download-card:hover { transform:translateY(-4px); border-color:#c8a24a; }
.download-card .icon { font-size:40px; margin-bottom:10px; }
.download-card h4 { color:#ffd700; font-size:17px; margin-bottom:8px; }
.download-card p { color:#a8906a; font-size:13px; margin-bottom:14px; }
.download-card .btn-dl { display:inline-block; padding:8px 24px; background:#0a7a2a; color:#fff; border-radius:4px; font-size:14px; font-weight:700; }
.download-card .btn-dl:hover { background:#0c9a36; color:#fff; }

/* ---------- 文章页 ---------- */
.article { background:#140d06; border:1px solid #5a4018; border-radius:8px; padding:34px 38px; }
.article h1 { font-size:26px; color:#ffd700; text-align:center; line-height:1.5; margin-bottom:16px; }
.article-meta { text-align:center; font-size:13px; color:#8a7555; padding-bottom:18px; border-bottom:1px dashed #332410; margin-bottom:24px; }
.article-meta span { margin:0 8px; }
.article-body { color:#d8c39a; font-size:15px; line-height:2; }
.article-body p { margin-bottom:16px; text-indent:2em; }
.article-body h2 { font-size:19px; color:#ffd700; margin:28px 0 14px; padding-left:12px; border-left:4px solid #8b0000; }
.article-body h3 { font-size:16px; color:#c8a24a; margin:20px 0 10px; }
.article-body strong { color:#ffd700; }
.article-body ul, .article-body ol { margin:12px 0 16px 2em; }
.article-body li { list-style:disc; margin-bottom:8px; }
.article-body ol li { list-style:decimal; }
.tags { margin-top:26px; padding-top:16px; border-top:1px dashed #332410; }
.tags a { display:inline-block; padding:3px 12px; margin:0 6px 6px 0; background:#241609; border:1px solid #5a4018; border-radius:3px; color:#c9a24a; font-size:13px; }
.tags a:hover { background:#8b0000; color:#fff; border-color:#8b0000; }
.article-pager { margin-top:26px; padding-top:16px; border-top:1px dashed #332410; font-size:14px; }
.article-pager a { color:#c9a24a; }
.article-pager a:hover { color:#ffd700; }
.article-pager .prev { float:left; }
.article-pager .next { float:right; }

/* ---------- 侧栏 ---------- */
.side-box { background:#140d06; border:1px solid #5a4018; border-radius:8px; padding:18px; margin-bottom:22px; }
.side-box h3 { font-size:17px; color:#ffd700; margin-bottom:12px; padding-left:10px; border-left:4px solid #8b0000; }

/* ---------- 列表页 ---------- */
.list-main { display:grid; grid-template-columns:2fr 1fr; gap:28px; }
.list-article li { padding:20px 0; border-bottom:1px dashed #332410; display:flex; gap:18px; }
.list-article li:last-child { border-bottom:0; }
.list-article .thumb {
  width:180px; height:120px; flex:0 0 180px; border-radius:6px; overflow:hidden;
  background:linear-gradient(135deg,#3a1c08,#1a0d04); display:flex; align-items:center; justify-content:center;
  font-size:40px; border:1px solid #5a4018;
}
.list-article .info { flex:1; }
.list-article h3 { font-size:18px; margin-bottom:8px; }
.list-article h3 a { color:#ffd700; }
.list-article h3 a:hover { color:#fff; }
.list-article .desc { color:#a8906a; font-size:13px; line-height:1.8; }
.list-article .info-meta { font-size:12px; color:#8a7555; margin-top:10px; }
.pagination { text-align:center; margin-top:26px; }
.pagination a, .pagination span { display:inline-block; padding:7px 14px; margin:0 3px; border:1px solid #5a4018; border-radius:3px; color:#c9a24a; background:#140d06; }
.pagination a:hover, .pagination .current { background:#8b0000; color:#fff; border-color:#8b0000; }

/* ---------- 页脚 ---------- */
.footer { background:#050403; border-top:3px solid #8b0000; padding:34px 0 20px; margin-top:34px; }
.footer .links { display:flex; flex-wrap:wrap; gap:14px; justify-content:center; margin-bottom:18px; }
.footer .links a { color:#a8906a; font-size:13px; }
.footer .links a:hover { color:#ffd700; }
.footer .copyright { text-align:center; font-size:12px; color:#6a5a45; line-height:2; }
.footer .copyright strong { color:#c9a24a; }

/* ---------- 响应式 ---------- */
@media (max-width:900px){
  .focus,.two-col,.list-main { grid-template-columns:1fr; }
  .focus-main { min-height:240px; }
  .download-list { grid-template-columns:1fr; }
  .list-article .thumb { width:120px; height:90px; flex:0 0 120px; font-size:28px; }
  .nav a { padding:12px 14px; font-size:15px; }
  .logo h1 { font-size:22px; }
  .search-box input { width:150px; }
  .article { padding:22px 18px; }
}
@media (max-width:560px){
  .topbar .container { flex-direction:column; height:auto; padding:6px 15px; gap:4px; }
  .header .container { flex-direction:column; }
  .header-right { text-align:center; }
  .list-article li { flex-direction:column; }
  .list-article .thumb { width:100%; height:140px; flex:0 0 140px; }
}
