/* =====================================================================
   陈彬拾光集 · Chen Bin · Light Collection
   深色暗房风 · 纯 CSS，无任何外部依赖
   ===================================================================== */

:root {
  --bg: #0d0d0d;
  --bg-deep: #070707;
  --card: #1a1a1a;
  --line: rgba(240, 239, 236, 0.09);
  --line-strong: rgba(240, 239, 236, 0.16);
  --ink: #f0efec;
  --ink-soft: #cfcdc8;
  --muted: #8c8a85;
  --muted-deep: #6f6d69;
  --gold: #c9a86a;

  --font-serif: "Songti SC", "STSong", "SimSun", "Source Han Serif SC",
    "Noto Serif SC", "Source Han Serif CN", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-latin: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 0.72, 0.24, 1);
  --pad-x: clamp(20px, 4.4vw, 64px);
  --maxw: 1560px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* hidden 属性必须真正不占位：很多组件用了 display:flex/inline-flex，
   会覆盖浏览器默认的 [hidden] { display: none } */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(201, 168, 106, 0.28);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0b0b0b;
}
::-webkit-scrollbar-thumb {
  background: #2b2a27;
  border: 3px solid #0b0b0b;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #403d37;
}

/* ---------------------------------------------------------------- 通用零件 */
.latin {
  font-family: var(--font-latin);
  text-transform: uppercase;
}

.eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-latin);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.eyebrow-label::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 82px;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid transparent;
  transition: height 0.5s var(--ease), background 0.5s var(--ease),
    border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}

.topbar.is-solid {
  height: 70px;
  background: rgba(13, 13, 13, 0.86);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom-color: var(--line);
}

.brand {
  display: block;
  line-height: 1;
}

.brand-cn {
  display: block;
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.brand-en {
  display: block;
  margin-top: 8px;
  font-family: var(--font-latin);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}

.brand:hover .brand-en {
  color: var(--gold);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid rgba(201, 168, 106, 0.55);
  color: var(--gold);
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.22em;
  white-space: nowrap;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.btn-gold:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #101010;
}

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  height: 78vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #080808;
  isolation: isolate;
}

/* 兜底背景：只有没有轮播图时才显示，否则会盖住轮播层 */
.hero-bg {
  position: absolute;
  inset: -4%;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(0.62) saturate(0.98) contrast(1.03);
  transform: scale(1.02);
  display: none;
}

.hero-bg.is-empty {
  display: block;
  background-image: radial-gradient(
      120% 90% at 22% 18%,
      rgba(201, 168, 106, 0.16) 0%,
      rgba(201, 168, 106, 0) 52%
    ),
    radial-gradient(90% 70% at 82% 78%, rgba(120, 118, 112, 0.18) 0%, transparent 60%),
    linear-gradient(150deg, #161512 0%, #0d0d0d 46%, #080808 100%);
  animation: heroDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(-1.2%, -1%, 0);
  }
}

/* 氛围光斑：几个克制的金色光点，缓慢漂移，衬托暗房质感 */
.hero-glows {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-glows .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform, opacity;
}

.glow-1 {
  width: 420px;
  height: 420px;
  left: -6%;
  top: 24%;
  background: radial-gradient(
    circle,
    rgba(201, 168, 106, 0.34) 0%,
    rgba(201, 168, 106, 0) 68%
  );
  animation: glowFloat1 16s ease-in-out infinite alternate;
}

.glow-2 {
  width: 300px;
  height: 300px;
  right: 4%;
  bottom: 6%;
  background: radial-gradient(
    circle,
    rgba(201, 168, 106, 0.22) 0%,
    rgba(201, 168, 106, 0) 66%
  );
  animation: glowFloat2 20s ease-in-out infinite alternate;
}

.glow-3 {
  width: 200px;
  height: 200px;
  left: 46%;
  top: -8%;
  background: radial-gradient(
    circle,
    rgba(240, 220, 180, 0.2) 0%,
    rgba(240, 220, 180, 0) 70%
  );
  animation: glowFloat3 23s ease-in-out infinite alternate;
}

@keyframes glowFloat1 {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 0.42;
  }
  to {
    transform: translate3d(6%, 9%, 0);
    opacity: 0.6;
  }
}

@keyframes glowFloat2 {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 0.34;
  }
  to {
    transform: translate3d(-7%, -8%, 0);
    opacity: 0.52;
  }
}

@keyframes glowFloat3 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.28;
  }
  to {
    transform: translate3d(4%, 12%, 0) scale(1.15);
    opacity: 0.46;
  }
}

/* 暗房颗粒 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
      180deg,
      rgba(13, 13, 13, 0.58) 0%,
      rgba(13, 13, 13, 0.06) 32%,
      rgba(13, 13, 13, 0.44) 70%,
      #0d0d0d 100%
    ),
    linear-gradient(90deg, rgba(6, 6, 6, 0.56) 0%, rgba(6, 6, 6, 0.1) 54%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1040px;
  padding: 0 var(--pad-x);
  margin-left: clamp(0px, 4.4vw, 60px);
}

.hero-title {
  margin: 22px 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  /* 一行排布，宽度不超上方的英文小标题（约 340px）。
     6 个汉字 + 中间发光竖线，字号 26~28px 刚好 */
  font-size: clamp(22px, 1.72vw, 28px);
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
  /* 一行显示：两段文字 + 中间竖线。
     用 flex + width:fit-content：保持块级（不跟黄字并列），
     宽度又只有内容那么宽（不撑满容器） */
  display: flex;
  width: fit-content;
  align-items: center;
  gap: clamp(12px, 1.1vw, 18px);
  white-space: nowrap;
}

.hero-title .line-1,
.hero-title .line-2 {
  display: inline-block;
}

/* 中间的发光竖线 */
.hero-title .glow-bar {
  display: inline-block;
  flex: 0 0 auto;
  width: 1px;
  height: 1.05em;
  background: linear-gradient(
    180deg,
    rgba(201, 168, 106, 0) 0%,
    rgba(201, 168, 106, 0.85) 50%,
    rgba(201, 168, 106, 0) 100%
  );
  /* 外发光让竖线像在微微发亮 */
  box-shadow: 0 0 6px rgba(201, 168, 106, 0.75), 0 0 14px rgba(201, 168, 106, 0.35);
  animation: glowPulse 3.2s var(--ease) infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.55;
    box-shadow: 0 0 5px rgba(201, 168, 106, 0.55), 0 0 10px rgba(201, 168, 106, 0.22);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 9px rgba(201, 168, 106, 0.95), 0 0 20px rgba(201, 168, 106, 0.45);
  }
}

/* 标题与副标题之间的金色短分隔线 */
.hero-divider {
  width: clamp(46px, 5vw, 68px);
  height: 1px;
  margin: clamp(22px, 2.4vw, 30px) 0 clamp(18px, 2vw, 24px);
  background: linear-gradient(90deg, var(--gold), rgba(201, 168, 106, 0));
  opacity: 0;
  animation: heroFadeIn 1s var(--ease) 0.5s forwards;
}

/* 一行排布：两段文字依次淡入，竖线随第二段出现 */
.hero-title .line-1,
.hero-title .line-2 {
  opacity: 0;
  transform: translateY(16px);
  animation: heroLineIn 1s var(--ease) forwards;
}

.hero-title .line-1 {
  animation-delay: 0.15s;
}

.hero-title .line-2 {
  animation-delay: 0.3s;
}

/* 竖线单独淡入 */
.hero-title .glow-bar {
  opacity: 0;
  animation: glowIn 0.9s var(--ease) 0.5s forwards, glowPulse 3.2s var(--ease) 1.4s infinite;
}

@keyframes glowIn {
  from {
    opacity: 0;
    transform: scaleY(0.2);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes heroLineIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 金色扫光：加载后沿标题斜向扫过一次 */
.hero-title {
  position: relative;
  overflow: hidden;
}

.hero-title::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -30%;
  width: 34%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(201, 168, 106, 0) 30%,
    rgba(201, 168, 106, 0.28) 50%,
    rgba(201, 168, 106, 0) 70%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: titleSheen 2.6s var(--ease) 0.5s both;
  pointer-events: none;
}

@keyframes titleSheen {
  0% {
    left: -40%;
  }
  60%,
  100% {
    left: 130%;
  }
}

.hero-sub {
  margin: 0;
  max-width: 460px;
  /* 中文文案，字号比原来略小、行距放松，读起来更从容 */
  font-size: 13.5px;
  line-height: 2.2;
  letter-spacing: 0.1em;
  color: #a9a7a2;
  /* 左侧金色竖线，和标题形成层次 */
  padding-left: 16px;
  border-left: 1px solid rgba(201, 168, 106, 0.42);
}

.hero-sub span {
  display: block;
}

/* 副标题入场：比标题再晚一点浮现 */
.hero-sub {
  opacity: 0;
  transform: translateY(18px);
  animation: heroSubIn 1s var(--ease) 0.55s forwards;
}

@keyframes heroSubIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* eyebrow 标签 + 滚动提示也轻微淡入，首屏整体有层次感 */
.eyebrow-label,
.scroll-hint {
  opacity: 0;
  animation: heroFadeIn 1.2s var(--ease) 0.1s forwards;
}

.scroll-hint {
  animation-delay: 0.8s;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: clamp(40px, 6vh, 64px);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}

.scroll-hint:hover {
  color: var(--ink);
}

.scroll-hint .line {
  position: relative;
  width: 1px;
  height: 58px;
  background: rgba(240, 239, 236, 0.16);
  overflow: hidden;
}

.scroll-hint .line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, rgba(201, 168, 106, 0), var(--gold));
  animation: linePulse 2.8s var(--ease) infinite;
}

