/* =====================================================================
   攻略站样式（构建期复制到 server/data/guides/assets/guide.css）
   ---------------------------------------------------------------------
   与站内设计同源：纸面灰绿底 + 白卡片 + 1px 描边，强调色只给链接与关键数值，
   没有渐变、没有发光、没有大圆角。深色跟随系统 prefers-color-scheme
   （静态页读不到站内主题的 localStorage，这是最稳的做法）。
   不要在这里引外部字体/图标库：攻略页要能在弱网、微信内置浏览器里一次加载完成。
   ===================================================================== */

:root {
  color-scheme: light;

  --bg-page: #f5f7f5;
  --bg-card: #ffffff;
  --bg-sunken: #edf1ee;
  --text-primary: #131917;
  --text-secondary: #4e5a54;
  --text-tertiary: #616e67;
  --border-color: #e2e7e3;
  --border-strong: #c9d2cc;
  --green: #2c7a4e;
  --text-green: #236542;
  --green-soft: #eaf3ee;
  --amber: #a35b0a;
  --amber-soft: #fbf1e4;
  --red: #b3362a;
  --red-soft: #fbeceb;
  --cyan: #1a6c8c;
  --cyan-soft: #e8f2f6;
  --code-bg: #101613;
  --code-fg: #dde7e0;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --radius: 10px;
  --measure: 74ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg-page: #0e1311;
    --bg-card: #171d1a;
    --bg-sunken: #121815;
    --text-primary: #e7ece8;
    --text-secondary: #a7b3ac;
    --text-tertiary: #7c887f;
    --border-color: #262f2a;
    --border-strong: #38443d;
    --green: #5fc48c;
    --text-green: #7bd3a2;
    --green-soft: #16241d;
    --amber: #dda24a;
    --amber-soft: #241c10;
    --red: #e8776a;
    --red-soft: #2a1715;
    --cyan: #5fbcdd;
    --cyan-soft: #10222a;
    --code-bg: #0a0f0d;
    --code-fg: #dde7e0;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--text-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 13px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-color);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--text-green);
}

.brand-mark svg {
  width: 58%;
  height: 58%;
  display: block;
}

.brand-mark-sm {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text b {
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand-text i {
  font-style: normal;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
}

.topnav a {
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.topnav a:hover {
  background: var(--bg-sunken);
  color: var(--text-primary);
}

.nav-short {
  display: none;
}

.topnav a[data-key='login'] {
  color: var(--text-green);
  font-weight: 600;
}

.topnav a.is-active {
  color: var(--text-green);
  background: var(--green-soft);
  font-weight: 600;
}

/* ---------------------------------------------------------------- 首页 */
main {
  display: block;
  flex: 1 0 auto;
  padding-bottom: 56px;
}

.hero {
  padding: 48px 0 26px;
  max-width: 760px;
}

.hero-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.4vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 680;
}

.hero-lede {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 62ch;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 12.5px;
  color: var(--text-tertiary);
}

.hero-stats b {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* 卡片 */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  padding: 22px 0 8px;
}

.card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

.card:hover {
  border-color: var(--border-strong);
}

.card[hidden] {
  display: none;
}

.card-link {
  display: block;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  border-radius: var(--radius);
}

.card-cat {
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.card-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 640;
  color: var(--text-primary);
}

.card-link:hover .card-title {
  color: var(--text-green);
}

.card-summary {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  gap: 14px;
  margin: 0;
  font-size: 11.5px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}


.index-foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
}

.index-foot h2 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.index-foot p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-tertiary);
}

/* ---------------------------------------------------------------- 文章页 */
.article-wrap {
  max-width: 1010px;
}

.crumbs {
  display: flex;
  gap: 8px;
  padding: 20px 0 6px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.crumbs a {
  color: var(--text-tertiary);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text-green);
  text-decoration: underline;
}

.post-head {
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--border-color);
}

.post-cat {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--text-green);
  font-size: 11.5px;
  font-weight: 600;
}

.post-head h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  font-weight: 680;
}

