/* ============================================================
   前台主题：黑金影院感（深色画廊）
   参考的是「纯黑顶栏 + 深色底 + 宽幅卡片居中压字」的视觉语言，
   样式全部自己写，不使用任何外部素材。
   ============================================================ */

:root {
  --bg: #222529;
  --bg-deep: #1b1e21;
  --header: #000000;
  --ink: #eaeaec;
  --ink-soft: #c8c8cd;
  --muted: #a1a1a8;
  --line: rgba(255, 255, 255, 0.09);
  --gold: #c9a227;
  --nav-color: #e0c37a;
  --gold-soft: #b08d57;
  --danger: #d9534f;
  --radius: 5px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans CJK SC", "Noto Sans SC",
    "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --serif: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --maxw: 1320px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; border: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; color: #fff; }
p { margin: 0; }

/* ---------------- 顶栏 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 60px;
  background: var(--header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header-in {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}
/* ---------------- 顶栏 ---------------- */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--nav-color);
  font-size: 15px;
  letter-spacing: 0.14em;
}
.site-logo svg { width: 22px; height: 22px; display: block; }
.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  height: 100%;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: none;
  font-size: 15px;
  color: var(--nav-color);
  letter-spacing: 0.04em;
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: #fff; }
.site-nav a.on { color: #fff; border-bottom-color: var(--nav-color); }
.site-head-right {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--nav-color);
  opacity: 0.85;
}
.site-head-right a:hover { color: #fff; opacity: 1; }

/* ---------------- 主视觉带 ---------------- */
.hero {
  position: relative;
  min-height: 335px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #14171a;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 32%;
  filter: saturate(0.9) brightness(0.62);
  transform: scale(1.02);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 13, 0.62) 0%, rgba(10, 11, 13, 0.42) 45%, rgba(34, 37, 41, 0.94) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 90px 24px 64px; max-width: 760px; }
.hero-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
  margin: 0 0 26px;
}
.hero-sub {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.62);
}
.hero-stats {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 42px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
}
.hero-stats strong {
  display: block;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #fff;
  font-weight: 500;
  margin-bottom: 2px;
}

/* 内页窄一点的头部 */
.hero.slim { min-height: 210px; }
.hero.slim .hero-inner { padding: 60px 24px 40px; }

/* ---------------- 内容容器 ---------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding-top: 44px; padding-bottom: 20px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #e2c46a, var(--gold-soft));
}
.section-sub { font-size: 12.5px; letter-spacing: 0.08em; color: var(--muted); }

/* ---------------- 分类筛条 ---------------- */
.filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 22px 0 6px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none;
  font-size: 13.5px;
  padding: 7px 16px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
}
.filter:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.filter.on { color: #111; background: #e6e6e9; border-color: #e6e6e9; font-weight: 500; }

/* ---------------- 卡片网格 ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: #171a1d;
  isolation: isolate;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s;
  filter: brightness(0.86) saturate(0.95);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.55) 100%);
  transition: background 0.35s;
}
.card:hover img { transform: scale(1.05); filter: brightness(1) saturate(1); }
.card:hover::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.4)); }

.card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 46px 13px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0) 100%);
}
.card-title {
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(89, 93, 105, 0.78);
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-tags {
  display: flex;
  gap: 4px;
  max-width: 100%;
  overflow: hidden;
}
.card-tag {
  flex: none;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0 5px;
  border-radius: 2px;
  white-space: nowrap;
  backdrop-filter: blur(3px);
}
.card-flags {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.flag {
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 3px;
  color: #fff;
  backdrop-filter: blur(4px);
}
.flag-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eacd7c 0%, #c79a4a 45%, #a3762f 100%);
  text-shadow: 0 0 6px rgba(255, 246, 214, 0.55);
  animation: goldGlow 2.8s ease-in-out infinite;
}
.flag-gold::before {
  content: "✦";
  margin-right: 3px;
  font-size: 9px;
  color: #fff8e1;
  display: inline-block;
  animation: starTwinkle 2.2s ease-in-out infinite;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.8; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}
/* 斜向高光扫过 */
.flag-gold::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -70%;
  width: 45%;
  height: 220%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  transform: skewX(-22deg);
  animation: goldShine 3.6s ease-in-out infinite;
}
@keyframes goldGlow {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 12px 1px rgba(255, 214, 120, 0.6), 0 0 26px 4px rgba(255, 196, 80, 0.3);
  }
  50% {
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.8), 0 0 18px 3px rgba(255, 226, 150, 0.95), 0 0 38px 8px rgba(255, 196, 80, 0.5);
  }
}
@keyframes goldShine {
  0%, 55% { left: -70%; }
  85%, 100% { left: 140%; }
}
.flag-pin {
  background: linear-gradient(135deg, #ef5f95 0%, #d6246e 55%, #a8145a 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 2px 10px rgba(214, 36, 110, 0.42);
}
@media (prefers-reduced-motion: reduce) {
  .flag-gold { animation: none; }
  .flag-gold::after { animation: none; display: none; }
}
.card-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
}

