/* ============================================================
 * BG9JDQ Homepage —— style.css
 * 现代化、自适应、交互式
 * 配色：深空蓝 + 琥珀色（业余无线电风格）+ 玻璃拟态
 * ============================================================ */

/* ---------- 0. 设计令牌 ---------- */
:root {
  --bg-0: #070b16;
  --bg-1: #0d1424;
  --bg-2: #131d33;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.22);

  --text: #e8eefc;
  --text-dim: #9aa6c4;
  --text-mute: #6b7794;

  --accent: #ffb020;       /* 琥珀 / 信号黄 */
  --accent-2: #38e1c4;     /* 信号青 */
  --accent-3: #6aa8ff;     /* 电波蓝 */
  --danger: #ff6b6b;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 24px rgba(255, 176, 32, 0.45);

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  /* 打字机风格字体（BG9JDQ 专用） */
  --typewriter: "Times New Roman", "Times", "Songti SC", serif;

  --maxw: 980px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 1. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 大背景：层叠的径向辉光 + 网格 */
  background-image:
    radial-gradient(1100px 600px at 12% -8%, rgba(106, 168, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(255, 176, 32, 0.12), transparent 55%),
    radial-gradient(800px 700px at 50% 120%, rgba(56, 225, 196, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
 * 2. 全屏加载动画 —— BG9JDQ 字母跳动
 * ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background:
    radial-gradient(circle at 50% 50%, rgba(106, 168, 255, 0.12), transparent 60%),
    var(--bg-0);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader--hide {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  display: flex;
  gap: 2px;
  font-family: var(--mono);
  font-size: clamp(40px, 9vw, 88px);
  font-weight: 800;
  letter-spacing: 2px;
}
.loader-text span {
  display: inline-block;
  color: var(--text);
  text-shadow: 0 0 18px rgba(255, 176, 32, 0.6);
  animation: bounceLetter 1.4s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.1s);
}
.loader-text span:nth-child(odd)  { color: var(--accent); }
.loader-text span:nth-child(even) { color: var(--accent-3); }

@keyframes bounceLetter {
  0%, 40%, 100% { transform: translateY(0) scale(1); }
  20%           { transform: translateY(-22px) scale(1.08); }
}

/* 雷达扫描圈装饰 */
.loader-signal {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 176, 32, 0.25);
  box-shadow: 0 0 0 1px rgba(56, 225, 196, 0.12) inset;
}
.loader-signal::before,
.loader-signal::after {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.loader-signal::after {
  inset: 70px;
  border-style: solid;
  border-color: rgba(56, 225, 196, 0.15);
}
.loader-signal {
  background: conic-gradient(from 0deg, transparent 0deg 280deg, rgba(56, 225, 196, 0.35) 320deg, transparent 360deg);
  animation: spin 2.2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
 * 3. 顶部状态栏 —— 双时钟 + 语言切换
 * ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(7, 11, 22, 0.72);
  border-bottom: 1px solid var(--border);
}

.clocks {
  display: flex;
  gap: clamp(12px, 3vw, 36px);
  flex-wrap: wrap;
}
.clock {
  display: flex;
  align-items: center;
  gap: 10px;
}
.clock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
.clock--visitor .clock-dot {
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}
.clock-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.clock-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
}
.clock-time {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-size: clamp(15px, 2.4vw, 19px);
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.clock-tz {
  font-size: clamp(10px, 1.6vw, 12px);
  font-weight: 500;
  color: var(--accent);
  opacity: 0.85;
}
.clock--visitor .clock-tz {
  color: var(--accent-2);
}

/* 语言切换 */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}
.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow);
}
.lang-globe { font-size: 15px; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(13, 20, 36, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s var(--ease);
}
.lang-menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  transition: all 0.15s var(--ease);
}
.lang-option:hover {
  background: var(--surface-2);
  color: var(--accent);
}

/* ============================================================
 * 4. 主体布局
 * ============================================================ */
.container {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 32px) 48px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(32px, 8vw, 72px) 0 clamp(28px, 6vw, 48px);
  margin-bottom: clamp(20px, 4vw, 36px);
}
.hero-bg {
  position: absolute;
  inset: -10% 10% auto 10%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255, 176, 32, 0.18), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}