@keyframes linePulse {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateY(58px);
    opacity: 0;
  }
}

/* ---------------------------------------------------------------- 相册区 */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(62px, 8vw, 108px) var(--pad-x) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(26px, 3.2vw, 44px);
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.3vw, 31px);
  letter-spacing: 0.2em;
  color: var(--ink);
}

.section-title .en {
  font-family: var(--font-latin);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-count {
  font-family: var(--font-latin);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-bottom: 4px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 1.7vw, 26px);
}

.album-card {
  grid-column: span 3;
  position: relative;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}

.album-card:nth-child(n + 3) {
  grid-column: span 2;
}

.album-card.is-in {
  opacity: 1;
  transform: none;
}

/* 悬停时卡片外缘浮起 + 金色描边 */
.album-card {
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease),
    box-shadow 0.6s var(--ease);
}

.album-card:hover {
  box-shadow: 0 0 0 1px rgba(201, 168, 106, 0.55),
    0 24px 60px rgba(0, 0, 0, 0.5);
}

.card-media {
  position: relative;
  overflow: hidden;
  background: #151515;
  aspect-ratio: 16 / 11;
  isolation: isolate;
}

.album-card.is-lead .card-media {
  aspect-ratio: 16 / 10;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.74) saturate(0.94);
  transform: scale(1.005);
  transition: transform 1.15s var(--ease), filter 0.85s var(--ease);
}

.album-card:hover .card-media img {
  transform: scale(1.055);
  filter: brightness(0.98) saturate(1.02);
}

/* 悬停时一道金色光斑从封面扫过（斜向），克制的亮度。
   只在有真实封面（非空相册、非锁占位）时生效。 */
.card-media:not(.is-empty)::before {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -40%;
  width: 36%;
  z-index: 2;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(201, 168, 106, 0) 30%,
    rgba(201, 168, 106, 0.22) 50%,
    rgba(201, 168, 106, 0) 70%,
    transparent 100%
  );
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.album-card:hover .card-media:not(.is-empty)::before {
  opacity: 1;
  animation: cardSheen 1.05s var(--ease);
}

@keyframes cardSheen {
  0% {
    left: -45%;
  }
  100% {
    left: 125%;
  }
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(6, 6, 6, 0.86) 0%,
    rgba(6, 6, 6, 0.42) 26%,
    rgba(6, 6, 6, 0.04) 58%,
    rgba(6, 6, 6, 0.16) 100%
  );
  transition: opacity 0.7s var(--ease);
}

.album-card:hover .card-media::after {
  opacity: 0.86;
}

.card-no {
  position: absolute;
  top: 17px;
  left: 20px;
  z-index: 3;
  font-family: var(--font-latin);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: rgba(240, 239, 236, 0.68);
}

.card-enter {
  position: absolute;
  top: 15px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-latin);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.card-enter .arr {
  transition: transform 0.5s var(--ease);
}

.album-card:hover .card-enter {
  opacity: 1;
  transform: none;
}

.album-card:hover .card-enter .arr {
  transform: translateX(4px);
}

.card-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 1.7vw, 24px);
  transition: transform 0.6s var(--ease);
}

.album-card:hover .card-foot {
  transform: translateY(-3px);
}

.card-name .cn {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.42vw, 21px);
  letter-spacing: 0.16em;
  color: var(--ink);
}

.card-name .en {
  display: block;
  margin-top: 7px;
  font-family: var(--font-latin);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(201, 168, 106, 0.86);
}

.card-count {
  font-family: var(--font-latin);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(240, 239, 236, 0.58);
  white-space: nowrap;
  padding-bottom: 3px;
}

/* ---------------------------------------------------------------- Hero 轮播 */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* 每张轮播图两层：底层是同一张放大模糊做填充，上层是完整图
   —— 竖构图照片在宽幅 Hero 里不会被裁成特写 */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide .blur,
.hero-slide .sharp {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
}

/* Ken Burns：激活的轮播图缓慢缩放 + 横移，整屏像「会呼吸」。
   每张图交替正反方向，避免单调；时长与 6s 轮播节奏错开（13s）。
   alternate 让动画往返播放（去程 + 回程），缓动用 ease-in-out 对称，
   避免播到终点后瞬间跳回起点造成的「突然变大/变小」。 */
.hero-slide .sharp {
  animation: kenburns-a 13s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-slide:nth-child(even) .sharp {
  animation-name: kenburns-b;
}

@keyframes kenburns-a {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.09) translate3d(1.4%, 0.8%, 0);
  }
}

@keyframes kenburns-b {
  0% {
    transform: scale(1.09) translate3d(-1.4%, -0.8%, 0);
  }
  100% {
    transform: scale(1) translate3d(0, 0, 0);
  }
}

.hero-slide .blur {
  background-size: cover;
  /* 竖图两侧的底衬：同一张图放大模糊。
     亮度压到 0.6 左右，让照片本身成为视觉主体，两侧只做氛围延伸。 */
  filter: brightness(0.6) saturate(1.1) blur(80px);
  transform: scale(1.7);
}

/* 竖图：完整显示并居中（contain），两侧由模糊底衬补足。 */
.hero-slide .sharp {
  background-size: contain;
  background-position: center center;
  filter: brightness(1.02) saturate(1.04);
}

/* 竖图两侧的模糊底要「向外扩散」而不是硬切：
   把模糊底的模糊半径加大、亮度压低，照片边缘就有了层次，
   不会像贴纸一样贴在一块色块上 */
.hero-slide:not(.is-landscape) .blur {
  filter: brightness(0.52) saturate(1.15) blur(110px);
  transform: scale(2);
}

/* 横图铺满 */
.hero-slide.is-landscape .sharp {
  background-size: cover;
  background-position: center;
  /* 只压一点点亮度：文字那侧另有 .hero::after 渐变遮罩负责对比度 */
  filter: brightness(0.92) saturate(1.04);
}

.hero-slide.is-landscape .sharp::after {
  background: none;
}

.hero-slide.is-landscape .blur {
  display: none;
}

/* 兜底背景：只有没有轮播图时才显示，否则会盖住轮播层 */
.hero-bg {
  position: absolute;
  inset: -4%;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(0.62) saturate(0.98) contrast(1.03);
  transform: scale(1.02);
  display: none;
}

.hero-bg.is-empty {
  display: block;
  background-image: radial-gradient(
      120% 90% at 22% 18%,
      rgba(201, 168, 106, 0.16) 0%,
      rgba(201, 168, 106, 0) 52%
    ),
    radial-gradient(90% 70% at 82% 78%, rgba(120, 118, 112, 0.18) 0%, transparent 60%),
    linear-gradient(150deg, #161512 0%, #0d0d0d 46%, #080808 100%);
  animation: heroDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}

/* 轮播指示点 */
.hero-dots {
  position: absolute;
  z-index: 3;
  right: var(--pad-x);
  bottom: clamp(28px, 5vh, 52px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 26px;
  height: 2px;
  padding: 0;
  background: rgba(240, 239, 236, 0.24);
  transition: background 0.5s var(--ease), width 0.5s var(--ease);
}

.hero-dot:hover {
  background: rgba(240, 239, 236, 0.55);
}

.hero-dot.is-active {
  width: 44px;
  background: var(--gold);
}

/* 空相册 / 无封面 */
.card-media.is-empty {
  background: repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.012) 0 2px,
      transparent 2px 9px
    ),
    linear-gradient(160deg, #171717, #101010);
}

.card-media.is-empty::after {
  background: linear-gradient(to top, rgba(6, 6, 6, 0.7) 0%, rgba(6, 6, 6, 0.12) 60%, transparent 100%);
}

.card-media.is-empty::before {
  content: "暂无照片";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.34em;
  color: rgba(240, 239, 236, 0.3);
  transition: color 0.5s var(--ease);
}

.album-card:hover .card-media.is-empty::before {
  color: rgba(201, 168, 106, 0.62);
}

.album-card.is-empty .card-count {
  color: rgba(240, 239, 236, 0.34);
}

/* 加锁且未解锁：用锁形占位图代替真实封面 */
.card-media.is-locked-ph {
  /* 盖掉「暂无照片」的 is-empty 文案 */
  background: repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.012) 0 2px,
      transparent 2px 9px
    ),
    linear-gradient(160deg, #171717, #0f0f0f);
}

.card-media.is-locked-ph::before {
  /* 清掉空的「暂无照片」文字，改用下面的锁形占位 */
  content: none;
}

/* 只在锁形占位里显示，避免和 is-empty 的 ::after 叠加太暗 */
.card-media.is-locked-ph::after {
  background: linear-gradient(
    to top,
    rgba(6, 6, 6, 0.72) 0%,
    rgba(6, 6, 6, 0.28) 40%,
    rgba(6, 6, 6, 0.1) 100%
  );
}

.card-locked-ph {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(201, 168, 106, 0.92);
  transition: color 0.5s var(--ease), transform 0.5s var(--ease);
}

.album-card:hover .card-locked-ph {
  color: var(--gold);
  transform: scale(1.03);
}

.card-locked-ph .ph-text {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: rgba(240, 239, 236, 0.72);
  text-indent: 0.28em;
  transition: color 0.5s var(--ease);
}

.album-card:hover .card-locked-ph .ph-text {
  color: rgba(240, 239, 236, 0.92);
}

