/* ---------- 基础 ---------- */
@font-face {
  font-family: "OPPOSans";
  src: url("/fonts/OPPOSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "OPPOSans";
  src: url("/fonts/OPPOSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
/* 站点名称专用字体：OPPO Sans，回退到衬线 */
.font-brand,
.brand,
.hero h1,
.site-footer p:first-child,
.about-hero h1 {
  font-family: "OPPOSans", "Noto Serif SC", "Songti SC", "STSong", serif;
}
:root {
  --bg: #faf9f6;
  --ink: #1c1a17;
  --ink-soft: #6b665e;
  --line: #e5e1d8;
  --accent: #9a6b3f;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; line-height: 1.7; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.muted { color: var(--ink-soft); font-size: 13px; }

/* ---------- 顶栏 ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px 0; transition: all .35s; }
.site-header.solid { background: rgba(250,249,246,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 10px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: 4px; color: #fff; transition: color .35s; display: inline-flex; align-items: center; }
.site-header.solid .brand { color: var(--ink); }
/* Logo 图片 */
.brand-logo { height: 46px; width: auto; display: block; }
/* 白色 logo 在浅色背景上反色为黑色 */
.site-header.solid .brand-logo,
.footer-logo { filter: invert(1); }
/* 页脚 logo 居中 */
.site-footer .footer-logo { margin: 0 auto 8px; height: 40px; }
@media (max-width: 760px) {
  .brand-logo { height: 34px; }
  .site-footer .footer-logo { height: 32px; }
}
nav { display: flex; gap: 30px; font-size: 14px; letter-spacing: 1px; }
nav a { color: rgba(255,255,255,.85); transition: color .25s; padding-bottom: 2px; }
nav a:hover, nav a.active { color: #fff; border-bottom: 1px solid rgba(255,255,255,.7); }
.site-header.solid nav a { color: var(--ink-soft); }
.site-header.solid nav a:hover, .site-header.solid nav a.active { color: var(--ink); border-color: var(--ink); }
.nav-admin { opacity: .6; }

/* ---------- 移动端汉堡菜单 ---------- */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px 2px; margin-left: 14px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .3s, background .35s; }
.site-header.solid .nav-toggle span { background: var(--ink); }

/* 手机端：导航收进汉堡按钮，点击展开全宽下拉面板 */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  nav { display: none; }
  .site-header.nav-open { background: rgba(250,249,246,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .site-header.nav-open .brand { color: var(--ink); }
  .site-header.nav-open .brand-logo { filter: invert(1); }
  .site-header.nav-open .nav-toggle span { background: var(--ink); }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header.nav-open nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(250,249,246,.97); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 6px 0 14px;
  }
  .site-header.nav-open nav a {
    color: var(--ink-soft); font-size: 15px; letter-spacing: 3px;
    padding: 13px 32px; border-bottom: none;
  }
  .site-header.nav-open nav a:hover, .site-header.nav-open nav a.active { color: var(--ink); border-bottom: none; }
  .site-header.nav-open nav .nav-admin { display: block; opacity: .6; }
}
@media (max-width: 560px) {
  .site-header.nav-open nav a { padding-inline: 18px; }
}

/* ---------- Hero ---------- */
/* 高度跟随屏幕（100svh 兼容手机地址栏），铺满首屏 */
.hero { position: relative; height: 100vh; height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
/* 展示图铺满；图片未就位时保持上一版的深色兜底 */
.hero-media { position: absolute; inset: 0; background: linear-gradient(160deg, #2b2620, #4a4038 60%, #1c1a17); background-size: cover; background-position: center; transform: scale(1.04); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media.has-image { background-color: transparent; }
/* 亮度回到上一版：恢复暗色遮罩 */
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,9,7,.55) 0%, rgba(10,9,7,.14) 45%, rgba(10,9,7,.26) 100%); }
/* 文字直接压在展示图上，用柔和投影保证可读性 */
.hero-content { position: relative; z-index: 2; padding-bottom: 110px; width: 100%; text-shadow: 0 1px 4px rgba(0,0,0,.55), 0 0 28px rgba(0,0,0,.3); }
.hero-kicker { font-size: 12px; letter-spacing: 5px; opacity: .8; margin-bottom: 18px; text-transform: uppercase; white-space: nowrap; }
/* 站名：字号随窗口缩放（vw 驱动），始终保持一行 */
.hero h1 { font-family: var(--serif); font-size: clamp(24px, 9.2vw, 84px); font-weight: 700; letter-spacing: .08em; line-height: 1.15; margin-bottom: 14px; white-space: nowrap; }
.hero-tagline { font-size: clamp(15px, 1.6vw, 19px); opacity: .88; max-width: 640px; margin-bottom: 0; }

/* ---------- 下滑指引（替代原 CTA 方框） ---------- */
.hero-scroll {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 30px; z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  color: rgba(255,255,255,.85); transition: color .3s;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
}
.hero-scroll:hover { color: #fff; }
.hero-scroll .hs-text { font-size: 11px; letter-spacing: 6px; text-indent: 6px; opacity: .75; }
.hero-scroll .hs-arrow {
  width: 13px; height: 13px;
  border-left: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
  animation: hsBounce 2s ease-in-out infinite;
}
@keyframes hsBounce {
  0%, 100% { transform: rotate(-45deg) translate(0, 0); opacity: .9; }
  50% { transform: rotate(-45deg) translate(5px, 5px); opacity: .4; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll .hs-arrow { animation: none; }
}
/* 手机端：改为文档流布局 —— 文字与「向下探索」上下排列，任何宽度都不可能重叠 */
@media (max-width: 760px) {
  .hero { flex-direction: column; justify-content: flex-end; }
  .hero-content { padding-bottom: 0; padding-left: 18px; padding-right: 18px; }
  /* 字号随视口收缩（含字距），保证 44 个字符的英文一行放下且不折行 */
  .hero-kicker { font-size: min(2.7vw, 12px); letter-spacing: .1em; }
  .hero-scroll { position: static; transform: none; margin: 30px auto 24px; }
}

/* ---------- 引言 ---------- */
.intro { padding: 110px 0 90px; }
.intro-inner { max-width: 820px; text-align: center; }
.intro-quote { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 28px); line-height: 1.9; color: var(--ink); }
.intro-quote::before { content: "“"; color: var(--accent); margin-right: 6px; }
.intro-quote::after { content: "”"; color: var(--accent); margin-left: 6px; }
.intro-rule { width: 48px; height: 1px; background: var(--accent); margin: 36px auto 0; }

/* ---------- 系列网格 ---------- */
.series-section { padding: 30px 0 120px; }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 48px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.section-head h2 { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: 2px; }
.section-head .en { font-size: 13px; color: var(--ink-soft); letter-spacing: 3px; font-weight: 300; }
.section-sub { margin-left: auto; color: var(--ink-soft); font-size: 13px; letter-spacing: 2px; }
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 34px; }
.series-card { position: relative; cursor: pointer; display: block; }
/* 封面完整铺满画框，文字直接压在照片底部（白色文字 + 投影，无黑色渐变条） */
.series-card .frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #26221d; }
.series-card .cover { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.6,.2,1), opacity .4s; }
.series-card:hover .cover { transform: scale(1.05); opacity: .9; }
.cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); font-family: var(--serif); font-size: 15px; letter-spacing: 3px; }
.series-card .meta { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 24px 26px 24px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6), 0 0 22px rgba(0,0,0,.35); }
.series-card .years { font-size: 12px; letter-spacing: 2px; opacity: .9; }
.series-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: 2px; margin: 4px 0 2px; }
.series-card .sub { font-size: 13px; opacity: .88; }
.series-card .count { position: absolute; top: 18px; right: 18px; font-size: 12px; letter-spacing: 2px; color: #fff; background: rgba(0,0,0,.35); padding: 5px 12px; backdrop-filter: blur(4px); }
.empty-hint { grid-column: 1/-1; text-align: center; color: var(--ink-soft); padding: 80px 0; border: 1px dashed var(--line); }
.empty-hint a { color: var(--accent); }

/* ---------- 系列详情页 ---------- */
.series-hero { padding: 150px 0 60px; border-bottom: 1px solid var(--line); }
.series-hero .years { color: var(--accent); font-size: 13px; letter-spacing: 3px; }
.series-hero h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 56px); letter-spacing: 3px; margin: 10px 0; }
.series-hero .desc { max-width: 720px; color: var(--ink-soft); margin-top: 14px; white-space: pre-wrap; }
.back-link { display: inline-block; font-size: 13px; letter-spacing: 2px; color: var(--ink-soft); margin-bottom: 26px; transition: color .2s; }
.back-link:hover { color: var(--accent); }

