/* ===========================================================
   电气一班云相册 · 站点样式
   温馨 · 清新 · 圆角 · 粉色
   =========================================================== */

:root {
  --pink-50: #fff6f7;
  --pink-100: #ffedf0;
  --pink-200: #ffdbe1;
  --pink-300: #fbc3cd;
  --pink-400: #f5a3b3;
  --pink-500: #ec8398;
  --pink-600: #da6180;
  --pink-700: #b94a67;

  --ink: #372f35;
  --ink-soft: #5a525a;
  --muted: #8a8189;
  --line: #f6e6ea;
  --card: #ffffff;
  --page: #fffafa;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px -4px rgba(185, 74, 103, 0.22);
  --shadow: 0 10px 30px -18px rgba(185, 74, 103, 0.42);
  --shadow-lg: 0 26px 60px -30px rgba(185, 74, 103, 0.55);

  --topbar-h: 66px;
  --maxw: 1180px;

  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

* {
  box-sizing: border-box;
}

/* 关键：类选择器里的 display 会盖掉 hidden 属性的 UA 样式，这里显式兜底 */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei",
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

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

input {
  font: inherit;
}

::selection {
  background: var(--pink-200);
  color: var(--ink);
}

/* ---------- 背景装饰 ---------- */

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.blob-a {
  width: 46vw;
  height: 46vw;
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle at 30% 30%, #ffd9e0, #ffeef2 70%);
}

.blob-b {
  width: 38vw;
  height: 38vw;
  top: 8vw;
  right: -12vw;
  background: radial-gradient(circle at 60% 40%, #ffe3ea, #fff5f7 70%);
}

.blob-c {
  width: 40vw;
  height: 40vw;
  bottom: -16vw;
  left: 22vw;
  background: radial-gradient(circle at 50% 50%, #fdeaf3, #fff8fb 70%);
}

/* ---------- 顶部栏 ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  position: relative;
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--pink-400), var(--pink-600));
  box-shadow: 0 8px 18px -10px rgba(185, 74, 103, 0.9);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text small {
  font-size: 11.5px;
  color: var(--muted);
}

/* 搜索框 */

.search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 360px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--pink-400);
}

.search input {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 38px;
  border-radius: 999px;
  border: 1px solid var(--pink-100);
  background: var(--pink-50);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search input::placeholder {
  color: #b9aeb5;
}

.search input:focus {
  background: #fff;
  border-color: var(--pink-300);
  box-shadow: 0 0 0 4px rgba(251, 195, 205, 0.45);
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.search-clear:hover {
  background: var(--pink-100);
  color: var(--pink-600);
}

/* ---------- 音乐播放器 ---------- */

.player {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.player-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--pink-300), var(--pink-500));
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.player-btn svg {
  width: 20px;
  height: 20px;
}

.player-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.player-btn.is-playing {
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(236, 131, 152, 0.5); }
  50% { box-shadow: 0 0 0 9px rgba(236, 131, 152, 0); }
}

.player-label {
  max-width: 150px;
  font-size: 12.5px;
  color: var(--pink-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-label:empty {
  display: none;
}

.player-panel {
  position: absolute;
  top: 50px;
  right: 0;
  width: 316px;
  max-width: calc(100vw - 32px);
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  border: 1px solid var(--pink-100);
  box-shadow: var(--shadow-lg);
  transform-origin: top right;
  animation: dropIn 0.22s var(--ease);
  z-index: 60;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.player-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px 10px;
  border-bottom: 1px dashed var(--pink-200);
}

.player-head-title {
  font-weight: 700;
  font-size: 14px;
}

.player-count {
  font-size: 12px;
  color: var(--muted);
}

.np {
  padding: 12px 4px 10px;
}

.np-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-bar {
  position: relative;
  height: 6px;
  margin: 9px 0 6px;
  border-radius: 999px;
  background: var(--pink-100);
  overflow: hidden;
  cursor: pointer;
}

.np-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-400), var(--pink-600));
  transition: width 0.2s linear;
}

.np-time {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.song-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  max-height: 244px;
  overflow-y: auto;
}

.song {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.18s var(--ease);
}

.song:hover {
  background: var(--pink-50);
}

.song.is-active {
  background: var(--pink-100);
}

.song-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--pink-500);
  box-shadow: var(--shadow-sm);
}

