:root {
  --bg: #0b0b0c;
  --bg-2: #151517;
  --bg-3: #1c1c1f;
  --fg: #eeece8;
  --fg-2: #a6a49f;
  --fg-3: #6f6e6a;
  --line: rgba(255, 255, 255, .08);
  --ambient: 120 112 104;
  --heart: #ff5d73;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --side: clamp(14px, 2.6vw, 44px);
  --top: 64px;
  --tabbar: 0px;
  --font: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; min-height: 100svh; }
button { font: inherit; color: inherit; }
a { color: inherit; }
svg { display: block; }
::selection { background: rgba(var(--ambient), .5); }
:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 2px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--top);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--side);
  transition: background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.solid {
  background: rgba(11, 11, 12, .74);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--line);
}
.brand {
  justify-self: start; display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 500; letter-spacing: .36em; text-decoration: none;
}
.brand-mark { width: 26px; height: 26px; flex: none; filter: drop-shadow(0 4px 12px rgba(156, 195, 213, .25)); }
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgb(var(--ambient)); box-shadow: 0 0 16px rgb(var(--ambient));
  transition: background 1s var(--ease), box-shadow 1s var(--ease);
}
.nav { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.nav a {
  height: 34px; padding: 0 18px; border-radius: 999px; display: grid; place-items: center;
  font-size: 14px; letter-spacing: .12em; text-decoration: none; color: var(--fg-2);
  transition: background .2s, color .2s;
}
.nav a:hover { color: var(--fg); }
.nav a.active { background: rgba(255, 255, 255, .13); color: var(--fg); }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 4px; position: relative; }
.icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: transparent; cursor: pointer; transition: background .2s;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }
.icon-btn svg { width: 20px; height: 20px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--ambient), .35); font-size: 13px; font-weight: 500;
}
.menu {
  position: absolute; top: 48px; right: 0; min-width: 190px; padding: 6px;
  background: rgba(24, 24, 26, .94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
  pointer-events: none; transition: opacity .18s, transform .18s var(--ease);
}
.menu.open { opacity: 1; transform: none; pointer-events: auto; }
.menu-head { padding: 10px 12px 8px; color: var(--fg-3); font-size: 12px; letter-spacing: .06em; }
.menu a, .menu button {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px;
  border: 0; border-radius: 9px; background: none; font-size: 14px; text-decoration: none; cursor: pointer; text-align: left;
}
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, .08); }

/* 手机底部标签栏 */
.tabbar { display: none; }

/* ---------- 首屏 ---------- */
.hero { position: relative; height: min(92vh, 1000px); min-height: 560px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: -12%; z-index: -3; background: center / cover no-repeat;
  filter: blur(70px) saturate(1.3) brightness(.5); transform: scale(1.1);
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero-bg.in { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(11, 11, 12, .55) 22%, rgba(11, 11, 12, 0) 55%),
    linear-gradient(to right, rgba(11, 11, 12, .8) 0%, rgba(11, 11, 12, .2) 50%, rgba(11, 11, 12, 0) 70%);
}
.hero-photo {
  position: absolute; right: clamp(24px, 7vw, 140px); top: 104px; bottom: 88px; z-index: -1;
  display: flex; align-items: center; justify-content: flex-end;
  border: 0; padding: 0; background: none; cursor: zoom-in;
}
.hero-photo img {
  max-height: 100%; max-width: min(52vw, 960px); border-radius: 6px;
  box-shadow: 0 50px 140px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .07);
  opacity: 0; transform: translateY(16px) scale(.985);
  transition: opacity .65s var(--ease), transform 1.2s var(--ease), filter .5s var(--ease);
}
.hero-photo img.in { opacity: 1; transform: none; }