/* ---------------------------------------------------------------- 页脚 */
/* =====================================================================
   相册加锁
   ===================================================================== */

/* 首页相册卡片上的锁标记 */
.card-lock {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(201, 168, 106, 0.5);
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.album-card:hover .card-lock {
  background: rgba(201, 168, 106, 0.9);
  border-color: var(--gold);
  color: #101010;
}

/* 加锁相册的计数前缀 */
.album-card.is-locked .card-count::before {
  content: "🔒 ";
  font-size: 9px;
}

/* 相册页的密码输入界面 */
.lock-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52vh;
  padding: 40px var(--pad-x) 80px;
}

.lock-box {
  width: min(420px, 100%);
  text-align: center;
}

.lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 24px;
  border: 1px solid rgba(201, 168, 106, 0.32);
  border-radius: 50%;
  color: var(--gold);
}

.lock-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.lock-hint {
  margin: 0 0 26px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.lock-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.lock-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  background: #0e0e0e;
  border: 1px solid rgba(240, 239, 236, 0.12);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.12em;
  outline: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.lock-input:focus {
  border-color: rgba(201, 168, 106, 0.62);
  background-color: #111;
}

.lock-input::placeholder {
  color: #565550;
  letter-spacing: 0.06em;
}

.lock-input:disabled {
  opacity: 0.45;
}

.lock-submit {
  flex: 0 0 auto;
  padding: 12px 26px;
}

.lock-error {
  margin: 16px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #d9766a;
}

.footer {
  max-width: var(--maxw);
  margin: clamp(72px, 9vw, 128px) auto 0;
  padding: 26px var(--pad-x) clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-latin);
  font-size: 9.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted-deep);
}

/* =====================================================================
   相册页
   ===================================================================== */
.page-album {
  padding-top: 70px;
}

.album-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 4.6vw, 68px) var(--pad-x) 20px;
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2.6vw, 34px);
  border-bottom: 1px solid var(--line);
}

.back-link {
  font-family: var(--font-latin);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.35s var(--ease);
}

.back-link .arr {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}

.back-link:hover {
  color: var(--gold);
}

.back-link:hover .arr {
  transform: translateX(-5px);
}

.album-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.album-count {
  margin-left: auto;
  font-family: var(--font-latin);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.masonry {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(26px, 3vw, 42px) var(--pad-x) 0;
  column-count: 4;
  column-gap: clamp(14px, 1.4vw, 22px);
}

.shot {
  margin: 0 0 clamp(14px, 1.4vw, 22px);
  break-inside: avoid;
  page-break-inside: avoid;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.shot.is-in {
  opacity: 1;
  transform: none;
}

.shot-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #161616;
  cursor: zoom-in;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.shot-media img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0.95);
  transition: filter 0.6s var(--ease);
}

.shot-media:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.46);
}

.shot-media:hover img {
  filter: brightness(1.08);
}

.shot-cover {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 6px 12px;
  border: 1px solid rgba(201, 168, 106, 0.5);
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
}

.shot-media:hover .shot-cover {
  opacity: 1;
  transform: none;
}

.shot-cover:hover {
  background: var(--gold);
  color: #101010;
}

.shot-cover.is-current {
  opacity: 1;
  transform: none;
  border-color: rgba(201, 168, 106, 0.28);
  color: rgba(201, 168, 106, 0.75);
  cursor: default;
  background: rgba(8, 8, 8, 0.55);
}

/* 设为轮播图：默认藏在悬停时出现，已选中的常显并显示序号 */
.shot-hero {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 6px 12px;
  border: 1px solid rgba(240, 239, 236, 0.24);
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(240, 239, 236, 0.82);
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.shot-media:hover .shot-hero {
  opacity: 1;
  transform: none;
}

.shot-hero:hover {
  border-color: rgba(201, 168, 106, 0.7);
  color: var(--gold);
}

.shot-hero.is-on {
  opacity: 1;
  transform: none;
  border-color: rgba(201, 168, 106, 0.6);
  background: rgba(201, 168, 106, 0.9);
  color: #12100c;
}

.shot-hero.is-on:hover {
  background: rgba(201, 117, 106, 0.9);
  border-color: rgba(201, 117, 106, 0.9);
  color: #150c0a;
}


.lb-btn.is-on {
  border-color: rgba(201, 168, 106, 0.55);
  color: var(--gold);
}

.shot-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px 0;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.shot:hover .shot-meta {
  opacity: 1;
  transform: none;
}

.shot-title {
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-date {
  font-family: var(--font-latin);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted-deep);
  white-space: nowrap;
}

/* 空状态 */
.empty-state {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 12vh, 140px) var(--pad-x);
  text-align: center;
}

.empty-state .glyph {
  font-family: var(--font-serif);
  font-size: 34px;
  letter-spacing: 0.3em;
  color: rgba(240, 239, 236, 0.14);
}

.empty-state p {
  margin: 18px 0 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* =====================================================================
   灯箱
   ===================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  /* 横向布局：左边图片，右边信息栏（EXIF 每行一个字段） */
  display: flex;
  flex-direction: row;
  background: rgba(6, 6, 6, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* 移动端顶部工具栏：桌面端不显示（窄屏媒体查询里改为 flex） */
.lb-mobile-bar {
  display: none;
}

/* 移动端「返回相册」按钮 */
.lb-back {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(240, 239, 236, 0.16);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(10, 10, 10, 0.5);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.lb-back:active {
  border-color: var(--gold);
  color: var(--gold);
}

.lb-mobile-counter {
  flex: 1 1 auto;
  text-align: center;
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted-deep);
}

/* 移动端 EXIF 开关 */
.lb-exif-toggle {
  flex: 0 0 auto;
  padding: 7px 15px;
  border: 1px solid rgba(240, 239, 236, 0.16);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.5);
  color: var(--ink-soft);
  font-family: var(--font-latin);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease),
    background 0.3s var(--ease);
}

.lb-exif-toggle.is-on {
  border-color: rgba(201, 168, 106, 0.6);
  background: rgba(201, 168, 106, 0.14);
  color: var(--gold);
}

.lb-stage {
  position: relative;
  /* 左侧图片区：占满信息栏之外的所有空间 */
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 右侧留白收小，让图片靠近 EXIF；左侧留给导航箭头 */
  padding: 56px 28px 56px 84px;
}

.lb-img {
  /* 右侧有信息栏，竖向空间是唯一的限制 */
  max-height: calc(100vh - 112px);
  max-width: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transform: scale(0.986);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.lb-img.is-ready {
  opacity: 1;
  transform: none;
}

.lb-close {
  /* 固定在信息栏右上角，与标题不在同一行 */
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 239, 236, 0.14);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1;
  background: transparent;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.lb-close:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(90deg);
}

.lb-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(240, 239, 236, 0.13);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.42);
  color: var(--ink-soft);
  font-size: 15px;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.lb-nav:hover {
  border-color: rgba(201, 168, 106, 0.65);
  color: var(--gold);
  background: rgba(20, 20, 20, 0.8);
}

.lb-prev {
  left: 30px;
}
.lb-next {
  right: 30px;
}

.lb-nav[disabled] {
  opacity: 0.22;
  pointer-events: none;
}

.lb-info {
  /* 右侧信息栏：固定宽度，纵向排列 */
  flex: 0 0 340px;
  width: 340px;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  /* 上边距留出关闭按钮的位置：标题从按钮下方开始，
     这样标题再长也只在按钮下方换行，不会和按钮同排重叠 */
  padding: 84px 30px 34px 14px;
  border-left: 1px solid var(--line);
  overflow-y: auto;
}

.lb-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.lb-head-text {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lb-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.14em;
  color: var(--ink);
  /* 标题在关闭按钮下方，独占整行宽度；超长时换行即可 */
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.lb-cat {
  font-family: var(--font-latin);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.lb-exif {
  /* 每行一个字段：左边标签，右边值 */
  display: flex;
  flex-direction: column;
  gap: 0;
  /* 与标题之间留出更多空间，整体往下压一点 */
  margin-top: 26px;
  min-height: 40px;
}

.lb-exif .item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid rgba(240, 239, 236, 0.05);
}

.lb-exif .item:last-child {
  border-bottom: 0;
}

/* 右侧布局下不再需要「宽字段跨列」，保留选择器避免旧样式失效 */
.lb-exif .item.is-wide {
  grid-column: auto;
}

.lb-exif .k {
  flex: 0 0 auto;
  font-family: var(--font-latin);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-deep);
  white-space: nowrap;
}

.lb-exif .v {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  /* 右侧栏宽度固定，长文本允许换行而不是截断 */
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

/* 长字段（相机 / 镜头）历史样式，右侧布局下同样不截断 */
.lb-exif .item.is-wide .v {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.lb-noexif {
  margin: 20px 0 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted-deep);
}

.lb-foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.lb-counter {
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted-deep);
}

.lb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lb-actions .lb-btn {
  flex: 1 1 auto;
  text-align: center;
  justify-content: center;
}

.lb-btn {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.16em;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.lb-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lb-btn.is-danger:hover {
  border-color: rgba(201, 117, 106, 0.85);
  color: #d9887d;
}

/* =====================================================================
   上传面板
   ===================================================================== */
.uploader {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 4, 4, 0.8);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease);
}

.uploader.is-open {
  opacity: 1;
  pointer-events: auto;
}

.up-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #131313;
  border: 1px solid rgba(240, 239, 236, 0.1);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  transform: translateY(16px);
  transition: transform 0.45s var(--ease);
}