.song-icon svg {
  width: 13px;
  height: 13px;
}

.song-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song.is-active .song-title {
  color: var(--pink-700);
  font-weight: 600;
}

.song-dur {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.player-empty {
  margin: 14px 0 6px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 页面骨架 ---------- */

.page {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 46px) 22px 70px;
}

.hero {
  text-align: center;
  padding-bottom: 46px;
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: 12.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--pink-500);
}

.hero-title {
  margin: 0;
  font-size: clamp(30px, 5.4vw, 46px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  background: linear-gradient(120deg, #e9899f 0%, #c9556f 52%, #e58ea4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 14px auto 0;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.hero-stats {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--pink-100);
  box-shadow: var(--shadow-sm);
  font-size: 12.8px;
  color: var(--pink-700);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding-left: 4px;
}

.section-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
  padding-left: 14px;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink-300), var(--pink-500));
}

.section-hint {
  margin: 0;
  font-size: 12.8px;
  color: var(--muted);
}

/* ---------- 相册网格 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid rgba(251, 195, 205, 0.35);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.6s var(--ease) forwards;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-100), var(--pink-200));
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-cover img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.8px;
  color: #fff;
  background: rgba(55, 47, 53, 0.55);
  backdrop-filter: blur(6px);
}

.card-badge svg {
  width: 12px;
  height: 12px;
}

.card-body {
  padding: 14px 16px 16px;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  margin: 6px 0 0;
  font-size: 12.8px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.7em;
}

.card-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--pink-100);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* ---------- 空状态 ---------- */

.empty {
  padding: 66px 20px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--pink-200);
  background: rgba(255, 255, 255, 0.6);
}

.empty svg {
  width: 54px;
  height: 54px;
  color: var(--pink-300);
  margin-bottom: 10px;
}

.empty p {
  margin: 0;
  font-size: 14px;
}

/* ---------- 模态框 ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(55, 47, 53, 0.52);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.24s var(--ease);
}

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

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 1040px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(55, 47, 53, 0.6);
  animation: popIn 0.3s var(--ease);
}

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

.modal-hero {
  position: relative;
  flex: 0 0 auto;
  min-height: 210px;
  padding: 26px 28px 22px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.modal-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(55, 47, 53, 0.18) 0%, rgba(55, 47, 53, 0.78) 100%);
}

.modal-hero-text {
  position: relative;
  max-width: 78%;
}

.modal-hero-text h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.modal-hero-text p {
  margin: 6px 0 0;
}

#modalMeta {
  font-size: 12.5px;
  opacity: 0.9;
}

.modal-desc {
  margin-top: 10px !important;
  font-size: 13.6px;
  line-height: 1.75;
  white-space: pre-wrap;
  opacity: 0.95;
  max-height: 5.4em;
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.modal-close svg {
  width: 17px;
  height: 17px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px 24px 30px;
  background: linear-gradient(180deg, #fff 0%, var(--pink-50) 100%);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.photo {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--pink-100);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: zoom-in;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: default;
}

.photo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.photo-name {
  padding: 7px 9px;
  font-size: 12.2px;
  color: var(--ink-soft);
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 灯箱 ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 14px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 22, 26, 0.92);
  animation: fadeIn 0.2s var(--ease);
}

.lightbox-figure {
  position: relative;
  margin: 0;
  max-width: min(1000px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  animation: popIn 0.26s var(--ease);
}

.lightbox-figure figcaption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13.5px;
  text-align: center;
}

.lightbox-figure figcaption small {
  display: block;
  margin-top: 4px;
  font-size: 11.6px;
  color: rgba(255, 255, 255, 0.55);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.26);
}

.lightbox-nav {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s var(--ease);
}

.lightbox-nav svg {
  width: 21px;
  height: 21px;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-figure.is-loading::after {
  content: "大图加载中，请稍候…";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  white-space: nowrap;
}

.lb-error {
  color: #ffc9d4 !important;
}

/* ---------- 提示条 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(12px);
  z-index: 100;
  max-width: min(460px, 88vw);
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(55, 47, 53, 0.9);
  color: #fff;
  font-size: 13px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
  pointer-events: none;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 页脚 ---------- */

.footer {
  position: relative;
  z-index: 1;
  padding: 34px 22px 46px;
  text-align: center;
  color: var(--muted);
  font-size: 12.8px;
  border-top: 1px dashed var(--pink-200);
  background: rgba(255, 255, 255, 0.5);
}