.callsign {
  margin: 0;
  font-family: var(--typewriter);
  font-size: clamp(48px, 13vw, 120px);
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  position: relative;
}
/* 看不见的完整骨架：撑住固定宽度，避免打字时宽度变化导致布局抖动 */
.callsign-skeleton {
  visibility: hidden;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
/* 打字文字层 + 光标：绝对定位叠加在骨架上，不影响布局 */
.callsign-typed {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: baseline;
}
/* 彩虹渐变文字：背景裁切到文字，打字时逐字自动着色 */
.callsign-text {
  background: linear-gradient(
    90deg,
    #ff6b6b 0%,
    #ffa94d 16.6%,
    #ffd43b 33.3%,
    #69db7c 50%,
    #4dabf7 66.6%,
    #9775fa 83.3%,
    #f783ac 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  /* 彩虹流动动画 */
  animation: rainbowFlow 4s linear infinite;
}

@keyframes rainbowFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* 闪烁输入光标 */
.callsign-cursor {
  display: inline-block;
  width: clamp(4px, 0.8vw, 8px);
  height: clamp(48px, 13vw, 120px);
  margin-left: 6px;
  background: linear-gradient(180deg, #ff6b6b, #4dabf7, #9775fa);
  animation: cursorBlink 0.8s step-end infinite, cursorRainbow 3s linear infinite;
  box-shadow: 0 0 14px rgba(150, 120, 255, 0.6);
}

@keyframes cursorBlink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes cursorRainbow {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* 呼吸灯：彩虹辉光忽强忽弱 */
.callsign {
  animation: callsignBreath 3.6s ease-in-out infinite;
}

@keyframes callsignBreath {
  0%, 100% {
    filter: drop-shadow(0 4px 12px rgba(255, 107, 107, 0.12))
            drop-shadow(0 0 6px rgba(77, 171, 247, 0.10));
  }
  50% {
    filter: drop-shadow(0 6px 30px rgba(255, 107, 107, 0.40))
            drop-shadow(0 0 20px rgba(77, 171, 247, 0.35))
            drop-shadow(0 0 14px rgba(151, 117, 250, 0.25));
  }
}

/* 无障碍：用户偏好减少动画时关闭呼吸与光标闪烁 */
@media (prefers-reduced-motion: reduce) {
  .callsign { animation: none; }
  .callsign-text { animation: none; }
  .callsign-cursor { animation: none; filter: none; }
}
.tagline {
  margin: 16px 0 0;
  color: var(--text-dim);
  font-size: clamp(14px, 2.4vw, 17px);
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.badge {
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(255, 176, 32, 0.08);
  border: 1px solid rgba(255, 176, 32, 0.25);
  border-radius: 999px;
}
.hero-badges .badge:nth-child(2) {
  color: var(--accent-3);
  background: rgba(106, 168, 255, 0.08);
  border-color: rgba(106, 168, 255, 0.25);
}
.badge--pota {
  color: #51cf66;
  background: rgba(81, 207, 102, 0.08);
  border-color: rgba(81, 207, 102, 0.25);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.badge--pota:hover {
  background: rgba(81, 207, 102, 0.18);
  border-color: rgba(81, 207, 102, 0.5);
  box-shadow: 0 0 12px rgba(81, 207, 102, 0.3);
}
.badge--gray {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}
.badge--blue {
  color: var(--accent-3);
  background: rgba(106, 168, 255, 0.08);
  border-color: rgba(106, 168, 255, 0.25);
}

/* ---------- 通用区块 ---------- */
.section {
  margin-bottom: clamp(32px, 6vw, 56px);
  scroll-margin-top: 80px;
}
/* 仅当 JS 可用时才隐藏做滚动动画；JS 失效则内容默认可见，永不消失 */
.js .section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .section.is-visible {
  opacity: 1;
  transform: none;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
.section-num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  padding: 3px 10px;
  border: 1px solid rgba(255, 176, 32, 0.4);
  border-radius: 6px;
  background: rgba(255, 176, 32, 0.06);
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 34px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--border-strong); }

/* ---------- 简介 ---------- */
.intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 4vw, 36px);
  align-items: center;
}
.intro-avatar {
  width: clamp(80px, 16vw, 120px);
  height: clamp(80px, 16vw, 120px);
  color: var(--accent);
  filter: drop-shadow(0 0 14px rgba(255, 176, 32, 0.3));
}
.intro-locator {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 8px;
  justify-items: center;
  align-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  border: 1px solid rgba(255, 176, 32, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 176, 32, 0.05);
  overflow: hidden;
}
.locator-label {
  text-align: right;
  color: var(--text-mute);
}
.locator-val {
  text-align: left;
}
.intro-text p {
  margin: 0 0 14px;
  color: var(--text-dim);
}
.intro-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.intro-list li {
  display: flex;
  gap: 8px;
  font-size: 14px;
}
.intro-list strong {
  color: var(--accent-2);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- 收件信息 ---------- */
.qsl-note {
  margin: 0 0 22px;
  color: var(--text-dim);
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border);
}
.qsl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.qsl-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
}
.qsl-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px -12px rgba(255, 176, 32, 0.5);
}
/* 可点击的链接卡片 */
.qsl-item--link {
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
}
.qsl-item--link .qsl-val {
  color: var(--accent);
  word-break: break-all;
}
/* 站外指示图标（右上角） */
.qsl-external {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-mute);
  transition: all 0.25s var(--ease);
}
.qsl-item--link:hover .qsl-external {
  color: var(--accent);
  transform: translate(2px, -2px);
}
.qsl-icon { font-size: 22px; }
.qsl-key {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
}
.qsl-val {
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}

