/* =========================================================
   PAGES — 各页面版式
   ========================================================= */

/* =============== 首页 HERO =============== */
.hero {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem);
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
/* 顶部一圈极淡的光晕 + 网格线，是这套风格的标志性背景 */
.hero__glow {
  position: absolute; inset: -40% 0 auto 0; height: 120%;
  background: radial-gradient(ellipse 60% 50% at 50% 30%,
              color-mix(in srgb, var(--fg) var(--glow-strength), transparent), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: .6;
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.hero__title { max-width: 18ch; }
.hero__title .dim { color: var(--fg-3); }
.hero__lead { text-align: center; max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .25rem; }

/* 首屏底部的四格数据条 */
.statbar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg-elev);
  overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.statbar__cell {
  padding: 1.25rem 1rem; text-align: left;
  border-right: 1px solid var(--border);
  transition: background var(--fast) var(--ease);
}
.statbar__cell:last-child { border-right: 0; }
.statbar__cell:hover { background: var(--bg-hover); }
.statbar__n { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.statbar__l { margin-top: .2rem; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--fg-3); }
@media (max-width: 720px) {
  .statbar { grid-template-columns: 1fr 1fr; }
  .statbar__cell:nth-child(2) { border-right: 0; }
  .statbar__cell:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* =============== 内页页头 =============== */
.phead {
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.phead__title { font-size: var(--t-h1); margin: .85rem 0 .9rem; }
.phead__sub { color: var(--fg-2); max-width: 42rem; font-size: var(--t-body); }
.phead__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }

/* =============== 工具条（筛选 + 计数） =============== */
.toolbar {
  position: sticky; top: 64px; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  padding-block: .9rem;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.filters { display: flex; flex-wrap: wrap; gap: .375rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  height: 30px; padding-inline: .7rem;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: var(--t-xs); color: var(--fg-2);
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.chip:hover { color: var(--fg); border-color: var(--border-strong); }
.chip.is-on { background: var(--contrast); border-color: var(--contrast); color: var(--contrast-fg); }
.chip b {
  font-family: var(--f-mono); font-size: 11px; font-weight: 400;
  opacity: .55; font-variant-numeric: tabular-nums;
}
.count { font-family: var(--f-mono); font-size: var(--t-label); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.count b { color: var(--fg); font-weight: 400; }

/* =============== 街拍瀑布流 =============== */
.masonry { display: flex; align-items: flex-start; gap: 1rem; }
.masonry__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }

.shot {
  position: relative; display: block; width: 100%;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--bg-elev);
  overflow: hidden; isolation: isolate;
  transition: border-color var(--fast) var(--ease);
}
.shot.is-hidden { display: none; }
.shot:hover { border-color: var(--border-strong); }

.shot__img {
  width: 100%; display: block;
  filter: var(--shot-filter);
  transition: transform .5s var(--ease);
}
.shot:hover .shot__img { transform: scale(1.02); }

.shot__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 35%, transparent 60%);
  opacity: 0; transition: opacity var(--mid) var(--ease);
}
.shot:hover .shot__veil, .shot:focus-visible .shot__veil { opacity: 1; }

.shot__info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .9rem 1rem;
  opacity: 0; transform: translateY(4px);
  transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease);
}
.shot:hover .shot__info, .shot:focus-visible .shot__info { opacity: 1; transform: none; }
.shot__title { font-size: var(--t-sm); font-weight: 500; color: #fff; letter-spacing: -.01em; }
.shot__sub {
  display: flex; flex-wrap: wrap; gap: .3rem .75rem; margin-top: .2rem;
  font-family: var(--f-mono); font-size: 11px; color: rgba(255,255,255,.6);
}
/* 左上角编号 + 右上角分类：常驻但很淡 */
.shot__no {
  position: absolute; top: .6rem; left: .7rem;
  font-family: var(--f-mono); font-size: 11px; color: rgba(255,255,255,.5);
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  transition: opacity var(--mid);
}
.shot:hover .shot__no { opacity: 0; }
.shot__tag {
  position: absolute; top: .6rem; right: .7rem;
  padding: .15rem .45rem; border-radius: var(--r-sm);
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.14);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .04em; color: rgba(255,255,255,.85);
  opacity: 0; transition: opacity var(--mid) var(--ease);
}
.shot:hover .shot__tag { opacity: 1; }

/* =============== 灯箱 =============== */
.lbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; grid-template-rows: auto 1fr auto;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--mid) var(--ease), visibility var(--mid);
}
.lbox.is-open { opacity: 1; visibility: visible; }
.lbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 56px; padding-inline: var(--gut);
  border-bottom: 1px solid var(--border);
}
.lbox__stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 3vw, 2rem); min-height: 0; overflow: hidden;
}
.lbox__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: var(--r); border: 1px solid var(--border);
}
.lbox__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gut) 1.25rem;
  border-top: 1px solid var(--border);
}
.lbox__title { font-size: var(--t-body); font-weight: 500; }
.lbox__exif {
  display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin-top: .45rem;
}
.lbox__exif span {
  padding: .15rem .45rem; border: 1px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--f-mono); font-size: 11px; color: var(--fg-3);
}
.lbox__nav { display: flex; gap: .5rem; }
.lbox__arrow {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--fg-2);
  transition: color var(--fast), border-color var(--fast), background var(--fast);
}
.lbox__arrow:hover { color: var(--fg); border-color: var(--border-strong); background: var(--bg-hover); }
.lbox__arrow[disabled] { opacity: .35; pointer-events: none; }
@media (max-width: 560px) { .lbox__foot { flex-direction: column; align-items: stretch; } .lbox__nav { justify-content: space-between; } }