.uploader.is-open .up-panel {
  transform: none;
}

.up-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}

.up-head h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.up-head h2 .en {
  font-family: var(--font-latin);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.up-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.up-close:hover {
  color: var(--gold);
  transform: rotate(90deg);
}

.up-body {
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 32px);
  overflow-y: auto;
  flex: 1 1 auto;
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: clamp(28px, 4vw, 44px) 20px;
  border: 1px dashed rgba(240, 239, 236, 0.18);
  background: rgba(255, 255, 255, 0.012);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.dropzone:hover,
.dropzone.is-hot {
  border-color: rgba(201, 168, 106, 0.7);
  background: rgba(201, 168, 106, 0.05);
}

.dropzone .dz-icon {
  font-family: var(--font-latin);
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.dropzone .dz-main {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.dropzone .dz-sub {
  font-family: var(--font-latin);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-deep);
}

.dropzone input[type="file"] {
  display: none;
}

.up-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.up-previews:empty {
  display: none;
}

.up-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0f0f0f;
  border: 1px solid rgba(240, 239, 236, 0.07);
}

.up-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9);
}

.up-thumb .rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 8, 0.8);
  border: 1px solid rgba(240, 239, 236, 0.16);
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

.up-thumb:hover .rm {
  opacity: 1;
}

.up-thumb .rm:hover {
  color: #d9887d;
  border-color: rgba(201, 117, 106, 0.7);
}

.up-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  margin-top: 22px;
}

.field {
  display: block;
}

.field.full {
  grid-column: 1 / -1;
}

.field > span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-latin);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/*
 * 表单输入框的统一外观。
 *
 * 用属性选择器列出所有用到的 type。
 * 之前只写了 text / password，导致 type="email" 的输入框
 * 完全没被样式命中，渲染成浏览器默认的白底黑框。
 */
.field select,
.field input[type="text"],
.field input[type="password"],
.field input[type="email"],
.field input[type="number"],
.field input[type="search"],
.field input[type="tel"],
.field input[type="url"],
.field input:not([type]) {
  width: 100%;
  padding: 11px 13px;
  background: #0e0e0e;
  border: 1px solid rgba(240, 239, 236, 0.11);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  letter-spacing: 0.08em;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 7px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.field select:focus,
.field input[type="text"]:focus,
.field input[type="password"]:focus,
.field input[type="email"]:focus,
.field input[type="number"]:focus,
.field input[type="search"]:focus,
.field input[type="tel"]:focus,
.field input[type="url"]:focus,
.field input:not([type]):focus {
  border-color: rgba(201, 168, 106, 0.6);
  background-color: #111;
}

/* 浏览器自动填充会强制白底，这里用 inset 阴影盖回来 */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #0e0e0e inset;
  caret-color: var(--ink);
  transition: background-color 9999s ease-in-out 0s;
}

.field input::placeholder {
  color: #565550;
}

.up-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
}

.up-hint {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-deep);
}

.up-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.btn-ghost {
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: rgba(240, 239, 236, 0.3);
}

.btn-solid {
  padding: 10px 24px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #101010;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-solid:hover {
  opacity: 0.86;
}

.btn-solid[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.up-progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.up-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(201, 168, 106, 0.4), var(--gold));
  transition: width 0.3s var(--ease);
}

/* 拖拽到窗口的全屏提示 */
.drag-veil {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: grid;
  place-items: center;
  gap: 14px;
  background: rgba(8, 8, 8, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px dashed rgba(201, 168, 106, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.drag-veil.is-on {
  opacity: 1;
}

.drag-veil .veil-cn {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.3em;
  color: var(--ink);
}

.drag-veil .veil-en {
  font-family: var(--font-latin);
  font-size: 9.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
}

/* =====================================================================
   确认框 / 轻提示
   ===================================================================== */
.confirm-layer {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 4, 4, 0.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}

.confirm-layer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.confirm-box {
  width: min(400px, 100%);
  padding: 28px 28px 22px;
  background: #151515;
  border: 1px solid rgba(240, 239, 236, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.66);
  transform: translateY(10px);
  transition: transform 0.35s var(--ease);
}

.confirm-layer.is-open .confirm-box {
  transform: none;
}

.confirm-box h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.confirm-box p {
  margin: 0 0 22px;
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.confirm-box .row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.toast-host {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 11px 22px;
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid rgba(201, 168, 106, 0.28);
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  animation: toastIn 0.4s var(--ease);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.toast.is-out {
  animation: toastOut 0.35s var(--ease) forwards;
}

.toast.is-error {
  border-color: rgba(201, 117, 106, 0.45);
  color: #d9887d;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* =====================================================================
   查看原图（全屏，可缩放拖动）
   ===================================================================== */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 135;
  display: flex;
  flex-direction: column;
  background: #050505;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.viewer-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.9);
}

.viewer-name {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-tip {
  margin-left: auto;
  font-family: var(--font-latin);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-deep);
  white-space: nowrap;
}

/* 触摸设备上把「滚轮缩放」换成「双指缩放」的说法 */
.viewer-tip-mobile {
  display: none;
}

.viewer-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 239, 236, 0.14);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 13px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.viewer-close:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(90deg);
}

.viewer-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
  /* 给子元素一个确定的尺寸参照：绝对定位的图片按这个盒子来 contain */
  padding: 40px;
}

.viewer-stage.is-dragging {
  cursor: grabbing;
}

.viewer-img {
  /* 默认「适应窗口」：绝对定位 + inset:0 + object-fit:contain，
     这样 max-width/height 的百分比能参照 stage 的实际尺寸。
     用户滚轮放大时再用 transform 叠加。 */
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  transition: none;
}

/* 放大后用 1:1 像素渲染，避免浏览器二次插值变糊 */
.viewer-img.is-zoomed {
  image-rendering: -webkit-optimize-contrast;
}

.viewer-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.viewer-loading.is-hidden {
  opacity: 0;
}

/* 改名对话框 */
.rename-hint {
  margin: 0 0 14px !important;
  font-size: 12px !important;
  line-height: 1.8 !important;
  color: var(--muted) !important;
}

.rename-input {
  width: 100%;
  margin-bottom: 20px;
  padding: 11px 13px;
  background: #0e0e0e;
  border: 1px solid rgba(240, 239, 236, 0.11);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.06em;
  outline: none;
  transition: border-color 0.3s var(--ease);
}

.rename-input:focus {
  border-color: rgba(201, 168, 106, 0.6);
}

/* 灯箱操作按钮在窄屏时换行 */
@media (max-width: 900px) {
  .lb-actions {
    flex-wrap: wrap;
  }
}

/* =====================================================================
   登录页
   ===================================================================== */
.page-login {
  min-height: 100vh;
  display: flex;
  background: radial-gradient(
      110% 80% at 30% 15%,
      rgba(201, 168, 106, 0.09) 0%,
      rgba(201, 168, 106, 0) 55%
    ),
    #0b0b0b;
}

.login-wrap {
  margin: auto;
  width: 100%;
  max-width: 380px;
  padding: 40px 24px;
}

.login-box {
  padding: 36px 32px 28px;
  background: #131313;
  border: 1px solid rgba(240, 239, 236, 0.09);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.login-brand {
  text-align: center;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.login-brand .brand-cn {
  font-size: 20px;
  letter-spacing: 0.24em;
}

.login-brand .brand-en {
  margin-top: 9px;
  font-size: 8.5px;
  letter-spacing: 0.3em;
}

.login-hint {
  margin: 0 0 22px;
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}

.login-box .field {
  margin-bottom: 16px;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px 0;
  /*
   * 按钮的基础外观。
   *
   * 之前只写了尺寸，颜色/边框/背景都靠继承，
   * 结果渲染出来是个没有边框的纯文字块。
   * 这里补齐：
   */
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 106, 0.55);
  background: rgba(201, 168, 106, 0.06);
  color: var(--gold);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease);
}

.login-submit:hover:not(:disabled) {
  border-color: rgba(201, 168, 106, 0.85);
  background: rgba(201, 168, 106, 0.13);
  color: #e0c68f;
}

.login-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-error {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #d9887d;
  text-align: center;
}

.login-foot {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-latin);
  font-size: 8.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-deep);
}

/* 相册区标题右侧：计数 + 新建按钮 */
.section-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 4px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

/* 卡片上的「改名」按钮：常显，避免藏起来找不到 */
.album-edit {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  padding: 5px 13px;
  border: 1px solid rgba(240, 239, 236, 0.2);
  background: rgba(8, 8, 8, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(240, 239, 236, 0.62);
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0;
  transition: opacity 0.35s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease), background 0.3s var(--ease);
}

.album-card:hover .album-edit,
.album-edit:focus-visible {
  opacity: 1;
}

.album-edit:hover {
  border-color: var(--gold);
  background: rgba(8, 8, 8, 0.85);
  color: var(--gold);
}

/* 相册对话框 */
.album-box {
  width: min(440px, 100%);
}

/* hidden 属性要真正不占位（display:flex 会覆盖默认的 display:none） */
.album-box .field[hidden],
.album-box [hidden] {
  display: none !important;
}

.album-box .field {
  display: block;
  margin-bottom: 14px;
}

.album-box .row {
  margin-top: 20px;
}

.album-box .login-error {
  text-align: left;
  margin: 0 0 4px;
}

/* =====================================================================
   v2 新增：顶栏按钮 / 摄影集分组 / 控制台
   ===================================================================== */

