/* ============================================================
   V2 · STILL 画册
   浅色、杂志排版、编号索引 —— 像一本装订成册的收藏画册
   ============================================================ */
body.v2 {
  --ink: #16161a;
  --ink-2: #3d3d46;
  --ink-3: #75757f;
  --ink-4: #a3a3ad;
  --line: #e3e1dc;
  --line-2: #efece7;
  --bg: #f7f5f0;          /* 米白纸感 */
  --bg-2: #fffdfa;
  --bg-3: #efebe3;
  --brand: #c8402c;
  --accent: #1f4f8f;
  --radius: 3px;          /* 杂志风：几乎不用圆角 */
  --shadow-sm: 0 1px 1px rgba(22,22,26,.05);
  --shadow: 0 3px 12px rgba(22,22,26,.07);
  --shadow-lg: 0 20px 50px rgba(22,22,26,.12);
}

body.v2 {
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(200,64,44,.05), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(31,79,143,.05), transparent 40%);
  color: var(--ink);
}

/* 细网格纸纹 */
body.v2::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(22,22,26,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,22,26,.022) 1px, transparent 1px);
  background-size: 44px 44px;
}
body.v2 > * { position: relative; z-index: 1; }

/* 衬线标题 */
.serif { font-family: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC",
         "STSong", Georgia, "Times New Roman", serif; }

/* ---------- 报头 ---------- */
.masthead { border-bottom: 1px solid var(--ink); background: var(--bg-2); }
.mast-in { display: flex; align-items: center; gap: 24px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg-2);
  font-weight: 800; font-size: 14px; border-radius: 50%;
}
.brand-txt { display: flex; align-items: baseline; gap: 7px; }
.brand-txt b { font-size: 15px; letter-spacing: .16em; }
.brand-txt i {
  font-style: normal; font-size: 12px; color: var(--brand);
  letter-spacing: .2em; font-weight: 600;
}
.mast-mid {
  flex: 1; text-align: center; font-size: 12px; color: var(--ink-3);
  letter-spacing: .08em;
}
.mast-mid b { color: var(--ink); }
.mast-nav { display: flex; gap: 22px; }
.mast-nav a {
  font-size: 13px; color: var(--ink-2); padding-bottom: 3px;
  border-bottom: 1px solid transparent; transition: all .2s;
}
.mast-nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- 封面 ---------- */
.cover { padding: 66px 0 60px; border-bottom: 1px solid var(--line); }
.cover-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.issue-line {
  font-size: 11px; letter-spacing: .24em; color: var(--brand);
  font-weight: 700; display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
}
.issue-line span { flex: 1; height: 1px; background: var(--line); max-width: 80px; }
.cover-title {
  font-family: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(46px, 6.4vw, 84px);
  line-height: 1.02; margin: 0 0 22px; letter-spacing: -.02em; font-weight: 700;
}
.cover-title em {
  font-style: italic; color: var(--brand);
  position: relative;
}
.cover-title em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 8px;
  background: rgba(200,64,44,.16); z-index: -1;
}
.cover-lead { font-size: 15.5px; color: var(--ink-2); line-height: 1.9; margin: 0 0 30px; max-width: 430px; }