/* 首屏轮播进度：10 段细条，鼠标停在照片上时暂停 */
.hero-progress { display: flex; align-items: center; gap: 16px; margin-top: 34px; max-width: 420px; }
.hp-bars { flex: 1; display: flex; gap: 5px; }
.hp-seg {
  flex: 1; height: 14px; padding: 6px 0; border: 0; background: none; cursor: pointer;
}
.hp-seg::before { content: ""; display: block; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.hp-seg i {
  display: block; height: 2px; margin-top: -2px; border-radius: 2px; background: rgba(255, 255, 255, .9);
  transform-origin: left center; transform: scaleX(0);
  transition: transform .2s linear;
}
.hp-seg:hover::before { background: rgba(255, 255, 255, .4); }
.hp-count { font-size: 12px; letter-spacing: .14em; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.hp-state {
  font-size: 12px; letter-spacing: .12em; color: var(--fg-2);
  opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s var(--ease);
}
.hero-progress.paused .hp-state { opacity: 1; transform: none; }
.hero-progress.paused .hp-seg i { background: rgb(var(--ambient)); }
.hero-copy { position: absolute; left: clamp(20px, 7vw, 140px); bottom: clamp(64px, 12vh, 140px); max-width: 560px; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .5em; color: var(--fg-2); }
.hero h1 { margin: 18px 0; line-height: .95; font-size: clamp(72px, 9.5vw, 168px); font-weight: 200; letter-spacing: .1em; }
.hero .meta { margin: 0; color: var(--fg-2); font-size: 15px; letter-spacing: .06em; }
.hero .meta b { color: var(--fg); font-weight: 500; }
.actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 22px; height: 34px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 12px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: rgba(255, 255, 255, .6); animation: hint 2s var(--ease) infinite;
}
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- 按钮 ---------- */
.btn {
  height: 48px; padding: 0 24px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 15px; font-weight: 500; letter-spacing: .04em; cursor: pointer; text-decoration: none;
  transition: background .2s, transform .2s var(--ease), border-color .2s;
}
.btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--fg); color: #111; border-color: transparent; }
.btn.primary:hover { background: #fff; }
.btn.ghost { height: 38px; padding: 0 16px; font-size: 13px; color: var(--fg-2); }
.btn svg { width: 18px; height: 18px; }

/* ---------- 页面 ---------- */
.page { padding: calc(var(--top) + 8px) var(--side) calc(120px + var(--tabbar)); min-height: 100svh; }
.page.home { padding-top: 0; }
.page-head { position: relative; padding: 56px 2px 8px; }
.page-head h1 { margin: 0; font-size: clamp(44px, 5vw, 76px); font-weight: 200; letter-spacing: .08em; line-height: 1.05; }
.page-head p { margin: 14px 0 0; color: var(--fg-2); font-size: 14px; letter-spacing: .06em; }
.page-head p.desc { max-width: 640px; line-height: 1.7; }
.page-head .btn { margin-top: 20px; }
.album-head { padding-top: 72px; padding-bottom: 28px; isolation: isolate; }
.ph-bg {
  position: absolute; inset: -40px calc(-1 * var(--side)) 0; z-index: -1;
  background: center / cover no-repeat; filter: blur(60px) saturate(1.3) brightness(.4);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  opacity: .9;
}
.crumbs { font-size: 13px; letter-spacing: .08em; color: var(--fg-3); margin-bottom: 14px; }
.crumbs a { text-decoration: none; color: var(--fg-2); }
.crumbs a:hover { color: var(--fg); }

.shelf { margin-top: 48px; }
.home .shelf:first-child { margin-top: 12px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 2px 18px; }
.shelf-head h2 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: .14em; }
.shelf-head h2 span { color: var(--fg-3); font-weight: 400; margin-left: 10px; letter-spacing: .04em; }
.shelf-head > a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-2); text-decoration: none; letter-spacing: .06em; }
.shelf-head > a svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.shelf-head > a:hover { color: var(--fg); }
.shelf-head > a:hover svg { transform: translateX(3px); }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.seg button {
  height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none;
  color: var(--fg-2); font-size: 13px; cursor: pointer; transition: background .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .14); color: var(--fg); }

/* ---------- 照片网格 ---------- */
.day { margin-top: 44px; }
.day:first-child { margin-top: 0; }
.day-head { display: flex; align-items: baseline; gap: 14px; margin: 0 2px 14px; }
.day-head h3 { margin: 0; font-size: 22px; font-weight: 300; letter-spacing: .06em; }
.day-head span { color: var(--fg-3); font-size: 13px; letter-spacing: .08em; }
.row { display: flex; gap: 4px; margin-bottom: 4px; }
.tile {
  position: relative; flex: none; overflow: hidden; background: var(--bg-2);
  border-radius: 3px; cursor: zoom-in;
}
.tile img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.02);
  transition: opacity .7s var(--ease), transform 1s var(--ease), filter .5s var(--ease);
}
.tile img.ok { opacity: 1; transform: none; }
.tile:hover img.ok { transform: scale(1.04); }
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
  background: linear-gradient(to bottom, rgba(0, 0, 0, .35), transparent 30%);
  opacity: 0; transition: opacity .25s;
}
.tile:hover::after { opacity: 1; }
.tile-fav {
  position: absolute; top: 8px; right: 8px; z-index: 1; width: 34px; height: 34px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .32); color: #fff; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s var(--ease), background .2s;
}
.tile-fav svg { width: 18px; height: 18px; }
.tile:hover .tile-fav, .tile-fav:focus-visible { opacity: 1; transform: none; }
.tile-fav:hover { background: rgba(0, 0, 0, .55); }
.tile-fav.on { opacity: 1; transform: none; color: var(--heart); background: rgba(0, 0, 0, .25); }

.strip {
  display: flex; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  margin: 0 calc(-1 * var(--side)); padding: 0 var(--side);
  scroll-snap-type: x proximity;
}
.strip::-webkit-scrollbar { display: none; }
.strip .tile { scroll-snap-align: start; }

/* ---------- 发现页：今日卡片 ---------- */
.today {
  display: grid; gap: 16px;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(200px, auto));
}
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 22px 24px; border-radius: 18px; overflow: hidden;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
  color: var(--fg); text-decoration: none; text-align: left; font: inherit;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
button.card, a.card { cursor: pointer; }
button.card:hover, a.card:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
button.card:active, a.card:active { transform: scale(.985); }
.card-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .24em; color: var(--fg-2); }
.card-kicker svg { width: 16px; height: 16px; }
.card-note { font-size: 13px; color: var(--fg-3); letter-spacing: .04em; line-height: 1.6; }
.card-btn {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border: 0; background: none; color: var(--fg); font-size: 14px; letter-spacing: .04em; cursor: pointer;
}
.card-btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.card-btn:hover svg, a.card:hover .card-btn svg { transform: translateX(3px); }