/* ---------------------------------------------------------------- 顶栏 */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.16em;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease),
    background 0.3s var(--ease);
}

.btn-line:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-line.is-danger:hover {
  border-color: #b4544a;
  color: #d9766a;
}

.btn-xs {
  padding: 5px 11px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.btn-line[disabled],
.btn-solid[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------- 摄影集分组 */
.collection-block {
  margin-bottom: clamp(56px, 7vw, 96px);
}

.collection-block:last-child {
  margin-bottom: 0;
}

.collection-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.collection-no {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.7;
}

.collection-titles {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.collection-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.collection-en {
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-deep);
}

.collection-meta {
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted-deep);
  white-space: nowrap;
}

/* 三个摄影集里，卡片不再有「首图放大」的错落感，统一节奏 */
.collection-block .album-grid {
  grid-template-columns: repeat(4, 1fr);
}

.collection-block .album-card,
.collection-block .album-card:nth-child(n + 3),
.collection-block .album-card.is-lead {
  grid-column: span 1;
}

.collection-block .album-card.is-lead .card-media {
  aspect-ratio: 4 / 3;
}

/* ---------------------------------------------------------------- 相册页头部 */
.album-head-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.album-crumb {
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-deep);
}

/* ---------------------------------------------------------------- 控制台布局 */
.page-console {
  background: var(--bg-deep);
}

.console {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: calc(100vh - 70px);
  padding-top: 70px; /* 让开 fixed 顶栏 */
}

.console-side {
  border-right: 1px solid var(--line);
  padding: 28px 0 40px;
  background: #0a0a0a;
  position: sticky;
  top: 70px;
  align-self: start;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.side-stats {
  padding: 0 22px 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
}

.stat-k {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-deep);
}

.stat-v {
  font-family: var(--font-latin);
  font-size: 13px;
  color: var(--ink-soft);
}

.side-nav {
  padding: 12px 12px 0;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-align: left;
  border-left: 2px solid transparent;
  transition: background 0.24s var(--ease), color 0.24s var(--ease),
    border-color 0.24s var(--ease);
}

.side-link:hover {
  background: rgba(240, 239, 236, 0.04);
  color: var(--ink);
}

.side-link.is-active {
  border-left-color: var(--gold);
  background: rgba(201, 168, 106, 0.07);
  color: var(--gold);
}

.sl-icon {
  font-size: 12px;
  opacity: 0.8;
}

.side-group {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.side-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px 8px;
}

.sg-cn {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.sg-en {
  font-family: var(--font-latin);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-deep);
}

.side-link-sub {
  padding-left: 20px;
  font-size: 12px;
  justify-content: space-between;
}

.sl-cn {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-count {
  font-family: var(--font-latin);
  font-size: 10px;
  color: var(--muted-deep);
  white-space: nowrap;
}

.sl-hidden {
  font-style: normal;
  color: #a8705f;
}

.side-add {
  display: block;
  width: calc(100% - 24px);
  margin: 8px 12px 0;
  padding: 7px 12px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: left;
  transition: border-color 0.24s var(--ease), color 0.24s var(--ease);
}

.side-add:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------------------------------------------------------------- 控制台主区 */
.console-main {
  padding: 34px var(--pad-x) 80px;
  min-width: 0;
}

.console-loading {
  padding: 60px 0;
  text-align: center;
  color: var(--muted-deep);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.console-head {
  margin-bottom: 30px;
}

.console-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.console-head h1 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.console-head h1 .en {
  margin-left: 14px;
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-deep);
}

.console-desc {
  margin: 0;
  font-size: 12px;
  color: var(--muted-deep);
  letter-spacing: 0.04em;
}

.console-head-acts {
  display: flex;
  gap: 10px;
}

/* 相册分组表格 */
.cgroup {
  margin-bottom: 44px;
}

.cgroup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.cgroup-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.cgroup-head h3 .en {
  margin-left: 10px;
  font-family: var(--font-latin);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-deep);
}

.cgroup-empty {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted-deep);
  letter-spacing: 0.08em;
}

.ctable-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 130px auto;
  align-items: center;
  gap: 20px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(240, 239, 236, 0.05);
}

.ctable-row:hover {
  background: rgba(240, 239, 236, 0.025);
}

.ctable-cover {
  width: 84px;
  height: 56px;
  background: #141414;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctable-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ctable-nocover {
  font-size: 10px;
  color: var(--muted-deep);
  letter-spacing: 0.1em;
}

.ctable-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ctable-name .cn {
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.ctable-name .en {
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-deep);
}

.ctable-num {
  font-family: var(--font-latin);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.ctable-num i {
  font-style: normal;
  color: #a8705f;
}

.ctable-acts {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* 照片管理网格 */
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.pcard {
  margin: 0;
  background: #101010;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.28s var(--ease);
}

.pcard:hover {
  border-color: var(--line-strong);
}

.pcard.is-hidden {
  opacity: 0.52;
}

.pcard-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0b0b0b;
  cursor: zoom-in;
}

.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.pcard:hover .pcard-media img {
  transform: scale(1.03);
}

.pcard-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  background: rgba(8, 8, 8, 0.78);
  border: 1px solid rgba(240, 239, 236, 0.18);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pcard-badge.is-hero {
  left: auto;
  right: 8px;
  border-color: rgba(201, 168, 106, 0.5);
  color: var(--gold);
}

.pcard-badge.is-cover {
  top: auto;
  bottom: 8px;
  border-color: rgba(201, 168, 106, 0.4);
  color: var(--gold);
}

.pcard-meta {
  padding: 10px 12px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pcard-title {
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pcard-sub {
  font-family: var(--font-latin);
  font-size: 9.5px;
  color: var(--muted-deep);
  letter-spacing: 0.08em;
}

.pcard-acts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 12px 12px;
}

.pcard-acts .btn-line {
  padding: 5px 4px;
  font-size: 10px;
  letter-spacing: 0;
  text-align: center;
  justify-content: center;
}

/* 删除独占第二行，避免挤在第一行末尾 */
.pcard-acts .btn-line.is-danger {
  grid-column: 1 / -1;
}

/* 轮播列表 */
.hlist {
  border-top: 1px solid var(--line);
}

.hrow {
  display: grid;
  grid-template-columns: 42px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(240, 239, 236, 0.05);
}

.hrow-no {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  opacity: 0.7;
}

.hrow-img {
  width: 92px;
  height: 58px;
  object-fit: cover;
  background: #141414;
}

.hrow-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.hrow-name .cn {
  font-size: 13.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hrow-name .en {
  font-family: var(--font-latin);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-deep);
}

.hrow-acts {
  display: flex;
  gap: 8px;
}

/* =====================================================================
   控制台 · 相册加锁
   ===================================================================== */

.ctable-lock-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border: 1px solid rgba(201, 168, 106, 0.4);
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--gold);
  width: fit-content;
}

.ctable-lock-tag.is-off {
  border-color: rgba(240, 239, 236, 0.14);
  color: var(--muted-deep);
}

.btn-line.is-gold {
  border-color: rgba(201, 168, 106, 0.5);
  color: var(--gold);
}

.btn-line.is-gold:hover {
  background: rgba(201, 168, 106, 0.12);
  border-color: var(--gold);
}

/* 加锁对话框 */
.lock-box-console {
  width: min(560px, 100%);
}

.lock-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.lock-toggle-label {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.lock-toggle-sub {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted-deep);
  letter-spacing: 0.04em;
}

/* 开关 */
.switch {
  flex: 0 0 auto;
  position: relative;
  width: 46px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(240, 239, 236, 0.16);
  border-radius: 99px;
  background: #151515;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.switch.is-on {
  background: rgba(201, 168, 106, 0.85);
  border-color: var(--gold);
}

.switch-knob {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 19px;
  height: 19px;
  margin-top: -9.5px;
  border-radius: 50%;
  background: #cfcdc8;
  transition: left 0.28s var(--ease), background 0.28s var(--ease);
}

.switch.is-on .switch-knob {
  left: 23px;
  background: #17130c;
}

.switch:disabled {
  opacity: 0.5;
}

/* 密码列表 */
/* =====================================================================
   控制台 · 访问统计
   ===================================================================== */

/* 时间范围切换 */
.stat-tabs {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--line-strong);
}

.stat-tab {
  padding: 8px 18px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-right: 1px solid var(--line);
  transition: background 0.24s var(--ease), color 0.24s var(--ease);
}

.stat-tab:last-child {
  border-right: 0;
}

.stat-tab:hover {
  color: var(--ink);
  background: rgba(240, 239, 236, 0.04);
}

.stat-tab.is-active {
  background: rgba(201, 168, 106, 0.16);
  color: var(--gold);
}

/* 概览卡片 */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.stat-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #101010;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-k {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted-deep);
  text-transform: uppercase;
}

.sc-v {
  font-family: var(--font-latin);
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
}

/* 两个图并排 */
.stat-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
}

.bar-chart {
  border: 1px solid var(--line);
  background: #0e0e0e;
  padding: 20px 22px 24px;
}

.bar-chart-title {
  margin: 0 0 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.bar-chart-hint {
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted-deep);
}

.bar-chart-empty {
  margin: 30px 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted-deep);
  letter-spacing: 0.1em;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* 三栏：名称 | 柱 | 数字，互不干扰 */