.photo-grid { padding: 56px 0 120px; columns: 3; column-gap: 26px; }
.photo-item { break-inside: avoid; margin-bottom: 26px; cursor: zoom-in; position: relative; overflow: hidden; background: #e9e5dc; }
.photo-item img { width: 100%; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.photo-item:hover img { transform: scale(1.03); }
.photo-item .cap { position: absolute; inset: auto 0 0 0; padding: 46px 16px 14px; background: linear-gradient(to top, rgba(8,7,5,.75), transparent); color: #fff; opacity: 0; transition: opacity .35s; }
.photo-item:hover .cap { opacity: 1; }
.photo-item .cap b { font-weight: 500; font-size: 14px; display: block; }
.photo-item .cap span { font-size: 12px; opacity: .8; }
.photo-item .cap .cap-exif { display: block; margin-top: 3px; font-size: 11px; opacity: .6; letter-spacing: .5px; }

/* ---------- 灯箱 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,11,9,.96); display: none; flex-direction: column; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 78vh; object-fit: contain; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.lb-meta { color: #fff; text-align: center; margin-top: 22px; }
.lb-meta b { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: 1px; }
.lb-meta p { font-size: 13px; opacity: .7; max-width: 560px; margin-top: 4px; }
.lb-exif { font-size: 12px !important; opacity: .55 !important; letter-spacing: .5px; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,.8); font-size: 44px; cursor: pointer; padding: 20px; font-family: serif; transition: color .2s; }
.lb-btn:hover { color: #fff; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-close { position: absolute; top: 20px; right: 26px; font-size: 30px; background: none; border: none; color: rgba(255,255,255,.8); cursor: pointer; }
.lb-count { position: absolute; top: 28px; left: 30px; color: rgba(255,255,255,.6); font-size: 13px; letter-spacing: 2px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 50px 0 60px; text-align: center; }
.site-footer p:first-child { font-family: var(--serif); font-size: 18px; letter-spacing: 4px; margin-bottom: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .photo-grid { columns: 2; }
  nav { gap: 16px; font-size: 12px; }
  .nav-admin { display: none; }
}
@media (max-width: 560px) {
  .photo-grid { columns: 1; }
  .wrap { padding: 0 18px; }
  .series-grid { grid-template-columns: 1fr; }
}