.post-summary {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: var(--measure);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

.post-meta b {
  color: var(--text-secondary);
  font-weight: 600;
}

.stale {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12.5px;
  line-height: 1.75;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 224px;
  gap: 44px;
  align-items: start;
  padding: 26px 0 10px;
}

.post-aside {
  position: sticky;
  top: 88px;
}

.toc {
  border-left: 1px solid var(--border-color);
  padding-left: 14px;
}

.toc-title {
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.toc-title::-webkit-details-marker {
  display: none;
}

.toc-title::before {
  content: '▾';
  display: inline-block;
  width: 12px;
  margin-right: 2px;
  color: var(--text-tertiary);
  transition: transform 0.15s;
}

.toc:not([open]) .toc-title {
  margin-bottom: 0;
}

.toc:not([open]) .toc-title::before {
  transform: rotate(-90deg);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  line-height: 1.6;
}

.toc li {
  margin: 0 0 2px;
}

.toc li.lv3 {
  padding-left: 12px;
  font-size: 12px;
}

.toc a {
  display: block;
  padding: 3px 0;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 4px;
}

.toc a:hover {
  color: var(--text-green);
  text-decoration: underline;
}

/* ---------------------------------------------------------------- 正文 */
.prose {
  max-width: var(--measure);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-primary);
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 40px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 660;
  scroll-margin-top: 86px;
}

.prose h3 {
  margin: 26px 0 8px;
  font-size: 16.5px;
  line-height: 1.45;
  font-weight: 650;
  scroll-margin-top: 86px;
}

.prose h4 {
  margin: 20px 0 6px;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text-secondary);
  scroll-margin-top: 86px;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin: 0 0 5px;
}

.prose li > ul,
.prose li > ol {
  margin: 5px 0 5px;
}

.prose strong {
  font-weight: 660;
}

.prose em {
  color: var(--text-secondary);
}

.prose a {
  word-break: break-word;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 5px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: var(--bg-sunken);
  white-space: nowrap;
}

.prose pre {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-fg);
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.7;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  white-space: pre;
  font-size: inherit;
  color: inherit;
}

.prose blockquote {
  margin: 0 0 18px;
  padding: 10px 16px;
  border-left: 1px solid var(--border-strong);
  background: var(--bg-sunken);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.prose blockquote > :last-child {
  margin-bottom: 0;
}

.prose hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--border-color);
}

.prose img {
  display: block;
  margin: 18px auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

/* 表格：窄屏横向滚动，数字用等宽 */
.table-wrap {
  margin: 0 0 20px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.6;
  min-width: 420px;
}

.prose th,
.prose td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}

.prose thead th {
  background: var(--bg-sunken);
  font-weight: 640;
  font-size: 12.5px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose tbody tr:hover td {
  background: var(--bg-sunken);
}

.prose td.mono,
.prose td:nth-child(2) {
  font-variant-numeric: tabular-nums;
}

/* 提示块 */
.callout {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-left-width: 2px;
  border-radius: 0 8px 8px 0;
  background: var(--bg-card);
}

.callout-title {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.callout-body > :last-child {
  margin-bottom: 0;
}

.callout-body p,
.callout-body li {
  font-size: 13.5px;
  line-height: 1.75;
}

.callout-tip {
  border-left-color: var(--green);
  background: var(--green-soft);
}

.callout-tip .callout-title {
  color: var(--text-green);
}

.callout-warn {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.callout-warn .callout-title {
  color: var(--amber);
}

.callout-info {
  border-left-color: var(--cyan);
  background: var(--cyan-soft);
}

.callout-info .callout-title {
  color: var(--cyan);
}

.callout-danger {
  border-left-color: var(--red);
  background: var(--red-soft);
}

.callout-danger .callout-title {
  color: var(--red);
}

/* 文末 */
.post-foot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.post-foot-note {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-tertiary);
}

.pager-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pager {
  flex: 1 1 260px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-card);
  text-decoration: none;
}

.pager:hover {
  border-color: var(--border-strong);
}

.pager span {
  font-size: 11px;
  color: var(--text-tertiary);
}

.pager b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.pager:hover b {
  color: var(--text-green);
}

.pager.next {
  margin-left: auto;
  text-align: right;
}

/* ---------------------------------------------------------------- 页脚 */
.sitefoot {
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 24px 0 28px;
}

.sitefoot-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.sitefoot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.sitefoot-note {
  margin: 0;
  max-width: 80ch;
  line-height: 1.8;
}

.sitefoot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 2px 0 0;
}

.sitefoot-links a {
  color: var(--text-tertiary);
  text-decoration: none;
}

.sitefoot-links a:hover {
  color: var(--text-green);
  text-decoration: underline;
}

.sitefoot-copy {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------- 404 */
.notfound {
  padding: 90px 0 60px;
  max-width: 52ch;
}

.notfound-code {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--text-tertiary);
}

