/*
Theme Name: 小陈 · 金属
Theme URI: https://linux-server.tail4ae5ec.ts.net
Description: 小陈软件站的子主题。暗色金属质感、单一青色强调色、克制的高光与描边。
Author: laochen
Template: blocksy
Version: 1.0.0
Requires PHP: 8.0
Text Domain: laochen
*/

/* =============================================================================
   0. 设计令牌
   -----------------------------------------------------------------------------
   灰阶是七层的：#0a0c0f → #101318 → #15191f → #191e24 → #23282f → #333a43 → #e8edf2
   金属感来自「层 + 边 + 影」三件事，而不是大渐变：
     · 层：面板本体用 3 段极接近的竖向灰阶过渡（1~3% 亮度差），肉眼是"一片"，侧看有走向
     · 边：1px 近黑外描边 + 1px 白 7% 内高光（上沿）+ 1px 黑 50% 内压边（下沿）
     · 影：0 1px 0 rgba(255,255,255,.03) 桌面反光 + 0 10px 24px -16px 接触阴影
   拉丝纹理只用 2~3% 透明度的 1px 竖线，滚动截图不过 1px 就看不出，是"接近像素级"的来源。
   强调色只有一个：--accent（青）。只出现在下载按钮、当前项、链接悬停、焦点环、标题小竖条。
   ============================================================================= */

:root {
  /* 底色 */
  --bg: #0a0c0f;
  --bg-2: #0d1014;
  --panel: #15191f;
  --panel-2: #191e24;
  --edge: #05070a;        /* 近黑外描边，金属硬边的关键 */
  --line: #23282f;        /* 分隔线 */
  --line-2: #333a43;      /* 悬停/强调分隔线 */

  /* 文字 */
  --ink: #e8edf2;
  --ink-2: #a3adb8;
  --ink-3: #828c98;

  /* 强调 */
  --accent: #3fe4f5;
  --accent-2: #12a9bd;
  --accent-ink: #032027;
  --ok: #5fe0b0;
  --warn: #ffb64a;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --r: 10px;
  --r-sm: 7px;

  /* 复用：拉丝 + 上高光 + 本体灰阶 */
  --brush:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .020) 0 1px,
      rgba(0, 0, 0, .022) 1px 2px,
      rgba(255, 255, 255, 0) 2px 4px),
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .010) 0 1px,
      rgba(255, 255, 255, 0) 1px 7px);
  --metal:
    linear-gradient(180deg, rgba(255, 255, 255, .045) 0, rgba(255, 255, 255, 0) 40%),
    var(--brush),
    linear-gradient(180deg, #191e24 0%, #15191f 46%, #11151a 100%);
  --metal-bevel:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    inset 0 -1px 0 rgba(0, 0, 0, .55),
    0 1px 0 rgba(255, 255, 255, .03),
    0 10px 24px -16px #000;
}

/* =============================================================================
   1. 基础
   ============================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 420px at 50% -10%, rgba(63, 228, 245, .045), rgba(0, 0, 0, 0) 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 48px);
  color: var(--ink);
  font: 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .01em;   /* 中文不要负字距，稍微放开一点更透气 */
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

code, kbd, pre {
  font-family: var(--mono);
  font-size: .92em;
}

::selection { background: rgba(63, 228, 245, .25); color: #eafbfe; }

/* WP 会在 <body> 后直接输出一个 Skip to content，没有主题 CSS 时它就是一行可见文字，
   占掉顶栏上方一条空白。按无障碍惯例藏起来，键盘 Tab 到时再露出来。 */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  clip-path: none;
  font-size: 13px;
  color: var(--ink);
  background-color: var(--panel);
  border: 1px solid var(--line-2, var(--line));
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .6);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #08090b; }
::-webkit-scrollbar-thumb {
  background: #262c33;
  border: 1px solid #05070a;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: #333b44; }

/* =============================================================================
   2. 骨架
   ============================================================================= */

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-main {
  flex: 1 0 auto;
  padding: 44px 0 80px;
}

/* =============================================================================
   3. 顶栏
   ============================================================================= */

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: #12161b;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .06) 0, rgba(255, 255, 255, 0) 2px),
    var(--brush),
    linear-gradient(180deg, #1b2027 0%, #14181d 60%, #101318 100%);
  border-bottom: 1px solid var(--edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 6px 18px -12px #000;
}

/* 底部一道光纤，只在中段可见，不抢眼 */
.site-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent,
    rgba(63, 228, 245, .28) 30%,
    rgba(63, 228, 245, .28) 70%,
    transparent);
}

