/* 首页 2026 布局 —— 浅色水墨底；中间内容区透明，墨色文字压在背景图上，朱红点睛
   配色：焦墨 #111417（标题）／墨黑 #1f2328（正文）／朱红 #8c2f24（强调）／中灰 #5f5f5f（次要）
   对比度实测：正文对背景笔触处 10.88，朱红 5.68，中灰 4.40 */
* { box-sizing: border-box; }

:root {
  --hp-nav-h: 96px;                      /* 顶栏高度 */
  --hp-ft-min: 118px;                    /* 底栏最小高度（内容多时可再长） */
  --hp-ink: #111417;
  --hp-body: #1f2328;
  --hp-dim: #5f5f5f;
  --hp-accent: #8c2f24;
  --hp-line: rgba(0, 0, 0, .12);
  --hp-text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

html, body { margin: 0; padding: 0; }
body {
  font-family: "LXGW WenKai", "Kaiti SC", KaiTi, STKaiti, "Noto Serif SC", "Songti SC", SimSun, serif;
  color: var(--hp-body);
  background: #f4f2ec;
  position: relative;
  height: 100vh; height: 100dvh; overflow: hidden;
  /* 顶栏固定在外；正文与底栏一起放进 .hp-scroll：正文不越过顶栏分割线，底栏仍在页面最末 */
  display: flex; flex-direction: column;
}
.hp-nav { flex: 0 0 auto; }
.hp-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
.hp-scroll > main { flex: 1 1 auto; }

/* 整页背景图（fixed 铺满；每页用 body 上的 --pg-bg 各自指定，默认首页那张） */
.hp-bg {
  position: fixed; inset: 0; z-index: -1;
  background: var(--pg-bg, url("../img/bg_home.webp?v=3")) center / cover no-repeat;
}
.hp-bg::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(252, 251, 248, .42);
}

.hp-wrap { width: min(1200px, 94vw); margin: 0 auto; }