.notfound h1 {
  margin: 0 0 10px;
  font-size: 26px;
}

.notfound p {
  color: var(--text-secondary);
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 960px) {
  .post-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .post-aside {
    position: static;
    order: -1;
    margin-bottom: 22px;
  }

  .toc {
    border-left: 0;
    padding-left: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
    padding: 12px 14px;
  }

  .toc-title {
    font-size: 12px;
    color: var(--text-secondary);
  }

  .toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 8px;
  }

  .toc li.lv3 {
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14.5px;
  }

  .wrap {
    width: calc(100% - 28px);
  }

  .topbar-inner {
    min-height: 54px;
    gap: 8px;
  }

  .brand-text i {
    display: none;
  }

  .topnav {
    gap: 0;
    font-size: 12.5px;
  }

  .topnav a {
    padding: 6px 7px;
  }

  .nav-full {
    display: none;
  }

  .nav-short {
    display: inline;
  }

  .topnav a.hide-mobile {
    display: none;
  }

  .brand-text b {
    white-space: nowrap;
    font-size: 14px;
  }

  .hero {
    padding: 30px 0 20px;
  }

  .hero-title {
    font-size: 27px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .prose {
    font-size: 14.5px;
    line-height: 1.8;
  }

  .prose h2 {
    font-size: 18px;
    margin-top: 32px;
  }

  .prose h3 {
    font-size: 15.5px;
  }

  .prose table {
    font-size: 12.5px;
  }

  /* 手机上目录只留二级标题，三级标题会把目录拉成一屏 */
  .toc li.lv3 {
    display: none;
  }

  .post-head h1 {
    font-size: 23px;
  }

  .pager.next {
    text-align: left;
  }
}

/* ---------------------------------------------------------------- 打印 */
@media print {
  .topbar,
  .post-aside,
  .pager-nav,
  .sitefoot-links,
  .skip {
    display: none;
  }

  body {
    background: #fff;
  }

  .card,
  .callout {
    border-color: #ccc;
  }
}

/* =====================================================================
   2026-11-10 公开站改版：分区（入门 / 官方 / 玩家分享 / 会员锁定）
   ===================================================================== */
.block {
  padding: 36px 0 10px;
  border-top: 1px solid var(--border-color);
}

#start {
  border-top: 0;
}

.block-head {
  margin-bottom: 14px;
}

.block-title {
  margin: 0 0 4px;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 660;
  letter-spacing: -0.005em;
  scroll-margin-top: 84px;
}

.block-desc {
  margin: 0;
  max-width: 72ch;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-tertiary);
}

.block-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-tertiary);
}

@media (max-width: 640px) {
  .block {
    padding-top: 28px;
  }

  .block-title {
    font-size: 17px;
  }
}


/* =====================================================================
   2026-11-10 抓取文章：封面卡片 + 本地图文页
   ===================================================================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 14px;
}

/* 官方条目少（2 条）时用 auto-fit 撑满，否则右边会空出一大片 */
.photo-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.photo-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.15s;
}

.photo-card:hover {
  border-color: var(--border-strong);
}

.photo-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.photo-thumb {
  display: block;
  height: 168px;
  background: var(--bg-sunken);
  overflow: hidden;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease-smooth);
}

.photo-card a:hover .photo-thumb img {
  transform: scale(1.03);
}

.photo-thumb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-tertiary);
  font-size: 12px;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--bg-sunken), var(--bg-page));
}

.photo-thumb-empty em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0;
  opacity: 0.75;
}

.photo-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px 14px;
}

.photo-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.photo-title {
  font-size: 14.5px;
  font-weight: 620;
  line-height: 1.5;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.photo-card a:hover .photo-title {
  color: var(--text-green);
}

.photo-desc {
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 抓取文章没有目录栏，正文占满 */
.post-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

.mirror-body {
  max-width: 78ch;
}

.mirror-body p {
  margin: 0 0 14px;
}

.mirror-body img {
  margin: 16px auto;
  border-radius: var(--radius-sm);
}

.mirror-body h2 {
  margin-top: 30px;
}

.source-note {
  margin: 0 0 18px;
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--text-tertiary);
  word-break: break-word;
}

.source-note a {
  color: var(--text-tertiary);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.source-note a:hover {
  color: var(--text-green);
}

@media (max-width: 640px) {
  .photo-thumb {
    height: 190px;
  }

  .mirror-body {
    max-width: none;
  }
}


/* =====================================================================
   2026-11-10 顶栏搜索 / 工具卡 / 光翼查询 / 搜索结果
   ===================================================================== */
.search-mini {
  margin-left: 6px;
}

.search-mini input {
  width: 128px;
  font: inherit;
  font-size: 12.5px;
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: width 0.2s var(--ease-smooth), border-color 0.15s;
}

.search-mini input::placeholder {
  color: var(--text-tertiary);
}

.search-mini input:focus {
  width: 170px;
  outline: none;
  border-color: var(--green);
}

.search-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 2px;
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
}

.search-icon:hover {
  background: var(--bg-sunken);
  color: var(--text-primary);
}

/* 工具卡 */
.tool-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.tool-card:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.tool-badge {
  flex: none;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg-sunken);
  color: var(--text-green);
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
}