.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  height: 130px;
  min-width: 0;
}

.brand { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
.brand:hover { color: var(--ink); }

.brand-glyph {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  display: block;
  filter:
    drop-shadow(0 0 12px rgba(63, 228, 245, .16))
    drop-shadow(0 4px 10px rgba(0, 0, 0, .6));
  transition: filter .18s ease;
}
.brand-glyph svg { display: block; width: 100%; height: 100%; }

.brand:hover .brand-glyph {
  filter:
    drop-shadow(0 0 16px rgba(63, 228, 245, .34))
    drop-shadow(0 4px 10px rgba(0, 0, 0, .6));
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.3; }
.brand-txt b {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #eef3f8;
}
.brand-txt i {
  font-style: normal;
  font-size: 21px;
  letter-spacing: .07em;
  color: var(--ink-3);
}

/* min-width:0 很关键：不加的话这个 flex 项撑不下时会撑开顶栏，
   整页跟着变宽，390 宽下右边的文字全被截掉。 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}

.site-nav a {
  position: relative;
  padding: 14px 18px;
  white-space: nowrap;
  font-size: 27px;
  color: var(--ink-2);
  border-radius: 10px;
  transition: color .16s ease, background-color .16s ease;
}
.site-nav a:hover {
  color: var(--ink);
  background-color: rgba(255, 255, 255, .045);
}
/* 当前项：一条 2px 的青色下划线，不用底色块 */
.site-nav a.is-on { color: var(--ink); }
.site-nav a.is-on::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: .85;
}

/*
 * 导航右侧的站点二维码。
 * 深色机身贴在深色页头上容易糊成一块，所以给一圈极淡的亮边把它托出来；
 * 尺寸 92px + 两行 10.5/9.5 的小字，正好塞进 124px 的页头。
 */
.nav-qr {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-left: 20px;
  padding-left: 20px;
  user-select: none;
}
/* 一条两端渐隐的短竖线，把它和导航项分开；整条通到顶会显得像表格 */
.nav-qr::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 46px;
  transform: translateY(-50%);
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .16) 22%,
    rgba(255, 255, 255, .16) 78%,
    rgba(255, 255, 255, 0) 100%);
}
.nav-qr img {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .1),
    0 8px 18px rgba(0, 0, 0, .5);
}
.nav-qr p { margin: 0; text-align: center; line-height: 1.15; }
.nav-qr b {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-2);
}
.nav-qr span {
  display: block;
  font-size: 9.5px;
  color: var(--ink-3);
}

/* =============================================================================
   4. 首页 Hero
   ============================================================================= */

.hero { margin-bottom: 30px; }

.hero h1 {
  font-size: clamp(26px, 3.2vw, 32px);
  letter-spacing: .02em;
  margin-bottom: 10px;
  color: #f2f6fa;
}

.hero p {
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 14.5px;
  text-wrap: pretty;   /* 别让最后一行只剩两三个字 */
}

/* 分类筛选 */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 26px;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink-2);
  background-color: #14181d;
  background-image: var(--brush);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.chip i {
  font-style: normal;
  font: 500 10.5px/1 var(--mono);
  color: var(--ink-3);
}
.chip:hover {
  color: var(--ink);
  border-color: var(--line-2);
  text-decoration: none;
}
.chip.is-on {
  color: var(--accent);
  border-color: rgba(63, 228, 245, .35);
  background-color: rgba(63, 228, 245, .07);
}
.chip.is-on i { color: rgba(63, 228, 245, .7); }

/* =============================================================================
   5. 软件卡片
   ============================================================================= */

.apps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.app {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 16px;
  align-items: start;
  gap: 16px;
  padding: 18px 18px 16px;
  background-color: var(--panel);
  background-image: var(--metal);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: var(--metal-bevel);
  transition: transform .18s ease, border-color .18s ease;
}
.app:hover {
  transform: translateY(-2px);
  border-color: rgba(63, 228, 245, .30);
  color: var(--ink);
  text-decoration: none;
}

.app-glyph {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #0d1115;
  border: 1px solid var(--edge);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}
