* {
  box-sizing: border-box;
}

/* ===================== 顶部滚动横幅 ===================== */
.marquee-bar {
  position: relative;
  z-index: 50;
  width: 88vw;
  margin: 12px auto 0;
  margin-left: 10%;
  height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(127, 127, 127, 0.35);
}

.marquee-bar::before,
.marquee-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.marquee-bar::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), transparent);
}

.marquee-bar::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.6), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marqueeScroll 60s linear infinite;
}

.marquee-content {
  font-family: "Consolas", "JetBrains Mono", "Courier New", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #4a1a6e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.marquee-clock {
  display: none;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: url("./assets/background.webp") center center / cover no-repeat
    fixed;
  color: #fff;
  overflow: hidden;
}

.page-shell {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.desktop {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.sidebar {
  position: fixed;
  left: 18px;
  top: 18px;
  bottom: 90px;
  width: 100px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 12px 30px rgba(17, 24, 39, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.nav-item {
  color: #fff;
  padding: 10px 8px;
  display: grid;
  justify-items: center;
  gap: 8px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;

  background-color: transparent;
  border: none;
  padding: 0;
}

.nav-item img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 16px;
}

.nav-item span {
  font-size: 14px;
}

.nav-item:hover {
  transform: translateY(-2px);
}

.nav-item:hover img {
  transform: scale(1.12);
}

.nav-item img {
  transition: transform 0.25s ease;
}

.content {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.panel {
  display: none;
  width: 100%;
  height: 100%;
}

.panel.active {
  display: block;
}

.hero-card,
.card-grid,
.album-panel,
.live-panel {
  height: 100%;
}

.hero-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.1)
  );
}

.hero-info {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.avatar-wrap {
  width: min(340px, 70vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.hero-copy {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.5);
  color: #223;
  border-radius: 20px;
  padding: 14px 22px;
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 0 0 8px;
  font-size: 48px;
  color: #14385c;
  letter-spacing: 2px;
}

.hero-copy p {
  margin: 0;
  font-size: 16px;
  color: #345;
}

.glass {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mini-card {
  padding: 24px;
}

.mini-card h2,
.album-hero h2,
.live-panel h2 {
  margin-top: 0;
  color: #fff;
  font-size: 28px;
}

.mini-card ul {
  margin: 0;
  padding-left: 18px;
  line-height: 2;
  font-size: 18px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-grid span {
  text-align: center;
  padding: 10px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.album-panel {
  display: grid;
  align-content: center;
  gap: 18px;
}

.album-hero {
  padding: 28px;
  text-align: center;
}

.album-thumbs {
  display: flex;
  gap: 16px;
}

.thumb {
  flex: 1;
  min-height: 140px;
  border: 4px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  background: url("./assets/background.webp") center/cover no-repeat;
  cursor: pointer;
  opacity: 0.8;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    border-color 0.2s ease;
}

.thumb.active,
.thumb:hover {
  opacity: 1;
  transform: translateY(-4px);
  border-color: #ffd0f0;
}

.live-panel {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 18px;
  background: rgba(92, 42, 170, 0.25);
  border-radius: 28px;
  padding: 28px;
}

.live-panel img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  image-rendering: pixelated;
}

.live-panel p {
  margin: 0;
  font-size: 18px;
  opacity: 0.92;
}

@media (max-width: 900px) {
  .desktop {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .sidebar {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: auto;
    width: auto;
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
  }

  .nav-item {
    min-width: 96px;
  }

  .content {
    padding-top: 130px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== 个人信息弹框 ===================== */
.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 6, 40, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: profileFade 0.25s ease;
}

.profile-modal.open {
  display: flex;
}

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

.profile-window {
  position: relative;
  width: min(960px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(135deg, #ff5fb0 0%, #b48bff 50%, #6ee2ff 100%);
  box-shadow:
    0 30px 80px rgba(15, 6, 40, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  animation: profilePop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes profilePop {
  from {
    transform: scale(0.92) translateY(8px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.profile-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(
    90deg,
    rgba(255, 95, 176, 0.85),
    rgba(180, 139, 255, 0.85),
    rgba(110, 226, 255, 0.85)
  );
  color: #fff;
  font-family: "Consolas", "Courier New", monospace;
  letter-spacing: 1px;
}

.profile-title {
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.profile-window-controls {
  display: flex;
  gap: 6px;
}

.win-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.win-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.5);
}

.win-btn.close {
  background: #ff5a7a;
  border-color: #ffb1c3;
}

.profile-body {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 20px;
  padding: 22px;
  border-radius: 0 0 19px 19px;
  background:
    radial-gradient(
      1200px 400px at 0% 0%,
      rgba(255, 95, 176, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 400px at 100% 100%,
      rgba(110, 226, 255, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, #1a0a3a 0%, #2a0f55 100%);
  color: #fff;
}

.profile-photo {
  display: grid;
  place-items: center;
}

.profile-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: #110624;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.profile-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-name {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(90deg, #ff8acb 0%, #b48bff 50%, #6ee2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(255, 138, 203, 0.25);
}

.charge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(180, 139, 255, 0.6);
  background: rgba(180, 139, 255, 0.12);
  color: #e7d8ff;
  font-size: 13px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.charge-btn:hover {
  background: rgba(180, 139, 255, 0.25);
  transform: translateY(-1px);
}

.charge-icon {
  color: #ffd76a;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(255, 215, 106, 0.6);
}

.profile-meta {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-row {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.meta-label {
  flex: 0 0 48px;
  color: #b48bff;
  font-weight: 600;
}

.meta-value {
  color: #f1e9ff;
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.social-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 12px;
  color: #fff;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 14px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.social-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* .social-item[data-platform="xhs"] {
  background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
}
.social-item[data-platform="bili"] {
  background: linear-gradient(90deg, #1f8fff, #6ee2ff);
}
.social-item[data-platform="douyin"] {
  background: linear-gradient(90deg, #1a1a1a, #ff2a4d);
}
.social-item[data-platform="weibo"] {
  background: linear-gradient(90deg, #ff8acb, #ffd76a);
  color: #1a0a3a;
} */

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
  flex-shrink: 0;
  overflow: hidden;
}

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

.social-handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-link {
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 720px) {
  .profile-body {
    grid-template-columns: 1fr;
  }

  .social-item {
    grid-template-columns: 56px 1fr auto;
    font-size: 13px;
  }
}

/* ===================== 相册弹框 ===================== */
.album-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 6, 40, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: profileFade 0.25s ease;
}

.album-modal.open {
  display: flex;
}

.album-body {
  display: block;
  padding: 20px;
}

.album-banner {
  display: flex;
  align-items: center;
  padding: 16px 22px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 138, 203, 0.35);
  box-shadow: 0 4px 18px rgba(255, 95, 176, 0.15);
}

.album-banner-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ff5fb0;
  text-shadow: 0 0 12px rgba(255, 95, 176, 0.45);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px;
}

.album-grid::-webkit-scrollbar {
  width: 8px;
}

.album-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff5fb0, #6ee2ff);
  border-radius: 999px;
}

.album-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.album-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #110624;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.album-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #ff8acb;
  box-shadow:
    0 14px 30px rgba(255, 95, 176, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.album-item:hover img {
  transform: scale(1.06);
}

.album-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26, 10, 58, 0.55));
  pointer-events: none;
}

/* ===================== 二级图片预览 ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 4, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: lightboxFade 0.25s ease;
}

.lightbox.open {
  display: flex;
}

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

.lightbox-stage {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 16px;
  border: 2px solid rgba(255, 138, 203, 0.45);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(255, 95, 176, 0.25);
  background: #110624;
  animation: lightboxPop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes lightboxPop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  background: rgba(255, 90, 122, 0.55);
  border-color: rgba(255, 177, 195, 0.7);
  z-index: 2;
}

.lightbox-close:hover {
  background: rgba(255, 90, 122, 0.8);
  transform: scale(1.08);
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.lightbox-nav:hover {
  background: rgba(255, 95, 176, 0.35);
  border-color: #ff8acb;
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

@media (max-width: 720px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

/* ===================== 直播弹框 ===================== */
.live-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 6, 40, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: profileFade 0.25s ease;
}

.live-modal.open {
  display: flex;
}

.live-window {
  width: min(1100px, 96vw);
  max-height: 92vh;
}

.live-body {
  position: relative;
  padding: 0;
  border-radius: 0 0 19px 19px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
}

.live-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.live-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(42px) brightness(0.6) saturate(1.35);
  transform: scale(1.2);
  display: block;
}

.live-bg-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      120% 80% at 50% 50%,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 60%,
      rgba(20, 6, 40, 0.55) 100%
    ),
    linear-gradient(180deg, rgba(255, 95, 176, 0.08), rgba(110, 226, 255, 0.08));
}

.live-frame {
  position: relative;
  z-index: 1;
  height: 80vh;
  max-height: 720px;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
}

.live-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===================== 充电弹框 ===================== */
.charge-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 6, 40, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: profileFade 0.25s ease;
}

.charge-modal.open {
  display: flex;
}

.charge-window {
  width: min(640px, 96vw);
  max-height: 92vh;
}

.charge-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, #1a0a3a 0%, #2a0f55 100%);
  border-radius: 0 0 19px 19px;
  overflow: auto;
}

.charge-image {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 138, 203, 0.3);
  object-fit: contain;
}

/* ===================== 日历弹框 ===================== */
.calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 6, 40, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: profileFade 0.25s ease;
}

.calendar-modal.open {
  display: flex;
}

.calendar-window {
  width: min(960px, 96vw);
  max-height: 92vh;
}

.calendar-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, #1a0a3a 0%, #2a0f55 100%);
  border-radius: 0 0 19px 19px;
  overflow: auto;
}

.calendar-image {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 138, 203, 0.3);
  object-fit: contain;
}

/* ===================== 底部任务栏 ===================== */
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 18px 12px;
  pointer-events: none;
}

.taskbar-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 10px;
  min-width: 98vw;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 10px;
  border: none;
  background: #ff8acb;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow:
    0 4px 12px rgba(255, 95, 176, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.start-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.start-btn:active {
  transform: translateY(0);
}

.start-btn[aria-expanded="true"] {
  background: linear-gradient(90deg, #b48bff, #ff5fb0);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.4) inset,
    0 4px 16px rgba(180, 139, 255, 0.5);
}

.start-icon {
  font-size: 14px;
  line-height: 1;
}

.taskbar-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 4px;
}

.taskbar-clock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.449);
  border: 1px solid rgba(143, 142, 142, 0.693);
  color: #313131;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: default;
  user-select: none;
}