/* ---------- 邮寄地址展开卡片 ---------- */
.qsl-item--expand {
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.qsl-item--expand:hover {
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(255, 176, 32, 0.25);
}
.qsl-item--expand .qsl-val {
  color: var(--accent);
}
.locator-map {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(56, 225, 196, 0.08);
  border: 1px solid rgba(56, 225, 196, 0.25);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.locator-map:hover {
  background: rgba(56, 225, 196, 0.18);
  border-color: rgba(56, 225, 196, 0.5);
  box-shadow: 0 0 12px rgba(56, 225, 196, 0.3);
}

.qsl-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 10, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.qsl-overlay--open {
  opacity: 1;
  visibility: visible;
}

.qsl-expanded {
  position: fixed;
  z-index: 501;
  width: min(90vw, 480px);
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
}
.qsl-expanded--visible {
  opacity: 1;
  pointer-events: auto;
}
.qsl-expanded--animating {
  transition: none;
}

.qsl-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.qsl-close:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.qsl-addr-box {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.qsl-addr-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.qsl-addr-head span {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
}
.qsl-copy {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 176, 32, 0.08);
  border: 1px solid rgba(255, 176, 32, 0.25);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.qsl-copy:hover {
  background: rgba(255, 176, 32, 0.18);
  border-color: rgba(255, 176, 32, 0.5);
}
.qsl-addr-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-line;
}

.qsl-addr-note {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

/* ---------- 微信二维码展开卡片 ---------- */
.qsl-expanded--wechat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 24px 24px;
}
.wechat-qr {
  max-width: 260px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.wechat-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

/* ============================================================
 * 5. 照片墙
 * ============================================================ */
.gallery {
  display: grid;
  /* 桌面端：按最小宽度自动排满，常见 4~5 张一行 */
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  transition: all 0.3s var(--ease);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.8);
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.25s var(--ease);
  backdrop-filter: blur(4px);
}
.gallery-item:hover .gallery-zoom {
  opacity: 1;
  transform: scale(1);
}
.gallery-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 12px 10px;
  font-size: 12px;
  color: #fff;
  text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s var(--ease);
}
.gallery-item:hover .gallery-cap {
  opacity: 1;
  transform: none;
}

/* ============================================================
 * 6. Lightbox 全屏预览
 * ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 10, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.lightbox--open {
  opacity: 1;
  visibility: visible;
}
.lb-figure {
  margin: 0;
  max-width: 88vw;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: lbIn 0.35s var(--ease);
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
.lb-figure img {
  max-width: 88vw;
  max-height: 74vh;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  object-fit: contain;
}
.lb-caption {
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
  margin: 0;
}
.lb-desc {
  color: var(--text-mute);
  font-size: 13px;
  text-align: center;
  margin: 0;
  max-width: 60vw;
  line-height: 1.6;
}

.lb-close,
.lb-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: all 0.2s var(--ease);
}
.lb-close:hover,
.lb-nav:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.lb-close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 20px;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  font-size: 36px;
  line-height: 1;
}
.lb-prev { left: clamp(10px, 3vw, 32px); }
.lb-next { right: clamp(10px, 3vw, 32px); }

.lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

/* ============================================================
 * 6b. 专辑照片墙 + 专辑 Lightbox
 * ============================================================ */
.albums-grid .gallery-item {
  aspect-ratio: 1 / 1;
}
.album-lb-figure {
  max-width: 520px;
  width: 90vw;
  max-height: none;
  overflow: hidden;
}
.album-lb-figure img {
  max-height: 55vh;
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius) var(--radius) 0 0;
  border: none;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.album-info {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(13, 20, 36, 0.9);
  border-radius: 0 0 var(--radius) var(--radius);
  backdrop-filter: blur(12px);
  overflow-y: auto;
  max-height: 35vh;
}
.album-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}
.album-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
  min-width: 64px;
}
.album-val {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
 * 7. 页脚
 * ============================================================ */
.footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}
.footer p { margin: 0 0 6px; }
.footer-sub { font-size: 12px; opacity: 0.7; }

/* ============================================================
 * 8. 响应式
 * ============================================================ */
@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 14px;
  }
  .clocks { justify-content: space-between; }
  .lang-switch { align-self: flex-end; }
  .intro {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .intro-avatar { margin: 0 auto; }
  .intro-locator { order: -1; width: auto; height: auto; font-size: 12px; padding: 12px; }
  .locator-map { padding: 4px 10px; font-size: 10px; }
  .intro-list li { justify-content: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lb-nav { width: 44px; height: 44px; font-size: 28px; }
}

@media (max-width: 420px) {
  .callsign { letter-spacing: 2px; }
}

/* ---------- 减少动画（无障碍） ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