.app-glyph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 没有图标时用一个字母占位 */
.app-glyph.is-blank {
  display: grid;
  place-items: center;
  font: 700 20px/1 var(--sans);
  color: var(--ink-3);
}

.app-body { min-width: 0; }

.app-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.app-top h3 {
  font-size: 16px;
  font-weight: 600;
  color: #eef3f8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ver {
  flex: 0 0 auto;
  font: 600 10.5px/1 var(--mono);
  letter-spacing: .04em;
  color: var(--ink-2);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background-color: rgba(255, 255, 255, .025);
}

.app-desc {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font: 500 11.5px/1.4 var(--mono);
  color: var(--ink-3);
}
.app-meta .cat {
  color: var(--ink-2);
}
.app-meta .cat::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 6px;
  vertical-align: 2px;
  border-radius: 50%;
  background: var(--ink-3);
  opacity: .6;
}

/* 右侧箭头：悬停时前移，暗示"可以点进去" */
.app-go {
  align-self: center;
  font-size: 14px;
  color: var(--ink-3);
  transition: transform .18s ease, color .18s ease;
}
.app:hover .app-go {
  color: var(--accent);
  transform: translateX(3px);
}

/* =============================================================================
   6. 分区标题 / 面板
   ============================================================================= */

.sec {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #e6ecf2;
}
.sec::before {
  content: "";
  width: 3px;
  height: 13px;
  flex: 0 0 3px;
  border-radius: 1px;
  /* 不花强调色：这里只是个结构记号，用金属亮边就够 */
  background: linear-gradient(180deg, #5a636e, rgba(90, 99, 110, .12));
}
.sec span {
  font: 500 11.5px/1 var(--mono);
  color: var(--ink-3);
  letter-spacing: .04em;
}

.panel {
  padding: 22px 24px;
  margin-bottom: 16px;
  background-color: var(--panel);
  background-image: var(--metal);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: var(--metal-bevel);
}
.panel:last-child { margin-bottom: 0; }

/* 兜底页 / 单页标题（index.php 用，在 .panel 内部） */
.page-title {
  font-size: clamp(23px, 2.6vw, 28px);
  color: #f2f6fa;
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.page-blank { color: var(--ink-3); }

/* 页面头（归档页 / 分类页） */
.page-head { margin-bottom: 26px; }
.page-head h1 {
  font-size: clamp(24px, 2.8vw, 30px);
  color: #f2f6fa;
  margin-bottom: 8px;
}
.page-head .lead {
  color: var(--ink-2);
  font-size: 14px;
}
.page-head .count {
  font: 500 11.5px/1 var(--mono);
  color: var(--ink-3);
  margin-left: 10px;
  letter-spacing: .04em;
}

/* =============================================================================
   7. 详情页
   ============================================================================= */

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--accent); }
.crumbs i { font-style: normal; opacity: .5; }

.soft {
  margin-bottom: 16px;
  padding: 26px 28px;
  background-color: var(--panel);
  background-image: var(--metal);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: var(--metal-bevel);
}

.soft-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 30px;
}

.soft-main {
  display: flex;
  gap: 20px;
  min-width: 0;
}

.soft-glyph {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 18px;
  overflow: hidden;
  background-color: #0d1115;
  border: 1px solid var(--edge);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 8px 18px -12px #000;
}
.soft-glyph img { width: 100%; height: 100%; object-fit: cover; }
.soft-glyph.is-blank {
  display: grid;
  place-items: center;
  font: 700 30px/1 var(--sans);
  color: var(--ink-3);
}

.soft-id { min-width: 0; }

.soft-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: .06em;
  color: var(--ink-3);
}
.soft-kicker a { color: var(--ink-2); }
.soft-kicker a:hover { color: var(--accent); }

.soft h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: clamp(24px, 2.8vw, 30px);
  letter-spacing: .02em;
  color: #f4f8fc;
  margin-bottom: 10px;
}
.soft h1 .ver {
  font-size: 11px;
  padding: 4px 7px;
}

.soft-lead {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.85;
  max-width: 46ch;
  text-wrap: pretty;
}

/* 右侧下载区 */
.soft-buy {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}

