@charset "utf-8";
/* ==========================================================================
   新开传奇发布网站 www.xkfbwz.cn — 全站样式
   纯手写 CSS，无框架依赖；统一设计令牌，桌面 1200px 栅格 + 移动端自适应
   ========================================================================== */

/* ---------------------------------- 设计令牌 ---------------------------------- */
:root {
  --red: #c00;
  --red-dark: #a00;
  --red-light: #fff6f6;
  --ink: #1f2329;
  --ink-2: #4a5058;
  --ink-3: #8a9099;
  --line: #e8eaed;
  --bg: #f2f3f5;
  --card: #fff;
  --radius: 6px;
  --gap: 20px;
  --nav-h: 48px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 14px/1.8 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--ink-2); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink-2); text-decoration: none; transition: color .18s, background-color .18s, border-color .18s; }
a:hover { color: var(--red); }
img { border: 0; max-width: 100%; height: auto; vertical-align: middle; }
ul, ol, li { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; color: var(--ink); line-height: 1.4; }
em, i { font-style: normal; }
time { color: var(--ink-3); }

.fl { float: left; }
.fr { float: right; }
.clear { clear: both; }
.ma { margin-left: auto; margin-right: auto; }
.w1200 { width: 1200px; }
.part { width: 1200px; margin: 0 auto; }