.daily { grid-row: span 2; padding: 0; min-height: 420px; justify-content: flex-end; border: 0; }
.daily img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.03); transition: opacity .8s var(--ease), transform 1.4s var(--ease), filter .5s var(--ease);
}
.daily img.ok { opacity: 1; transform: none; }
.daily:hover img.ok { transform: scale(1.03); }
.daily-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .1) 45%, transparent 70%); }
.daily-copy { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 28px; }
.daily-copy .card-kicker { color: rgba(255, 255, 255, .78); }
.daily-copy strong { font-size: 30px; font-weight: 300; letter-spacing: .06em; }
.daily-copy em { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .65); letter-spacing: .06em; }

.ring-row { display: flex; align-items: center; gap: 18px; }
.ring { width: 80px; height: 80px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring-bg { stroke: rgba(255, 255, 255, .08); }
.ring-fg { stroke: rgb(var(--ambient)); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease), stroke 1s; }
.ring-row b, .streak-num b { display: block; font-size: 34px; font-weight: 300; letter-spacing: .02em; line-height: 1.1; }
.ring-row small, .streak-num small { font-size: 13px; color: var(--fg-2); letter-spacing: .06em; }
.streak-num { display: flex; align-items: baseline; gap: 10px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 64px; }
.week span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.week i { width: 100%; max-width: 18px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.week i.on { background: rgb(var(--ambient)); }
.week em { font-style: normal; font-size: 11px; color: var(--fg-3); }

.lucky-card { align-items: flex-start; }
.lucky-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(var(--ambient), .18); color: rgb(var(--ambient));
  transition: transform .4s var(--ease);
}
.lucky-icon svg { width: 30px; height: 30px; }
.lucky-card:hover .lucky-icon { transform: rotate(-12deg) scale(1.06); }
.lucky-card strong, .new-card strong { font-size: 26px; font-weight: 300; letter-spacing: .06em; }
.new-card strong { font-size: 40px; letter-spacing: .02em; }

/* ---------- 相册卡片 ---------- */
.album-row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 21vw, 360px); gap: 20px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; }
.album-row::-webkit-scrollbar { display: none; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.shelf .album-grid { margin-top: 0; }
.album { display: block; text-decoration: none; }
.album-cover {
  position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg-3);
  box-shadow: 0 0 0 1px var(--line);
}
.album-cover::before, .album-cover::after {
  content: ""; position: absolute; left: 8%; right: 8%; height: 6px; border-radius: 10px 10px 0 0;
  background: rgba(255, 255, 255, .06); top: -6px;
}
.album-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transform: scale(1.02); transition: opacity .7s var(--ease), transform 1.2s var(--ease), filter .5s var(--ease);
}
.album-cover img.ok { opacity: 1; transform: none; }
.album:hover .album-cover img.ok { transform: scale(1.05); }
.album-meta { padding: 14px 2px 0; }
.album-meta h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: .04em; }
.album-meta span { display: block; margin-top: 6px; color: var(--fg-3); font-size: 13px; letter-spacing: .04em; }

/* ---------- 空状态 / 提示 ---------- */
.empty { padding: 96px 16px; text-align: center; }
.empty h2 { margin: 0; font-size: 22px; font-weight: 300; letter-spacing: .08em; }
.empty p { margin: 14px auto 28px; max-width: 420px; color: var(--fg-2); font-size: 14px; line-height: 1.8; }
.inline-ic { display: inline-block; vertical-align: -3px; }
.inline-ic svg { width: 16px; height: 16px; }
.loading-row { padding: 48px 0; color: var(--fg-3); font-size: 13px; letter-spacing: .3em; text-align: center; }
.foot { display: flex; justify-content: center; padding: 72px 0 0; color: var(--fg-3); font-size: 12px; letter-spacing: .12em; }
.toast {
  position: fixed; left: 50%; bottom: calc(28px + var(--tabbar)); z-index: 200000;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; background: rgba(30, 30, 33, .95); border: 1px solid var(--line);
  font-size: 14px; transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 搜索层 ---------- */
.search-layer {
  position: fixed; inset: 0; z-index: 50; padding: 14vh var(--side) 0;
  background: rgba(8, 8, 9, .82); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.search-layer.open { opacity: 1; pointer-events: auto; }
.search-box {
  max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 14px;
  padding: 0 8px 0 22px; height: 64px; border-radius: 20px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  transform: translateY(-8px); transition: transform .3s var(--ease);
}
.search-layer.open .search-box { transform: none; }
.search-box > svg { width: 22px; height: 22px; color: var(--fg-2); flex: none; }
.search-box input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--fg);
  font: 300 22px var(--font); letter-spacing: .04em;
}
.search-box input:focus { outline: none; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-hint { max-width: 720px; margin: 24px auto 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-hint span { color: var(--fg-3); font-size: 12px; letter-spacing: .2em; margin-right: 6px; }
.search-hint a {
  padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07);
  font-size: 13px; text-decoration: none; color: var(--fg-2);
}
.search-hint a:hover { color: var(--fg); background: rgba(255, 255, 255, .12); }

/* ---------- 查看器 ---------- */
.pswp { --pswp-bg: #050506; --pswp-icon-color: rgba(255, 255, 255, .88); }
.pswp-ambient {
  position: absolute; inset: -15%; background: center / cover no-repeat;
  filter: blur(90px) saturate(1.4) brightness(.55);
  opacity: 0; transition: opacity .6s var(--ease); pointer-events: none;
}
.pswp.amb-on .pswp-ambient { opacity: 1; }
.pswp__pg-caption {
  position: absolute; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom));
  text-align: center; color: rgba(255, 255, 255, .62); font: 13px var(--font); letter-spacing: .1em;
  pointer-events: none; transition: opacity .3s;
}
.pswp:not(.pswp--ui-visible) .pswp__pg-caption { opacity: 0; }
.pswp__button--download, .pswp__button--slide, .pswp__button--fav { display: grid; place-items: center; }
.pswp__button--download svg, .pswp__button--slide svg { width: 22px; height: 22px; fill: none; stroke: var(--pswp-icon-color); }
.pswp__button--fav svg { width: 23px; height: 23px; color: var(--pswp-icon-color); }
.pswp__button--fav.on svg { color: var(--heart); }