.btn-dl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent-ink);
  background-color: #1eb9cc;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .38) 0 30%, rgba(255, 255, 255, .10) 35%, rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, #5ae9f7 0%, #2fd0e4 42%, #14adc1 52%, #0d97ab 100%);
  border: 1px solid rgba(0, 0, 0, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -2px 0 rgba(0, 0, 0, .28),
    0 1px 2px rgba(0, 0, 0, .6),
    0 6px 14px -6px rgba(0, 0, 0, .8);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn-dl b { font-weight: 700; }
.btn-dl span {
  font: 500 11.5px/1 var(--mono);
  opacity: .88;
  letter-spacing: 0;
}
.btn-dl:hover {
  color: var(--accent-ink);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -2px 0 rgba(0, 0, 0, .25),
    0 1px 2px rgba(0, 0, 0, .6),
    0 0 16px -4px rgba(63, 228, 245, .7);
}
.btn-dl:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, .35),
    inset 0 -1px 0 rgba(255, 255, 255, .1);
}
.btn-dl.is-off {
  cursor: default;
  color: var(--ink-3);
  background-color: #1a1e24;
  background-image: var(--brush);
  border-color: var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  text-shadow: none;
}

.btn-quiet {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--ink-2);
  background-color: #171b21;
  background-image: var(--brush);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 0 rgba(0, 0, 0, .5);
  transition: color .16s ease, border-color .16s ease;
}
.btn-quiet:hover {
  color: var(--ink);
  border-color: var(--line-2);
  text-decoration: none;
}

/* 规格表 */
.specs {
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 12.5px;
}
.specs > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}
.specs dt {
  font: 500 10.5px/1.5 var(--mono);
  letter-spacing: .08em;
  color: var(--ink-3);
}
.specs dd {
  margin: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* 截图 */
.shots { margin-bottom: 16px; }

.shot-strip {
  display: flex;
  align-items: flex-start;   /* 竖屏卡更高，别把它拉成横卡的高度 */
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
}

.shot {
  flex: 0 0 clamp(240px, 38%, 340px);
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  background: #0c0f13;
  border: 1px solid var(--edge);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .04),
    0 6px 16px -10px #000;
  transition: border-color .18s ease, transform .18s ease;
}
.shot:hover { border-color: rgba(63, 228, 245, .3); transform: translateY(-2px); }
.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* 竖屏截图（手机 App）：卡片做成手机比例，按原图比例整屏显示，不横切 */
.shot.is-portrait { flex: 0 0 clamp(150px, 17%, 196px); }
.shot.is-portrait img { aspect-ratio: auto; height: auto; }

/* 正文 */
.prose {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.85;
  max-width: 72ch;
}
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2, .prose h3 {
  color: var(--ink);
  margin: 1.6em 0 .6em;
  font-size: 16px;
}
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose img { border-radius: 6px; margin: 1em 0; border: 1px solid var(--edge); }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(63, 228, 245, .35);
}
.prose a:hover { text-decoration-color: var(--accent); }
.prose code {
  padding: 1px 5px;
  border-radius: 4px;
  color: #a8dceb;
  background-color: #0c1014;
  border: 1px solid #05070a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7);
}

/* 更新日志 */
.log { margin: 0; padding: 0; list-style: none; }

.log li {
  position: relative;
  padding: 0 0 20px 20px;
  border-left: 1px solid var(--line);
}
.log li:last-child { padding-bottom: 0; border-left-color: transparent; }

/* 时间轴上的小方点，比圆点更"仪器" */
.log li::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--line-2);
  box-shadow: 0 0 0 3px var(--panel);
}
.log li:first-child::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--panel), 0 0 8px rgba(63, 228, 245, .5);
}

.log-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.log-h b {
  font: 600 13px/1.4 var(--mono);
  letter-spacing: .02em;
  color: #e9eff5;
}
.log-h time {
  font: 500 11px/1.4 var(--mono);
  color: var(--ink-3);
}
.log ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.8;
}
.log ul li { padding: 0; border: 0; }
.log ul li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 1px;
  margin: 0 8px 4px 0;
  background: var(--line-2);
}

/* =============================================================================
   8. 评论
   ============================================================================= */

.cmt-num {
  font: 500 11.5px/1 var(--mono);
  color: var(--ink-3);
}

.cmt-list { margin: 0; padding: 0; list-style: none; }