/* ── 顶部导航（水墨图底） ── */
/* 顶栏：不再单独铺图，压在整页背景上，只留一层极薄纸色薄纱保证可读 */
.hp-nav {
  position: sticky; top: 0; z-index: 20;
  background: transparent;
  border-bottom: 1px solid rgba(60, 52, 40, .22);
}
.hp-nav-inner, .hp-ft > .hp-wrap { position: relative; z-index: 1; }
.hp-nav-inner { display: flex; align-items: center; gap: 44px; height: var(--hp-nav-h); }
.hp-logo-a { display: block; flex: 0 0 auto; }
.hp-logo { display: block; height: 76px; width: auto; }
.hp-menu { display: flex; align-items: center; gap: 28px; flex: 1 1 auto; }
.hp-menu a {
  color: var(--hp-body); text-decoration: none; font-size: 19px; letter-spacing: 1px;
  padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.hp-menu a:hover { color: var(--hp-accent); }
.hp-menu a.on { color: var(--hp-accent); font-weight: 700; border-bottom-color: var(--hp-accent); }
.hp-login {
  flex: 0 0 auto;
  color: var(--hp-accent); text-decoration: none; font-size: 17px; letter-spacing: 2px;
  padding: 8px 26px; border: 1px solid var(--hp-accent); border-radius: 4px;
  background: rgba(255, 255, 255, .72);
}
.hp-login:hover { background: var(--hp-accent); color: #fff; }

/* ── 主体两栏 ── */
.hp-main {
  display: grid; grid-template-columns: 500px minmax(0, 1fr);
  gap: 28px; align-items: stretch;
  padding: 48px 0 36px;
}
.hp-col { min-width: 0; display: flex; flex-direction: column; }
/* 左右两栏各自最后一块贴底 ⇒ 左栏「玩家数量」与右栏「更新公告」底部平齐 */
.hp-col-right .hp-card:last-child { margin-top: auto; }

.hp-pic img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

/* 中间板块：透明（无底无框无阴影），文字直接压在背景图上 */
.hp-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 6px 2px;
  margin-top: 24px;
  text-shadow: var(--hp-text-shadow);
}
.hp-col-right .hp-card:first-child { margin-top: 0; }

.hp-card-hd {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 20px; font-weight: 700; color: var(--hp-ink); letter-spacing: 2px;
  margin-bottom: 12px;
}
.hp-card-hd a { font-size: 15px; color: var(--hp-dim); text-decoration: none; font-weight: 400; }
.hp-card-hd a:hover { color: var(--hp-accent); }

/* 连接方式：标签列定宽、值列左对齐，两列成块 */
.hp-conn { list-style: none; margin: 0; padding: 0; }
.hp-conn li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 0; font-size: 16px; color: var(--hp-body);
  border-bottom: 1px dashed var(--hp-line);
}
.hp-conn li:last-child { border-bottom: 0; }
.hp-conn span { flex: 0 0 6.2em; color: #3a4048; }
.hp-conn b {
  flex: 1 1 auto; min-width: 0;
  color: var(--hp-accent); font-weight: 400; font-size: 15.5px;
  text-align: left; word-break: break-all; line-height: 1.5;
}

/* 介绍 */
.hp-lead { margin: 0 0 8px; font-size: 17px; line-height: 1.95; color: var(--hp-body); text-indent: 2em; }
.hp-feat h4 {
  margin: 18px 0 4px; font-size: 17px; font-weight: 700; color: var(--hp-accent);
  letter-spacing: 1px;
}
.hp-feat h4::before { content: "◆"; font-size: 12px; margin-right: 6px; color: var(--hp-accent); }
.hp-feat p { margin: 0; font-size: 16px; line-height: 1.9; color: var(--hp-body); text-indent: 2em; }

/* 更新公告 */
.hp-news { list-style: none; margin: 0; padding: 0; }
.hp-news li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 10px 0; font-size: 16px; border-bottom: 1px dashed var(--hp-line);
}
.hp-news li:last-child { border-bottom: 0; }
.hp-news span { flex: 0 0 auto; color: var(--hp-dim); font-size: 15px; }
.hp-news a { color: var(--hp-body); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-news a:hover { color: var(--hp-accent); }
.hp-news-link {
  flex: 1 1 auto; min-width: 0;
  color: var(--hp-body); cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hp-news-link:hover { color: var(--hp-accent); }
.hp-news-time { text-align: center; text-indent: 0; color: var(--hp-dim); font-size: 13px; margin: -8px 0 14px; }
.hp-news-body { text-indent: 0; white-space: pre-wrap; }

/* 开发团队 */
.hp-dev p {
  margin: 0 0 6px; font-size: 16px; line-height: 1.9;
  color: var(--hp-body); text-indent: 2em;
}
.hp-dev p:last-child { margin-bottom: 0; }

/* 数据（左栏，连接方式下面，同样透明） */
.hp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: auto; padding-top: 22px; }
.hp-stats div {
  background: transparent; border: 0; border-radius: 0;
  padding: 6px 0; text-align: left; box-shadow: none;
  text-shadow: var(--hp-text-shadow);
}
.hp-stats span { display: block; font-size: 15px; color: var(--hp-dim); margin-bottom: 4px; letter-spacing: 1px; }
.hp-stats b { font-size: 30px; font-weight: 700; color: var(--hp-accent); letter-spacing: 1px; }

/* ── 页脚：与顶栏同高（96px）同铺法，只做一条窄底边 ── */
.hp-ft {
  position: relative;
  margin-top: 0; padding: 10px 0 22px;      /* 上边距收窄，底边留一行 */
  min-height: var(--hp-ft-min);
  background: transparent;
  border-top: 1px solid rgba(60, 52, 40, .22);
  text-align: center; font-size: 13px; color: #3d423c; line-height: 1.5;
}
.hp-ft > .hp-wrap { width: min(1200px, 94vw); }
.hp-ft-legal { margin: 0; font-size: 14px; line-height: 1.7; }
.hp-ft-copy { margin: 0; font-size: 13.5px; line-height: 1.6; }
.hp-ft-legal, .hp-ft-copy, .hp-ft-links { text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.hp-ft-legal { margin: 0; }
.hp-tiantiao { color: #b23b2e; font-weight: 700; cursor: pointer; }
.hp-tiantiao:hover { text-decoration: underline; }

/* 页脚按钮行 */
.hp-ft-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 6px 0 6px; }
.hp-ft-links a {
  display: inline-block; padding: 5px 16px; font-size: 14.5px; line-height: 1.6;
  color: var(--hp-accent); text-decoration: none;
  border: 1px solid rgba(140, 47, 36, .45); border-radius: 4px;
  background: rgba(255, 255, 255, .55);
}
.hp-ft-links a:hover { background: var(--hp-accent); color: #fff; border-color: var(--hp-accent); }
.hp-ft-copy { margin: 0; font-size: 14px; color: #8a8a8a; }

/* 风云天条弹窗（纯 CSS，无脚本） */
.hp-modal-toggle { position: absolute; opacity: 0; pointer-events: none; }
.hp-modal { display: none; position: fixed; inset: 0; z-index: 60; align-items: center; justify-content: center; }
.hp-modal-toggle:checked ~ .hp-modal { display: flex; }
.hp-modal-mask { position: absolute; inset: 0; background: rgba(20, 18, 14, .5); }
.hp-modal-box {
  position: relative; z-index: 1;
  width: min(780px, 92vw); max-height: 84vh; overflow: auto;
  font-family: "LXGW WenKai", "Kaiti SC", KaiTi, STKaiti, "Noto Serif SC", "Songti SC", SimSun, serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(120, 150, 120, .12), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(120, 150, 120, .10), transparent 48%),
    linear-gradient(160deg, #f8fbf5 0%, #eff6ea 45%, #e5efdf 100%);
  border: 1px solid rgba(140, 47, 36, .18); border-radius: 10px;
  padding: 26px 32px 22px; text-align: left;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  font-size: 15px; line-height: 1.9; color: var(--hp-body);
}
.hp-modal-box h3 { margin: 0 0 14px; font-size: 22px; color: var(--hp-ink); letter-spacing: 3px; text-align: center; }
.hp-modal-box h4 { margin: 18px 0 6px; font-size: 17px; color: var(--hp-accent); letter-spacing: 1px; text-indent: 2em; }
.hp-modal-box p { margin: 0 0 6px; text-indent: 2em; }
.hp-modal-close-wrap { margin-top: 26px; text-align: center; }
.hp-modal-close {
  display: inline-block; padding: 6px 28px;
  border: 1px solid rgba(140, 47, 36, .30); border-radius: 6px;
  font-size: 15px; letter-spacing: 4px; color: var(--hp-accent); cursor: pointer;
}
.hp-modal-close:hover { background: rgba(140, 47, 36, .08); }

/* ── 窄屏 ── */
@media (max-width: 1000px) {
  .hp-main { grid-template-columns: 1fr; padding-top: 28px; }
  .hp-menu { gap: 16px; overflow-x: auto; }
  .hp-menu a { font-size: 17px; }
  .hp-nav-inner { height: 84px; gap: 20px; }
  .hp-logo { height: 62px; }
  .hp-ft { min-height: 104px; padding: 8px 0 14px; }
  .hp-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hp-stats b { font-size: 24px; }
}

/* ── 门户共用外框（2026-12）：整页背景按页 class 取图；内容页不压白纱 ── */
body.pg-home       { --pg-bg: url("../img/bg_home.webp?v=3"); }
body.pg-page1      { --pg-bg: url("../img/bg_page1.webp?v=3"); }
body.pg-page2      { --pg-bg: url("../img/bg_page2.webp?v=3"); }
body.pg-page3      { --pg-bg: url("../img/bg_page3.webp?v=3"); }
body.pg-page4      { --pg-bg: url("../img/bg_page4.webp?v=3"); }
body.pg-login      { --pg-bg: url("../img/bg_login.webp?v=3"); }
body.pg-char-male  { --pg-bg: url("../img/char_male.webp?v=3"); }
body.pg-char-female{ --pg-bg: url("../img/char_female.webp?v=3"); }

/* 内容页只留顶栏、底栏与背景：白纱去掉，让背景图原样露出来 */
body.pg-plain .hp-bg::after { background: transparent; }
.hp-blank { min-height: 64vh; }

/* 顶栏右侧登录态 */
.hp-account { display: flex; align-items: center; gap: 10px; }
.hp-me { flex: 0 0 auto; color: var(--hp-body); font-size: 17px; letter-spacing: 1px; white-space: nowrap; }
.hp-me-lv { color: var(--hp-accent); }
.hp-logout { font-size: 15px; letter-spacing: 1px; padding: 6px 16px; }

/* ── 叩关登录页（版式照登舟入阁的登录框） ── */
.pg-login-wrap { display: flex; justify-content: center; padding: 70px 0 100px; }
.pg-login-card {
  width: min(430px, 94vw);
  background: rgba(252, 251, 248, .88);
  border: 1px solid rgba(140, 47, 36, .18); border-radius: 10px;
  padding: 30px 30px 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}
.pg-login-card input[type=text],
.pg-login-card input[type=password] {
  width: 100%; height: 46px; margin-bottom: 14px; padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, .16); border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  font-size: 16px; color: var(--hp-body);
  font-family: inherit;
}
.pg-login-card input::placeholder { color: rgba(95, 95, 95, .72); font-size: 15px; letter-spacing: 0; }
.pg-login-card input:focus { outline: none; border-color: rgba(140, 47, 36, .55); box-shadow: 0 0 0 2px rgba(140, 47, 36, .12); }
.pg-pw-wrap { position: relative; }
.pg-eye {
  position: absolute; right: 8px; top: 7px;
  height: 32px; padding: 0 12px;
  border: 1px solid rgba(140, 47, 36, .28); border-radius: 5px;
  background: rgba(255, 255, 255, .8); color: var(--hp-accent);
  font-size: 13px; letter-spacing: 1px; cursor: pointer; font-family: inherit;
}
.pg-eye:hover { background: var(--hp-accent); color: #fff; }
.pg-rem { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--hp-dim); margin: 2px 0 16px; }
.pg-rem label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.pg-rem input { width: 15px; height: 15px; accent-color: var(--hp-accent); }
.pg-go {
  width: 100%; height: 48px; border: 0; border-radius: 6px;
  background: var(--hp-accent); color: #fff;
  font-size: 19px; letter-spacing: 8px; cursor: pointer; font-family: inherit;
}
.pg-go:hover { background: #7a2820; }
.pg-hint { min-height: 22px; margin: 10px 0 4px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--hp-dim); }
.pg-hint.is-err { color: #b23b2e; }
.pg-acts { display: flex; gap: 12px; margin-top: 8px; }
.pg-acts a, .pg-acts .pg-tt {
  flex: 1 1 auto; text-align: center; padding: 9px 0;
  border: 1px solid rgba(140, 47, 36, .28); border-radius: 6px;
  background: rgba(255, 255, 255, .72); color: var(--hp-accent);
  text-decoration: none; font-size: 15px; letter-spacing: 2px; cursor: pointer;
}
.pg-acts a:hover, .pg-acts .pg-tt:hover { background: rgba(140, 47, 36, .08); }
.pg-legal { margin-top: 18px; font-size: 13px; line-height: 1.7; color: var(--hp-dim); text-align: center; }

/* ── 谁与争锋（人物背景 · 左榜 · 右查询） ── */
.zf-wrap {
  display: grid; grid-template-columns: 340px minmax(0, 1fr);
  gap: 26px; align-items: start; padding: 40px 0 70px;
}
.zf-left { display: flex; flex-direction: column; gap: 18px; }
.zf-intro { margin: 0; }
.zf-lead { margin: 0; font-size: 16px; line-height: 1.95; color: var(--hp-body); text-indent: 2em; }

.zf-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zf-btn {
  display: block; text-align: center; padding: 9px 4px;
  font-size: 15px; letter-spacing: 1px; text-decoration: none;
  color: var(--hp-body); background: rgba(252, 251, 248, .86);
  border: 1px solid rgba(140, 47, 36, .22); border-radius: 6px;
}
.zf-btn:hover { color: var(--hp-accent); border-color: rgba(140, 47, 36, .5); }
.zf-btn.on { background: var(--hp-accent); color: #fff; border-color: var(--hp-accent); }

.zf-right {
  background: rgba(252, 251, 248, .9);
  border: 1px solid rgba(140, 47, 36, .16); border-radius: 10px;
  padding: 22px 26px 26px; min-height: 460px;
}
.zf-search { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--hp-line); }
.zf-search label { font-size: 16px; color: var(--hp-ink); letter-spacing: 1px; white-space: nowrap; }
.zf-search input[type=text] {
  flex: 1 1 auto; height: 38px; padding: 0 12px; font-size: 15px;
  border: 1px solid rgba(0, 0, 0, .16); border-radius: 6px; background: #fff;
  color: var(--hp-body); font-family: inherit;
}
.zf-search input[type=text]:focus { outline: none; border-color: rgba(140, 47, 36, .5); }
.zf-search button {
  height: 38px; padding: 0 22px; border: 1px solid var(--hp-accent); border-radius: 6px;
  background: var(--hp-accent); color: #fff; font-size: 15px; letter-spacing: 4px;
  cursor: pointer; font-family: inherit;
}
.zf-search button:hover { background: #7a2820; }

.zf-board { margin-top: 18px; }
.zf-board-hd { font-size: 17px; color: var(--hp-ink); letter-spacing: 2px; margin-bottom: 10px; }
.zf-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.zf-table th, .zf-table td { padding: 8px 6px; text-align: left; border-bottom: 1px dashed var(--hp-line); }
.zf-table th { font-size: 15px; color: var(--hp-dim); font-weight: 400; letter-spacing: 1px; }
.zf-table td:nth-child(1), .zf-table th:nth-child(1) { width: 64px; }
.zf-table .zf-no { color: var(--hp-accent); }
.zf-table .zf-empty { color: var(--hp-dim); text-align: center; padding: 20px 0; }

.zf-card { margin-top: 18px; }
.zf-card h3 { margin: 0 0 10px; font-size: 21px; color: var(--hp-ink); letter-spacing: 1px; }
.zf-card-lv { margin-left: 12px; font-size: 15px; color: var(--hp-accent); letter-spacing: 1px; }
.zf-card p { margin: 0 0 8px; font-size: 16px; line-height: 1.9; color: var(--hp-body); }
.zf-msg { margin-top: 20px; color: #b23b2e; font-size: 16px; }

@media (max-width: 1000px) {
  .zf-wrap { grid-template-columns: 1fr; gap: 18px; }
  .zf-boards { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── 公告／单页／下载这类内容页（与首页同一套外框与配色） ── */
.pg-doc {
  width: min(980px, 92vw); margin: 34px auto 60px;
  background: rgba(252, 251, 248, .82);
  border: 1px solid rgba(140, 47, 36, .16); border-radius: 10px;
  padding: 26px 32px 30px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .10);
}
.pg-doc-hd { margin: 0 0 18px; font-size: 22px; letter-spacing: 3px; color: var(--hp-ink); text-align: center; }
.pg-doc-item { padding: 14px 0 16px; border-bottom: 1px dashed var(--hp-line); }
.pg-doc-item:last-child { border-bottom: 0; }
.pg-doc-item h3 { margin: 0 0 6px; font-size: 18px; color: var(--hp-accent); letter-spacing: 1px; }
.pg-doc-meta { margin: 0 0 8px; font-size: 13px; color: var(--hp-dim); }
.pg-doc-body { font-size: 16px; line-height: 1.95; color: var(--hp-body); white-space: pre-wrap; }
.pg-doc-body p { margin: 0 0 8px; text-indent: 2em; }
.pg-doc-empty { color: var(--hp-dim); font-size: 16px; text-align: center; padding: 20px 0; }

.pg-dl { width: 100%; border-collapse: collapse; font-size: 16px; margin-top: 8px; }
.pg-dl th, .pg-dl td { padding: 10px 8px; text-align: left; border-bottom: 1px dashed var(--hp-line); }
.pg-dl th { font-weight: 400; font-size: 15px; color: var(--hp-dim); letter-spacing: 1px; }
.pg-dl-name { color: var(--hp-ink); }
.pg-dl-desc { color: var(--hp-body); }
.pg-dl-act a { color: var(--hp-accent); text-decoration: none; }
.pg-dl-act a:hover { text-decoration: underline; }
.pg-dl-wait { color: var(--hp-dim); }