/* ---------- 隐私模糊：每次打开都默认开启，右上角手动关闭 ---------- */
.privacy-toggle svg { width: 20px; height: 20px; }
.privacy-toggle.on { color: rgb(var(--ambient)); }
.pswp__button--privacy { display: grid; place-items: center; color: var(--pswp-icon-color); }
.pswp__button--privacy svg { width: 22px; height: 22px; }
.pswp__button--privacy.on { color: rgb(var(--ambient)); }
.pswp__img { transition: filter .5s var(--ease); }
body.privacy .tile img,
body.privacy .album-cover img,
body.privacy .blurable { filter: var(--fam-veil, blur(22px) saturate(.85) brightness(.72)); clip-path: inset(0); }
body.privacy .hero-photo img { filter: blur(42px) saturate(.5) brightness(.58); clip-path: inset(0 round 6px); }
body.privacy .pswp__img { filter: blur(50px) brightness(.75); clip-path: inset(0); }
body.privacy .hero-bg { filter: blur(110px) saturate(1.1) brightness(.4); }
.privacy-hint {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; letter-spacing: .1em; color: rgba(255, 255, 255, .85); white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
}
.privacy-hint svg { width: 16px; height: 16px; }
body.privacy .privacy-hint { opacity: 1; }
.hero-photo .privacy-hint { left: auto; right: 50%; transform: translate(50%, -50%); }

