/* ==========================================================================
   写真馆 · 前台主题（叠加在 site.css 之上，只覆盖写真站需要的部分）
   --------------------------------------------------------------------------
   · 深色底 + 品红 / 紫渐变强调色
   · 竖版 3:4 套图卡、瀑布式图集、锁屏式的未付费预览
   · 同时把后台里用到的小组件（模特头像、迷你图集）一起补上
   ========================================================================== */

:root,
:root[data-theme="dark"] {
  --bg: #0b0710;
  --bg-soft: #120c1a;
  --panel: #171021;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4ecf6;
  --muted: #a99ab4;
  --dim: #7e6f8c;
  --accent: #ff6f91;
  --danger: #ff5c7a;
  --warn: #ffc861;
  --ok: #45d98b;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  --ph-grad: linear-gradient(120deg, #ff6f91, #b45cf0 55%, #6d5cff);
  --ph-grad-soft: linear-gradient(120deg, rgba(255, 111, 145, 0.16), rgba(180, 92, 240, 0.12));
  --ph-max: 1280px;
}

:root[data-theme="light"] {
  --bg: #fdf7f8;
  --bg-soft: #f8eef1;
  --panel: #ffffff;
  --line: rgba(60, 20, 40, 0.1);
  --text: #241723;
  --muted: #6e5a68;
  --dim: #9c8794;
  --accent: #e0527a;
  --shadow: 0 16px 40px rgba(80, 20, 45, 0.12);
  --ph-grad: linear-gradient(120deg, #ff8aa5, #c46ef0 55%, #7d6cff);
  --ph-grad-soft: linear-gradient(120deg, rgba(255, 138, 165, 0.14), rgba(196, 110, 240, 0.1));
}

/* ---------------------------------------------------------------- 站点外壳 */

body.ph {
  background: radial-gradient(1200px 600px at 82% -8%, rgba(255, 111, 145, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 8%, rgba(150, 92, 255, 0.14), transparent 60%), var(--bg);
}

body.ph .site-head {
  background: linear-gradient(180deg, rgba(20, 10, 26, 0.9), rgba(12, 7, 16, 0.72));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
:root[data-theme="light"] body.ph .site-head {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(253, 247, 248, 0.82));
}

body.ph .logo-mark {
  background: var(--ph-grad);
  box-shadow: 0 10px 26px rgba(255, 111, 145, 0.35);
}
body.ph .nav-link.on {
  color: #fff;
  background: var(--ph-grad-soft);
  border-radius: 999px;
}
:root[data-theme="light"] body.ph .nav-link.on { color: #a12a4f; }

body.ph .btn.primary {
  background: var(--ph-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 30px rgba(210, 80, 190, 0.28);
}
body.ph .btn.primary:hover { filter: brightness(1.08); }

body.ph main { min-height: 60vh; }
body.ph .site-foot { border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- 通用容器 */

.ph-page,
.ph-detail { max-width: var(--ph-max); margin: 0 auto; padding: 22px 22px 42px; }

.ph-crumb { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.ph-crumb a { color: var(--muted); }
.ph-crumb a:hover { color: var(--accent); }
.ph-crumb span { color: var(--text); }

.ph-muted { color: var(--muted); font-size: 13px; }
.ph-note {
  max-width: var(--ph-max);
  margin: 8px auto 0;
  padding: 16px 22px 40px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.9;
  border-top: 1px dashed var(--line);
}
.ph-note a { color: var(--accent); }

.ph-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.ph-empty a { color: var(--accent); }

/* ---------------------------------------------------------------- 首页 Hero */

.ph-hero {
  position: relative;
  max-width: var(--ph-max);
  margin: 22px auto 0;
  border-radius: 26px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.ph-hero.no-art { background: var(--ph-grad); }
.ph-hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  /* 没有轮播图时退回单张封面 */
  background-image: var(--hero-cover);
  background-size: cover;
  background-position: center 22%;
}
/* 轮播幻灯片：多张图交叉淡入（动画时长/延迟由页面内联指定） */
.ph-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0;
  filter: saturate(1.12) brightness(0.74);
  animation-name: phHeroFade;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  backface-visibility: hidden;
}
.ph-hero-slide:only-child { opacity: 1; animation: none; }
.ph-hero-art:has(.ph-hero-slide) { background-image: none; }
.ph-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 4, 14, 0.92) 8%, rgba(9, 4, 14, 0.55) 52%, rgba(9, 4, 14, 0.1)),
    linear-gradient(0deg, rgba(9, 4, 14, 0.86), transparent 55%);
  z-index: -1;
}
.ph-hero.no-art::after { background: radial-gradient(60% 90% at 20% 30%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45)); }
/* 轮播时暗色遮罩轻一点，让照片更透亮 */
.ph-hero:has(.ph-hero-slide)::after {
  background: linear-gradient(90deg, rgba(9, 4, 14, 0.9) 6%, rgba(9, 4, 14, 0.5) 50%, rgba(9, 4, 14, 0.08)),
    linear-gradient(0deg, rgba(9, 4, 14, 0.8), transparent 58%);
}
@media (prefers-reduced-motion: reduce) {
  .ph-hero-slide { animation: none !important; opacity: 0; }
  .ph-hero-slide:first-child { opacity: 1; }
}
.ph-hero-inner { padding: 58px 54px 42px; max-width: 720px; }
.ph-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #ffd9e4;
  text-transform: uppercase;
}
.ph-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  color: #fff;
  letter-spacing: 0.5px;
}
.ph-hero h1 span {
  display: block;
  font-size: 0.52em;
  font-weight: 600;
  color: #ffc6d6;
  letter-spacing: 0.24em;
  margin-top: 8px;
}
.ph-hero-sub { margin: 0 0 22px; color: rgba(255, 255, 255, 0.82); font-size: 15px; line-height: 1.8; }
.ph-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.ph-hero-cta .btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.ph-hero-stats {
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.ph-hero-stats li { display: flex; flex-direction: column; }
.ph-hero-stats b { font-size: 24px; color: #fff; font-variant-numeric: tabular-nums; }
.ph-hero-stats span { font-size: 12px; color: rgba(255, 255, 255, 0.66); letter-spacing: 0.12em; }

/* ---------------------------------------------------------------- 区块 */

.ph-sec { max-width: var(--ph-max); margin: 34px auto 0; }
.ph-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}
.ph-sec-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.04em;
  position: relative;
  padding-left: 14px;
}
.ph-sec-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 18px;
  margin-top: -9px;
  border-radius: 3px;
  background: var(--ph-grad);
}
.ph-more { font-size: 13px; color: var(--muted); }
.ph-more:hover { color: var(--accent); }