.taskbar-day {
  color: #ff8acb;
  font-weight: 600;
}

.taskbar-time {
  color: #242424;
  font-weight: 600;
  min-width: 42px;
  text-align: right;
}

/* 开始菜单 */
.start-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 320px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(42, 15, 85, 0.92),
    rgba(20, 6, 40, 0.92)
  );
  border: 1px solid rgba(255, 138, 203, 0.35);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.start-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.start-menu-header {
  padding: 6px 8px 10px;
  border-bottom: 1px solid rgba(255, 138, 203, 0.2);
  margin-bottom: 8px;
}

.start-menu-title {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #ff8acb;
}

.start-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.start-menu-item {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.start-menu-item:hover {
  background: rgba(255, 138, 203, 0.15);
  border-color: rgba(255, 138, 203, 0.35);
  transform: translateX(2px);
}

.start-menu-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.start-menu-icon.profile {
  background: linear-gradient(135deg, #ff5fb0, #ff3a6a);
}
.start-menu-icon.album {
  background: linear-gradient(135deg, #6ee2ff, #b48bff);
  color: #1a0a3a;
}
.start-menu-icon.calendar {
  background: linear-gradient(135deg, #b48bff, #ff5fb0);
}
.start-menu-icon.live {
  background: linear-gradient(135deg, #ff3a6a, #6ee2ff);
}

.start-menu-name {
  font-weight: 500;
}

.start-menu-ext {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 11px;
  color: rgba(255, 138, 203, 0.7);
  letter-spacing: 1px;
}

@media (max-width: 480px) {
  .taskbar-inner {
    min-width: 0;
    width: calc(100vw - 36px);
    justify-content: space-between;
  }
  .taskbar-divider {
    display: none;
  }
}

/* ===================== 移动端布局 ===================== */
@media (max-width: 720px) {
  .profile-window {
    width: calc(100vw - 24px);
    height: calc(100vh - 25%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .profile-titlebar {
    flex-shrink: 0;
  }

  .profile-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
  }

  /* 移动端去掉遮罩 z-index 和背景模糊 */
  .profile-modal,
  .album-modal,
  .calendar-modal,
  .charge-modal,
  .live-modal {
    z-index: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 12px;
  }

  /* 移动端相册改用 flex 布局（兼容微信 X5 内核） */
  .album-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow-y: auto;
    padding: 4px;
    justify-content: flex-start;
  }

  .album-item {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
    aspect-ratio: 3 / 4;
  }

  .album-body {
    padding: 12px;
  }

  .lightbox {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* 顶部跑马灯：去掉左右留白，宽度撑满 */
  .marquee-bar {
    width: calc(100% - 24px);
    margin: 8px auto 0;
    height: 36px;
  }

  .marquee-content {
    font-size: 12px;
  }

  /* 移动端显示时间按钮（绝对定位到右侧） */
  .marquee-clock {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 12px;
    background: #eb8272;
    color: #fff;
    font-family: "Consolas", "JetBrains Mono", "Courier New", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid #ff7c7c;
    box-shadow:
      0 4px 12px rgba(180, 100, 255, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
    pointer-events: none;
  }

  .marquee-clock #marqueeClockDay {
    opacity: 0.85;
  }

  .marquee-clock #marqueeClockTime {
    font-size: 12px;
  }

  /* 右侧额外加一层白色渐隐让滚动文字从时钟后面淡出 */
  .marquee-bar::after {
    width: 90px;
    background: linear-gradient(
      270deg,
      rgba(255, 255, 255, 0.95) 30%,
      transparent 100%
    );
  }

  /* 桌面区域：去掉 padding，给底部留出 72px 给底部导航 */
  .desktop {
    padding-bottom: 78px;
  }

  /* 侧边栏：变成底部横向导航 */
  .sidebar {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 8px;
    width: auto;
    max-width: 100vw;
    height: 62px;
    padding: 6px 4px;
    border-radius: 1.5rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
  }

  .nav-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 2px 0;
    gap: 2px;
  }

  .nav-item span {
    font-size: 10px;
  }

  .nav-item img {
    width: 32px;
    height: 32px;
  }

  /* 隐藏桌面任务栏（功能由底部 sidebar 接管） */
  .taskbar,
  .taskbar-inner,
  .start-menu {
    display: none !important;
  }
}
