/* ============================================================
   传奇开服推荐站 · 全站样式（PC + 移动双端响应式）
   主题色默认 #c8a24b，可后台按站点自定义 :root --theme
   ============================================================ */
:root{
  --theme:#c8a24b;
  --theme-dark:#a87f2a;
  --bg:#f4f2ec;
  --card:#ffffff;
  --text:#2b2b2b;
  --muted:#8a857a;
  --line:#ece7da;
  --hot:#e23b3b;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{background:var(--bg);color:var(--text);font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;font-size:15px;line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;vertical-align:middle;border:0}
ul{list-style:none}
.wrap{min-height:100vh;display:flex;flex-direction:column}
.container{max-width:1180px;margin:0 auto;padding:0 16px;width:100%}

/* ---------- 顶部工具条 ---------- */
.topbar{background:#22201b;color:#c9c2b2;font-size:13px}
.topbar-in{display:flex;justify-content:space-between;align-items:center;padding:7px 16px}
.topbar-right a{color:#c9c2b2;margin-left:16px;transition:color .2s}
.topbar-right a:hover{color:var(--theme)}

/* ---------- 站头 ---------- */
.header{background:linear-gradient(135deg,#31291b,#17140e);padding:18px 0}
.header-in{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px}
.logo{display:flex;align-items:center;gap:12px}
.logo-icon{width:52px;height:52px;line-height:52px;text-align:center;font-size:30px;font-weight:bold;color:#fff;
  background:linear-gradient(135deg,var(--theme),var(--theme-dark));border-radius:12px;box-shadow:0 4px 14px rgba(0,0,0,.35)}
.logo-text b{font-size:24px;color:#fff;letter-spacing:1px;display:block;line-height:1.2}
.logo-text i{font-style:normal;font-size:12px;color:var(--theme);display:block}
.header-search form{display:flex;background:#fff;border-radius:26px;overflow:hidden;box-shadow:0 3px 12px rgba(0,0,0,.3)}
.header-search input{border:0;outline:0;padding:0 16px;width:240px;font-size:14px}
.header-search button{border:0;background:linear-gradient(135deg,var(--theme),var(--theme-dark));color:#fff;padding:0 22px;font-size:15px;cursor:pointer}

/* ---------- 导航 ---------- */
.nav{background:var(--theme)}
.nav-in ul{display:flex;flex-wrap:wrap}
.nav-in li{position:relative}
.nav-in a{display:block;padding:13px 22px;color:#3a2d12;font-size:15px;font-weight:600;transition:all .2s}
.nav-in a:hover,.nav-in li.active a{background:var(--theme-dark);color:#fff}

/* ---------- 顶部广告 ---------- */
.banner-top{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px auto}
.banner-item{background:linear-gradient(135deg,#fff8e8,#f4e6c4);border:1px solid var(--line);border-radius:10px;padding:14px 16px;text-align:center;font-weight:600;color:#6b4f16;box-shadow:0 2px 8px rgba(0,0,0,.04);transition:transform .2s}
.banner-item:hover{transform:translateY(-2px);border-color:var(--theme)}

/* ---------- 布局 ---------- */
.main{display:grid;grid-template-columns:1fr 300px;gap:20px;margin:0 auto;padding-bottom:30px;align-items:start}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:18px;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.card+.card{margin-top:18px}

/* ---------- 标题 ---------- */
.block-head{display:flex;justify-content:space-between;align-items:center;border-left:4px solid var(--theme);padding-left:10px;margin-bottom:14px}
.block-head h2{font-size:19px;color:#2b2b2b}
.block-head h2 b{color:var(--theme)}
.block-head .more{font-size:13px;color:var(--muted)}
.block-head .more:hover{color:var(--theme)}

/* ---------- 开服表 ---------- */
.server-table{width:100%;border-collapse:collapse;font-size:14px}
.server-table th{background:#f7f2e6;color:#6b5b2f;padding:11px 10px;text-align:left;font-size:13px}
.server-table td{padding:11px 10px;border-top:1px solid var(--line)}
.server-table tr:hover td{background:#fdf9ee}
.srv-name{font-weight:700;color:#1f1f1f}
.srv-name a:hover{color:var(--theme)}
.tag{display:inline-block;background:#f3ece0;color:#8a6d2a;font-size:12px;padding:2px 8px;border-radius:4px;margin-right:6px;white-space:nowrap}
.hot-tag{background:var(--hot);color:#fff}
.feature{color:#6d5a2f;font-size:13px}
.time{color:var(--theme-dark);font-weight:600}
.status{color:#1a9e57}
.hot-num{color:var(--hot);font-weight:700}
.btn-go{display:inline-block;background:linear-gradient(135deg,var(--theme),var(--theme-dark));color:#fff;padding:6px 16px;border-radius:6px;font-size:13px;font-weight:600;transition:opacity .2s}
.btn-go:hover{opacity:.88}

/* ---------- 双栏 ---------- */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.two-col .card{margin-top:0}

/* ---------- 列表 ---------- */
.news-list li{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px dashed var(--line);font-size:14px}
.news-list li:last-child{border-bottom:0}
.news-list a{color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.news-list a:hover{color:var(--theme)}
.news-list .time{flex-shrink:0;color:var(--muted);font-size:13px}
.rank-num{display:inline-block;width:22px;height:22px;line-height:22px;text-align:center;border-radius:5px;font-size:13px;background:#f0e9d8;color:#8a6d2a;margin-right:8px;font-weight:700}
.rank-1{background:#f8cf4d;color:#7a4f00}
.rank-2{background:#d8dce0;color:#444}
.rank-3{background:#e6a86a;color:#6b3a0d}

/* ---------- 侧栏 ---------- */
.side .card{padding:16px}
.side-block-title{font-size:16px;font-weight:700;border-left:4px solid var(--theme);padding-left:8px;margin-bottom:12px}
.hot-list li{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px dashed var(--line)}
.hot-list a{font-size:14px;color:#333;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hot-list a:hover{color:var(--theme)}
.hot-list .hnum{color:var(--hot);font-weight:700;font-size:13px}

/* ---------- 文章详情 ---------- */
.article-body{margin-top:16px}
.article-body p{margin:12px 0;text-align:justify}
.article-body h3{margin:16px 0 8px;color:#4a3415}
.article-meta{color:var(--muted);font-size:13px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:14px}

/* ---------- 分页 ---------- */
.pagination{display:flex;justify-content:center;gap:8px;margin:20px 0 4px}
.pagination a,.pagination span{padding:7px 14px;background:#fff;border:1px solid var(--line);border-radius:6px;font-size:13px}
.pagination a:hover{border-color:var(--theme);color:var(--theme)}
.pagination .current{background:var(--theme);color:#fff;border-color:var(--theme)}
.pagination .disabled{color:#bbb;cursor:default}

/* ---------- 页脚 ---------- */
.footer{background:#211d16;color:#b9b1a0;margin-top:auto}
.footer-in{padding:26px 16px 16px}
.footer-cols{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:20px;padding-bottom:18px;border-bottom:1px solid #3a342b}
.f-col h4{color:var(--theme);font-size:15px;margin-bottom:10px}
.f-col ul li{padding:4px 0}
.f-col a{color:#b9b1a0;font-size:13px}
.f-col a:hover{color:var(--theme)}
.f-about p{font-size:13px;color:#98917f;line-height:1.8}
.footer-bar{display:flex;justify-content:space-between;align-items:center;padding-top:14px;font-size:12px;color:#8a8372}
.f-links a{color:#8a8372;margin-left:10px}
.f-links a:hover{color:var(--theme)}

/* ---------- 面包屑 ---------- */
.crumb{font-size:13px;color:var(--muted);padding:14px 0 4px}
.crumb a:hover{color:var(--theme)}
.crumb b{color:#5a4a24}

/* ---------- 响应式 ---------- */
@media (max-width: 900px){
  .main{grid-template-columns:1fr}
  .side{order:2}
  .banner-top{grid-template-columns:1fr 1fr}
  .two-col{grid-template-columns:1fr}
  .footer-cols{grid-template-columns:1fr 1fr}
}
@media (max-width: 640px){
  .header-in{flex-direction:column;align-items:flex-start}
  .header-search{width:100%}
  .header-search input{width:100%;flex:1}
  .nav-in a{padding:11px 14px;font-size:14px}
  .banner-top{grid-template-columns:1fr}
  .server-table{display:block;overflow-x:auto}
  .footer-cols{grid-template-columns:1fr}
  .footer-bar{flex-direction:column;gap:6px;text-align:center}
  .logo-text b{font-size:20px}
}