/* ---------------- 门店卡片（首页门店导览） ---------------- */
.studio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.studio-card { position: relative; display: block; aspect-ratio: 2.2 / 1; border-radius: var(--radius); overflow: hidden; background: #171a1d; }
.studio-card-in {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-size: cover;
  background-position: center;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.studio-card-in::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
}
.studio-card:hover .studio-card-in { transform: scale(1.04); }
.studio-card-name {
  position: relative;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.studio-card-num {
  position: relative;
  font-size: 10.5px;
  color: #fff;
  background: rgba(89, 93, 105, 0.78);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ---------------- 详情页 ---------------- */
.detail { max-width: 1080px; margin: 0 auto; padding: 34px 24px 70px; }
.detail-head { text-align: center; padding: 18px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.crumb { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.crumb a:hover { color: #fff; }
.crumb-sep { margin: 0 7px; opacity: 0.5; }
.detail-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: #fff;
  margin: 14px 0 14px;
}
.detail-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 16px;
}
.detail-meta .flag { font-size: 10px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.tag {
  font-size: 11px;
  color: #ece7dc;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 3px;
  padding: 3px 8px;
  transition: all 0.2s;
}
.tag:hover { color: #14161a; background: #e2c46a; border-color: #e2c46a; }

.shots { display: grid; gap: 10px; }
.shot { margin: 0; position: relative; background: #171a1d; border-radius: 3px; overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.shot-orig {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
}
.shot:hover .shot-orig { opacity: 1; }

.sub-title {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-weight: 400;
  margin: 44px 0 14px;
}
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.video { margin: 0; }
.video video { display: block; width: 100%; background: #000; border-radius: 3px; max-height: 70vh; }
.video figcaption { font-size: 12px; color: var(--muted); padding-top: 7px; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.pager-item { display: flex; flex-direction: column; gap: 5px; max-width: 46%; }
.pager-label { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.pager-title { font-size: 15px; color: var(--ink); }
.pager-item:hover .pager-title { color: #fff; }
.pager-item.next { text-align: right; margin-left: auto; }

/* ---------------- 空状态 / 页脚 ---------------- */
.empty { text-align: center; padding: 90px 20px; color: var(--muted); }
.empty h2 { font-size: 20px; font-weight: 500; margin-bottom: 10px; color: #fff; }
.empty p { font-size: 14px; }
.empty a { color: var(--gold); }
.err-code { font-size: 54px; color: rgba(255, 255, 255, 0.12); line-height: 1; margin-bottom: 12px; font-weight: 300; }
.btn-line {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 4px;
  padding: 8px 18px;
}
.btn-line:hover { background: rgba(201, 162, 39, 0.12); }

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.site-footer-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 24px calc(26px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
}

/* ---------------- 灯箱 ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* ---------------- 访问密码页 ---------------- */
.gate-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.08), transparent 60%),
    #16181b;
  padding: 24px;
}
.gate-card {
  width: 100%;
  max-width: 370px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 40px 30px 34px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.gate-mark {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: #e2c46a;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.08);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.gate-brand { font-size: 13px; letter-spacing: 0.24em; color: var(--muted); }
.gate-title { font-size: 22px; font-weight: 500; color: #fff; margin: 10px 0 26px; letter-spacing: 0.04em; }
.gate-form { text-align: left; }
.gate-field { display: block; margin-bottom: 14px; }
.gate-field span { display: block; font-size: 11.5px; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 7px; }
.gate-field input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.gate-field input:focus { border-color: rgba(201, 162, 39, 0.6); background: rgba(255, 255, 255, 0.07); }
.gate-btn {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #14161a;
  background: linear-gradient(135deg, #e2c46a, #b08d57);
  border: none;
  border-radius: 6px;
  padding: 13px;
  cursor: pointer;
  transition: filter 0.2s;
}
.gate-btn:hover { filter: brightness(1.08); }
.gate-hint { margin-top: 18px; font-size: 11.5px; color: rgba(255, 255, 255, 0.38); line-height: 1.7; }
.flash-err {
  background: rgba(217, 83, 79, 0.12);
  border: 1px solid rgba(217, 83, 79, 0.35);
  color: #f2a9a7;
  font-size: 12.5px;
  border-radius: 5px;
  padding: 9px 12px;
  margin-bottom: 14px;
  text-align: left;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  /* 门店小图始终一排 4 个，只有手机才降为 2 个 */
  .grid { grid-template-columns: repeat(3, 1fr); }
  .studio-grid { gap: 16px; }
}
@media (max-width: 860px) {
  .site-header-in { padding: 0 0 0 14px; gap: 12px; }
  .site-logo span { display: none; }
  .site-logo svg { width: 20px; height: 20px; }
  .site-nav {
    gap: 16px;
    padding-right: 26px;
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }
  .site-nav a { font-size: 14px; height: 56px; }
  .site-header { height: 56px; }
  .site-header .site-head-right { display: none; }
  .card-meta {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .wrap { padding: 0 14px; }
  .hero { min-height: 240px; }
  .hero-inner { padding: 74px 18px 40px; }
  .hero-title { font-size: 22px; line-height: 1.55; }
  .hero-sub { font-size: 12px; letter-spacing: 0.12em; }
  .hero-stats { gap: 26px; margin-top: 20px; }
  .hero-stats strong { font-size: 18px; }
  .hero.slim { min-height: 150px; }
  .hero.slim .hero-inner { padding: 52px 18px 26px; }
  .section { padding-top: 28px; padding-bottom: 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-title { font-size: 14px; }
  .card-meta { font-size: 10px; padding: 2px 6px; }
  .card-body { padding: 30px 10px 9px; gap: 5px; }
  .card-tag { font-size: 9.5px; padding: 0 4px; }
  /* 手机上门店小图也一排 4 个 */
  .studio-grid { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .studio-card { aspect-ratio: 1 / 1; }
  .studio-card-in { gap: 3px; }
  .studio-card-name { font-size: 10px; line-height: 1.3; letter-spacing: 0; }
  .studio-card-num { font-size: 9px; padding: 1px 5px; }
  .studio-card-num .unit { display: none; }
  .detail { padding: 22px 14px 50px; }
  .shots { gap: 4px; }
  .shot-orig { display: none; }
  .detail-title { font-size: 21px; }
  .pager { margin-top: 34px; }
}
