/* Responsive Base Font Size */
html {
  font-size: 16px;
}
/* Desktop scaling - strictly for desktop/tablet landscape */
@media (max-width: 1600px) and (min-width: 769px) {
  html { font-size: 14px; }
}
@media (max-width: 1366px) and (min-width: 769px) {
  html { font-size: 13px; }
}
@media (max-width: 1200px) and (min-width: 769px) {
  html { font-size: 12px; }
}
/* Mobile Reset */
@media (max-width: 768px) {
  html { font-size: 16px; }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  background: #000a1a; 
  font-family: "PingFang SC", "Helvetica Neue", sans-serif;
  color: #fff;
  overflow: hidden;
}

/* 移除旧的 property 定义，避免冲突 */
/* @property --hole-radius ... */

@property --hole-x {
  syntax: '<length-percentage>';
  inherits: false;
  initial-value: 50%;
}

@property --hole-y {
  syntax: '<length-percentage>';
  inherits: false;
  initial-value: 50%;
}

/* 移除 body::before 的细网格，如果想保留可以调整 z-index */
body::before {
  display: none;
}

/* 动态背景轮播容器 */
#bg-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* 最底层 */
}

/* 单个背景图（默认全屏铺满） */
.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  opacity: 0;
  animation: slideShow 20s infinite;
}

.bg-slide:nth-child(1) {
  background-image: url('../img/ertou/et1.jpg');
  animation-delay: 0s;
}

.bg-slide:nth-child(2) {
  background-image: url('../img/ertou/et2.jpg');
  animation-delay: 4s;
}

.bg-slide:nth-child(3) {
  background-image: url('../img/ertou/et3.jpg');
  animation-delay: 8s;
}

.bg-slide:nth-child(4) {
  background-image: url('../img/ertou/et4.jpg');
  animation-delay: 12s;
}

.bg-slide:nth-child(5) {
  background-image: url('../img/ertou/et5.jpg');
  animation-delay: 16s;
}

/* 轮播动画：淡入淡出 */
@keyframes slideShow {
  0%   { opacity: 0; transform: scale(1.03); }
  5%   { opacity: 1; transform: scale(1); }
  25%  { opacity: 1; transform: scale(1); }
  30%  { opacity: 0; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.02); }
}

/* 全局深色遮罩：确保文字清晰 */
#bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 20, 0.15);
  backdrop-filter: none;
  z-index: 1;
}

/* 主舞台 */
.stage {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3.75rem;
}

/* 定义动画变量，让 CSS 能平滑过渡偏移量 */
@property --split-offset {
  syntax: '<length>';
  inherits: true;
  initial-value: 0.0px;
}

@property --hole-radius {
  syntax: '<length>';
  inherits: true;
  initial-value: 0.0px;
}