.bar-row {
  display: grid;
  grid-template-columns: minmax(64px, 104px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.bar-name {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-name.is-home {
  color: var(--gold);
}

.bar-track {
  position: relative;
  height: 18px;
  /* 浅色轨道底，让短柱也能看出长度 */
  background: rgba(240, 239, 236, 0.045);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  /* 金色渐变，尾部淡出，比纯色条精致 */
  background: linear-gradient(
    90deg,
    rgba(201, 168, 106, 0.92),
    rgba(201, 168, 106, 0.4)
  );
  border-radius: 1px;
  transition: width 0.5s var(--ease);
}

.bar-fill.is-home {
  background: linear-gradient(90deg, var(--gold), rgba(201, 168, 106, 0.55));
}

.bar-numbers {
  font-family: var(--font-latin);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: right;
  min-width: 76px;
}

.bar-numbers b {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.bar-numbers i {
  font-style: normal;
  margin-left: 8px;
  color: var(--muted-deep);
  font-size: 10px;
}

/* =====================================================================
   控制台 · 访问统计 · 地域分布地图
   ===================================================================== */

.stat-map-block {
  margin-top: 32px;
  /* 撑满内容区宽度，和上面的「相册访问排名」「归属地分布」两张图对齐。
     之前这里限制了 max-width: 992px，导致地图卡片比上面的图窄，
     右侧空出一大块，下拉框也跑到页面中间去了。 */
}

.stat-map-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.stat-map-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.stat-map-head h2 .en {
  margin-left: 10px;
  font-family: var(--font-latin);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  color: var(--muted-deep);
  text-transform: uppercase;
}

.stat-map-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-map-tools label {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--muted-deep);
  text-transform: uppercase;
}

.stat-map-select {
  appearance: none;
  padding: 7px 30px 7px 12px;
  background: #151515
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%238a8884'/></svg>")
    no-repeat right 11px center;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.24s var(--ease);
}

.stat-map-select:hover {
  border-color: rgba(201, 168, 106, 0.5);
}

.stat-map-select:focus {
  outline: none;
  border-color: var(--gold);
}

/* 地图卡片 */
.stat-map-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #0f0f0f 0%, #0b0b0b 100%);
  padding: 6px;
  position: relative;
}

/* 地图容器。
   容器宽度现在和上面的图表一致（约 1100px），
   而地图本身宽高比约 1.45:1，所以高度给 760px 才能让地图舒展、
   不在两侧留大片空白。 */
#stat-map {
  width: 100%;
  height: 760px;
}

.stat-map-empty {
  margin: 0;
  padding: 100px 20px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted-deep);
}

/* 空状态时容器不需要占满 640px，收缩到内容高度 */
#stat-map.is-empty {
  height: auto;
}

@media (max-width: 900px) {
  .stat-map-head {
    flex-wrap: wrap;
    gap: 10px;
  }
  #stat-map {
    height: 420px;
  }
}

/* ------------------------------------------------------- 相册加锁对话框 */
.lock-keys-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.lock-keys {
  max-height: 260px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.lock-keys-empty {
  margin: 16px 0;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted-deep);
  letter-spacing: 0.03em;
}

.lock-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid rgba(240, 239, 236, 0.05);
}

.lock-key-row.is-off {
  opacity: 0.5;
}