/* =============== VLOG =============== */
/* align-items:start —— 竖版(4:5)卡片会把整行撑高，不加这行同行的卡片会被拉伸出空洞 */
.vgrid { display: grid; gap: 1rem; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
/* 首页精选：第一支占两列 */
.vgrid--feature { grid-template-columns: repeat(4, 1fr); }
.vgrid--feature > *:nth-child(1) { grid-column: span 2; grid-row: span 2; align-self: stretch; }
.vgrid--feature > *:nth-child(n+2) { grid-column: span 2; }
@media (max-width: 900px) {
  .vgrid--feature { grid-template-columns: 1fr; }
  .vgrid--feature > * { grid-column: span 1 !important; grid-row: auto !important; }
}

.vcard {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--bg-elev); overflow: hidden;
  transition: border-color var(--fast) var(--ease);
}
.vcard.is-hidden { display: none; }
.vcard:hover { border-color: var(--border-strong); }

.vcard__media {
  display: block; position: relative; aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--bg-sunk);
  border-bottom: 1px solid var(--border);
}
.vcard--tall .vcard__media { aspect-ratio: 4 / 5; }
.vgrid--feature > .vcard:first-child { --feature: 1; }
.vcard__poster, .vcard__prev {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity var(--mid) var(--ease), transform .5s var(--ease);
}
.vcard__prev { opacity: 0; }
.vcard:hover .vcard__poster { transform: scale(1.02); }
.vcard.is-previewing .vcard__prev { opacity: 1; }
.vcard.is-previewing .vcard__poster { opacity: 0; }

.vcard__play {
  position: absolute; inset: 0; margin: auto;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff;
  transition: background var(--fast) var(--ease), transform var(--mid) var(--ease);
}
.vcard:hover .vcard__play { background: rgba(0,0,0,.75); transform: scale(1.06); }
.vcard__dur {
  position: absolute; right: .55rem; bottom: .55rem;
  padding: .1rem .35rem; border-radius: 4px;
  background: rgba(0,0,0,.7); color: #fff;
  font-family: var(--f-mono); font-size: 11px; font-variant-numeric: tabular-nums;
}
.vcard__badge {
  position: absolute; left: .55rem; top: .55rem;
  padding: .15rem .45rem; border-radius: 4px;
  background: rgba(255,255,255,.92); color: #000;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
}

.vcard__body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.vcard__title { font-size: var(--t-body); font-weight: 500; letter-spacing: -.015em; line-height: 1.4; }
.vcard__desc {
  color: var(--fg-2); font-size: var(--t-sm); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vcard__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin-top: auto; padding-top: .5rem;
  font-family: var(--f-mono); font-size: 11px; color: var(--fg-3);
}
.vcard__meta .dot { width: 2px; height: 2px; border-radius: 50%; background: currentColor; }

/* 播放器弹窗 */
.player {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center; padding: var(--gut);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity var(--mid) var(--ease), visibility var(--mid);
}
.player.is-open { opacity: 1; visibility: visible; }
.player__box { position: relative; width: min(1080px, 100%); }
.player__frame {
  position: relative; aspect-ratio: 16 / 9; background: #000;
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow);
}
.player__frame > iframe, .player__frame > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__bar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.player__title { font-size: var(--t-body); font-weight: 500; }
.player__meta { margin-top: .25rem; font-family: var(--f-mono); font-size: var(--t-label); color: var(--fg-3); }
.modal-close {
  position: absolute; top: -2.75rem; right: 0; z-index: 5;
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg-elev); color: var(--fg-2);
  transition: color var(--fast), border-color var(--fast);
}
.modal-close:hover { color: var(--fg); border-color: var(--border-strong); }

