/* ============================================================
   摄影作品集 — 样式（画集 / 杂志风）
   暖白纸底 · 墨黑大字 · 画集红点缀 · 细线网格
   ============================================================ */

:root {
  --bg: #faf7f2;          /* 暖纸白 */
  --bg-alt: #f3efe8;      /* 略深的纸色 */
  --surface: #ffffff;
  --ink: #16161a;         /* 墨黑 */
  --ink-dim: #6e6a63;     /* 灰墨 */
  --ink-faint: #b3ada2;   /* 淡灰 */
  --line: #e3ddd2;        /* 纸面分隔线 */
  --line-strong: #c9c1b2;
  --red: #d42a2a;         /* 画集红 */
  --red-soft: rgba(212, 42, 42, 0.08);
  --grad: linear-gradient(120deg, #d42a2a, #16161a);
  --radius: 4px;          /* 画集风：小圆角，硬朗 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
  --serif: "Songti SC", "STSong", "SimSun", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* hidden 属性必须优先于组件自身的 display 设置，否则 JS 设置 hidden 无效 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-brand {
  font-family: var(--mono);
  font-size: 14px; font-weight: 700; letter-spacing: 3px;
  color: var(--ink);
}
.nav-brand i { color: var(--red); font-style: normal; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--ink-dim);
  transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--red);
  transition: width 0.25s;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a.nav-cta {
  color: #fff;
  background: var(--ink);
  padding: 8px 20px; border-radius: 99px;
  transition: background 0.2s;
}
.nav-links a.nav-cta:hover { background: var(--red); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 24px 80px;
  background:
    radial-gradient(ellipse 55% 40% at 50% 28%, rgba(212, 42, 42, 0.05), transparent 70%),
    var(--bg);
}
/* 画集装饰：四角裁切标记 */
.hero::before, .hero::after {
  content: ""; position: absolute; width: 28px; height: 28px;
  border: 2px solid var(--ink);
}
.hero::before { top: 96px; left: 40px; border-right: none; border-bottom: none; }
.hero::after { bottom: 56px; right: 40px; border-left: none; border-top: none; }
.hero-inner { position: relative; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 6px;
  color: var(--red); margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ""; width: 36px; height: 1px; background: var(--red);
}
.hero-title {
  font-size: clamp(64px, 12vw, 160px);
  font-weight: 900; line-height: 1.0; letter-spacing: 0.01em;
  margin-bottom: 28px;
  color: var(--ink);
}
.hero-title em {
  font-style: normal;
  -webkit-text-stroke: 2px var(--ink);
  -webkit-text-fill-color: transparent;
}
.hero-tagline {
  font-size: clamp(15px, 2.2vw, 20px);
  color: var(--ink-dim); font-weight: 400; letter-spacing: 0.3em;
  margin-bottom: 20px;
  font-family: var(--serif);
}
.hero-sub {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px;
  color: var(--ink-faint); margin-bottom: 48px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-scroll {
  position: absolute; bottom: 32px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 3px;
  color: var(--ink-faint);
  animation: float 2.4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 36px; border-radius: 99px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.08em;
  border: 1.5px solid transparent;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- 通用 Section ---------- */
.section { padding: 110px 40px; max-width: 1280px; margin: 0 auto; }
.section-alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-alt > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.section-head {
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: 52px;
}
.section-no {
  font-family: var(--mono); font-size: 14px; color: var(--red);
  letter-spacing: 2px; font-weight: 700;
}
.section-title {
  font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: 0.06em;
}
.section-title small {
  display: block; font-size: 12px; font-weight: 400;
  color: var(--ink-faint); letter-spacing: 4px; margin-top: 4px;
  font-family: var(--mono);
}
.section-line { flex: 1; height: 1px; background: var(--line-strong); align-self: center; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 作品集 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.tab {
  padding: 9px 22px; border-radius: 99px;
  background: transparent; border: 1.5px solid var(--line-strong);
  color: var(--ink-dim); font-size: 14px;
  transition: all 0.2s;
}
.tab:hover { color: var(--ink); border-color: var(--ink); }
.tab.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.tab .tab-count { font-size: 12px; opacity: 0.7; margin-left: 4px; }

/* 封面：瀑布流原比例，图片铺满卡宽，无内部留白、不裁切 */
.works-grid { column-count: 3; column-gap: 20px; }
@media (max-width: 1020px) { .works-grid { column-count: 2; } }
@media (max-width: 620px) { .works-grid { column-count: 1; } }

.work-card {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: zoom-in; position: relative;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 14px 40px rgba(22, 22, 26, 0.12);
}
.work-card-media { overflow: hidden; position: relative; background: var(--bg-alt); }
.work-card img, .work-card video {
  width: 100%; height: auto; object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.work-card:hover img, .work-card:hover video { transform: scale(1.04); }
.work-card-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px;
  background: var(--ink); color: #fff;
  padding: 4px 10px;
}
.work-card-body { padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.work-card-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.02em; }
.work-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.work-card-tags span {
  font-size: 12px; color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  padding: 2px 10px; border-radius: 99px;
}
.works-empty { text-align: center; color: var(--ink-faint); padding: 60px 0; font-size: 15px; }

/* ---------- 套餐 ---------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.price-card {
  background: var(--surface); border: 1.5px solid var(--line-strong);
  padding: 34px 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 14px 40px rgba(22,22,26,0.10); }
.price-card.popular { border-color: var(--red); }
.price-card-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  padding: 4px 16px; border-radius: 99px;
  white-space: nowrap;
}
.price-name { font-size: 17px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.04em; }
.price-value { display: flex; align-items: baseline; gap: 4px; margin-bottom: 26px; }
.price-currency { font-size: 20px; color: var(--red); font-weight: 700; }
.price-num { font-size: 48px; font-weight: 900; line-height: 1; color: var(--ink); }
.price-unit { font-size: 13px; color: var(--ink-faint); margin-left: 6px; }
.price-items { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.price-items li {
  font-size: 14px; color: var(--ink-dim);
  padding-left: 22px; position: relative;
}
.price-items li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 12px; height: 2px; background: var(--red);
}
.pricing-note { text-align: center; color: var(--ink-faint); font-size: 13px; margin-top: 28px; }

/* ---------- 流程 ---------- */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0; counter-reset: step;
}
.step {
  counter-increment: step;
  padding: 28px 18px 24px;
  position: relative;
  border-top: 2px solid var(--line-strong);
  transition: border-color 0.3s;
}
.step:hover { border-top-color: var(--red); }
.step::before {
  content: "0" counter(step);
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px;
  color: var(--red); display: block; margin-bottom: 14px; font-weight: 700;
}
.step::after {
  content: ""; position: absolute; top: -7px; left: 0;
  width: 12px; height: 12px;
  background: var(--bg); border: 2px solid var(--red);
  opacity: 0; transition: opacity 0.3s;
}
.step:hover::after { opacity: 1; }
.step-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--ink-dim); line-height: 1.6; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } .step { border-top: none; border-left: 2px solid var(--line-strong); } .step::after { top: 24px; left: -7px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 关于我 ---------- */
.about-text {
  max-width: 760px; margin: 0 auto;
  font-size: 16px; color: var(--ink-dim);
  line-height: 2.2;
  white-space: pre-wrap;
  text-align: center;
  font-family: var(--serif);
}
.about-quote {
  text-align: center; margin-bottom: 28px;
  font-size: 40px; line-height: 1; color: var(--red);
  font-family: var(--serif);
}

/* ---------- 互勉合作 ---------- */
.mutual-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  padding: 42px 44px 40px;
}
.mutual-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--red);
}
.mutual-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
}
.mutual-intro {
  font-size: 16px; line-height: 2; color: var(--ink);
  max-width: 720px;
}
.mutual-quota {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px;
  color: #fff; background: var(--red);
  padding: 7px 16px; border-radius: 99px; white-space: nowrap;
}
.mutual-conditions {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 32px;
  margin-bottom: 26px;
}
.mutual-conditions li {
  font-size: 14px; color: var(--ink-dim); line-height: 1.7;
  padding-left: 20px; position: relative;
}
.mutual-conditions li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 10px; height: 2px; background: var(--red);
}
.mutual-note {
  font-size: 13px; color: var(--ink-faint);
  font-family: var(--serif); line-height: 1.9;
  margin-bottom: 28px;
  padding-top: 20px; border-top: 1px dashed var(--line-strong);
}
@media (max-width: 720px) { .mutual-card { padding: 28px 22px; } }

