/* cases.html 的样式（2026-10-11 从页面内联抽成独立文件 · 七平米公共母版规矩）
   ★ 样式一律独立文件，绝不引外部 CDN。 */

/* ===== cases.html 第 1 个样式块（公共母版抽离 2026-10-11）===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0f; --bg-alt: #111118;
  --card: rgba(255,255,255,0.035);
  --orange: #FF3A12; --orange-dark: #E02A06; --orange-text: #FF3A12;
  --heading: #ffffff; --text: #f5f5f7;
  --text-sec: rgba(255,255,255,0.65); --text-ter: rgba(255,255,255,0.35);
  --border: rgba(255,255,255,0.08);
  --nav-bg: rgba(10,10,15,0.88);
  --shadow: 0 18px 50px rgba(0,0,0,.55);
}
:root {
  --radius: 16px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1180px;
}
:root, html[data-theme="light"] {
  color-scheme: light;
  --bg: #FAF6EF; --bg-alt: #F2ECDF;
  --card: #ffffff;
  --orange: #FF3A12; --orange-dark: #E02A06; --orange-text: #FF3A12;
  --heading: #2A2118; --text: #33291E;
  --text-sec: #6E6353; --text-ter: #A2967F;
  --border: rgba(140,115,75,0.24);
  --nav-bg: rgba(250,246,239,0.92);
  --shadow: 0 14px 40px rgba(140,95,40,.16);
}
html.qpm-gray { filter: grayscale(100%); }
html.qpm-gray body > * { filter: grayscale(100%); }

body {
  background: var(--bg); color: var(--text);
  font-family: "Noto Sans SC","PingFang SC","Microsoft YaHei",-apple-system,sans-serif;
  font-size: 14px; line-height: 1.75; -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ============ 顶栏 ============ */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: var(--transition);
}
.top.scrolled { border-bottom-color: var(--border); }
.top-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.top-logo { display: block; }
.top-logo img { height: 34px; width: auto; display: block; }
.top-right { display: flex; align-items: center; gap: 10px; }
.top-back {
  color: var(--text-sec); text-decoration: none; font-size: 14px;
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px;
  transition: var(--transition); white-space: nowrap;
}
.top-back:hover { color: #fff !important; background: var(--orange); border-color: var(--orange); }
.theme-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--text-sec); cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; transition: var(--transition);
}
.theme-btn:hover { border-color: var(--orange); color: var(--orange-text); }
.theme-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.theme-btn .ico { display: none; }
.theme-btn[data-mode="auto"] .ico-auto,
.theme-btn[data-mode="light"] .ico-light,
.theme-btn[data-mode="dark"] .ico-dark { display: block; }

/* ============ 标题区 ============ */
.head { max-width: var(--max-w); margin: 0 auto; padding: 54px 24px 10px; text-align: center; }
.head .label {
  color: var(--orange-text); font-size: 13px; letter-spacing: 2.5px;
  font-weight: 600; text-transform: uppercase;
}
.head h1 { font-size: 30px; font-weight: 800; color: var(--heading); margin-top: 10px; letter-spacing: 1px; }
.head p { color: var(--text-sec); font-size: 14px; margin-top: 10px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ============ 相册 ============ */
.album { max-width: var(--max-w); margin: 0 auto; padding: 26px 24px 20px; }

/* ① 叠着的那一小摞 */
.stackwrap { display: flex; justify-content: center; padding: 20px 0 6px; }
.stack {
  position: relative; width: 260px; height: 200px; cursor: pointer;
  border: 0; background: none; padding: 0; outline-offset: 6px;
}
.stack-card {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-alt); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .5s cubic-bezier(.2,.85,.3,1);
  background-size: cover; background-position: center;
}
.stack:hover .stack-card { transform: translate(calc(var(--tx) * 2.1), calc(var(--ty) * 2.1)) rotate(calc(var(--rot) * 1.6)); }
.stack-hint {
  position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%);
  white-space: nowrap; color: var(--text-sec); font-size: 13px;
}
.stack-hint b { color: var(--orange-text); }
.stack-hint span { display: block; font-size: 12px; color: var(--text-ter); margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .stack-card, .shot { transition: none !important; animation: none !important; } }