.tool-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tool-title {
  font-size: 14.5px;
  font-weight: 640;
  color: var(--text-primary);
}

.tool-desc {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.tool-cta {
  flex: none;
  align-self: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-green);
  white-space: nowrap;
}

.tool-card:hover .tool-cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- 光翼查询 ---------------- */
.wing-page {
  padding-top: 26px;
}

.wing-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.wing-panel {
  margin: 18px 0 26px;
  padding: 16px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.wing-progress-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.wing-progress-label {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.wing-progress-label b {
  font-size: 18px;
  color: var(--text-primary);
}

.wing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wing-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.wing-btn {
  font: inherit;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-secondary);
  cursor: pointer;
}

.wing-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.wing-btn.is-quiet {
  color: var(--text-tertiary);
}

.wing-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-sunken);
  overflow: hidden;
}

.wing-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--green);
  transition: width 0.25s var(--ease-smooth);
}

.wing-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-tertiary);
}

.wing-realm {
  margin: 0 0 24px;
}

.wing-realm-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 650;
}

.wing-realm-title span {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.wing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.wing-table th,
.wing-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.wing-table thead th {
  background: var(--bg-sunken);
  font-size: 12px;
  font-weight: 640;
  color: var(--text-secondary);
}

.wing-table tbody tr:last-child th,
.wing-table tbody tr:last-child td {
  border-bottom: 0;
}

.wing-table tbody tr.is-full {
  background: var(--green-soft);
}

.wing-map {
  font-weight: 600;
  color: var(--text-primary);
}

.wing-guess {
  margin-left: 3px;
  color: var(--text-tertiary);
}

.wing-total,
.wing-have {
  width: 72px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.wing-have {
  color: var(--text-green);
  font-weight: 600;
}

.wing-ops {
  width: 150px;
  white-space: nowrap;
}

.wing-ops button {
  font: inherit;
  font-size: 13px;
  min-width: 30px;
  height: 28px;
  margin-right: 4px;
  border-radius: 7px;
  border: 1px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-primary);
  cursor: pointer;
}

.wing-ops button:hover {
  border-color: var(--green);
  color: var(--text-green);
}

.wing-ops button.is-quiet {
  font-size: 12px;
  padding: 0 8px;
  color: var(--text-secondary);
}

/* ---------------- 搜索结果 ---------------- */
.search-page {
  padding-top: 32px;
  max-width: 860px;
}

.search-h1 {
  margin-bottom: 14px;
}

.search-big {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.search-big input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
}

.search-big input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(var(--primary-green-rgb), 0.14);
}

.search-big button {
  font: inherit;
  font-size: 13.5px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  cursor: pointer;
}

.search-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.result-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.result-item + .result-item {
  border-top: 1px solid var(--border-color);
}

.result-item a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
}

.result-item a:hover {
  background: var(--bg-sunken);
}

.result-meta {
  font-size: 11px;
  color: var(--text-tertiary);
}

.result-title {
  font-size: 14px;
  font-weight: 620;
  color: var(--text-primary);
}

.result-item a:hover .result-title {
  color: var(--text-green);
}