.cover-stats {
  display: flex; gap: 34px; margin: 0 0 32px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.cover-stats > div { min-width: 76px; }
.cover-stats dt { font-size: 11px; color: var(--ink-4); letter-spacing: .1em; margin-bottom: 3px; }
.cover-stats dd { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }

.cover-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn-ink { background: var(--ink); color: var(--bg-2); border-radius: 2px; }
.btn-ink:hover { background: #000; transform: none; box-shadow: var(--shadow); }
.lnk-arrow { font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.lnk-arrow:hover { color: var(--brand); border-color: var(--brand); }

.cover-r { position: relative; }
.cover-stack {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding: 8px; background: var(--bg-2);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.cover-stack figure { margin: 0; overflow: hidden; background: var(--bg-3); }
.cover-stack img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.cover-stack figure:nth-child(1) { grid-row: span 2; }
.cover-stack figure:nth-child(1) img { aspect-ratio: auto; height: 100%; }
.cover-cap {
  display: block; margin-top: 10px; font-size: 11.5px; color: var(--ink-4);
  letter-spacing: .1em; text-align: right;
}

/* ---------- 索引 ---------- */
.toc { padding: 54px 0; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.toc-head { margin-bottom: 26px; }
.toc-head h2, .dl-head h2 {
  font-family: "Songti SC", "Source Han Serif SC", Georgia, serif;
  font-size: 30px; margin: 0 0 6px; font-weight: 700;
}
.toc-head p, .dl-head p { font-size: 14px; color: var(--ink-3); margin: 0; }

.toc-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 34px; }
.toc-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 2px; border-bottom: 1px dotted var(--line);
  font-size: 13.5px; transition: padding-left .2s;
}
.toc-row:hover { padding-left: 6px; }
.toc-row .no { font-size: 11px; color: var(--ink-4); font-variant-numeric: tabular-nums; min-width: 26px; }
.toc-row .nm { flex: 1; color: var(--ink-2); }
.toc-row .nm b { color: var(--ink); font-weight: 600; }
.toc-row .ct { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.toc-row .lk { font-size: 11px; color: var(--accent); opacity: 0; transition: opacity .2s; }
.toc-row:hover .lk { opacity: 1; }

/* ---------- 画册主体 ---------- */
.reels { padding: 44px 0 70px; }
.reels-in { display: grid; grid-template-columns: 210px 1fr; gap: 44px; align-items: start; }
.rail-sticky { position: sticky; top: 24px; }
.rail-label {
  font-size: 10.5px; letter-spacing: .18em; color: var(--ink-4);
  text-transform: uppercase; margin: 0 0 10px; font-weight: 700;
}
.rail-group { display: flex; flex-direction: column; gap: 1px; margin-bottom: 22px; }
.rail-item {
  text-align: left; padding: 7px 11px; font-size: 13.5px; color: var(--ink-3);
  border-left: 2px solid transparent; transition: all .18s;
}
.rail-item:hover { background: var(--bg-3); color: var(--ink); }
.rail-item.on { color: var(--brand); border-left-color: var(--brand); font-weight: 600; background: rgba(200,64,44,.05); }
.rail-item .n { float: right; font-size: 11.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }

.sel-plain {
  width: 100%; padding: 8px 10px; font-size: 13px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2);
  outline: none; cursor: pointer; border-radius: 2px;
}
.rail-stat {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-4); line-height: 1.8;
}

.reels-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.search-plain {
  flex: 1; padding: 10px 0; font-size: 14px;
  border: none; border-bottom: 1px solid var(--ink); background: transparent;
  outline: none; border-radius: 0;
}
.search-plain::placeholder { color: var(--ink-4); }
.reels-count { font-size: 12px; color: var(--ink-4); white-space: nowrap; }

/* 图版网格 */
.plates { columns: 4 200px; column-gap: 18px; }
.plate {
  break-inside: avoid; margin: 0 0 18px; cursor: zoom-in;
  position: relative; background: var(--bg-2);
  border: 1px solid var(--line); padding: 7px;
  transition: border-color .22s, transform .22s;
}
.plate:hover { border-color: var(--ink); transform: translateY(-2px); }
.plate figure { margin: 0; overflow: hidden; background: var(--bg-3); }
.plate img { width: 100%; display: block; }
.plate .ph { width: 100%; aspect-ratio: 3/4; background: var(--bg-3); }
.plate figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 3px 2px; font-size: 11.5px; color: var(--ink-3);
}
.plate figcaption .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate figcaption .sz { flex: 0 0 auto; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.plate .no {
  position: absolute; top: 13px; left: 13px; z-index: 2;
  background: var(--ink); color: var(--bg-2);
  font-size: 10px; padding: 2px 7px; border-radius: 2px;
  letter-spacing: .06em;
}
.plate .mark {
  position: absolute; top: 13px; right: 13px; z-index: 2;
  background: var(--brand); color: #fff; font-size: 10px;
  padding: 2px 7px; border-radius: 2px;
}
.plate .vid {
  position: absolute; bottom: 38px; left: 13px; z-index: 2;
  background: rgba(22,22,26,.82); color: #fff; font-size: 10px; padding: 2px 7px;
}

.more { text-align: center; padding: 30px 0; }
.more button {
  padding: 10px 30px; font-size: 13px; background: transparent;
  border: 1px solid var(--ink); color: var(--ink); border-radius: 2px; transition: all .2s;
}
.more button:hover { background: var(--ink); color: var(--bg-2); }

/* ---------- 下载区 ---------- */
.download { padding: 60px 0; background: var(--bg-2); border-top: 1px solid var(--ink); }
.dl-head { margin-bottom: 28px; max-width: 620px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }

.dlcard {
  background: var(--bg); border: 1px solid var(--line);
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .22s, box-shadow .22s;
}
.dlcard:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.dlcard-hd { display: flex; align-items: baseline; gap: 10px; }
.dlcard-hd .no { font-size: 11px; color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }
.dlcard-hd .nm { flex: 1; font-size: 15px; font-weight: 600; }
.dlcard-hd .dt { font-size: 12px; color: var(--ink-4); }
.dlcard-meta { font-size: 12px; color: var(--ink-3); display: flex; gap: 12px; flex-wrap: wrap; }
.dlcard-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.dlcard-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-3); }
.dlcard-thumbs .more-t {
  aspect-ratio: 1; display: grid; place-items: center; background: var(--bg-3);
  font-size: 11.5px; color: var(--ink-4); font-weight: 600;
}
.dlcard-ft { display: flex; align-items: center; gap: 9px; margin-top: auto; }
.dlcard-ft .grow { flex: 1; }