/* 横向主卡 */
.card {
  position: relative;
  width: 88%;
  height: 72%;
  display: flex;
  
  /* 默认变量值 */
  --split-offset: 0.0px;
  --hole-radius: 0.0px;
  --cursor-x: 50%; /* 兜底 */
  --cursor-y: 50%;
  --card-w: 62.5rem; /* 兜底 */
  
  /* 让变量支持过渡动画，同时增加宽度的过渡 */
  transition: --split-offset 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
              --hole-radius 0.4s ease-out,
              width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 巡演档案入口按钮容器 */
.action-bar-right {
  position: absolute;
  bottom: 4.375rem;
  right: 8.75rem; /* 从 6.875rem 增加到 8.75rem，继续向左移动 */
  width: auto;
  margin-top: 0;
  padding-right: 0;
  z-index: 5;
  /* 让它也能参与推拉动画 */
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* 
   复用 .music-btn 样式，但可能需要微调 
   如果在 .action-bar-right 下，可以覆盖一些样式
*/
.action-bar-right .music-btn {
  /* 可以根据需要调整大小或颜色 */
  padding: 0.5rem 1.25rem;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0; /* 铺满整个卡片 */
  width: 100%;
  height: 100%;
  
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(1.75rem);
  -webkit-backdrop-filter: blur(1.75rem);
  
  /* 统一边框和圆角 */
  border: 1.0px solid rgba(255, 149, 0, 0.3); /* 橙色边框 */
  border-radius: 3.75rem;
  
  z-index: 0;
  pointer-events: none; 
  
  /* 添加透明度过渡动画，用于消失效果 */
  transition: opacity 0.6s ease-out;
}

/* 移除不再需要的 ::after */
.card::after {
  display: none;
}

/* 桌面端中央悬停分裂效果 */
@media (pointer: fine) {
  .card.hover-active {
    width: 96%;
  }

  .card.hover-active::before {
    opacity: 0;
  }

  .card.hover-active .content .left {
    transform: translateX(-8.75rem);
  }

  .card.hover-active .content .right,
  .card.hover-active .action-bar-right {
    transform: translateX(8.75rem);
  }

  .card.hover-active .roomno {
    transform: translateX(8.75rem);
    opacity: 0;
  }

  .card.hover-active .brand-rail {
    transform: translateX(8.75rem);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease-out 0.2s;
  }

  .card.hover-active .elephant-wrap {
    opacity: 0;
    transform: scale(0.95);
    filter: blur(0.25rem);
  }
}


/* 移除旧的 property 定义，避免冲突 */
/* @property --hole-radius ... */

/* ✅ 用 1.png 替代线条大象 SVG：居中、半透明、水印感 */
.elephant-wrap {
  position: absolute;
  inset: 0;
  z-index: 1; /* 在内容下面 */
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  /* 增加 transition 以支持 hover 时的平滑过渡 */
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}
.elephant-wrap img {
  width: clamp(26.25rem, 38vw, 45rem);
  height: auto;
  opacity: 0.1; /* 水印强度：不抢戏 */
  filter: drop-shadow(0 0 1.125rem rgba(255, 149, 0, 0.35))
    drop-shadow(0 0 3.75rem rgba(255, 255, 255, 0.08));
  transform: translateY(1.25rem);
  /* 想要一点点“呼吸感”就取消下一行注释 */
  /* animation: float 6s ease-in-out infinite; */
  /* 优化移动端性能：开启硬件加速 */
  will-change: transform, opacity;
  transform: translateZ(0) translateY(1.25rem);
}
@media (prefers-reduced-motion: reduce) {
  .count-num {
    animation: none;
  }
}

/* 内容层 */
.content {
  position: relative;
  z-index: 2; /* ✅ 保证在大象之上 */
  flex: 1;
  display: flex;
  gap: 3.75rem;
  padding: 4.375rem 5rem 4.375rem 5rem;
}

/* 为了动画效果，需要 transition */
.content .left,
.content .right,
.roomno,
.brand-rail {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.6s ease-out; /* 增加透明度过渡 */
}

/* 左：宣言/注释 */
.left-content-wrapper {
  flex: 1; /* 占据剩余空间 */
  display: flex;
  flex-direction: column;
  justify-content: center; /* 内容垂直居中 */
  min-height: 0; /* 允许压缩 */
  overflow: hidden; /* 防止溢出 */
  gap: 1.375rem; /* 保持原有的间距 */
}
.meta {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}
.station {
  font-size: 0.9rem;
  letter-spacing: 0.25rem;
  color: #FF9500; /* 橙色 */
}

/* 桌面端基础对齐：横向成组对齐，竖向适度上移；保留原悬停分裂动画。 */
@media (min-width: 68.8125rem) {
  .station {
    position: relative;
    top: -2.625rem;
  }

  .right {
    position: relative;
    top: -3rem;
  }

  .action-bar-right {
    right: 8.75rem;
    bottom: 6.25rem;
  }
}
.title {
  font-size: 2.8rem; /* 加大标题 */
  font-weight: 200;
  letter-spacing: 0.625rem;
  color: #FFD180; /* 浅橙色 */
}
.sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.1875rem;
}

/* 星标注释列表 */
.notes {
  margin-top: -0.625rem; /* 向上移动 */
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 45rem;
  max-height: 16.25rem; /* 严格限制高度，确保不遮挡底部按钮 (约 4-5 行歌词) */
  overflow-y: auto; /* 内容过多时滚动 */
  scrollbar-width: none;
  padding-right: 0.625rem;
}
.notes::-webkit-scrollbar {
  display: none;
}
.note {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}
.note .star {
  width: 1.125rem;
  color: #FF9500; /* 橙色 */
  transform: translateY(1.0px);
  flex: 0 0 auto;
}
.note .txt {
  flex: 1 1 auto;
}

/* Music Archive Button */
.action-bar {
  /* 移除了 absolute 定位，使其参与流式布局 */
  margin-top: 1.25rem;
  z-index: 5;
  flex-shrink: 0;
}
.music-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.0px solid rgba(255, 149, 0, 0.5); /* 橙色边框 */
  border-radius: 3.125rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(0.625rem);
  position: relative;
  overflow: hidden;
}
.music-btn:hover {
  background: rgba(255, 149, 0, 0.15); /* 橙色背景 */
  border-color: rgba(255, 149, 0, 0.8);
  transform: translateY(-2.0px);
  box-shadow: 0 0.3125rem 0.9375rem rgba(255, 149, 0, 0.2);
}
.music-btn:active {
  transform: translateY(0);
}
.music-btn .icon {
  font-size: 1.1rem;
  color: #FFD180; /* 浅橙色 */
}
.music-btn .text {
  font-size: 0.85rem;
  letter-spacing: 2.0px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* 右：时间显示 */
.right {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  /* 确保有足够宽度 */
  min-width: 0; 
  margin-right: -5.625rem;
}
#clock.clock {
  margin-top: 0.375rem;
  font-family: "Courier New", monospace;
  font-size: 2.8rem; /* 大号时钟 */
  letter-spacing: 0.375rem;
  color: #FF9500; /* 橙色 */
  line-height: 1.1;
  text-shadow: 0 0 0.625rem rgba(255, 149, 0, 0.3);
}

