/* 前台：克制的专业站点。底色一种、墨色一种、朱印一处；标题与游戏名用楷体，正文用系统字。 */
@font-face { font-family: "SiteKai"; src: url("/fonts/site-kai.woff2?v=tlv16z") format("woff2"); font-weight: 500; font-display: swap; }
:root { --bg: #faf8f3; --paper: #ffffff; --ink: #2b2a28; --muted: #7a7671; --line: #e8e3d8; --seal: #c0392b; --kai: "SiteKai", "Kaiti SC", "STKaiti", "KaiTi", serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { font: 15px/1.6 system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.kai { font-family: var(--kai); font-weight: 500; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(250, 248, 243, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1040px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--kai); font-size: 20px; letter-spacing: 3px; }
.seal { width: 26px; height: 26px; border: 1.5px solid var(--seal); color: var(--seal); display: grid; place-items: center; font-family: var(--kai); font-size: 13px; line-height: 1; transform: rotate(6deg); border-radius: 2px; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 40px 24px 80px; }
.hero { padding: 24px 0 36px; }
.hero h1 { margin: 0; font-family: var(--kai); font-weight: 500; font-size: 40px; letter-spacing: 8px; line-height: 1.2; }
.hero p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.sec { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; }
.sec h2 { margin: 0; font-size: 14px; letter-spacing: 3px; color: var(--muted); font-weight: 500; }
.sec span { font-size: 13px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(43, 42, 40, .08); border-color: #d9d2c4; }
.card:active { transform: translateY(0); box-shadow: none; }
.card img { width: 84px; height: 84px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.card b { font-family: var(--kai); font-weight: 500; font-size: 20px; letter-spacing: 3px; margin-top: 10px; }
.card span { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }
.card small { margin-top: 8px; font-size: 11px; color: #a8a39b; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 64px 0; color: var(--muted); }

/* 文章列表 */
.posts { display: flex; flex-direction: column; gap: 14px; }
.post { display: flex; gap: 20px; align-items: center; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .15s, border-color .15s; }
.post:hover { box-shadow: 0 10px 28px rgba(43, 42, 40, .08); border-color: #d9d2c4; }
.post img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: 0 0 120px; }
.post .pt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.post b { font-family: var(--kai); font-weight: 500; font-size: 20px; letter-spacing: 1px; }
.post span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.post small { font-size: 12px; color: #a8a39b; margin-top: 4px; }

/* 文章页 */
.article { max-width: 720px; margin: 0 auto; padding: 44px 24px 80px; }
.article .meta { font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.article .meta a { color: var(--ink); border-bottom: 1px solid var(--line); }
.article .meta #author { color: var(--ink); font-size: 15px; letter-spacing: 1px; }
.article h1 { font-family: var(--kai); font-weight: 500; font-size: 36px; letter-spacing: 3px; line-height: 1.3; margin: 10px 0 8px; }
.article .summary { font-size: 16px; color: var(--muted); margin: 0 0 28px; line-height: 1.7; }
.article .cover { display: block; max-width: 100%; max-height: 440px; width: auto; margin: 0 auto 32px; border-radius: 12px; border: 1px solid var(--line); }
.body { font-size: 16px; line-height: 1.9; color: #3a3835; }
.body h2 { font-family: var(--kai); font-weight: 500; font-size: 26px; letter-spacing: 2px; margin: 44px 0 12px; color: var(--ink); }
.body h3 { font-size: 18px; margin: 30px 0 8px; color: var(--ink); }
.body p { margin: 0 0 18px; }
.body img { display: block; max-width: 100%; max-height: 520px; width: auto; margin: 8px auto 6px; border-radius: 10px; border: 1px solid var(--line); }
.body img[alt="小图"] { max-width: 440px; max-height: 260px; }
.body img + em, .body p > em:only-child { display: block; text-align: center; font-size: 13px; color: var(--muted); font-style: normal; margin-top: -2px; }
.body blockquote { margin: 18px 0; padding: 4px 18px; border-left: 3px solid var(--seal); color: #5a5651; background: #fff; border-radius: 0 8px 8px 0; }
.body ul, .body ol { padding-left: 24px; margin: 0 0 18px; }
.body li { margin: 4px 0; }
.body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.body code { font: 14px ui-monospace, Menlo, monospace; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.body strong { color: var(--ink); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.pn.only-next { grid-template-columns: 1fr; }
.pn-a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; min-width: 0; transition: box-shadow .15s, border-color .15s; }
.pn-a:hover { box-shadow: 0 10px 28px rgba(43, 42, 40, .08); border-color: #d9d2c4; }
.pn-a small { font-size: 12px; color: var(--muted); }
.pn-a b { font-family: var(--kai); font-weight: 500; font-size: 17px; letter-spacing: 1px; line-height: 1.4; }
.pn-a.next { text-align: right; }
.pn-a.next small::after { content: " →"; } .pn-a.prev small::before { content: "← "; }
@media (max-width: 600px) { .pn { grid-template-columns: 1fr; } .pn-a.next { text-align: left; } }
.article .back { display: inline-block; margin-top: 40px; font-size: 14px; color: var(--muted); }
.article .back:hover { color: var(--ink); }
@media (max-width: 600px) { .post { gap: 12px; padding: 12px; } .post img { width: 84px; height: 66px; flex-basis: 84px; } .post b { font-size: 17px; } .post span { font-size: 13px; } .article { padding: 24px 18px 56px; } .article h1 { font-size: 28px; } .body { font-size: 15.5px; } }

.foot { border-top: 1px solid var(--line); margin-top: 60px; }
.foot .in { max-width: 1040px; margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; color: var(--muted); }
.foot a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .top .in { padding: 0 18px; height: 54px; }
  .wrap { padding: 22px 18px 56px; }
  .hero { padding: 10px 0 24px; } .hero h1 { font-size: 30px; letter-spacing: 6px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 18px 10px 14px; } .card img { width: 68px; height: 68px; } .card b { font-size: 17px; letter-spacing: 2px; margin-top: 6px; } .card span { font-size: 12px; }
}
.foot #icp { display: inline-flex; gap: 14px; }
/* 微信分享缩略图：微信取页面第一张 ≥300×300 的图，藏一张正方形在最前面 */
.share-img { position: absolute; width: 0; height: 0; overflow: hidden; }
.share-img img { width: 300px; height: 300px; }