.cmt {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.cmt:first-child { border-top: 0; padding-top: 2px; }

/* 头像不用 Gravatar：这台机器在 Tailscale 里，外网图请求会拖慢首屏 */
.cmt-av {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font: 600 13px/1 var(--sans);
  color: var(--ink-2);
  background-color: #1a1f26;
  background-image: var(--brush);
  border: 1px solid var(--edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    inset 0 -1px 0 rgba(0, 0, 0, .5);
}

.cmt-body { min-width: 0; }

.cmt-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}
.cmt-head b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.cmt-head time {
  font: 500 11px/1 var(--mono);
  color: var(--ink-3);
}
.cmt-head .comment-reply-link {
  font-size: 11.5px;
  color: var(--ink-3);
  border-bottom: 1px solid transparent;
}
.cmt-head .comment-reply-link:hover { color: var(--accent); border-bottom-color: currentColor; }

.cmt-text {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.cmt-text p { margin: 0 0 .6em; }
.cmt-text p:last-child { margin-bottom: 0; }

/* 子回复：WP 输出的是 <ol class="children">，而 .cmt 是 grid，
   不显式跨列的话它会被塞进 34px 的头像列，一个汉字一行。 */
.cmt-list .children {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding: 0 0 0 20px;
  list-style: none;
  border-left: 1px solid var(--line);
}
.cmt-list .children .cmt { border-top: 0; padding: 10px 0 0; }

.cmt-empty {
  color: var(--ink-3);
  font-size: 13.5px;
  padding: 6px 0 18px;
}

/* 表单：两列网格。昵称和邮箱各占一列，标题/留言框/按钮跨两列占满。
   用 grid 而不是 inline-block，是因为 WP 输出的两个 <p> 之间有换行符，
   inline-block + calc(50%) 会被这点空白挤到下一行。 */
.cmt-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.cmt-form .form-title,
.cmt-form .comment-form-comment,
.cmt-form .form-submit,
.cmt-form .comment-notes,
.cmt-form .logged-in-as,
.cmt-form .comment-form-cookies-consent { grid-column: 1 / -1; }
.cmt-form .form-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 2px;
}
.cmt-form p { margin: 0; }
.cmt-form label {
  display: block;
  font: 500 11px/1.6 var(--mono);
  letter-spacing: .08em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.cmt-form .comment-form-author,
.cmt-form .comment-form-email { margin: 0; }
.cmt-form input[type=text],
.cmt-form input[type=email],
.cmt-form input[type=url],
.cmt-form textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background-color: #0c1014;
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .8),
    inset 0 0 0 1px rgba(0, 0, 0, .5),
    0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.cmt-form textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.cmt-form input:focus,
.cmt-form textarea:focus {
  outline: none;
  border-color: rgba(63, 228, 245, .5);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .8),
    0 0 0 3px rgba(63, 228, 245, .12);
}
.cmt-form .form-submit { margin: 4px 0 0; }
.cmt-form .submit {
  padding: 10px 22px;
  font: 600 13.5px/1 var(--sans);
  color: var(--ink);
  cursor: pointer;
  background-color: #1b2027;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .12) 0 40%, rgba(255, 255, 255, 0) 60%),
    var(--brush),
    linear-gradient(180deg, #232931, #171b21);
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -2px 0 rgba(0, 0, 0, .4),
    0 1px 2px rgba(0, 0, 0, .6);
  transition: border-color .16s ease, color .16s ease, transform .16s ease;
}
.cmt-form .submit:hover {
  color: var(--accent);
  border-color: rgba(63, 228, 245, .35);
}
.cmt-form .submit:active { transform: translateY(1px); }
.cmt-form .comment-notes,
.cmt-form .logged-in-as,
.cmt-form .comment-form-cookies-consent {
  font-size: 12px;
  color: var(--ink-3);
}
.cmt-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cmt-form .comment-form-cookies-consent label {
  margin: 0;
  font: inherit;
  letter-spacing: 0;
  color: var(--ink-3);
}

/* =============================================================================
   9. 联系页 / 二维码位
   ============================================================================= */

/* 中文一个字的宽度大约是两个 ch，62ch ≈ 31 个汉字一行，
   这句导语正好一行放得下，不会在「微信」中间断开。 */
.contact-lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 62ch;
  margin-bottom: 26px;
}
.nowrap { white-space: nowrap; }