/* =============== 日志列表 =============== */
.plist { display: flex; flex-direction: column; }
.prow {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  gap: 1.5rem; align-items: center;
  padding: 1.4rem .75rem;
  border-bottom: 1px solid var(--border);
  border-radius: var(--r);
  transition: background var(--fast) var(--ease);
}
.prow:first-child { border-top: 1px solid var(--border); }
.prow:hover { background: var(--bg-elev); }
.prow__date { font-family: var(--f-mono); font-size: var(--t-label); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.prow__title { font-size: var(--t-h3); font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.prow__excerpt {
  margin-top: .35rem; color: var(--fg-2); font-size: var(--t-sm); max-width: 46rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prow__tags { display: flex; gap: .35rem; margin-top: .65rem; flex-wrap: wrap; }
.prow__tag {
  padding: .1rem .45rem; border: 1px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--f-mono); font-size: 11px; color: var(--fg-3);
}
.prow__go { color: var(--fg-3); transition: transform var(--mid) var(--ease), color var(--fast); }
.prow:hover .prow__go { transform: translateX(3px); color: var(--fg); }
@media (max-width: 720px) {
  .prow { grid-template-columns: 1fr; gap: .5rem; padding-inline: .25rem; }
  .prow__go { display: none; }
}

/* =============== 文章正文 =============== */
.article-hero {
  position: relative; aspect-ratio: 2 / 1;
  max-width: 52rem; margin: 2rem auto 0;
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.article-head { max-width: var(--readw); margin-inline: auto; padding-top: clamp(2.5rem, 5vw, 4rem); }
.article-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; margin: .85rem 0 1rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

.article { max-width: var(--readw); margin-inline: auto; padding-block: 2.5rem 3rem; font-size: 1rem; }
.article > * + * { margin-top: 1.35rem; }
.article p { color: var(--fg-2); line-height: 1.75; }
.article .lead { color: var(--fg); font-size: 1.125rem; }
.article h2 {
  font-size: 1.375rem; font-weight: 600; color: var(--fg); line-height: 1.35;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.article h3 { font-size: 1.0625rem; font-weight: 600; color: var(--fg); margin-top: 2rem; line-height: 1.45; }
.article blockquote {
  border-left: 2px solid var(--border-strong); padding: .1rem 0 .1rem 1.25rem;
  font-size: 1.0625rem; line-height: 1.65; color: var(--fg);
}
.article ul, .article ol { display: flex; flex-direction: column; gap: .5rem; }
.article li { position: relative; padding-left: 1.25rem; color: var(--fg-2); line-height: 1.7; }
.article li::before { content: ""; position: absolute; left: .35rem; top: .75em; width: 4px; height: 1px; background: var(--fg-3); }
.article strong { color: var(--fg); font-weight: 600; }
.article figure { margin-block: 2rem; }
.article figure img { width: 100%; border: 1px solid var(--border); border-radius: var(--r); }
.article figcaption { margin-top: .6rem; font-family: var(--f-mono); font-size: var(--t-label); color: var(--fg-3); }
.article a:not(.btn):not(.tlink) { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.article a:not(.btn):not(.tlink):hover { text-decoration-color: var(--fg); }
.article code {
  font-family: var(--f-mono); font-size: .85em;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 4px;
  padding: .1em .35em; color: var(--fg);
}
.article hr { border: 0; height: 1px; background: var(--border); margin-block: 2.5rem; }

/* 上下篇 */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pager a {
  border: 1px solid var(--border); border-radius: var(--r); padding: 1.15rem 1.25rem;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.pager a:hover { border-color: var(--border-strong); background: var(--bg-elev); }
.pager a:last-child { text-align: right; }
.pager__k { font-family: var(--f-mono); font-size: var(--t-label); color: var(--fg-3); }
.pager__t { margin-top: .4rem; font-size: var(--t-sm); font-weight: 500; letter-spacing: -.015em; }
@media (max-width: 620px) { .pager { grid-template-columns: 1fr; } .pager a:last-child { text-align: left; } }

/* =============== 关于页 =============== */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 20rem minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about__portrait { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-elev); }
.about__portrait img { width: 100%; }
.about__bio > * + * { margin-top: 1.1rem; }
.about__bio p { color: var(--fg-2); line-height: 1.75; }

/* 器材清单：定义列表式的表格 */
.spec { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.spec__row {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem;
  padding: .9rem 1.1rem; border-bottom: 1px solid var(--border);
  transition: background var(--fast) var(--ease);
}
.spec__row:last-child { border-bottom: 0; }
.spec__row:hover { background: var(--bg-elev); }
.spec__k { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--fg-3); padding-top: .15rem; }
.spec__v { color: var(--fg-2); font-size: var(--t-sm); }
@media (max-width: 620px) { .spec__row { grid-template-columns: 1fr; gap: .3rem; } }

/* =============== CTA =============== */
.cta {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg-elev);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta__glow {
  position: absolute; inset: auto 0 -60% 0; height: 100%;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, color-mix(in srgb, var(--fg) var(--glow-strength), transparent), transparent 70%);
  pointer-events: none;
}
.cta__title { font-size: var(--t-h2); position: relative; }
.cta__sub { margin-top: .75rem; color: var(--fg-2); font-size: var(--t-sm); position: relative; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; position: relative; }

/* 复制邮箱按钮 */
.copybtn { font-family: var(--f-mono); font-size: var(--t-xs); }
.copybtn.is-done { color: var(--fg); border-color: var(--border-strong); }

/* =============== 空状态 =============== */
.empty {
  padding: 4rem 1rem; text-align: center; color: var(--fg-3);
  border: 1px dashed var(--border); border-radius: var(--r);
}

/* =============== 404 =============== */
.notfound { min-height: calc(100svh - 64px); display: grid; place-items: center; text-align: center; padding: 4rem var(--gut); }