/* 巡演信息样式 */
.tour-info {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  animation: fadeIn 1s ease-out;
  width: 100%;
  overflow: visible;
  padding-right: 0;
  position: relative;
  /* 移除负边距，与上方时间对齐 */
  margin-right: -1.875rem;
}

/* 导航箭头样式 */
.nav-btn {
  /* ...保持基本样式不变... */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #FFD180; /* 浅橙色 */
  font-size: 1rem; 
  cursor: pointer;
  z-index: 10;
  user-select: none;
  opacity: 0.8;
  transition: all 0.3s ease;
  animation: pulse 2s infinite; 
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2); 
  border-radius: 50%;
}
.nav-btn:hover {
  background: rgba(255, 149, 0, 0.2); /* 橙色背景 */
  opacity: 1;
}

/* 关键定位调整 */
.nav-btn.prev {
  /* 左箭头：放到内容区域的左侧 */
  left: 0.9375rem; 
  right: auto;
}

.nav-btn.next {
  /* 右箭头：放到内容区域的右侧 */
  right: 0;
  left: auto;
}

/* 给容器加 padding，为箭头腾出空间 */
.slider-container {
  position: relative;
  /* 关键修改：适应内容宽度，让左箭头紧贴文字 */
  width: fit-content;
  max-width: 16.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end; 
  
  /* 增加左右内边距，确保箭头在容器内且不遮挡文字 */
  padding-left: 1.875rem;
  padding-right: 1.875rem;
}
.nav-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes pulse {
  0% { opacity: 0.4; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.1); }
  100% { opacity: 0.4; transform: translateY(-50%) scale(1); }
}

/* 手机端适配调整 */
@media (max-width: 68.75rem) {
  .nav-btn {
    display: none; /* 手机端可以直接滑动，隐藏箭头更清爽 */
  }
  
  /* 手机端移除左右 padding，因为没有箭头了 */
  .slider-container {
      padding-left: 0;
      padding-right: 0;
  }
}

.divider {
  width: 3.75rem;
  height: 2.0px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 1.25rem;
  /* 添加 margin-right 来把它往左挤 */
  margin-right: 2.5rem;
}
.next-label {
  font-size: 0.8rem;
  letter-spacing: 0.1875rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.625rem;
}