/* 说明在左、二维码钉在面板右缘：两边都有东西，中间的空隙才像「留白」而不是「没排满」 */
.qr-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: center;
  gap: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.qr-block .qr-info { order: 1; padding-top: 0; }
.qr-block .qr-slot {
  order: 2;
  width: 160px;
  height: 160px;
  flex-basis: 160px;
  justify-self: end;
}

/* 占位框：虚线 + 细斜纹，尺寸固定，将来换成真实二维码（同尺寸图片）不会跳版 */
.qr-slot {
  width: 148px;
  height: 148px;
  flex: 0 0 148px;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  border-radius: 10px;
  border: 1px dashed #3a424c;
  background-color: #0e1216;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .022) 0 6px, rgba(0, 0, 0, 0) 6px 12px);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6);
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.6;
}
.qr-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.qr-info { min-width: 0; padding-top: 4px; }
.qr-info .qr-id {
  font: 600 15px/1.5 var(--mono);
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: 6px;
}
.qr-info .qr-tip {
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.75;
  max-width: 42ch;
}

/* =============================================================================
   10. 页脚
   ============================================================================= */

.site-foot {
  flex: 0 0 auto;
  background-color: #0c0f13;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .04) 0, rgba(255, 255, 255, 0) 2px),
    var(--brush);
  border-top: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.foot-in {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.foot-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.foot-note {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 0 0 4px;
}
.foot-note a { color: var(--ink-2); border-bottom: 1px solid var(--line); }
.foot-note a:hover { color: var(--accent); border-bottom-color: currentColor; text-decoration: none; }

/* =============================================================================
   11. 404 / 空态
   ============================================================================= */

.blank {
  padding: 60px 0;
  text-align: center;
}
.blank h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #3a424c;
  margin-bottom: 10px;
}
.blank p { color: var(--ink-3); margin-bottom: 22px; }
.blank-acts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
/* 侧栏里的 .btn-quiet 是撑满的块，这里要收回来 */
.blank-acts .btn-quiet { width: auto; flex: 0 0 auto; }

/* 首页底部的「查看全部」 */
.more-link { margin: 24px 0 0; }
.more-link a {
  display: inline-block;
  font-size: 13.5px;
  color: var(--ink-2);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-2);
}
.more-link a:hover { color: var(--accent); border-bottom-color: currentColor; }

.empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
  border: 1px dashed #333a44;
  border-radius: var(--r);
  background-image: var(--brush);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .5);
}

/* =============================================================================
   12. 分页
   ============================================================================= */

.pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 26px;
  font: 500 12.5px/1 var(--mono);
}
.pager .page-numbers {
  padding: 8px 12px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #14181d;
}
.pager .page-numbers:hover { border-color: var(--line-2); color: var(--ink); text-decoration: none; }
.pager .page-numbers.current {
  color: var(--accent);
  border-color: rgba(63, 228, 245, .35);
  background-color: rgba(63, 228, 245, .06);
}

/* =============================================================================
   13. 响应式
   ============================================================================= */

/* 页头字号放大后，1040 容器在窄屏放不下，每档递减排布 */
/* 容器 1040 是二维码能摆下的下限，再窄导航就会被挤成折行 */
@media (max-width: 1050px) {
  .nav-qr { display: none; }
}

@media (max-width: 1000px) {
  .head-in { height: 96px; gap: 24px; }
  .brand { gap: 16px; }
  .brand-glyph { width: 54px; height: 54px; flex: 0 0 54px; }
  .brand-txt b { font-size: 22px; }
  .brand-txt i { font-size: 15px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 10px 14px; font-size: 19px; border-radius: 8px; }
  .site-nav a.is-on::after { left: 14px; right: 14px; }
}