.result-sum {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.empty {
  padding: 26px 0;
  font-size: 13px;
  color: var(--text-tertiary);
}

@media (max-width: 960px) {
  .search-mini {
    display: none;
  }

  .search-icon {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .wing-panel {
    padding: 14px;
  }

  .wing-table th,
  .wing-table td {
    padding: 7px 8px;
  }

  .wing-ops {
    width: auto;
  }

  .wing-ops button {
    min-width: 28px;
    margin-right: 3px;
  }

  .wing-ops button.is-quiet {
    font-size: 11px;
    padding: 0 6px;
  }

  .wing-table {
    font-size: 12.5px;
  }

  .tool-row {
    grid-template-columns: 1fr;
  }

  .tool-cta {
    display: none;
  }
}


/* 首页分区导航 */
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 4px;
}

.section-nav a {
  padding: 5px 13px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12.5px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.section-nav a:hover {
  border-color: var(--green);
  color: var(--text-green);
  background: var(--green-soft);
}


/* ---------------- 游戏 ID 查询 ---------------- */
.id-page {
  padding-top: 26px;
  max-width: 900px;
}

.id-form {
  display: flex;
  gap: 8px;
  margin: 18px 0 10px;
  flex-wrap: wrap;
}

.id-form input {
  flex: 1 1 260px;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  padding: 10px 13px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
}

.id-form input:focus,
.id-form select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(var(--primary-green-rgb), 0.14);
}

.id-form select {
  font: inherit;
  font-size: 13px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
}

.id-form button {
  font: inherit;
  font-size: 13.5px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  cursor: pointer;
}

.id-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.id-example {
  font: inherit;
  font-size: 11.5px;
  padding: 3px 9px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
}

.id-example:hover {
  border-color: var(--green);
  color: var(--text-green);
}

.id-hint {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.id-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.id-result {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.id-cover {
  flex: none;
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg-sunken);
  image-rendering: -webkit-optimize-contrast;
}

.id-result-body {
  flex: 1;
  min-width: 0;
}

.id-result-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}

.id-badge {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--text-green);
  font-size: 11px;
  font-weight: 600;
}

.id-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

.id-result-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 640;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.id-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.id-field i {
  font-style: normal;
  color: var(--text-tertiary);
  margin-right: 4px;
}

.id-api {
  margin: 22px 0 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 10px 16px;
}

.id-api summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.id-api p {
  margin: 10px 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.id-api pre {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #101613;
  color: #dde7e0;
  font-size: 12px;
  line-height: 1.7;
  overflow-x: auto;
}

.id-api code {
  font-family: var(--mono);
}

/* ---------------- 角色光翼查询 ---------------- */
.role-page {
  padding-top: 26px;
  max-width: 900px;
}

.wing-crosslink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
}

.wing-crosslink b {
  color: var(--text-green);
  font-weight: 600;
  white-space: nowrap;
}

.wing-crosslink:hover {
  border-color: var(--green);
}

.role-form {
  display: flex;
  gap: 8px;
  margin: 18px 0 8px;
}

.role-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.role-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(var(--primary-green-rgb), 0.14);
}

.role-form button {
  font: inherit;
  font-size: 14px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.role-form button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.role-hint {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.role-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.role-stat {
  flex: 1 1 120px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.role-stat b {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.role-stat span {
  font-size: 11.5px;
  color: var(--text-tertiary);
}

.role-stat.is-green b {
  color: var(--text-green);
}

.role-stat.is-amber b {
  color: var(--warning-amber);
}

.role-sub {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.role-block {
  margin-top: 22px;
}

.role-block-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 650;
  cursor: default;
}

details.role-block > summary {
  cursor: pointer;
  list-style: none;
}

details.role-block > summary::-webkit-details-marker {
  display: none;
}

.role-block-title span {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.role-maps {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.role-map-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 12.5px;
}

.role-map-row:last-child {
  border-bottom: 0;
}

.role-map-name {
  flex: 0 0 128px;
  font-weight: 600;
  color: var(--text-primary);
}

.role-map-name i {
  margin-left: 5px;
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  color: var(--text-tertiary);
}

.role-map-num {
  flex: 0 0 54px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.role-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-sunken);
  overflow: hidden;
}

.role-bar > span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 999px;
}

.role-missing details {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  padding: 8px 12px;
  margin-bottom: 8px;
}

.role-missing summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
}

.role-missing summary b {
  color: var(--warning-amber);
  font-weight: 600;
}

.role-missing p {
  margin: 8px 0 2px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-tertiary);
  word-break: break-all;
}

.role-ok {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-green);
  font-size: 13px;
}

.role-perm-line,
.role-perm-missing {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.role-perm-missing {
  color: var(--text-tertiary);
}

.role-meta {
  margin: 16px 0 0;
  font-size: 11.5px;
  color: var(--text-tertiary);
}

@media (max-width: 640px) {
  .role-map-name {
    flex-basis: 96px;
  }

  .role-map-name i {
    display: none;
  }

  .role-form input {
    font-size: 14px;
  }
}