.footer p {
  margin: 0;
}

.footer-meta {
  margin-top: 8px !important;
  font-size: 11.6px;
  color: #b5aab1;
}

/* ---------- 滚动条 ---------- */

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-thumb {
  background: var(--pink-200);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--pink-300);
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- 图片加载与自动重试 ---------- */

@keyframes shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -20% 0; }
}

.card-cover,
.photo,
.lightbox-figure {
  position: relative;
}

/* 加载中的粉色呼吸骨架：图片没到之前一直显示，让人知道"还在加载" */
.card-cover::before,
.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, var(--pink-100) 18%, var(--pink-200) 42%, var(--pink-100) 66%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

.card-cover img,
.photo img {
  position: relative;
  z-index: 1;
}

img.media {
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  /* 加载失败时不要露出浏览器的破图图标与替代文字 */
  color: transparent;
  font-size: 0;
}

img.media-ready {
  opacity: 1;
}

.card-cover:has(img.media-ready)::before,
.photo:has(img.media-ready)::before {
  opacity: 0;
  animation: none;
}

.card-cover:has(img.media-failed)::after {
  content: "封面照片没能加载";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--pink-700);
  background: var(--pink-50);
  pointer-events: none;
}

.photo:has(img.media-failed)::after {
  content: "加载失败 · 点击重试";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--pink-700);
  background: var(--pink-50);
  pointer-events: none;
}

/* ---------- 顶部加载进度条 ---------- */

.loadbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--pink-100);
  overflow: hidden;
}

.loadbar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-300), var(--pink-600));
  transition: width 0.35s var(--ease);
}

/* ---------- 右下角加载提示 ---------- */

.loadtip {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  max-width: min(350px, 84vw);
  padding: 9px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--pink-100);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  font-size: 12.2px;
  line-height: 1.65;
  color: var(--pink-700);
}

/* ---------- 相册内照片加载状态 ---------- */

.grid-status {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--pink-100);
  font-size: 12.2px;
  color: var(--pink-700);
}

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

@media (max-width: 900px) {
  .brand-text small {
    display: none;
  }

  .search {
    max-width: 260px;
  }
}

@media (max-width: 720px) {
  :root {
    --topbar-h: 58px;
  }

  .topbar-inner {
    gap: 8px;
    padding: 0 12px;
  }

  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .brand-mark svg {
    width: 17px;
    height: 17px;
  }

  .brand-text strong {
    font-size: 13.5px;
    letter-spacing: 0;
  }

  .search {
    max-width: none;
    flex: 1 1 60px;
  }

  .search input {
    height: 34px;
    padding: 0 30px 0 30px;
    font-size: 13px;
  }

  .search-icon {
    left: 10px;
    width: 14px;
    height: 14px;
  }

  .player-btn {
    width: 34px;
    height: 34px;
  }

  .player-btn svg {
    width: 17px;
    height: 17px;
  }

  .hero-title {
    letter-spacing: 0.02em;
  }

  .chip {
    padding: 5px 12px;
    font-size: 12px;
  }

  .player-label {
    display: none;
  }

  .page {
    padding: calc(var(--topbar-h) + 26px) 14px 50px;
  }

  .hero {
    padding-bottom: 32px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-body {
    padding: 10px 11px 12px;
  }

  .card-title {
    font-size: 13.6px;
  }

  .card-desc {
    display: none;
  }

  .card-meta {
    font-size: 10.8px;
    margin-top: 8px;
    padding-top: 8px;
  }

  .card-badge {
    right: 7px;
    bottom: 7px;
    padding: 3px 8px;
    font-size: 10.5px;
  }

  .modal {
    padding: 0;
  }

  .modal-panel {
    max-width: 100%;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }

  .modal-hero {
    min-height: 176px;
    padding: 20px 18px 16px;
  }

  .modal-hero-text {
    max-width: 100%;
  }

  .modal-hero-text h2 {
    font-size: 20px;
  }

  .modal-body {
    padding: 16px 14px 26px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .section-head {
    flex-direction: column;
    gap: 4px;
  }

  .lightbox-nav {
    display: none;
  }

  .loadtip {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    text-align: center;
  }
}

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

  .card {
    opacity: 1;
    transform: none;
  }
}