/* 滑动容器 */
.tour-slider {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.25rem;
  width: 100%;
  padding-bottom: 0.625rem; /* 给滚动条留点空间（虽然隐藏了） */
  scrollbar-width: none; /* Firefox */
}
.tour-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* 单个巡演卡片 */
.tour-card {
  flex: 0 0 100%; /* 每次显示一个 */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* 右对齐内容 */
  min-width: 0; /* 防止 flex item 溢出 */
  position: relative; /* 为印章定位 */
}

/* 已结束场次的印章效果 */
.tour-card.finished .station-name,
.tour-card.finished .tour-date,
.tour-card.finished .venue-name {
  opacity: 0.5; /* 文字变暗 */
}

.stamp {
  position: absolute;
  top: 50%;
  right: 3.125rem; /* 右移避免遮挡箭头 */
  transform: translateY(-50%) rotate(-20deg);
  border: 0.1875rem solid rgba(255, 149, 0, 0.6); /* 橙色印章 */
  color: rgba(255, 149, 0, 0.6);
  border-radius: 50%;
  width: 5rem;
  height: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 2.0px;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 0.625rem rgba(255, 149, 0, 0.2) inset;
  background: rgba(0, 0, 0, 0.2);
  /* 盖章动画 */
  animation: stampIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stampIn {
  0% { opacity: 0; transform: translateY(-50%) rotate(-20deg) scale(2); }
  100% { opacity: 1; transform: translateY(-50%) rotate(-20deg) scale(1); }
}

.station-name {
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 0.25rem;
  margin-bottom: 0.3125rem;
  text-shadow: 0 0 0.625rem rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}
.tour-date {
  font-family: "Courier New", monospace;
  font-size: 1rem;
  color: rgba(255, 209, 128, 0.8); /* 浅橙色 */
  letter-spacing: 2.0px;
  margin-bottom: 0.3125rem;
  text-shadow: 0 0 0.3125rem rgba(255, 149, 0, 0.2);
}
.countdown {
  font-family: "Courier New", monospace;
  font-size: 1.2rem;
  color: #FF9500; /* 橙色 */
  letter-spacing: 2.0px;
  white-space: nowrap;
}
.venue-name {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
  letter-spacing: 1.0px;
  /* 允许换行，配合容器限宽 */
  white-space: normal;
  text-align: right;
  line-height: 1.4;
}

/* "And More" 卡片特殊样式 */
.more-card .station-name {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}
.more-card .countdown {
  color: rgba(255, 255, 255, 0.4);
}


/* 右上角：房间号 */
.roomno {
  position: absolute;
  top: 1.75rem;
  right: 5.75rem; /* 给竖条让位 */
  z-index: 3;
  font-size: 0.95rem;
  letter-spacing: 0.1875rem;
  color: rgba(255, 255, 255, 0.75);
}
.roomno b {
  color: #FF9500; /* 橙色 */
  font-weight: 400;
}

/* 右侧竖排品牌栏 */
.brand-rail {
  width: 4.5rem;
  border-left: 1.0px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-rail .vtext {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 2.0px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
}
.brand-rail .tag {
  position: absolute;
  bottom: 1.5rem;

  right: calc(100% + 0.75rem);
  transform: none;

  font-size: 0.8rem;
  letter-spacing: 2.0px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.date {
  margin-top: 1.625rem; /* 把原来 #clock 的 margin-top 挪到这里 */
  font-family: "Courier New", monospace;
  font-size: 1.8rem; /* 略大 */
  letter-spacing: 0.375rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(0.625rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* 小屏兜底 */
@media (max-width: 68.75rem) {
  .card {
    /* 激进调整：更宽、更短 */
    width: 98% !important;
    height: auto !important;
    min-height: 60vh; /* 大幅缩短高度 */
    margin: 0.625rem auto;
    padding-bottom: 1.25rem;
  }

  .content {
    flex-direction: column;
    gap: 1.875rem;
  }
  .right {
    align-items: flex-start;
    text-align: left;
  }
  .tour-info {
    align-items: flex-start;
    margin-top: 1.875rem;
  }
  .tour-card {
    align-items: flex-start; /* 小屏改为左对齐 */
  }
  .count {
    font-size: 10rem;
  }
  .brand-rail {
    display: none;
  }
  .roomno {
    right: 2rem;
  }
}
/* 微信/移动端：防止自动放大字体导致错位 */
html {
  -webkit-text-size-adjust: 100%;
}

/* =========================================
   全新 Dashboard 布局 (适配 stats.html 重构)
   ========================================= */

/* 让 card 铺满屏幕，作为背景容器 */
.dashboard-wrapper {
    width: 95vw !important;
    height: 90vh !important;
    max-width: 112.5rem;
    padding: 0 !important; /* 清除默认内边距 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: flex-start; /* 强制内容顶部对齐 */
    
    /* 继承必要的 card 样式但移除冲突的 */
    position: relative;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(1.75rem);
    -webkit-backdrop-filter: blur(1.75rem);
    border: 1.0px solid rgba(255, 149, 0, 0.3);
    border-radius: 1.5rem; /* 减小圆角 */
    z-index: 5;
}

/* 隐藏 Dashboard 模式下不必要的装饰元素，消除顶部空洞 */
.dashboard-wrapper .elephant-wrap,
.dashboard-wrapper .brand-rail,
.dashboard-wrapper .roomno {
    display: none !important;
}

/* 核心 Grid 容器 */
.stats-container {
    display: grid;
    grid-template-columns: 24rem 1fr;
    gap: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mobile-music-tabs {
    display: none;
}

@media (max-width: 80rem) {
    .stats-container {
        grid-template-columns: 22rem 1fr;
    }
}

/* --- 左侧侧边栏 --- */
.sidebar {
    background: rgba(0, 0, 0, 0.2);
    border-right: 1.0px solid rgba(255, 255, 255, 0.05);
    padding: 1.75rem 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    backdrop-filter: blur(0.625rem);
}

.sidebar-header {
    margin-bottom: 0.625rem;
}
.back-btn {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    border: 1.0px solid rgba(255,255,255,0.2);
    padding: 0.3125rem 0.75rem;
    border-radius: 1.25rem;
    transition: all 0.3s;
}
.back-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* 歌手卡片 */
.singer-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    min-height: 14rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #222;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.3);
}
.singer-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
    background-image: linear-gradient(135deg, rgba(79, 172, 254, 0.18), rgba(32, 191, 100, 0.08));
}
.singer-card:hover .singer-bg { transform: scale(1.05); }

.singer-info-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0.9375rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.singer-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}
.platform-tag {
    font-size: 0.7rem;
    color: #20bf64;
    letter-spacing: 1.0px;
}

/* 搜索框 */
.search-box {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    padding: 2.0px;
}
.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.625rem;
    outline: none;
}
.search-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 2.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
}

/* 基础统计 */
.basic-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.625rem;
    background: rgba(255,255,255,0.05);
    padding: 0.9375rem;
    border-radius: 0.625rem;
}
.stat-box { text-align: center; }
.stat-val { font-size: 1.2rem; font-weight: bold; color: #fff; font-family: "DIN Alternate", sans-serif; }
.stat-lbl { font-size: 0.7rem; color: rgba(255,255,255,0.5); margin-top: 2.0px; }
.stat-val.blue { color: #4facfe; }
.stat-val.pink { color: #ffb6c1; }

.singer-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.76);
    /* 移除 max-height 限制，允许自然撑开 */
    max-height: none; 
    overflow-y: visible;
    flex: 1; /* 占据剩余空间 */
}

.bio-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bio-intro {
    font-size: 0.95rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.82);
}