@media (max-width: 900px) {
  .soft-top { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .soft-buy {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 20px;
  }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
  .specs > div { grid-template-columns: 56px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .site-main { padding: 30px 0 56px; }

  /* 手机上导航换到第二行：5 个入口在 390 宽里塞不下，
     挤成一条横向滚动条的话右边永远缺一块，看起来像坏了。 */
  .head-in {
    height: auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 11px 0 4px;
  }
  .brand-glyph { width: 44px; height: 44px; flex: 0 0 44px; }
  .brand-txt b { font-size: 20px; }
  .brand-txt i { display: none; }
  .site-nav {
    flex: 1 0 100%;
    order: 2;
    gap: 0;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 8px 11px; font-size: 15px; white-space: nowrap; }
  .site-nav a.is-on::after { left: 9px; right: 9px; bottom: 3px; }

  .apps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .app { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px; }
  /* 箭头在窄屏上只会把文字挤成更碎的折行，去掉 */
  .app-go { display: none; }
  .app-glyph { width: 48px; height: 48px; border-radius: 10px; }
  .app-top h3 { font-size: 15px; }
  .app-desc { font-size: 13px; margin-bottom: 10px; }

  .panel, .soft { padding: 18px 16px; }
  .soft-glyph { width: 64px; height: 64px; flex-basis: 64px; border-radius: 14px; }
  .soft-main { gap: 14px; }
  .soft h1 { font-size: 23px; }

  .specs { grid-template-columns: minmax(0, 1fr); }

  .shots-strip { padding-bottom: 8px; }
  .shot { flex-basis: 78%; }
  .shot.is-portrait { flex-basis: 40%; }

  .qr-block { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .qr-block .qr-slot { order: 1; justify-self: start; }
  .qr-block .qr-info { order: 2; }
  .contact-lead { max-width: none; }

  .foot-in { padding-top: 26px; padding-bottom: 26px; }
}

@media (max-width: 420px) {
  .brand-txt b { font-size: 14px; }
  .cmt-form { grid-template-columns: minmax(0, 1fr); }
}

/* 尊重系统「减少动效」 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .app:hover, .shot:hover { transform: none; }
}

/* ==========================================================================
   看图模式（lightbox）
   点截图全屏看大图，左右箭头切换，Esc / 右键 / 点背景退出。
   ========================================================================== */

.shot { cursor: zoom-in; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: rgba(6, 8, 10, .94);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity .16s ease;
}
.lb.on { display: block; }
.lb.in { opacity: 1; }

.lb-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 78px 58px;
}

.lb-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  border: 1px solid var(--edge);
  background: #0c0f13;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .05),
    0 34px 80px -26px #000;
  transform: scale(.985);
  transition: transform .16s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.lb.in .lb-img { transform: scale(1); }

/* 左右箭头 */
.lb-btn {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-2);
  background: linear-gradient(180deg, #1c232b, #11161c);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 10px 24px -12px #000;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.lb-btn:hover,
.lb-btn:focus-visible {
  color: #eaf9fc;
  border-color: rgba(63, 228, 245, .45);
  background: linear-gradient(180deg, #202b33, #131a20);
  outline: none;
}
.lb-btn svg { display: block; width: 22px; height: 22px; }

/* 箭头落在图片左侧 / 右侧空白的中线上，由脚本算出 --lb-side */
.lb-prev { left: var(--lb-side, 16px); }
.lb-next { right: var(--lb-side, 16px); }

/* 右上关闭 */
.lb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  margin-top: 0;
  z-index: 2;
}
.lb-close svg { width: 17px; height: 17px; }

/* 计数 */
.lb-count {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  font: 500 13px/1 var(--mono);
  letter-spacing: .16em;
  color: #97a2af;
  pointer-events: none;
}

@media (max-width: 760px) {
  .lb-stage { padding: 52px 14px; }
  .lb-btn { width: 42px; height: 42px; }
  .lb-btn svg { width: 18px; height: 18px; }
  /* -21px 只给左右箭头：关闭按钮是 absolute top 定位，被一起顶出屏幕过 */
  .lb-prev, .lb-next { margin-top: -21px; }
  .lb-close { top: 8px; right: 10px; }
}

/*
 * is-tight：图片左右塞不下按钮时（脚本量出来的），
 * 箭头改到图片下方预留的一条带子里，计数夹在中间，谁也不压画面。
 */
.lb.is-tight .lb-stage { padding: 56px 12px 78px; }

/* 只动左右箭头：.lb-close 也带 .lb-btn，别被一起拖下去 */
.lb.is-tight .lb-prev,
.lb.is-tight .lb-next {
  width: 46px;
  height: 46px;
  margin-top: 0;
  top: auto;
  bottom: 14px;
  background: rgba(18, 24, 30, .78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lb.is-tight .lb-prev { left: 14px; }
.lb.is-tight .lb-next { right: 14px; }

.lb.is-tight .lb-count {
  bottom: 14px;
  height: 46px;
  display: flex;
  align-items: center;
}