/* ---------- 联系区：微信卡片 + 表单 ---------- */
.contact-grid {
  display: grid; grid-template-columns: 340px 1fr;
  gap: 28px; align-items: start;
  max-width: 1080px; margin: 0 auto;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.wechat-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  padding: 30px 24px 26px;
  text-align: center;
}
.wechat-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  padding: 4px 14px; border-radius: 99px;
}
.wechat-card h3 { font-size: 18px; font-weight: 900; margin-bottom: 20px; letter-spacing: 0.04em; }
.qr-wrap {
  width: 190px; height: 190px; margin: 0 auto 18px;
  background: var(--bg-alt);
  border: 1px dashed var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.qr-wrap img { width: 100%; height: 100%; object-fit: contain; }
.qr-empty { font-size: 12px; color: var(--ink-faint); letter-spacing: 1px; }
.wechat-id-row {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  font-size: 13px; color: var(--ink-dim); margin-bottom: 14px;
}
.wechat-id-row b { font-family: var(--mono); font-size: 15px; color: var(--ink); letter-spacing: 0.5px; }
.wechat-copy { width: 100%; padding: 11px 0; font-size: 14px; }
.wechat-note {
  font-size: 12px; color: var(--ink-faint); margin-top: 14px; line-height: 1.8;
  font-family: var(--serif);
}

.form-inline { max-width: none; margin: 0; }
.form-alt-tip {
  font-size: 13px; color: var(--ink-faint);
  border-left: 2px solid var(--line-strong);
  padding-left: 12px; margin-bottom: 4px;
}

/* ---------- 表单 ---------- */
.form { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-dim); font-weight: 600; }
.form input, .form select, .form textarea {
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  padding: 12px 14px;
  font-size: 15px; font-family: inherit; font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form input::placeholder, .form textarea::placeholder { color: var(--ink-faint); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.form textarea { resize: vertical; }
.btn-submit { align-self: flex-start; margin-top: 6px; }
.form-msg { font-size: 14px; font-weight: 600; }
.form-msg.ok { color: #1a9e4b; }
.form-msg.err { color: var(--red); }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line-strong);
  padding: 52px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  background: var(--bg-alt);
}
.footer-social { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.social-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line-strong); border-radius: 99px;
  padding: 8px 18px; font-size: 13px; color: var(--ink-dim);
  transition: all 0.2s;
}
.social-pill:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.social-pill svg { width: 15px; height: 15px; fill: currentColor; }
.footer-copy { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 2px; }
.footer-admin { font-size: 12px; color: var(--ink-faint); text-decoration: underline; }
.footer-admin:hover { color: var(--red); }