/* ---------- 登录 / 状态 ---------- */
.center { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.login {
  background:
    radial-gradient(900px 520px at 72% 18%, rgba(var(--ambient), .22), transparent 62%),
    radial-gradient(700px 420px at 12% 92%, rgba(80, 90, 120, .14), transparent 60%),
    var(--bg);
}
.login form { width: min(360px, 100%); display: grid; gap: 12px; }
.login h1 { margin: 0; font-size: 64px; font-weight: 200; letter-spacing: .14em; }
.login p { margin: 4px 0 28px; color: var(--fg-2); font-size: 14px; letter-spacing: .08em; }
.field {
  height: 50px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); color: var(--fg); font: 15px var(--font);
  transition: border-color .2s, background .2s;
}
.field:focus { outline: none; border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .07); }
.login .btn { width: 100%; margin-top: 8px; }
.err { min-height: 20px; color: #ff9b8f; font-size: 13px; }
.loading { color: var(--fg-3); font-size: 13px; letter-spacing: .4em; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- 平板 ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 0 12px; letter-spacing: .06em; }
  .today { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .daily { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }
}

/* ---------- 手机 ---------- */
@media (max-width: 720px) {
  :root { --side: 0px; --top: 56px; }
  body.has-tabbar { --tabbar: calc(58px + env(safe-area-inset-bottom)); }
  .topbar { grid-template-columns: 1fr auto; padding: 0 8px 0 18px; }
  .nav { display: none; }
  .tabbar {
    position: fixed; inset: auto 0 0; z-index: 30; height: var(--tabbar);
    display: grid; grid-template-columns: repeat(6, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(11, 11, 12, .82); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    text-decoration: none; color: var(--fg-3); font-size: 11px; letter-spacing: .1em;
    transition: color .2s;
  }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--fg); }

  .hero { height: 80svh; min-height: 500px; }
  .hero-bg { display: none; }
  .hero-photo { inset: 0; z-index: -2; }
  .hero-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; box-shadow: none; }
  body.privacy .hero-photo img { clip-path: inset(0); }
  .hero-photo .privacy-hint { top: 34%; }
  .hero-shade {
    z-index: -1;
    background: linear-gradient(to top, var(--bg) 0%, rgba(11, 11, 12, .7) 26%, rgba(11, 11, 12, .1) 55%, rgba(11, 11, 12, .35) 100%);
  }
  .hero-copy { left: 20px; right: 20px; bottom: 30px; }
  .hero h1 { font-size: 68px; margin: 12px 0; }
  .actions { margin-top: 24px; }
  .hero-progress { margin-top: 22px; max-width: none; gap: 12px; }
  .btn { height: 46px; padding: 0 20px; }
  .scroll-hint { display: none; }

  .page-head { padding: 36px 18px 4px; }
  .page-head h1 { font-size: 44px; }
  .album-head { padding-top: 44px; padding-bottom: 20px; }
  .ph-bg { inset: -30px 0 0; }
  .shelf { margin-top: 36px; }
  .shelf-head { margin: 0 14px 14px; }
  .seg button { padding: 0 11px; }
  .day { margin-top: 32px; }
  .day-head { margin: 0 14px 10px; }
  .day-head h3 { font-size: 19px; }
  .row { gap: 2px; margin-bottom: 2px; }
  .tile { border-radius: 0; }
  .tile::after, .tile-fav:not(.on) { display: none; }
  .tile-fav.on { width: 26px; height: 26px; top: 5px; right: 5px; }
  .tile-fav.on svg { width: 14px; height: 14px; }
  .strip { gap: 2px; padding: 0 14px; margin: 0; }
  .album-row { grid-auto-columns: 64%; gap: 12px; padding: 0 14px; }
  .today { gap: 10px; padding: 0 14px; }
  .daily { min-height: 300px; border-radius: 16px; }
  .daily-copy { padding: 20px; }
  .daily-copy strong { font-size: 24px; }
  .card { padding: 16px; border-radius: 16px; gap: 10px; }
  .ring-row { gap: 10px; }
  .ring { width: 56px; height: 56px; }
  .ring-row b, .streak-num b { font-size: 26px; }
  .streak-num { flex-direction: column; gap: 2px; }
  .week { gap: 4px; height: 48px; }
  .lucky-icon { width: 46px; height: 46px; border-radius: 14px; }
  .lucky-card strong { font-size: 22px; }
  .new-card strong { font-size: 32px; }
  .card-note { font-size: 12px; }
  .shelf-head .btn.ghost { height: 32px; padding: 0 12px; font-size: 12px; }
  .tabbar a { font-size: 10px; letter-spacing: .04em; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; padding: 0 14px; margin-top: 20px; }
  .album-cover { border-radius: 8px; }
  .album-meta { padding-top: 10px; }
  .album-meta h3 { font-size: 15px; }
  .album-meta span { font-size: 12px; margin-top: 4px; }
  .search-layer { padding-top: 10px; }
  .search-box { margin: 0 10px; height: 54px; border-radius: 16px; }
  .search-box input { font-size: 18px; }
  .search-hint { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---------- 三站统一（2026-11-11）----------
 * 字体、滚动条、选中色、焦点这些三站共用的部分在 family.css（与片库、私影同一份，
 * 源文件在 emby-web-custom/app/public/family.css）。这里只是图库自己的对应：
 * 标题和大数字用思源宋体（--fam-serif），其余是黑体；字重只用 400 / 500 / 700 / 900。
 * 只覆盖字体相关的属性，布局与配色不动；删除这一段和 family.css 即恢复原样。 */
:root { --fam-acc: #9cc3d5; }
.brand, .hero h1, .page-head h1, .shelf-head h2, .day-head h3, .daily-copy strong, .lucky-card strong, .new-card strong,
.ring-row b, .streak-num b, .empty h2, .login h1 { font-family: var(--fam-serif, serif); }
.brand { gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: .1em; }
.nav a { font-weight: 500; letter-spacing: 0; padding: 0 16px; }
.eyebrow { letter-spacing: .32em; font-weight: 500; }
.hero h1 { font-size: clamp(60px, 7vw, 120px); font-weight: 900; letter-spacing: .08em; }
.page-head h1 { font-size: clamp(28px, 2.5vw, 38px); font-weight: 700; letter-spacing: .03em; line-height: 1.2; }
.page-head p { letter-spacing: 0; }
.shelf-head h2 { font-size: 21px; font-weight: 700; letter-spacing: .03em; }
.shelf-head h2 span { font-family: var(--fam-sans, sans-serif); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.shelf-head > a { letter-spacing: 0; }
.day-head h3 { font-size: 21px; font-weight: 700; letter-spacing: .03em; }
.card-kicker { letter-spacing: .08em; font-weight: 500; }
.daily-copy strong { font-size: 28px; font-weight: 700; letter-spacing: .03em; }
.ring-row b, .streak-num b { font-weight: 700; letter-spacing: 0; }
.lucky-card strong, .new-card strong { font-weight: 700; letter-spacing: .03em; }
.empty h2 { font-size: 21px; font-weight: 700; letter-spacing: .03em; }
.hp-count { letter-spacing: .06em; }
.login h1 { font-size: 46px; font-weight: 900; letter-spacing: .12em; }
.login-mark { display: block; width: 52px; height: 52px; margin-bottom: 18px; filter: drop-shadow(0 6px 16px rgba(156, 195, 213, .28)); }
.avatar { font-weight: 700; }
/* 小字不再拉开字距（原设计给几乎所有文字都加了字距，和宋体标题放在一起显得散）；
 * 只有纯英文的小标题 .eyebrow 保留。 */
.menu-head, .hp-count, .hp-state, .hero .meta, .btn, .crumbs, .day-head span, .card-note, .card-btn, .daily-copy em,
.ring-row small, .streak-num small, .album-meta h3, .album-meta span, .login p, .search-hint span, .foot { letter-spacing: 0; }
.card-kicker { letter-spacing: .04em; }
.loading, .loading-row { letter-spacing: .12em; }
#search-input { font-weight: 400; letter-spacing: 0; }
/* “探索进度”卡片：圆环在卡片里上下居中，不再顶在上面、下面空一大块 */
.card .ring-row { margin-block: auto; }
/* 加载与换页的反馈，与片库、私影同款：顶部一条强调色细线；新页面内容淡入（只动透明度，
 * 不位移——首页大图是固定定位的，位移会让它跳一下）。 */
#busy { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: linear-gradient(90deg, transparent, var(--fam-acc), transparent) no-repeat; background-size: 40% 100%; }
body.busy #busy { opacity: 1; animation: busy 1s linear infinite; }
@keyframes busy { from { background-position: -40% 0; } to { background-position: 140% 0; } }
#view.in { animation: view-in .3s var(--ease); }
@keyframes view-in { from { opacity: 0; } }
/* 顶栏骨架与片库、私影一致：站名 → 导航（靠左）→ 搜索 → 眼睛 → 账户。胶囊导航、圆形按钮、
 * 手机悬浮底栏的样子在 family.css。 */
.topbar { display: flex; gap: 22px; }
.top-actions { margin-left: auto; }
.topbar .icon-btn.search-pill { width: 300px; height: 38px; padding: 0 12px 0 14px; border-radius: 999px; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .045); color: var(--fg-3); font-size: 14px; letter-spacing: 0; margin-right: 6px; cursor: text; }
.topbar .icon-btn.search-pill:hover { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: var(--fg-2); }
.search-pill svg { width: 16px; height: 16px; flex: none; }
.search-pill span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-pill kbd { flex: none; min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .12); border-bottom-width: 2px; background: rgba(255, 255, 255, .06); font: 600 11px/1 var(--font); color: var(--fg-2); }
.privacy-hint { gap: 8px; padding: 9px 16px 9px 14px; font-size: 13px; font-weight: 500; letter-spacing: .04em; background: rgba(0, 0, 0, .38); }
.topbar .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  background: linear-gradient(145deg, #3a404a, #262b32); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
@media (max-width: 1100px) { .topbar .icon-btn.search-pill { width: 200px; } }
@media (max-width: 760px) {
  .topbar .icon-btn.search-pill { width: 38px; padding: 0; border: 0; background: transparent; display: inline-grid; place-items: center; margin-right: 0; color: var(--fg-2); cursor: pointer; }
  .search-pill span, .search-pill kbd { display: none; }
  .search-pill svg { width: 20px; height: 20px; }
  body.has-tabbar { --tabbar: calc(74px + env(safe-area-inset-bottom)); }
  .hero h1 { font-size: 58px; }
  .page-head h1 { font-size: 27px; }
  .shelf-head h2, .day-head h3 { font-size: 19px; }
  .daily-copy strong { font-size: 23px; }
  .brand { font-size: 18px; }
}

/* ---------- 2026-11-11 实测后修的 ---------- */
/* 查看器里的“已模糊”提示：PhotoSwipe 给自己的元素加了 .pswp--ui-visible .pswp__hide-on-close { opacity: 1 }，
 * 优先级比 .privacy-hint 高，结果没模糊时提示也一直在。这里明确：只有模糊着才显示。 */
.pswp .privacy-hint { opacity: 0; }
body.privacy .pswp--ui-visible .privacy-hint { opacity: 1; }
/* 电脑上查看器的左右箭头一直显示（原来带触屏的电脑要先动一下鼠标才出现） */
@media (hover: hover) and (pointer: fine) { .pswp--touch .pswp__button--arrow { visibility: visible; } }
/* 首屏轮播：上一张 / 下一张 */
.hero { touch-action: pan-y; }
.hero-progress { width: 460px; max-width: calc(100vw - 40px); }
.hp-nav { display: inline-flex; gap: 6px; flex: none; }
.hp-nav button { width: 34px; height: 34px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: var(--fg);
  transition: background .2s, border-color .2s, transform .2s var(--ease); }
.hp-nav button:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.hp-nav button:active { transform: scale(.92); }
.hp-nav svg { width: 18px; height: 18px; }
.hp-state { min-width: 3.2em; }
@media (max-width: 760px) {
  .hero-progress { width: auto; max-width: none; }
  .hp-nav button { width: 38px; height: 38px; }
  .hp-state { display: none; }
}
/* 搜索结果：相册和照片之间隔开 */
.shelf-head.search-photos { margin-top: 48px; }
@media (max-width: 760px) { .shelf-head.search-photos { margin-top: 32px; } }
.card-note { text-wrap: pretty; }

/* ---------- 刷图（feed.js，2026-11-23）：一屏一张，左右划 ----------
 * 照片完整显示（contain），四周铺这张照片自己的模糊放大；电脑上照片在两条边栏之间，
 * 右边栏放按钮，照片左右两侧是 ‹ › 箭头；手机上整屏，顶栏和底栏都收起。 */
body.gf-on { overflow: hidden; }
.gf { --gx: 0px; position: fixed; inset: var(--top) 0 0; z-index: 20; background: #000; color: #fff; overflow: hidden; }
body.gf-fs .gf { inset: 0; z-index: 40; }
.gf-list { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.gf-list::-webkit-scrollbar { display: none; }
.gf-s { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.gf-s::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; z-index: 2; pointer-events: none; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); transition: opacity .2s; }
.gf-bg { position: absolute; inset: -8%; background: center / cover no-repeat; filter: blur(48px) saturate(1.25) brightness(.42); }
.gf-img { position: absolute; top: 0; bottom: 0; left: var(--gx); width: calc(100% - 2 * var(--gx)); height: 100%; object-fit: contain; background: center / contain no-repeat; -webkit-user-drag: none; }
body.privacy .gf-img { filter: blur(50px) brightness(.75); clip-path: inset(0); }
body.privacy .gf-bg { filter: blur(80px) saturate(1.1) brightness(.32); }
.gf-s .privacy-hint { z-index: 3; }

/* 顶上：返回、顺序、换一批、自动播放、模糊 */
.gf-top { position: absolute; inset: 0 0 auto; z-index: 6; display: flex; align-items: center; gap: 6px;
  padding: calc(8px + env(safe-area-inset-top)) calc(var(--gx) + 10px) 22px; background: linear-gradient(rgba(0, 0, 0, .5), transparent); pointer-events: none; transition: opacity .2s; }
.gf-top > * { pointer-events: auto; }
.gf-modes { display: flex; gap: 2px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.gf-modes::-webkit-scrollbar { display: none; }
.gf-mode { display: inline-flex; align-items: center; gap: 2px; padding: 7px 12px; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, .72);
  font: 600 15px/1 var(--font); white-space: nowrap; text-decoration: none; cursor: pointer; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.gf-mode:hover { color: #fff; }
.gf-mode.on { color: #fff; background: rgba(255, 255, 255, .16); }
.gf-mode svg { width: 14px; height: 14px; }
.gf-tools { display: flex; gap: 2px; }
.gf-ib { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; text-decoration: none; transition: background .15s, transform .12s; }
.gf-ib:hover { background: rgba(255, 255, 255, .14); }
.gf-ib:active { transform: scale(.94); }
.gf-ib:disabled { opacity: .3; cursor: default; }
.gf-ib svg { width: 21px; height: 21px; }
.gf-autobtn[aria-pressed="true"] { color: rgb(var(--ambient)); background: rgba(255, 255, 255, .1); }

/* 左下：哪天入库、相册、第几张 */
.gf-info { position: absolute; left: calc(var(--gx) + 16px); right: calc(var(--gx) + 84px); bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); pointer-events: none; transition: opacity .2s; }
.gf-info b { font-size: 17px; font-weight: 700; }
.gf-info span { font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.gf-info a { color: #fff; text-decoration: none; pointer-events: auto; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.gf-info small { font-size: 12px; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }

/* 右边一列：收藏、大图、相册、全屏 */
.gf-rail { position: absolute; right: calc(var(--gx) + 10px); bottom: calc(34px + env(safe-area-inset-bottom)); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 14px; transition: opacity .2s; }
.gf-act { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer;
  font: 600 11.5px/1.2 var(--font); text-decoration: none; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.gf-act i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font-style: normal; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .14); transition: background .15s, transform .12s; }
.gf-act svg { width: 23px; height: 23px; }
.gf-act:hover i { background: rgba(255, 255, 255, .16); }
.gf-act:active i { transform: scale(.92); }
.gf-act i.on { color: var(--heart); }

/* 自动播放：底边一条细线，走完换下一张 */
.gf-prog { position: absolute; left: calc(var(--gx) + 16px); right: calc(var(--gx) + 16px); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 4; height: 3px; border-radius: 3px; overflow: hidden;
  background: rgba(255, 255, 255, .2); opacity: 0; pointer-events: none; transition: opacity .2s; }
.gf-prog b { display: block; height: 100%; background: rgb(var(--ambient)); transform: scaleX(0); transform-origin: left; }
.gf.auto .gf-s.on .gf-prog { opacity: 1; }
.gf-s.run .gf-prog b { animation: gfprog var(--gf-secs, 5s) linear forwards; }
.gf:is(.hold, .p-hidden, .p-viewer) .gf-prog b { animation-play-state: paused; }
@keyframes gfprog { to { transform: scaleX(1); } }

/* 单击：只看照片；按住：只看照片并暂停 */
.gf:is(.bare, .hold) :is(.gf-top, .gf-info, .gf-rail, .gf-nav),
.gf:is(.bare, .hold) .gf-s::after { opacity: 0; pointer-events: none; }
.gf:is(.bare, .hold) .gf-top > * { pointer-events: none; }

/* 双击收藏的心 */
.gf-burst { position: absolute; z-index: 5; width: 96px; height: 96px; margin: -48px 0 0 -48px; color: var(--heart); pointer-events: none; animation: gfburst .9s var(--ease) forwards; }
.gf-burst svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 18px rgba(255, 93, 115, .5)); }
@keyframes gfburst { 0% { opacity: 0; transform: scale(.4) rotate(-10deg); } 15% { opacity: 1; transform: scale(1.15) rotate(-10deg); } 30% { transform: scale(.95) rotate(-10deg); } 70% { opacity: 1; transform: translateY(-10px) rotate(-10deg); } 100% { opacity: 0; transform: scale(1.4) translateY(-60px) rotate(-10deg); } }

/* 电脑上照片左右两侧的 ‹ ›（第一张没有 ‹，刷完了没有 ›） */
.gf-nav { position: absolute; top: 50%; z-index: 5; width: 46px; height: 46px; translate: 0 -50%; background: rgba(0, 0, 0, .32); border: 1px solid rgba(255, 255, 255, .14); transition: opacity .2s, background .15s; }
.gf-nav:hover { background: rgba(0, 0, 0, .55); }
.gf-nav:active { transform: scale(.94); }
.gf-nav svg { width: 24px; height: 24px; }
.gf-nav:disabled { opacity: 0; pointer-events: none; }
/* 电脑上可以用鼠标按住照片左右拖 */
@media (hover: hover) and (pointer: fine) { .gf-s[data-i] { cursor: grab; } }
.gf.dragging .gf-list { scroll-snap-type: none; }
.gf.dragging .gf-s[data-i] { cursor: grabbing; }
.gf-prev { left: calc(var(--gx) + 14px); }
.gf-next { right: calc(var(--gx) + 14px); }
.gf-end { display: grid; place-items: center; padding: 24px; text-align: center; background: #050506; }
.gf-end b { font-size: 20px; }
.gf-end p { margin: 8px 0 18px; color: var(--fg-2); }
.gf-end .btn { margin: 4px; }

/* 更多：其余顺序和各个相册（手机上从底部弹出） */
.gf-menu-bg { position: fixed; inset: 0; z-index: 75; }
.gf-menu { position: fixed; z-index: 76; width: 290px; max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 14px; background: rgba(28, 28, 32, .97); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .55); color: var(--fg); opacity: 0; transform: translateY(-4px); transition: opacity .14s, transform .14s; }
.gf-menu.in { opacity: 1; transform: none; }
.gf-menu.sheet { left: 0; right: 0; bottom: 0; width: auto; max-height: 80vh; border-radius: 20px 20px 0 0; padding: 8px 10px calc(14px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .24s var(--ease); }
.gf-menu.sheet.in { transform: none; }
.gf-mt { padding: 10px 12px 6px; font-size: 12.5px; color: var(--fg-3); }
.gf-mi { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--fg); text-decoration: none; }
.gf-mi:hover { background: rgba(255, 255, 255, .08); }
.gf-mi svg { width: 16px; height: 16px; margin-top: 2px; flex: none; color: rgb(var(--ambient)); visibility: hidden; }
.gf-mi.on svg { visibility: visible; }
.gf-mi b { display: block; font-size: 14.5px; font-weight: 600; }
.gf-mi small { display: block; margin-top: 2px; font-size: 12px; color: var(--fg-3); }
.album-feed { margin-top: 14px; }

@media (min-width: 761px) and (min-height: 521px) {
  .gf { --gx: 110px; }
  .gf-back, .gf-top .privacy-toggle { display: none; }
  .gf-rail { right: 30px; bottom: 30px; }
}
@media (max-width: 760px), (max-height: 520px) {
  body.gf-on .topbar, body.gf-on .tabbar { display: none !important; }
  .gf { inset: 0; }
  .gf-nav { display: none; }
  .gf-top { padding-left: 6px; padding-right: 6px; gap: 2px; }
  .gf-mode { padding: 6px 9px; font-size: 14.5px; }
}
@media (max-height: 520px) {
  .gf-rail { gap: 10px; bottom: 22px; }
  .gf-act i { width: 38px; height: 38px; }
  .gf-act span { display: none; }
  .gf-info b { font-size: 15px; }
}

/* ---------- 2026-11-27 手机排查 ---------- */
/* 区块标题右边的按钮、链接不被挤成两行（“换一天”曾断成“换一 / 天”） */
.shelf-head > .btn, .shelf-head > a { flex: none; white-space: nowrap; }
.shelf-head h2 { min-width: 0; }
.nw { white-space: nowrap; }
@media (max-width: 720px) {
  /* 标题后面的说明放到下一行，不在日期中间断开 */
  .shelf-head h2 span { display: block; margin: 5px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* 首屏：铺满会裁掉太多的照片（多是横图）整张显示在文字上方，四周铺这张照片的模糊放大（见 main.js fitHero） */
  .hero.whole .hero-bg { display: block; }
  .hero.whole .hero-photo { top: var(--hp-t, 62px); bottom: var(--hp-b, 300px); }
  .hero.whole .hero-photo img { object-fit: contain; }
  body.privacy .hero.whole .hero-photo img { clip-path: none; }
}
/* 刷图顶栏：手机窄屏上“更多”曾被右边的按钮盖住一半 */
@media (max-width: 400px) {
  .gf-top { gap: 0; }
  .gf-top .gf-ib { width: 36px; height: 36px; }
  .gf-top .gf-ib svg { width: 20px; height: 20px; }
  .gf-tools { gap: 0; }
  .gf-mode { padding: 6px 7px; font-size: 14px; }
}