/* 提取码 —— 杂志风的方框 */
.pwd-box {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px dashed var(--ink-3); background: var(--bg-2);
  font-size: 12px; color: var(--ink-3); cursor: pointer; transition: all .18s;
}
.pwd-box:hover { border-color: var(--brand); color: var(--brand); }
.pwd-box b {
  font-size: 15px; letter-spacing: .22em; color: var(--ink);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.pwd-box.ok { border-color: #16a34a; color: #16a34a; border-style: solid; }

.btn-outline {
  padding: 8px 16px; font-size: 12.5px; border: 1px solid var(--ink);
  border-radius: 2px; color: var(--ink); transition: all .2s; font-weight: 600;
}
.btn-outline:hover { background: var(--ink); color: var(--bg-2); }

/* ---------- 页脚 ---------- */
.foot { padding: 30px 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-in { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; align-items: center; }
.foot-l { display: flex; flex-direction: column; gap: 3px; }
.foot-l b { font-size: 13px; letter-spacing: .1em; }
.foot-l span { font-size: 12px; color: var(--ink-4); }
.foot-r { display: flex; gap: 18px; font-size: 12.5px; color: var(--ink-3); align-items: center; }
.foot-r a:hover { color: var(--brand); }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(247,245,240,.97);
  display: none; grid-template-rows: 1fr auto; opacity: 0; transition: opacity .22s;
}
.lightbox.open { display: grid; opacity: 1; }
.lb-stage { display: grid; place-items: center; padding: 52px 80px 16px; min-height: 0; }
.lb-stage img, .lb-stage video {
  max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 24px 60px rgba(22,22,26,.2); border: 1px solid var(--line);
}
.lb-close {
  position: absolute; top: 16px; right: 18px; z-index: 3;
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--ink); background: var(--bg-2); font-size: 15px; border-radius: 50%;
}
.lb-close:hover { background: var(--ink); color: var(--bg-2); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--ink); background: var(--bg-2); font-size: 22px; border-radius: 50%;
}
.lb-nav:hover { background: var(--ink); color: var(--bg-2); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }

.lb-bar {
  padding: 14px 30px 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--bg-2);
}
.lb-meta { flex: 1; min-width: 240px; }
.lb-title { font-size: 14px; font-weight: 600; }
.lb-sub { font-size: 12px; color: var(--ink-4); margin-top: 2px; display: flex; gap: 6px; flex-wrap: wrap; }
.lb-sub .sep { opacity: .5; }
.lb-links { margin-top: 5px; font-size: 12px; }
.lb-links a { color: var(--accent); border-bottom: 1px solid currentColor; }
.lb-netdisk { min-width: 340px; }
body.v2 .netdisk {
  background: var(--bg); border: 1px solid var(--line); border-radius: 2px;
  box-shadow: none; padding: 12px 14px;
}
body.v2 .netdisk-logo {
  background: var(--ink); color: var(--bg-2); border-radius: 2px; box-shadow: none;
  font-size: 14px; width: 34px; height: 34px; flex: 0 0 34px;
}
body.v2 .copy-field {
  background: var(--bg-2); border: 1px dashed var(--ink-3); border-radius: 2px;
  font-family: inherit; letter-spacing: normal;
}
body.v2 .copy-field b { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .18em; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .cover-in { grid-template-columns: 1fr; gap: 38px; }
  .reels-in { grid-template-columns: 1fr; gap: 24px; }
  .rail-sticky { position: static; }
  .rail-group { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .rail-item { border-left: none; border: 1px solid var(--line); padding: 6px 12px; }
  .rail-item.on { border-color: var(--brand); }
  .plates { columns: 3 160px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .mast-mid { display: none; }
  .cover { padding: 40px 0 44px; }
  .cover-stats { gap: 20px; }
  .plates { columns: 2 130px; column-gap: 12px; }
  .plate { margin-bottom: 12px; padding: 5px; }
  .lb-stage { padding: 48px 10px 10px; }
  .lb-bar { padding: 12px 16px 18px; }
  .lb-netdisk { min-width: 0; width: 100%; }
  .lb-nav { width: 34px; height: 34px; font-size: 18px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
}