/* ---------- 作品组详情 ---------- */
.album-view {
  position: fixed; inset: 0; z-index: 150;
  background: var(--bg);
  overflow-y: auto;
  padding: 40px;
  animation: av-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes av-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.av-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px; margin-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
}
.av-back {
  background: none; border: none; padding: 0;
  font-size: 14px; color: var(--ink-dim); font-weight: 600;
  margin-bottom: 16px; transition: color 0.2s;
}
.av-back:hover { color: var(--red); }
.av-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: 0.03em; }
.av-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; }
.av-cat { color: var(--red); font-weight: 700; }
.av-count { color: var(--ink-dim); }
.av-date { color: var(--ink-faint); }
.av-close {
  background: var(--surface); border: 1.5px solid var(--line-strong);
  color: var(--ink); border-radius: 50%;
  width: 44px; height: 44px; font-size: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.av-close:hover { border-color: var(--red); color: var(--red); transform: rotate(90deg); }
.av-desc {
  max-width: 720px;
  font-size: 15px; color: var(--ink-dim); line-height: 2;
  white-space: pre-wrap;
  font-family: var(--serif);
  margin-bottom: 18px;
}
.av-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.av-tags span {
  font-size: 12px; color: var(--red);
  border: 1px solid var(--red); border-radius: 99px; padding: 3px 12px;
}
/* 详情页：统一画框 + 双轴居中（留白左右对称，不裁切） */
.av-grid {
  display: flex; flex-direction: column; align-items: center;
  gap: 30px;
  max-width: 1100px; margin: 0 auto;
}
.av-photo {
  box-sizing: border-box;
  width: 100%; max-width: 880px;
  height: 70vh; min-height: 380px; max-height: 780px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-in; overflow: hidden; position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.av-photo:hover { border-color: var(--ink); box-shadow: 0 10px 30px rgba(22, 22, 26, 0.12); }
.av-photo img, .av-photo video {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.av-photo:hover img, .av-photo:hover video { transform: scale(1.02); }
@media (max-width: 720px) {
  .av-photo { height: 50vh; min-height: 280px; padding: 8px; }
}
.av-photo-no {
  position: absolute; bottom: 10px; right: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px;
  background: rgba(22, 22, 26, 0.75); color: #fff;
  padding: 3px 9px;
}
@media (max-width: 720px) { .album-view { padding: 20px; } }

/* ---------- 悬浮加微信按钮 ---------- */
.float-wx {
  position: fixed; right: 22px; bottom: 22px; z-index: 120;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 0.05em;
  padding: 11px 20px; border-radius: 99px;
  box-shadow: 0 8px 24px rgba(212, 42, 42, 0.32);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
  opacity: 0; pointer-events: none;
}
.float-wx.show { opacity: 1; pointer-events: auto; }
.float-wx:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(212, 42, 42, 0.42); }
@media (max-width: 720px) {
  .float-wx { right: 14px; bottom: 14px; padding: 10px 16px; font-size: 12px; }
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(250, 247, 242, 0.97);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  animation: lb-in 0.25s ease;
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
/* 竖向排布：图片吃满可用空间，说明压缩成底部一行 */
.lb-figure {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%; height: 100%;
  animation: lb-up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes lb-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* 媒体区：flex 居中，但显式 align-items:center 防止图片被拉伸变形 */
.lb-media {
  flex: 1; width: 100%; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: auto;
}
.lb-media img, .lb-media video {
  width: auto; height: auto;
  max-width: 100%;
  max-height: calc(100vh - 132px);
  object-fit: contain;
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 50px rgba(22, 22, 26, 0.16);
  cursor: zoom-in;
}
/* 放大：原始像素 1:1，超出部分滚动/拖动查看 */
.lb-media.zoomed { align-items: flex-start; justify-content: flex-start; cursor: grab; }
.lb-media.zoomed:active { cursor: grabbing; }
.lb-media.zoomed img, .lb-media.zoomed video {
  max-width: none; max-height: none;
  cursor: zoom-out;
}
/* 底部一行说明：极小占位 */
.lb-caption {
  width: auto; flex-shrink: 0;
  display: flex; align-items: baseline; flex-wrap: wrap; justify-content: center;
  gap: 10px;
  padding-bottom: 2px;
}
.lb-caption h3 { font-size: 15px; font-weight: 700; margin: 0; }
.lb-caption p { display: none; }          /* 简介在详情页已展示，灯箱不占空间 */
.lb-tags { display: none; }               /* 标签同理 */
.lb-count { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 1.5px; }
.lb-size { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.5px; }
.lb-orig {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--red); background: transparent;
  border: 1px solid var(--red); border-radius: 99px;
  padding: 3px 10px;
  transition: all 0.2s;
}
.lb-orig:hover { background: var(--red); color: #fff; }
.lb-orig.loading { opacity: 0.5; pointer-events: none; }
.lb-hint { font-size: 11px; color: var(--ink-faint); margin: 0; letter-spacing: 0.5px; }
.lb-close, .lb-nav {
  position: absolute;
  background: var(--surface); border: 1.5px solid var(--line-strong);
  color: var(--ink); border-radius: 50%;
  width: 38px; height: 38px; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  opacity: 0.9;
}
.lb-close:hover, .lb-nav:hover { border-color: var(--red); color: var(--red); opacity: 1; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 900px) {
  .lb-media img, .lb-media video { max-height: calc(100vh - 150px); }
  .lb-nav { top: auto; bottom: 52px; transform: none; }
  .lb-prev { left: 14px; } .lb-next { right: 14px; }
  .lb-hint { display: none; }
}

/* ---------- 响应式 ---------- */
/* 手机端汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 8px;
  background: none; border: 1.5px solid var(--line-strong); border-radius: 8px;
}
.nav-toggle i {
  display: block; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; }

@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  /* 手机端：只留 logo + 汉堡，导航项全部进菜单 */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu {
    display: block;
    position: fixed; top: 60px; right: 14px; left: auto;
    z-index: 99;
    min-width: 170px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    padding: 6px;
    box-shadow: 0 14px 34px rgba(22, 22, 26, 0.14);
    animation: mm-in 0.18s ease;
  }
  @keyframes mm-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .mobile-menu a {
    display: block; padding: 11px 14px;
    font-size: 15px; font-weight: 600; color: var(--ink);
    border-radius: 6px;
  }
  .mobile-menu a + a { border-top: 1px solid var(--line); border-radius: 0; }
  .mobile-menu a:active { background: var(--bg-alt); }
  .mobile-menu a.mm-cta { color: var(--red); }
  .section { padding: 72px 20px; }
  .hero::before, .hero::after { display: none; }
  .footer { padding: 40px 20px; }
}