.lock-key-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.lock-key-pass {
  font-family: var(--font-latin);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.lock-key-label {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.lock-key-state {
  padding: 1px 7px;
  border: 1px solid rgba(240, 239, 236, 0.14);
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted-deep);
}

.lock-key-row:not(.is-off) .lock-key-state {
  border-color: rgba(201, 168, 106, 0.4);
  color: var(--gold);
}

.lock-key-acts {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  transition: border-color 0.24s var(--ease), color 0.24s var(--ease),
    background 0.24s var(--ease);
}

.icon-btn:hover {
  border-color: rgba(240, 239, 236, 0.16);
  background: rgba(240, 239, 236, 0.05);
  color: var(--ink);
}

.icon-btn.is-danger:hover {
  border-color: rgba(180, 84, 74, 0.6);
  background: rgba(180, 84, 74, 0.12);
  color: #d9766a;
}

.icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =====================================================================
   自适应（桌面为主，窄屏兜底）
   ===================================================================== */
@media (max-width: 1200px) {
  .masonry {
    column-count: 3;
  }
  .collection-block .album-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .console {
    grid-template-columns: 232px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .album-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .album-card {
    grid-column: span 2;
  }
  .album-card:nth-child(n + 3) {
    grid-column: span 2;
  }
  .collection-block .album-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .collection-block .album-card,
  .collection-block .album-card:nth-child(n + 3) {
    grid-column: span 1;
  }
  .lb-stage {
    padding: 40px 72px 0;
  }
  .lb-nav {
    width: 46px;
    height: 46px;
  }
  .lb-prev {
    left: 14px;
  }
  .lb-next {
    right: 14px;
  }
  .console {
    grid-template-columns: 1fr;
  }
  .console-side {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .ctable-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 14px;
  }
  .ctable-num {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 60px;
    padding: 0 18px;
  }
  .brand-en {
    display: none;
  }
  .brand-cn {
    font-size: 16px;
    letter-spacing: 0.16em;
  }
  .topbar-actions {
    gap: 10px;
  }
  .topbar-actions .btn-gold,
  .topbar-actions .btn-line {
    padding: 7px 14px;
    font-size: 10.5px;
    letter-spacing: 0.1em;
  }

  /* ---------- 首页 hero ---------- */
  .hero {
    height: auto;
    /* 文字块加分隔线和两行副标题后变高了，给足空间避免被裁 */
    min-height: 78vh;
    padding: 88px 0 48px;
    /* 文字沉底：把内容整体靠下对齐，上方让给照片 */
    align-items: flex-end;
  }
  /* 手机上轮播图直接用桌面端的 cover/contain 逻辑：
     - 横图 cover：上下填满、左右裁一点（用户允许）
     - 竖图 contain：上下填满、左右留黑边（用户允许）
     因此不再单独覆盖 background-size，也去掉模糊底衬——竖图左右
     直接露出 hero 的深色背景，而不是糊成一团的模糊色块 */
  .hero-slide .blur,
  .hero-slide.is-landscape .blur {
    display: none;
  }
  .hero-inner {
    /* 去掉桌面端的左偏移，避免右边溢出 */
    margin-left: 0;
    padding: 0 20px;
  }
  .eyebrow-label {
    /* 桌面 letter-spacing 0.34em 太宽，窄屏会超出屏幕 */
    gap: 9px;
    font-size: 8.5px;
    letter-spacing: 0.16em;
    white-space: normal;
  }
  .eyebrow-label::before {
    width: 22px;
  }
  .hero-title {
    margin: 14px 0 0;
    /* 手机上一行排布，字号跟着宽度缩，保证不换行 */
    font-size: clamp(19px, 5.2vw, 24px);
    letter-spacing: 0.1em;
    line-height: 1.5;
    gap: 10px;
  }
  .hero-title .glow-bar {
    height: 1em;
  }
  .hero-divider {
    width: 40px;
    margin: 16px 0 14px;
  }
  .hero-sub {
    max-width: 100%;
    font-size: 11.5px;
    line-height: 1.95;
    letter-spacing: 0.04em;
    padding-left: 12px;
    /* 手机竖图铺满时照片细节多，文字压在照片上不易读，加一点阴影 */
    color: #c6c4bf;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75), 0 0 3px rgba(0, 0, 0, 0.5);
  }
  /* 手机上光斑缩小，避免遮挡太多画面 */
  .glow-1 {
    width: 260px;
    height: 260px;
  }
  .glow-2 {
    width: 200px;
    height: 200px;
  }
  .glow-3 {
    width: 140px;
    height: 140px;
  }
  /* 手机上照片细节多，整体再压暗一点，保证文字可读 */
  .hero::after {
    background:
      linear-gradient(
        180deg,
        rgba(13, 13, 13, 0.55) 0%,
        rgba(13, 13, 13, 0.22) 26%,
        rgba(13, 13, 13, 0.5) 66%,
        #0d0d0d 100%
      ),
      linear-gradient(90deg, rgba(6, 6, 6, 0.62) 0%, rgba(6, 6, 6, 0.28) 62%, rgba(6, 6, 6, 0.1) 100%);
  }
  .scroll-hint {
    /* 手机上不显示「向下浏览」引导，用户自然下滑，省出空间给照片 */
    display: none;
  }
  .hero-dots {
    bottom: 20px;
  }

  /* ---------- 首页摄影集分组 ---------- */
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .section-head {
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 14px;
  }
  .section-title {
    font-size: 22px;
  }
  .section-title .en {
    font-size: 9px;
    letter-spacing: 0.2em;
  }
  .section-tools {
    gap: 12px;
    padding-bottom: 0;
  }
  .section-count {
    font-size: 9.5px;
    letter-spacing: 0.14em;
  }
  .collection-block {
    margin-bottom: 40px;
  }
  .collection-head {
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }
  .collection-title {
    font-size: 19px;
  }
  .collection-en {
    font-size: 9px;
    letter-spacing: 0.2em;
  }
  .collection-meta {
    width: 100%;
    font-size: 9px;
    margin-top: 2px;
  }
  /* 手机上一列一张大图，卡片更有存在感 */
  .collection-block .album-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .album-grid {
    grid-template-columns: 1fr;
  }
  .album-card {
    grid-column: span 1;
  }
  .album-card:nth-child(n + 3) {
    grid-column: span 1;
  }
  .album-card .card-media,
  .album-card.is-lead .card-media {
    aspect-ratio: 16 / 10;
  }
  .card-foot {
    padding: 12px 14px;
  }
  .card-name .cn {
    font-size: 16px;
  }
  .card-name .en {
    font-size: 9px;
    letter-spacing: 0.18em;
  }
  .card-count {
    font-size: 9.5px;
  }
  .card-lock {
    width: 24px;
    height: 24px;
    top: 10px;
    right: 10px;
  }

  /* ---------- 相册页 ---------- */
  .album-head {
    /* 手机上分成两行：第一行「返回 + 张数」，第二行标题 */
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "back . count"
      "main main main";
    align-items: center;
    gap: 10px 12px;
    padding: 18px 18px 14px;
  }
  .back-link {
    grid-area: back;
    font-size: 11.5px;
  }
  .album-count {
    grid-area: count;
    font-size: 10.5px;
    justify-self: end;
  }
  .album-head-main {
    grid-area: main;
    width: 100%;
    gap: 5px;
  }
  .album-crumb {
    font-size: 8.5px;
    letter-spacing: 0.14em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .album-title {
    font-size: 25px;
    letter-spacing: 0.06em;
  }
  .masonry {
    column-count: 2;
    column-gap: 10px;
    padding: 14px 18px 0;
  }
  .shot {
    margin-bottom: 10px;
  }
  .shot-meta {
    padding: 6px 0 0;
    gap: 2px;
  }
  .shot-title {
    font-size: 10.5px;
  }
  .shot-date {
    font-size: 8.5px;
  }

  /* ---------- 灯箱 ----------
   * 移动端改成「照片优先」的全屏看图模式：
   *   - 顶部一条工具栏：左上角返回、中间计数、右侧 EXIF 开关
   *   - 中间整块留给照片，双指可缩放（手势在 app.js 里处理）
   *   - EXIF 默认收起，点开关才从底部弹出
   *   - 不再有左右箭头，改为左右滑动翻页
   */
  .lightbox {
    flex-direction: column;
    background: #050505;
  }

  /* 顶部工具栏 */
  .lb-mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    padding: 10px 14px;
    /* 避开刘海屏 / 状态栏 */
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    z-index: 5;
    background: rgba(5, 5, 5, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* 图片区：占满工具栏与底部安全区之间的所有空间 */
  .lb-stage {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    align-items: center;
    justify-content: center;
    /* 交给 JS 自己处理手势：禁掉浏览器默认的滚动与双击缩放 */
    touch-action: none;
    overflow: hidden;
  }

  .lb-img {
    /* 适应屏幕显示，缩放在 JS 里用 transform 叠加 */
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    /* 拖动 / 缩放时不要有过渡，否则会「飘」 */
    transition: opacity 0.35s var(--ease);
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
  }

  /* 手机上不要左右箭头：滑动翻页就够了 */
  .lb-nav {
    display: none !important;
  }

  /* 桌面端那个关闭按钮在移动端隐藏，由左上角返回键代替 */
  .lb-close {
    display: none !important;
  }

  /* 信息栏默认收起，点 EXIF 开关后从底部滑出 */
  .lb-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    width: 100%;
    height: auto;
    max-height: 62vh;
    padding: 18px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    border-left: 0;
    border-top: 1px solid rgba(240, 239, 236, 0.12);
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;

    /* 收起状态 */
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s var(--ease), opacity 0.32s var(--ease);
  }

  /* 展开状态 */
  .lb-info.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .lb-head,
  .lb-exif,
  .lb-foot {
    flex-shrink: 0;
  }

  .lb-title {
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .lb-cat {
    font-size: 8.5px;
    letter-spacing: 0.2em;
  }

  .lb-exif {
    margin-top: 12px;
  }

  .lb-exif .item {
    padding: 8px 0;
    gap: 12px;
  }

  .lb-exif .k {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .lb-exif .v {
    font-size: 12px;
  }

  .lb-foot {
    margin-top: 14px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
  }

  .lb-counter {
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .lb-actions {
    flex: 0 0 auto;
  }

  .lb-actions .lb-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 10.5px;
  }

  .lb-btn {
    padding: 8px 14px;
    font-size: 10.5px;
  }

  /* ---------- 查看原图 ---------- */
  .viewer-bar {
    padding: 12px 16px;
    gap: 10px;
  }
  .viewer-name {
    font-size: 12px;
  }
  /* 手机上改成触摸提示 */
  .viewer-tip {
    font-size: 9px;
    letter-spacing: 0.04em;
  }
  .viewer-close {
    width: 36px;
    height: 36px;
  }
  /* 手机上提示改成触摸说法 */
  .viewer-tip-desktop {
    display: none;
  }
  .viewer-tip-mobile {
    display: inline;
  }

  /* ---------- 相册密码界面 ---------- */
  .lock-screen {
    min-height: 46vh;
    padding: 30px 20px 60px;
  }
  .lock-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
  }
  .lock-title {
    font-size: 18px;
  }
  .lock-hint {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .lock-form {
    flex-direction: column;
    gap: 10px;
  }
  .lock-input {
    padding: 13px 14px;
    font-size: 15px; /* ≥16px 触发 iOS 不缩放，13~15 也可以 */
    text-align: center;
  }
  .lock-submit {
    width: 100%;
    padding: 13px;
  }

  /* ---------- 通用 ---------- */
  .footer {
    margin-top: 56px;
    padding: 20px 18px 40px;
    font-size: 10px;
    letter-spacing: 0.16em;
  }
  .up-fields {
    grid-template-columns: 1fr;
  }
  .hrow {
    grid-template-columns: 32px 70px minmax(0, 1fr);
    gap: 12px;
  }
  .hrow-acts {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================================
   横屏手机（高度很小、宽度可能超过 760px）
   ---------------------------------------------------------------------
   手机横过来时宽度往往在 700~950 之间，会落进桌面断点，
   于是右侧 340px 的信息栏会白白吃掉一大块看图空间。
   这里把「矮屏 + 触摸」的设备也当成移动端处理：
   图片区铺满，信息栏改成可收起的底部面板。
   ===================================================================== */
@media (max-height: 520px) and (orientation: landscape) {
  .lightbox {
    flex-direction: column;
    background: #050505;
  }

  /* 横屏时顶栏压薄一点，把高度让给照片 */
  .lb-mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    padding: 6px 12px;
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
    z-index: 5;
    background: rgba(5, 5, 5, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .lb-back {
    width: 32px;
    height: 32px;
  }

  .lb-stage {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    touch-action: none;
    overflow: hidden;
  }

  .lb-img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.35s var(--ease);
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
  }

  .lb-nav,
  .lb-close {
    display: none !important;
  }

  /* 横屏时 EXIF 面板从右侧滑出，避免占掉宝贵的高度 */
  .lb-info {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 6;
    width: min(320px, 52vw);
    height: 100%;
    max-height: none;
    padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 0;
    border-left: 1px solid rgba(240, 239, 236, 0.12);
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;

    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  .lb-info.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .lb-title {
    font-size: 15px;
  }

  .lb-exif {
    margin-top: 10px;
  }

  .lb-exif .item {
    padding: 7px 0;
  }

  .lb-foot {
    margin-top: 12px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
  }

  .lb-btn {
    padding: 7px 12px;
    font-size: 10.5px;
  }
}

/* ============================================================
   关于页配置（控制台）
   ============================================================ */

.about-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 28px;
  border: 1px solid rgba(240, 239, 236, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.about-toggle-label {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 5px;
}

.about-toggle-sub {
  display: block;
  font-size: 12.5px;
  color: var(--muted-deep);
  line-height: 1.5;
}

.about-section {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(240, 239, 236, 0.06);
}

.about-section:last-of-type {
  border-bottom: 0;
}

.about-h3 {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 400;
}

.about-h3-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.about-h3-row .about-h3 {
  margin-bottom: 0;
}

/* 头像 */
.about-avatar-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.about-avatar {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(240, 239, 236, 0.12);
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.about-avatar.is-loading {
  opacity: 0.4;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aa-empty {
  font-size: 12px;
  color: var(--muted-deep);
}

.about-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-hint {
  display: block;
  font-size: 12px;
  color: var(--muted-deep);
  line-height: 1.6;
}

.about-count {
  text-align: right;
  margin-top: 6px;
}

/* 正文 */
.about-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(240, 239, 236, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
  font-family: inherit;
  resize: vertical;
  min-height: 140px;
  box-sizing: border-box;
}

.about-textarea:focus {
  outline: none;
  border-color: rgba(201, 168, 106, 0.5);
}

/* 联系方式 */
.about-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ac-label {
  flex: 0 0 120px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(240, 239, 236, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  font-size: 13.5px;
  font-family: inherit;
  box-sizing: border-box;
}

.ac-value {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(240, 239, 236, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  font-size: 13.5px;
  font-family: inherit;
  box-sizing: border-box;
}

.ac-label:focus,
.ac-value:focus {
  outline: none;
  border-color: rgba(201, 168, 106, 0.5);
}

.ac-del {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 80, 60, 0.1);
  color: #d9705f;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ac-del:hover {
  background: rgba(255, 80, 60, 0.2);
}

.about-contact-empty {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted-deep);
}

/* 保存栏 */
.about-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(240, 239, 236, 0.08);
}

.about-save-hint {
  font-size: 13px;
  color: var(--muted);
}

.about-save-hint.is-error {
  color: #d9705f;
}

/* ============================================================
   首页设置（控制台）
   ============================================================ */

.home-bg-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.home-bg-preview {
  flex: 0 0 auto;
  width: 140px;
  height: 249px;   /* 9:16 竖版 */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(240, 239, 236, 0.12);
  background: #0f0f0f;
  transition: opacity 0.2s ease;
}

.home-bg-preview.is-loading {
  opacity: 0.4;
}

.home-bg-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(160deg, #161616 0%, #0d0d0d 100%);
}

.hb-empty span {
  font-size: 13px;
  color: var(--muted-deep);
}

.hb-empty small {
  font-size: 11px;
  color: #3d3c3a;
}

.home-bg-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

/* ============================================================
   背景图裁剪界面
   ============================================================ */

.crop-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.crop-layer.is-open {
  display: flex;
}

.crop-box {
  width: min(92vw, 520px);
  max-height: 92vh;
  padding: 24px;
  border-radius: 14px;
  background: #161616;
  border: 1px solid rgba(240, 239, 236, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crop-box h3 {
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.crop-hint {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-deep);
}

/* 裁剪舞台 */
.crop-stage {
  position: relative;
  width: 100%;
  height: min(56vh, 460px);
  border-radius: 8px;
  overflow: hidden;
  background: #0a0a0a;
  user-select: none;
  touch-action: none;
}

.crop-img {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* 遮罩：四块深色，盖住裁剪框外部 */
.crop-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crop-shade {
  position: absolute;
  background: rgba(0, 0, 0, 0.62);
}

/* 裁剪框 */
.crop-frame {
  position: absolute;
  border: 1.5px solid rgba(201, 168, 106, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
  cursor: move;
  touch-action: none;
}

.crop-frame.is-dragging {
  border-color: #e0c085;
}

/* 四角手柄 */
.crop-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  background: rgba(201, 168, 106, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 2px;
  touch-action: none;
}

.crop-tl {
  left: -9px;
  top: -9px;
  cursor: nwse-resize;
}

.crop-tr {
  right: -9px;
  top: -9px;
  cursor: nesw-resize;
}

.crop-bl {
  left: -9px;
  bottom: -9px;
  cursor: nesw-resize;
}

.crop-br {
  right: -9px;
  bottom: -9px;
  cursor: nwse-resize;
}

.crop-info {
  font-size: 12.5px;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.04em;
}

.crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ============================================================
   账号安全（修改密码）
   ============================================================ */

.pwd-form {
  max-width: 460px;
  margin-bottom: 44px;
}

.pwd-form .field {
  display: block;
  margin-bottom: 22px;
}

.pwd-form .field > span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 9px;
}

.pwd-strength {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  min-height: 18px;
  margin-bottom: 18px;
}

.pwd-strength.is-weak { color: #d9705f; }
.pwd-strength.is-mid { color: #d4a25f; }
.pwd-strength.is-good { color: #9fb87a; }
.pwd-strength.is-strong { color: #7ec99a; }

.pwd-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(240, 239, 236, 0.08);
}

.pwd-tips {
  max-width: 460px;
  padding: 22px 24px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(240, 239, 236, 0.07);
}

.pwd-tip-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 2;
  color: var(--muted-deep);
}

/* ============================================================
   作品排行
   ============================================================ */

.rank-stats {
  display: flex;
  gap: 14px;
  margin-bottom: 30px;
}

.rank-stat {
  flex: 1;
  max-width: 200px;
  padding: 18px 22px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(240, 239, 236, 0.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rs-num {
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--gold);
  line-height: 1;
}

.rs-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted-deep);
}

/* 切换标签 */
.rank-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.rank-tab {
  padding: 9px 20px;
  border-radius: 20px;
  border: 1px solid rgba(240, 239, 236, 0.1);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rank-tab:hover {
  border-color: rgba(201, 168, 106, 0.4);
  color: var(--ink-soft);
}

.rank-tab.is-active {
  border-color: var(--gold);
  background: rgba(201, 168, 106, 0.12);
  color: var(--gold);
}

/* 排行列表 */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.rank-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.rank-no {
  flex: 0 0 auto;
  width: 28px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted-deep);
  text-align: center;
}

.rank-no.is-top {
  color: var(--gold);
  font-weight: 600;
}

.rank-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: #141414;
}

.rank-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-deep);
  font-size: 16px;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 13.5px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-album {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-count {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.rank-count b {
  font-size: 17px;
  font-weight: 400;
  color: var(--gold);
}

.rank-arrow {
  flex: 0 0 auto;
  font-size: 16px;
  color: var(--muted-deep);
}

/* 明细弹窗 */
.rank-detail-box {
  width: min(92vw, 560px);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.rank-detail-path {
  font-family: monospace;
  font-size: 11.5px;
  color: var(--muted-deep);
  word-break: break-all;
  margin-bottom: 16px;
}

.rank-detail-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 20px;
}

.rd-summary {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(201, 168, 106, 0.08);
  border: 1px solid rgba(201, 168, 106, 0.2);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.rd-summary b {
  color: var(--gold);
  font-weight: 400;
}

.rd-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rd-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12.5px;
}

.rd-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.022);
}

.rd-user {
  flex: 0 0 auto;
  width: 90px;
  color: var(--ink-soft);
}

.rd-openid {
  flex: 0 0 auto;
  width: 80px;
  font-family: monospace;
  color: var(--muted-deep);
  font-size: 11.5px;
}

.rd-time {
  flex: 1;
  text-align: right;
  color: var(--muted-deep);
  font-variant-numeric: tabular-nums;
}

.rd-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 2px solid rgba(201, 168, 106, 0.4);
  background: rgba(201, 168, 106, 0.04);
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--muted-deep);
}

/* ============================================================
   邮箱验证码（登录 + 改密码共用）
   ============================================================ */

/* 输入框 + 按钮 一行 */
.code-row {
  display: flex;
  gap: 10px;
  /*
   * 让按钮自动和输入框同高。
   *
   * 关键：输入框本身不能改高度（要和上面的「当前密码」「新密码」保持一致），
   * 所以用 stretch 让按钮去适配输入框，而不是反过来拉高输入框。
   */
  align-items: stretch;
}

/*
 * 行内输入框只需去掉底部外边距。
 *
 * .rename-input 全局有 margin-bottom: 20px，
 * 放在 flex 行里会把这一行撑高 20px，导致按钮被拉长、和输入框错位。
 * 去掉后，输入框保持原生高度，按钮 stretch 到同样高度，自然对齐。
 */
.code-row .rename-input {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  /* 数字用等宽，看起来更整齐 */
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.code-btn {
  flex: 0 0 auto;
  min-width: 116px;
  padding: 0 16px;
  border-radius: 7px;
  border: 1px solid rgba(201, 168, 106, 0.42);
  background: rgba(201, 168, 106, 0.08);
  color: var(--gold);
  font-size: 13px;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.code-btn:hover:not(:disabled) {
  border-color: rgba(201, 168, 106, 0.7);
  background: rgba(201, 168, 106, 0.14);
}

.code-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 字段下方的小字说明 */
.field-note {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--muted-deep);
}

.field-note.is-ok {
  color: rgba(201, 168, 106, 0.85);
}

/* 密码登录模式下的小提示 */
.login-tip {
  margin: -4px 0 18px;
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--muted-deep);
}

/* 登录页的小调整 */
.page-login .field-note {
  margin-top: 9px;
}

/*
 * 修复：验证码提示里的邮箱被显示成大写
 *
 * 原因：
 *   .field-note 用的是 <span> 标签，位于 .field 内部，
 *   被 `.field > span { text-transform: uppercase; letter-spacing: 0.26em; }`
 *   命中，于是 "已发送到 chen***666@126.com" 变成了
 *   "已发送到 CHE***666@126.COM"。
 *
 * 为什么加 !important：
 *   `.field > span` 的优先级是 (0,1,1)，
 *   而 `.field-note` 只有 (0,1,0)，压不过它。
 *   改成 `.field > span.field-note` 也能提高优先级，
 *   但 !important 更直观，而且这里只是重置文字变换，没有副作用。
 *
 * 影响范围：
 *   只作用于 .field-note 这一个类，相册标题、副标题、
 *   导航英文等原本该大写的元素完全不受影响。
 */
.field-note {
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  font-family: inherit !important;
}

/* ============================================================
   登录方式切换（密码登录 / 邮箱登录）
   ============================================================ */

.login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(240, 239, 236, 0.07);
}

.login-tab {
  flex: 1;
  padding: 9px 12px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-family: inherit;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}

.login-tab:hover {
  color: var(--ink-soft);
}

.login-tab.is-active {
  background: rgba(201, 168, 106, 0.13);
  color: var(--gold);
}

/* ============================================================
   重置密码区块
   ============================================================ */

.pwd-reset {
  /*
   * 和上面的 .pwd-form 保持同样的宽度。
   *
   * 之前没设宽度，它会撑满 console-main（899px），
   * 而上面的修改密码表单只有 460px，
   * 两块内容宽度不一致，看起来像错位。
   */
  max-width: 460px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(240, 239, 236, 0.07);
}

/* 安全建议那块也一样宽 */
.pwd-tips {
  max-width: 460px;
}

.pwd-reset-desc {
  margin: -6px 0 22px;
  font-size: 12.5px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--muted-deep);
}

/* 次要按钮 */
.btn-outline {
  padding: 10px 20px;
  border-radius: 7px;
  border: 1px solid rgba(240, 239, 236, 0.18);
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-family: inherit;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.btn-outline:hover:not(:disabled) {
  border-color: rgba(201, 168, 106, 0.45);
  color: var(--gold);
  background: rgba(201, 168, 106, 0.05);
}

.btn-outline:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.about-save-hint.is-error {
  color: #d98b8b;
}