/* ---------------------------------------------------------------- 分类 chips */

.ph-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.ph-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 13px;
  transition: 0.18s;
}
.ph-chip i {
  font-style: normal;
  font-size: 11px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 1px 6px;
}
.ph-chip:hover { color: var(--text); border-color: rgba(255, 111, 145, 0.45); transform: translateY(-1px); }
.ph-chip.on {
  color: #fff;
  border-color: transparent;
  background: var(--ph-grad);
  box-shadow: 0 10px 24px rgba(210, 80, 190, 0.25);
}
.ph-chip.on i { color: #fff; background: rgba(0, 0, 0, 0.18); }
:root[data-theme="light"] .ph-chip.on { color: #fff; }

/* ---------------------------------------------------------------- 套图卡片 */

.ph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 20px;
}
.ph-grid.hot { grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); }

.ph-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.ph-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 111, 145, 0.45);
  box-shadow: 0 18px 40px rgba(120, 20, 70, 0.28);
}
.ph-card.is-new { border-color: rgba(255, 111, 145, 0.5); }
.ph-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--bg-soft) center/cover no-repeat;
  overflow: hidden;
}
.ph-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 34%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0.9;
}
.ph-card-badge,
.ph-card-new,
.ph-card-shots {
  position: absolute;
  z-index: 2;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.ph-card-badge { top: 10px; left: 10px; background: rgba(0, 0, 0, 0.42); color: #ffe5ee; }
.ph-card-new { top: 10px; right: 10px; background: #ff6f91; color: #2a0612; font-weight: 800; letter-spacing: 0.08em; }
.ph-card-shots { bottom: 10px; right: 10px; background: rgba(0, 0, 0, 0.5); color: #fff; }
.ph-card-veil {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 4, 14, 0.42);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.ph-card-veil i {
  font-style: normal;
  font-size: 13px;
  color: #1a0510;
  background: #fff;
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 700;
}
.ph-card:hover .ph-card-veil { opacity: 1; }
.ph-card-info { padding: 13px 14px 15px; }
.ph-card-info h3 { margin: 0 0 7px; font-size: 15px; line-height: 1.45; }
.ph-card-info h3 a { color: var(--text); }
.ph-card-info h3 a:hover { color: var(--accent); }
.ph-card-sub { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; }
.ph-model-mini { font-size: 12px; color: var(--muted); }
.ph-model-mini:hover { color: var(--accent); }
.ph-card-sales { font-size: 11px; color: var(--dim); }
.ph-card-foot { display: flex; justify-content: space-between; align-items: baseline; }
.ph-price { color: #ffb0c6; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.ph-price.free { color: var(--ok); }
.ph-card-foot s { color: var(--dim); font-size: 12px; margin-left: 6px; }
.ph-card-date { font-size: 11px; color: var(--dim); }

/* ---------------------------------------------------------------- 模特 */

.ph-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 16px; }
.ph-models.big { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.ph-model {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
  transition: 0.2s;
}
.ph-model:hover { border-color: rgba(255, 111, 145, 0.45); transform: translateY(-3px); }
.ph-model-av {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-soft) center/cover no-repeat;
  border: 2px solid rgba(255, 111, 145, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 111, 145, 0.08);
}
.ph-models.big .ph-model-av { width: 92px; height: 92px; }
.ph-model b { font-size: 14px; color: var(--text); }
.ph-model i { font-style: normal; font-size: 11px; color: var(--dim); }
.ph-model-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.ph-model-tags em {
  font-style: normal;
  font-size: 10px;
  color: #ffc0d2;
  background: rgba(255, 111, 145, 0.14);
  border-radius: 999px;
  padding: 2px 7px;
}

/* ---------------------------------------------------------------- VIP 条 */

.ph-vip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 111, 145, 0.3);
  background: linear-gradient(120deg, rgba(255, 111, 145, 0.16), rgba(120, 60, 220, 0.16));
}
.ph-vip b { font-size: 17px; }
.ph-vip p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- 列表页 */

.ph-list-head { margin-bottom: 18px; }
.ph-list-head h1 { margin: 0 0 6px; font-size: 28px; }
.ph-sub { margin: 0; color: var(--muted); font-size: 13px; }

.ph-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.ph-filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ph-filter-lead { font-size: 12px; color: var(--dim); min-width: 34px; letter-spacing: 0.08em; }

.ph-pager { margin-top: 26px; }

/* ---------------------------------------------------------------- 详情 */

.ph-detail .ph-crumb { padding: 0 2px; }

.ph-dhero {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.ph-dhero-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: var(--bg-soft) center/cover no-repeat;
  overflow: hidden;
  border: 1px solid var(--line);
}
.ph-dhero-no,
.ph-dhero-new {
  position: absolute;
  z-index: 2;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.ph-dhero-no { bottom: 12px; left: 12px; background: rgba(0, 0, 0, 0.46); color: #fff; letter-spacing: 0.1em; }
.ph-dhero-new { top: 12px; right: 12px; background: #ff6f91; color: #2a0612; font-weight: 800; }

.ph-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ph-dinfo h1 { margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; }
.ph-summary { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.8; }

.ph-modelcard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin: 0 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 111, 145, 0.24);
  background: var(--ph-grad-soft);
}
.ph-modelcard .ph-model-av { width: 56px; height: 56px; }
.ph-modelcard-body { display: flex; flex-direction: column; gap: 2px; }
.ph-modelcard-body b { font-size: 15px; }
.ph-modelcard-body i { font-style: normal; font-size: 12px; color: var(--muted); }
.ph-modelcard-link { font-size: 12px; color: var(--accent); margin-top: 2px; }

.ph-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.ph-meta.compact { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.ph-meta div {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ph-meta span { font-size: 11px; color: var(--dim); }
.ph-meta b { font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }

.ph-price-row { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 14px; }
.ph-big-price { font-size: 32px; font-weight: 900; color: #ffb0c6; font-variant-numeric: tabular-nums; }
.ph-big-price.free { color: var(--ok); }
.ph-price-row s { color: var(--dim); font-size: 14px; }
.ph-price-unit { font-size: 12px; color: var(--dim); }

.ph-buy { margin-bottom: 14px; }
.ph-buy-form { margin: 0; }
.ph-buy-form .btn { width: 100%; }
.ph-buy-done {
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(69, 217, 139, 0.4);
  background: rgba(69, 217, 139, 0.1);
  color: #9ff0c4;
  font-size: 13px;
}
.ph-vip-teaser {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: #ffc0d2;
  border-bottom: 1px dashed rgba(255, 176, 198, 0.55);
}
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ph-actions form { margin: 0; }

/* 面板 */
.ph-panel {
  padding: 20px 22px;
  margin: 20px 0 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}
.ph-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.ph-panel-head h2 { margin: 0; font-size: 16px; letter-spacing: 0.04em; }
.ph-panel-count { font-size: 12px; color: var(--dim); }

.ph-mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0 20px;
  align-items: start;
}
.ph-mid .ph-panel { margin-top: 20px; }

/* 网盘 / 锁定框 */
.ph-pan { display: flex; flex-direction: column; gap: 10px; }
.ph-pan-note { margin: 0 0 4px; font-size: 13px; color: #9ff0c4; }
.ph-pan-row { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.ph-pan-row span { color: var(--dim); min-width: 42px; }
.ph-pan-row a { color: #ffc0d2; word-break: break-all; }
.ph-pan-row code {
  font-family: var(--mono);
  font-size: 13px;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffe1ea;
}
.ph-lockbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 111, 145, 0.45);
  background: rgba(255, 111, 145, 0.07);
}
.ph-lockbox b { font-size: 14px; }
.ph-lockbox p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.ph-lock-acts { display: flex; gap: 8px; margin-top: 4px; }

.ph-desc { font-size: 14px; line-height: 1.95; color: var(--muted); }
.ph-desc p { margin: 0 0 10px; }

/* 图集 */
.ph-shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.ph-shots.mini { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.ph-shot { position: relative; margin: 0; border-radius: 12px; overflow: hidden; }
.ph-shot-link {
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--bg-soft) center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
/* 相册图改成真 <img>：懒加载 + 固定比例，避免整页原图一起下载 */
.ph-shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph-shot-no {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  font-size: 11px;
  font-family: var(--mono);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.46);
  color: #fff;
}
.ph-shots.mini .ph-shot-no { display: none; }
.ph-shot.locked .ph-shot-link {
  filter: blur(9px) saturate(0.7) brightness(0.6);
  transform: scale(1.06);
}
.ph-shot.locked .ph-shot-link::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(0);
}
.ph-shot-lock {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 4, 12, 0.72);
  color: #ffd0de;
  border: 1px solid rgba(255, 176, 198, 0.4);
}
.ph-gallery-tip { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.ph-gallery-tip b { color: #ffb0c6; }
.ph-gallery-link { color: var(--accent); margin-left: 6px; }

/* 管理员：图集里一键换封面（只有管理员打开详情页才出现） */
.ph-shot-cover {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  line-height: 1.5;
  color: #fff;
  background: rgba(12, 14, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ph-shot-cover:hover { background: rgba(123, 108, 255, 0.92); border-color: rgba(255, 255, 255, 0.55); }
.ph-shot-cover.is-cur {
  background: rgba(46, 160, 96, 0.92);
  border-color: rgba(255, 255, 255, 0.4);
}
.ph-shot-cover:disabled { opacity: 0.65; cursor: default; }
.ph-shot.is-cover .ph-shot-link { outline: 2px solid rgba(46, 160, 96, 0.85); outline-offset: -2px; }

/* 评价区沿用 site.css 的 review-*，这里补一点底色 */
.ph-panel .review-form { margin-bottom: 16px; }
.ph-panel .review-item { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }

/* 模特主页 */
.ph-model-hero {
  display: flex;
  gap: 26px;
  align-items: center;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(255, 111, 145, 0.14), rgba(120, 60, 220, 0.1)), var(--panel);
}
.ph-model-hero-av {
  width: 148px;
  height: 148px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--bg-soft) center/cover no-repeat;
  border: 3px solid rgba(255, 176, 198, 0.4);
  box-shadow: 0 0 0 8px rgba(255, 111, 145, 0.08);
}
.ph-model-hero-body { min-width: 0; }
.ph-model-hero h1 { margin: 0 0 10px; font-size: 28px; }
.ph-model-hero h1 small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.ph-model-intro { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.85; max-width: 60ch; }

/* 兼容：后台套图里的小图集预览 */
.ph-mini-head { font-size: 12px; color: var(--muted); margin-bottom: 10px; }

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 980px) {
  .ph-dhero { grid-template-columns: 1fr; }
  .ph-dhero-cover { max-width: 360px; }
  .ph-mid { grid-template-columns: 1fr; }
  .ph-hero-inner { padding: 40px 28px 30px; }
}

@media (max-width: 640px) {
  .ph-page, .ph-detail { padding: 14px 14px 34px; }
  .ph-hero { border-radius: 18px; margin: 12px auto 0; }
  .ph-hero-stats { gap: 20px; flex-wrap: wrap; }
  .ph-hero-stats b { font-size: 19px; }
  .ph-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .ph-card-info { padding: 10px 11px 12px; }
  .ph-card-info h3 { font-size: 13px; }
  .ph-price { font-size: 15px; }
  .ph-models { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .ph-model-av { width: 60px; height: 60px; }
  .ph-dhero { padding: 14px; gap: 16px; }
  .ph-big-price { font-size: 26px; }
  .ph-shots { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
  .ph-model-hero { flex-direction: column; text-align: center; padding: 20px; }
  .ph-model-intro { text-align: left; }
  .ph-meta.compact { justify-content: center; }
  .ph-vip { flex-direction: column; align-items: flex-start; }
  .ph-hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* 后台套图编辑页里的迷你图集 */
.ph-shots.mini .ph-shot {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  position: relative;
}
.ph-shots.mini .ph-shot i {
  position: absolute;
  right: 4px;
  bottom: 4px;
  font-style: normal;
  font-size: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  padding: 0 5px;
}

/* ---------------------------------------------------------------- 回顶按钮 */

.ph-totop {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 40;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(23, 16, 33, 0.86);
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  backdrop-filter: blur(8px);
}
.ph-totop.on { opacity: 1; pointer-events: auto; }
@media (max-width: 640px) { .ph-totop { bottom: 92px; right: 12px; width: 38px; height: 38px; } }

/* ---------------------------------------------------------------- 图片灯箱 */

.ph-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 2, 8, 0.92);
  padding: 24px;
}
.ph-lightbox.on { display: flex; }
.ph-lightbox img {
  max-width: min(92vw, 980px);
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.ph-lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}


/* 写真站空态引导 */
.ph-setup { padding: 26px 22px; text-align: left; }
.ph-setup h2 { font-size: 17px; }
.ph-setup .cta-row { display: flex; flex-wrap: wrap; }


/* 互通模式：两类内容各用自己的排版，单独成区（不混排） */
.ph-grid.shared { --ph-max: 100%; }
.shared-photo { margin-top: 30px; }
.shared-photo .ph-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ph-sec.shared-res { border-top: 1px dashed var(--line); padding-top: 24px; margin-top: 10px; }
.ph-sec.shared-res .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