/* ② 展开后的平铺网格 */
.gridwrap { display: none; }
.album.open .stackwrap { display: none; }
.album.open .gridwrap { display: block; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px; padding-top: 8px;
}
.shot {
  position: relative; border: 0; padding: 0; cursor: zoom-in; display: block;
  aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: var(--bg-alt); border: 1px solid var(--border);
  animation: shotIn .42s cubic-bezier(.2,.85,.3,1) both;
}
@keyframes shotIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.85,.3,1); }
.shot:hover img { transform: scale(1.05); }
.shot-cap {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: left;
  padding: 22px 14px 12px; color: #fff; font-size: 13px; line-height: 1.5;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
  opacity: 0; transform: translateY(6px); transition: var(--transition);
}
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; transform: none; }
.shot-cap b { display: block; font-size: 14px; }
.shot-cap i { font-style: normal; font-size: 12px; opacity: .85; }
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .shot-cap { display: none; }
}

.toolbar { display: flex; justify-content: center; padding: 4px 0 20px; }
.btn-ghost {
  border: 1px solid var(--border); background: transparent; color: var(--text-sec);
  border-radius: 999px; padding: 8px 20px; font-size: 14px; cursor: pointer;
  font-family: inherit; transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-text); }

/* ============ 灯箱 ============ */
.lb { position: fixed; inset: 0; z-index: 900; display: none; }
.lb.on { display: block; }
.lb-mask { position: absolute; inset: 0; background: rgba(0,0,0,.9); }
.lb-stage {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 60px 70px; pointer-events: none;
}
.lb-fig { max-width: 100%; max-height: 100%; text-align: center; pointer-events: auto; }
.lb-fig img {
  max-width: 100%; max-height: calc(100vh - 180px); object-fit: contain;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); background: rgba(255,255,255,.04);
}
.lb-cap { color: #F0EAE2; margin-top: 14px; font-size: 14px; }
.lb-cap b { display: block; color: #fff; font-size: 15px; }
.lb-cap i { font-style: normal; font-size: 13px; opacity: .72; }
.lb-x, .lb-a {
  position: absolute; z-index: 2; border: 0; background: rgba(255,255,255,.12); color: #fff;
  cursor: pointer; border-radius: 50%; width: 44px; height: 44px; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.lb-x:hover, .lb-a:hover { background: var(--orange); }
.lb-x { top: 20px; right: 20px; }
.lb-a { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-count {
  position: absolute; z-index: 2; top: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.72); font-size: 13px; letter-spacing: 1px;
}
@media (max-width: 640px) {
  .lb-stage { padding: 54px 12px 90px; }
  .lb-x { top: 12px; right: 12px; width: 38px; height: 38px; }
  .lb-a { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { left: calc(50% + 16px); right: auto; }
}

/* ============ 空状态 / 页脚 ============ */
.empty {
  text-align: center; color: var(--text-ter); padding: 50px 20px 30px;
  border: 1px dashed var(--border); border-radius: var(--radius); margin: 10px 0 20px;
}
.empty b { color: var(--text-sec); }
.foot {
  border-top: 1px solid var(--border); background: var(--bg);
  text-align: center; padding: 40px 24px 44px; margin-top: 40px;
}
.foot img.flogo { height: 40px; width: auto; display: block; margin: 0 auto 14px; }
.foot .fsl { color: var(--orange); font-size: 14px; letter-spacing: 1px; }
.foot .finfo { color: var(--text-ter); font-size: 13px; line-height: 1.9; margin-top: 12px; }
.foot .finfo a { color: var(--text-ter); text-decoration: none; }
.foot .finfo a:hover { color: var(--orange); }
.foot .fbj { color: var(--text-ter); font-size: 13px; line-height: 2; margin-top: 12px; }
.foot .fbj a { color: var(--text-ter); text-decoration: none; }
.foot .fbj a:hover { color: var(--orange); }
.foot .fbj img { height: 13px; width: auto; vertical-align: middle; margin-right: 6px; }
.foot .fbj .sep { margin: 0 8px; opacity: .5; }
@media (max-width: 420px) {
  .foot .fbj a { display: block; white-space: nowrap; }
  .foot .fbj .sep { display: none; }
}

/* qpm-scrollbar 全站统一：滚动条一律橙色圆角细（七平米公共母版 · 2026-10-11） */
html{scrollbar-width:thin;scrollbar-color:#FF3A12 transparent}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#FF3A12;border-radius:999px;border:2px solid transparent;background-clip:content-box}
::-webkit-scrollbar-thumb:hover{background:#E02A06;background-clip:content-box}
::-webkit-scrollbar-corner{background:transparent}