.bio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bio-title {
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #4facfe;
}

.bio-group:nth-of-type(3) .bio-title {
    color: #ffd700;
}

.bio-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.74);
}

.bio-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.bio-list li {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.78);
}

.bio-divider {
    margin-top: 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bio-divider p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
}

/* --- 右侧主内容区 --- */
.main-content {
    padding: 1.875rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
    border-bottom: 1.0px solid rgba(255,255,255,0.1);
    padding-bottom: 0.9375rem;
}
.section-title {
    font-size: 1.8rem;
    color: #fff;
    margin: 0;
}
.sub-title {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    font-weight: normal;
    margin-left: 0.625rem;
    letter-spacing: 2.0px;
}

/* 歌曲列表容器 */
.songs-list-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
}

/* 歌曲卡片 (核心样式) */
.song-item {
    display: grid;
    grid-template-columns: minmax(18rem, 1fr) minmax(20rem, 1.2fr) minmax(12rem, 14rem);
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1.0px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.2s;
    align-items: stretch; /* 让各列高度一致 */
}
.song-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2.0px);
    box-shadow: 0 0.3125rem 0.9375rem rgba(0,0,0,0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.music-retry-btn {
  margin-top: 14px;
  padding: 9px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

/* 列样式 */
.song-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1.0px solid rgba(255,255,255,0.05);
    padding-right: 1.25rem;
}
.song-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-album {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.song-index-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1.0px solid rgba(255,255,255,0.05);
    padding-right: 1.25rem;
}

.song-chart-col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 6.25rem;
    position: relative;
}