/* 视觉隐藏（保留 H1 语义，不影响设计） */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------------------------- 顶部信息条 ---------------------------------- */
.topbar { background: #23262b; color: #9aa0a6; font-size: 12px; line-height: 34px; }
.topbar .w1200 { display: flex; justify-content: space-between; gap: 20px; }
.topbar p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------- 头部 ---------------------------------- */
.head { background: var(--card); border-bottom: 1px solid var(--line); }
.head-main { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo img { height: 54px; }
.head-right { display: flex; align-items: center; gap: 16px; }
.head-right img { height: 54px; }

/* 主导航 */
.nav { background: var(--red); }
.navbar { position: relative; display: flex; align-items: center; }
.nav-list { display: flex; flex-wrap: wrap; flex: 1; }
.nav-list > li > a {
  display: block; padding: 0 24px; line-height: var(--nav-h); font-size: 15px;
  color: #fff; font-weight: 700; white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li > a.on { background: var(--red-dark); color: #ffe9b0; }
.nav-search a {
  display: block; padding: 0 18px; line-height: var(--nav-h); font-size: 13px;
  color: #ffdede; border-left: 1px solid rgba(255, 255, 255, .18);
}
.nav-search a:hover { color: #fff; background: var(--red-dark); }
.menu-btn {
  display: none; width: 36px; height: 36px; margin-left: auto; background: var(--red-dark);
  border-radius: 4px; color: #fff; text-align: center; line-height: 36px;
  font-size: 18px; cursor: pointer; user-select: none;
}

/* ---------------------------------- 内容区 ---------------------------------- */
.main { padding-top: 16px; }

/* 面包屑 */
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.crumbs span { color: var(--ink-3); }

/* 卡片与区块标题 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; }
.blk { margin-bottom: var(--gap); }
.blk-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--red); margin-bottom: 12px; padding-bottom: 6px;
}
.blk-head h2, .blk-head .blk-title { font-size: 16px; position: relative; padding-left: 11px; }
.blk-head h2::before, .blk-head .blk-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 16px; background: var(--red); border-radius: 2px;
}
.blk-more { font-size: 12px; color: var(--ink-3); }
.blk-more a { color: var(--ink-3); }
.blk-more a:hover { color: var(--red); }

/* 列表样式：一行一条，标题左、日期右，避免换行错乱 */
.rows { display: block; }
.rows li { border-bottom: 1px dashed var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows li a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 2px; font-size: 14px; line-height: 1.6;
}
.rows li a .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows li a .dt { flex: none; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rows li a:hover .txt { color: var(--red); }
.rows.rows-hot li:first-child .txt { color: var(--red); font-weight: 700; }

/* ---------------------------------- 首页：焦点区 ---------------------------------- */
/* 左右两栏等高：右栏内容决定行高，左栏轮播拉伸填满，保证底边齐平 */
.hero { display: flex; align-items: stretch; gap: var(--gap); margin-bottom: var(--gap); }
.hero-left { flex: 0 0 600px; max-width: 600px; position: relative; min-height: 300px; }
.hero-right { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.slider { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.slider .track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.slider .slide { flex: 0 0 100%; height: 100%; }
.slider .slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slider .dots { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; z-index: 4; }
.slider .dots span {
  display: inline-block; width: 22px; height: 4px; margin: 0 3px; border-radius: 2px;
  background: rgba(255, 255, 255, .5); cursor: pointer; transition: background-color .2s;
}
.slider .dots span.active { background: var(--red); }
.slider .arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 44px;
  line-height: 44px; text-align: center; color: #fff; font-size: 18px;
  background: rgba(0, 0, 0, .32); cursor: pointer; z-index: 4; user-select: none;
  opacity: 0; transition: opacity .2s;
}
.slider:hover .arrow { opacity: 1; }
.slider .next { right: 0; }
.slider .prev { left: 0; }

/* 焦点新闻 */
.hero-lead { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lead-box {
  border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius);
  background: var(--red-light); padding: 12px 14px; margin-bottom: 10px;
}
.lead-box h3 { font-size: 15px; margin-bottom: 6px; }
.lead-box h3 a { color: var(--red); }
.lead-box p { font-size: 13px; color: var(--ink-3); line-height: 1.9; }

/* ---------------------------------- 首页：开服表 ---------------------------------- */
.kf { padding: 14px 0 0; }
.kf-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kf table { width: 100%; border-collapse: collapse; }
.kf th, .kf td { padding: 10px 8px; text-align: center; font-size: 13px; border-bottom: 1px solid var(--line); }
.kf th { background: #f7f8fa; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.kf tbody tr:hover { background: #fcfcfd; }
.kf-kfname a { color: var(--red); font-weight: 700; }
.kf-intro { text-align: left !important; color: var(--ink-3); }
.kf-btn {
  display: inline-block; padding: 3px 14px; background: var(--red); color: #fff;
  border-radius: 3px; font-size: 12px;
}
.kf-btn:hover { background: var(--red-dark); color: #fff; }

/* ---------------------------------- 首页：栏目矩阵 ---------------------------------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }

/* ---------------------------------- 首页：游戏推荐 ---------------------------------- */
.games { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.game { text-align: center; }
.game .cover { display: block; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.game .cover img { display: block; width: 100%; height: 92px; object-fit: cover; transition: transform .3s; }
.game .cover:hover img { transform: scale(1.05); }
.game .name { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.game .name:hover { color: var(--red); }

/* ---------------------------------- 列表页（栏目页） ---------------------------------- */
.col-main { width: 870px; }
.col-side { width: 310px; }
.list-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.list-toolbar a {
  padding: 3px 12px; border: 1px solid var(--line); border-radius: 14px;
  font-size: 13px; color: var(--ink-2);
}
.list-toolbar a:hover { border-color: var(--red); color: var(--red); }
.list-toolbar a.on { background: var(--red); border-color: var(--red); color: #fff; }

/* 栏目介绍 */
.cat-intro { font-size: 13px; color: var(--ink-3); line-height: 1.9; padding: 2px 0 10px; }

/* 分页 */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 18px 0 4px; font-size: 13px; color: var(--ink-3); }
.pager a, .pager .cur {
  display: inline-block; min-width: 32px; height: 32px; line-height: 30px; text-align: center;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 0 8px;
}
.pager a:hover { border-color: var(--red); color: var(--red); }
.pager .cur { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------------------------------- 文章页 ---------------------------------- */
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px 26px; }
.post-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.post-head h1 { font-size: 24px; line-height: 1.5; margin-bottom: 12px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--ink-3); }
.post-meta a { color: var(--ink-3); }
.post-meta a:hover { color: var(--red); }
.post-body { font-size: 15px; line-height: 2.05; color: #33383f; }
.post-body p { margin-bottom: 16px; text-indent: 2em; }
.post-body p:last-child { margin-bottom: 0; }
.post-body a { color: var(--red); border-bottom: 1px dashed rgba(204, 0, 0, .4); }

/* 文章底部：声明 / 标签 / 上下篇 */
.post-note {
  margin-top: 22px; padding: 10px 14px; background: #fafbfc; border-left: 3px solid var(--red);
  border-radius: 0 4px 4px 0; font-size: 12px; color: var(--ink-3); line-height: 1.9;
}
.tags { margin-top: 14px; font-size: 12px; color: var(--ink-3); line-height: 2.4; }
.tags a {
  display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px; background: #f5f6f8;
  border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2);
}
.tags a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.post-nav { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.post-nav div { margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-nav span { color: var(--ink-3); }

/* 相关攻略 */
.related { margin-top: 22px; padding-top: 4px; }
.related .grid { gap: 0 24px; }

/* 侧栏 */
.side-card + .side-card { margin-top: var(--gap); }
.side-ad img { display: block; width: 100%; border-radius: 4px; }

/* ---------------------------------- 搜索结果页 ---------------------------------- */
.sbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.sbar { display: flex; max-width: 640px; }
.sbar input[type=text] {
  flex: 1; height: 42px; line-height: 42px; padding: 0 14px; border: 1px solid var(--line);
  border-right: 0; border-radius: 4px 0 0 4px; font-size: 14px; outline: none;
}
.sbar input[type=text]:focus { border-color: var(--red); }
.sbar input[type=submit] {
  width: 96px; height: 42px; border: 0; background: var(--red); color: #fff;
  font-size: 15px; border-radius: 0 4px 4px 0; cursor: pointer;
}
.sbar input[type=submit]:hover { background: var(--red-dark); }
.s-hint { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
#sresult { margin-top: 8px; }
#sresult .item { border-bottom: 1px dashed var(--line); padding: 12px 0; }
#sresult .item:last-child { border-bottom: 0; }
#sresult .item a { font-size: 15px; color: var(--red); font-weight: 700; }
#sresult .item p { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.sempty { color: var(--ink-3); padding: 14px 0; font-size: 13px; }

/* ---------------------------------- 底部 ---------------------------------- */
.footer { margin-top: 26px; background: #23262b; color: #8b9198; padding: 24px 0; text-align: center; font-size: 13px; }
.footer .fnav { margin-bottom: 10px; }
.footer .fnav a { display: inline-block; margin: 0 9px; color: #b9bfc6; }
.footer .fnav a:hover { color: #fff; }
.footer p { line-height: 2; }
.footer a { color: #b9bfc6; }
.footer a:hover { color: #fff; }
.footer .copy { color: #6f757c; }

/* ---------------------------------- 响应式 ---------------------------------- */
@media (max-width: 1240px) {
  .w1200, .part { width: 100%; padding-left: 12px; padding-right: 12px; }
  .hero { flex-wrap: wrap; }
  .hero-left { flex: 1 1 100%; max-width: 100%; }
  .slider .slide img { height: 260px; }
  .hero-right { flex: 1 1 100%; }
  .col-main, .col-side { width: 100%; float: none; }
  .col-side { margin-top: var(--gap); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .head-main { padding: 12px 0; }
  .logo img, .head-right img { height: 42px; }
  .navbar { flex-wrap: wrap; }
  .nav-list { display: none; flex: 1 1 100%; flex-direction: column; }
  .nav-list.open { display: flex; }
  .nav-list > li > a { line-height: 42px; border-bottom: 1px solid rgba(255, 255, 255, .14); padding: 0 16px; }
  .nav-search { display: none; }
  .menu-btn { display: block; }
  .slider .slide img { height: 200px; }
  .post { padding: 16px; }
  .post-head h1 { font-size: 19px; }
  .post-body { font-size: 15px; line-height: 1.95; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game .cover img { height: 84px; }
  .kf-scroll table { min-width: 720px; }
  .kf-scroll td { white-space: nowrap; }
  .kf-intro { white-space: normal !important; min-width: 200px; }
  .sbar { max-width: 100%; }
  .related .grid { gap: 0; }
}