/* 专辑迷你列表 */
.albums-section-minimized {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1.0px solid rgba(255,255,255,0.1);
    display: none; /* 默认隐藏，需要时可以打开 */
}

/* 滚动条 */
::-webkit-scrollbar { width: 0.375rem; height: 0.375rem; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 0.1875rem; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* Modal 样式 (双栏版) */
.modal {
    display: none; 
    position: fixed; 
    inset: 0; 
    z-index: 1000; 
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(0.625rem);
    align-items: center;
    justify-content: center;
    cursor: default;
}
/* Lightbox 特有样式 */
#lightbox-modal {
    cursor: zoom-out;
    background: rgba(0,0,0,0.95); /* 更黑的背景 */
}
.modal-content {
    background: rgba(30, 30, 30, 0.95);
    width: 68.75rem; /* 加宽到 68.75rem */
    max-width: 95%;
    height: 85vh;
    border-radius: 1rem;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    box-shadow: 0 1.875rem 3.75rem rgba(0,0,0,0.6);
    border: 1.0px solid rgba(255,255,255,0.1);
}

/* 歌词区域 */
.modal-left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.875rem;
    min-width: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.modal-title { font-size: 1.5rem; font-weight: bold; color: #fff; }
.close-btn { 
    background: none; border: none; color: rgba(255,255,255,0.6); 
    font-size: 2rem; cursor: pointer; transition: color 0.2s;
    line-height: 1;
}
.close-btn:hover { color: #fff; }

.lyrics-meta {
    font-size: 0.9rem;
    color: #20bf64;
    margin-bottom: 1.25rem;
}

.lyrics-body {
    flex: 1;
    overflow-y: auto;
    color: rgba(255,255,255,0.9);
    text-align: center;
    line-height: 2;
    white-space: pre-wrap;
    font-size: 1.05rem;
    /* 歌词滚动条 */
    padding-right: 0.625rem;
}

/* Bio Section Styles */

.singer-desc {

    max-height: none !important; /* Allow full height expansion */

    overflow-y: visible !important;

}



.bio-section {

    display: flex;

    flex-direction: column;

    gap: 1.25rem;

}



.bio-intro {

    font-size: 0.9rem;

    line-height: 1.6;

    color: rgba(255, 255, 255, 0.9);

}



.bio-group {

    display: flex;

    flex-direction: column;

    gap: 0.5rem;

}



.bio-title {

    font-size: 1rem;

    color: #4facfe; /* Blue to match image icons */

    margin: 0;

    font-weight: bold;

}

/* Gold for achievement title (3rd group) */

.bio-group:nth-of-type(3) .bio-title {

    color: #ffd700;

}



.bio-text {

    font-size: 0.85rem;

    color: rgba(255, 255, 255, 0.7);

    line-height: 1.5;

}



.bio-list {

    list-style: none;

    padding: 0;

    margin: 0;

    display: flex;

    flex-direction: column;

    gap: 0.4rem;

}



.bio-list li {

    font-size: 0.85rem;

    color: rgba(255, 255, 255, 0.75);

    line-height: 1.4;

    padding-left: 0;

    text-indent: 0;

}



.bio-divider {

    margin-top: 1rem;

    text-align: center;

    font-size: 0.9rem;

    color: #fff;

    font-weight: bold;

    display: flex;

    flex-direction: column;

    gap: 0.5rem;

}

/* Unified responsive layout: one stylesheet for desktop and narrow screens. */
@media (max-width: 520px) {
  html {
    min-width: 0;
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }
  body {
    min-width: 0;
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .stage { min-height: 100svh; height: auto; padding: 12px; align-items: flex-start; }
  .card {
    display: block;
    width: 100% !important;
    height: auto !important;
    min-height: calc(100svh - 24px);
    margin: 0 !important;
    border-radius: 28px;
    -webkit-mask-image: none;
    mask-image: none;
    transform: none !important;
  }
  .card::before { border-radius: 28px; }
  .card::after, .brand-rail { display: none !important; }
  .elephant-wrap { opacity: 0.08; }
  .elephant-wrap img { width: min(78vw, 300px); transform: none !important; }
  .roomno { top: 18px; right: 20px; font-size: 0.72rem; }
  .content {
    width: 100%;
    height: auto;
    padding: 72px 22px 28px;
    flex-direction: column;
    gap: 28px;
  }
  .left, .right {
    width: 100%;
    flex: none;
    align-items: flex-start;
    text-align: left;
    transform: none !important;
  }
  .meta { align-items: flex-start; }
  .title {
    font-size: clamp(2rem, 11vw, 2.75rem);
    line-height: 1.18;
    letter-spacing: 0.18em;
  }
  .notes { width: 100%; gap: 12px; }
  .note {
    width: 100%;
    align-items: flex-start;
    white-space: normal;
    font-size: 0.86rem;
  }
  .action-bar { width: 100%; margin-top: 20px; }
  .action-bar-right {
    position: static;
    width: 100%;
    margin-top: 10px;
    transform: none !important;
  }
  .music-btn { width: 100%; min-height: 48px; justify-content: center; }
  .right { padding-bottom: 0; }
  .date {
    margin-top: 0;
    font-size: clamp(1.25rem, 7vw, 1.8rem);
    letter-spacing: 0.18em;
    white-space: nowrap;
  }
  #clock.clock {
    max-width: 100%;
    font-size: clamp(1.35rem, 8vw, 2rem);
    letter-spacing: 0.12em;
    white-space: nowrap;
  }
  .tour-info, .tour-card {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }
  .stamp { right: 0 !important; left: auto !important; }
}

@media (max-width: 700px) {
  .dashboard-wrapper {
    width: calc(100vw - 24px) !important;
    height: calc(100svh - 104px) !important;
    min-height: 620px;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 22px;
  }

  .stats-container {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
  }

  .mobile-music-tabs {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 10px 10px 0;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
  }

  .mobile-music-tab {
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.58);
    background: transparent;
    font: inherit;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-music-tab.is-active {
    color: #ffd180;
    background: rgba(255, 149, 0, 0.13);
    box-shadow: inset 0 0 0 1px rgba(255, 149, 0, 0.16);
  }

  .stats-container > .sidebar,
  .stats-container > .main-content {
    display: none;
  }

  .stats-container[data-mobile-view="songs"] > .main-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
  }

  .stats-container[data-mobile-view="artist"] > .sidebar {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
  }

  .main-content {
    width: 100%;
    padding: 14px;
    overflow: hidden;
  }

  .content-header {
    flex: 0 0 auto;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .section-title {
    min-width: 0;
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .sub-title {
    display: block;
    margin: 3px 0 0;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .songs-list-container {
    width: 100%;
    min-width: 0;
    padding: 0 2px 12px 0;
    gap: 12px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .song-item {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
  }

  .song-info-col,
  .song-index-col {
    width: 100%;
    min-width: 0;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .song-title {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .song-chart-col {
    width: 100%;
    min-width: 0;
    min-height: 112px;
    overflow: hidden;
  }

  .sidebar {
    width: 100%;
    padding: 14px 16px 24px;
    border-right: 0;
    gap: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-header {
    display: none;
  }

  .singer-card {
    aspect-ratio: 16 / 9;
    min-height: 176px;
  }

  .singer-desc {
    flex: none;
  }

  .modal-content {
    width: calc(100vw - 24px);
    max-width: none;
    height: calc(100svh - 120px);
    border-radius: 18px;
  }

  .modal-left-panel {
    padding: 18px;
  }
}
