/* ========== 归灼Retunous · Music Station — 按 Figma 设计稿还原 ========== */
/* 页面：index.html(welcome 落地页) + songs.html(桌面表格 / 移动卡片响应式) */

:root {
  --bg-deep: #0d1122;
  --bg-panel: #12172d;
  --bg-search: #090b18;
  --bg-header: rgba(13, 17, 34, 0.8);
  --zebra: rgba(255, 255, 255, 0.03);

  --accent: #a8d8ea;          /* 主浅蓝 */
  --accent-soft: rgba(168, 216, 234, 0.13);
  --lavender: #c3aed6;        /* 薰衣草紫 */
  --lavender-soft: rgba(195, 174, 214, 0.13);
  --live: #ff4b4b;            /* 直播红 */
  --dark: #0d1122;            /* 深色按钮文字 */

  --ink: #ffffff;
  --text-2: #e2e8f0;
  --dim: #8e9bb4;
  --footer-text: #52627a;     /* welcome 页脚文字 */

  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);

  --font-display: "Outfit", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Geist", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  /* 歌单页：整页不滚动，固定头部/表头，只有歌单列表内部滚动 */
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 85% -8%, rgba(168, 216, 234, 0.10), transparent 60%),
    radial-gradient(900px 480px at 0% 18%, rgba(195, 174, 214, 0.07), transparent 55%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-panel) 60%, #16223b 130%);
  background-attachment: fixed;
}

/* welcome 落地页：允许整页滚动，内容垂直居中 */
body.welcome {
  display: block;
  height: auto;
  min-height: 100dvh;
  overflow-y: auto;
}

/* ---------- 背景美术图（仅歌单页） ---------- */
.bg-art {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.45;
  transform: scale(1.02);
}
.bg-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 520px at 85% -8%, rgba(168, 216, 234, 0.12), transparent 60%),
    radial-gradient(900px 480px at 0% 18%, rgba(195, 174, 214, 0.09), transparent 55%),
    linear-gradient(180deg, rgba(13, 17, 34, 0.62), rgba(13, 17, 34, 0.30) 42%, rgba(13, 17, 34, 0.72));
}

/* ---------- 背景气泡（两页共用） ---------- */
.bg-decor { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.bubble {
  position: absolute;
  bottom: -90px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01) 70%);
  animation: rise linear infinite;
}
.b1 { left: 6%;  width: 120px; height: 120px; animation-duration: 30s; }
.b2 { left: 22%; width: 52px;  height: 52px;  animation-duration: 20s; animation-delay: -7s; }
.b3 { left: 42%; width: 150px; height: 150px; animation-duration: 38s; animation-delay: -15s; }
.b4 { left: 64%; width: 66px;  height: 66px;  animation-duration: 23s; animation-delay: -4s; }
.b5 { left: 78%; width: 100px; height: 100px; animation-duration: 34s; animation-delay: -11s; }
.b6 { left: 90%; width: 44px;  height: 44px;  animation-duration: 19s; animation-delay: -2s; }
.b7 { left: 12%; width: 30px;  height: 30px;  animation-duration: 16s; animation-delay: -9s; }
@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translateY(-115vh) translateX(28px); opacity: 0; }
}

/* ================================================================== */
/*  WELCOME 落地页(index.html)                                        */
/* ================================================================== */
.welcome-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 48px 28px 40px;
  max-width: 1440px;
  margin: 0 auto;
}

/* 品牌 Logo */
.welcome-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.logo-glow {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  color: var(--accent);
  background: rgba(168, 216, 234, 0.08);
  border-radius: 32px; /* 设计稿 LogoIconGlow r=32 */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.brand-name { font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--ink); letter-spacing: 0.5px; }
.brand-sub {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: 6px;
  color: var(--lavender);
}

/* 欢迎横幅 */
.welcome-banner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.w-title { font-family: var(--font-display); font-size: 48px; font-weight: 800; color: var(--ink); letter-spacing: 1px; }
.w-sub { font-size: 16px; color: var(--dim); }

/* 双入口卡片 */
.portal-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
  max-width: 1280px;
}
.portal-card {
  display: flex;
  flex-direction: column;
  align-items: center;         /* 设计稿 counterAxisAlign=CENTER：内容水平居中 */
  justify-content: center;     /* 设计稿 paAlign=CENTER：图标+CTA 垂直居中 */
  text-align: center;
  min-height: 360px;           /* 设计稿卡片 h=360 */
  gap: 24px;                   /* 设计稿 itemSpacing=24 */
  padding: 40px;               /* 设计稿 padding=40 */
  background: rgba(18, 23, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px; /* 设计稿卡片 r=20 */
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.portal-card:hover { transform: translateY(-3px); border-color: rgba(168, 216, 234, 0.35); }
.card-icon {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px; /* 设计稿 IconGlow r=16 */
}
.card-icon-lav { color: var(--lavender); background: var(--lavender-soft); }
.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* 设计稿 CTA 文字水平居中 */
  gap: 8px;
  width: 100%;             /* 设计稿 CTA 为整行药丸(540×56) */
  padding: 14px 24px;      /* 设计稿 padding=24,14 */
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800;
  color: var(--dark);
  border-radius: 999px; /* 设计稿 CTA r=99 药丸形 */
  transition: filter 0.15s ease, transform 0.15s ease;
}
.card-cta-accent { background: var(--accent); }
.card-cta-lav { background: var(--lavender); }
.card-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* 温馨提示 */
.tip-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1280px;
  width: 100%;
  padding: 14px 22px;
  background: rgba(13, 17, 34, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px; /* 设计稿 r=12 */
  color: var(--dim);
}
.tip-banner p { font-size: 13px; }
.tip-icon { flex: 0 0 auto; color: var(--accent); }

/* welcome 页脚 */
.welcome-footer { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.welcome-footer p { font-size: 11px; color: var(--footer-text); }

/* ================================================================== */
/*  歌单页 顶部导航(songs.html)                                        */
/* ================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--ink); }
.logo-sub { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--lavender); }

.nav-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; }
.tab {
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  border: none;
  border-radius: 99px; /* 设计稿 Tab r=99 */
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  background: var(--bg-panel);
  color: var(--text-2);
  font-weight: 500;
}
.tab:hover { color: #fff; }
.tab.active {
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 280px;
  max-width: 100%;
  padding: 10px 16px;
  background: var(--bg-search);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px; /* 设计稿 SearchBar r=99 */
}
.s-icon { color: var(--dim); flex: 0 0 auto; }
.search-box input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
}
.search-box input::placeholder { color: var(--dim); }
.search-box:focus-within { border-color: rgba(168, 216, 234, 0.5); }

/* 移动端导航「直播间」按钮（默认隐藏） */
.nav-live-btn {
  display: none;
  align-items: center;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  color: var(--dark);
  background: var(--accent);
  border-radius: 99px;
  text-decoration: none;
}

/* ================================================================== */
/*  主播头部                                                           */
/* ================================================================== */
.hero {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 100%;          /* 撑满 1280，避免 flex 下 margin:auto 收缩成内容宽 */
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 28px 16px;
}
.profile {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 设计稿 ProfileHeader 全宽：头像贴左、统计贴右 */
  gap: 28px;
  flex-wrap: wrap;
}
.avatar {
  width: 128px; height: 128px;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; /* 设计稿 AvatarGlowWrapper r=64 */
  background: radial-gradient(circle at 30% 25%, #dff3fb, #a8d8ea 45%, #7ba7cf 80%);
  box-shadow: 0 0 0 6px rgba(168, 216, 234, 0.15), 0 20px 46px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  user-select: none;
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.char-info { flex: 1; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  color: #fff;
  background: var(--live);
  border-radius: 4px; /* 设计稿 LiveBadge r=4 */
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: livepulse 1.6s infinite;
}
@keyframes livepulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.fan-badge {
  padding: 3px 10px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  color: var(--lavender);
  background: var(--lavender-soft);
  border-radius: 4px; /* 设计稿 FanBadge r=4 */
}
/* 移动端头部统计徽章（设计稿 StatsBadge，默认隐藏） */
.stats-badge {
  display: none;
  align-items: center;
  padding: 3px 10px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
}
.anchor-name {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 36px; font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.tagline { margin-top: 8px; font-size: 15px; color: var(--text-2); text-align: left; } /* 设计稿桌面端左对齐 */

.quick-stats {
  flex: 0 0 auto;
  min-width: 240px;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 20px;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px; /* 设计稿 QuickStats r=12 */
}
.qs-label { font-size: 13px; color: var(--dim); }
.qs-value { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--accent); }

/* 移动端搜索+筛选（默认隐藏） */
.mobile-filter { display: none; }
/* 移动端点歌说明条（默认隐藏） */
.instruction-banner { display: none; }

/* ================================================================== */
/*  歌单主体                                                           */
/* ================================================================== */
.panel {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  flex-direction: column;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.panel-title-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-icon {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 7px;
}
.panel-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); }
.panel-hint { font-size: 14px; color: var(--dim); }

.panel-actions { display: flex; gap: 10px; }
.btn-secondary {
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-2);
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px; /* 设计稿 ButtonSecondary r=8 */
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-primary {
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  font-weight: 600;
  background: var(--accent);
  border: none;
  border-radius: 8px; /* 设计稿 ButtonPrimary r=8 */
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ---------- 歌单表格玻璃面板 ---------- */
.table-glass {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel); /* 设计稿 TableGlassPanel 实色底 */
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* 桌面表格滚动容器：表头固定，只有列表内部滚动 */
.table-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.table-scroll::-webkit-scrollbar { width: 8px; }
.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}
.table-scroll::-webkit-scrollbar-track { background: transparent; }
.song-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.song-table thead {
  position: sticky;
  top: 0;
  z-index: 5;
}
.song-table th {
  padding: 18px 24px; /* 设计稿 TableHeader p=24,24,18,18 */
  font-size: 13px; font-weight: 700;
  text-align: left;
  color: var(--dim);
  background: var(--bg-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
.song-table td {
  padding: 14px 18px;
  font-size: 14px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.song-table tbody tr:nth-child(even) { background: var(--zebra); }
.song-table tbody tr { transition: background 0.15s ease; }
.song-table tbody tr:hover { background: rgba(168, 216, 234, 0.06); }

/* 列宽 */
.c-idx    { width: 88px; } /* 加宽，容纳 100+ 的三位序号 */
.c-name   { width: 36%; }
.c-artist { width: 19%; }
.c-lang   { width: 110px; }
.c-note   { width: 22%; }
.c-action { width: 110px; }

/* 序号 */
.c-idx { font-size: 14px; font-weight: 400; color: var(--dim); font-variant-numeric: tabular-nums; }

/* 歌名（含播放中状态） */
.song-name { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; color: var(--ink); }
.song-name .m-icon { color: var(--accent); font-size: 14px; flex: 0 0 auto; }
.song-name.playing { color: var(--accent); }

/* 歌手 */
.c-artist { color: var(--text-2); }

/* 语种标签 */
.lang-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px; font-weight: 600;
  border-radius: 6px; /* 设计稿 语种标签 r=6 */
  color: var(--accent);
  background: var(--accent-soft);
}
.lang-tag.ja { color: var(--lavender); background: var(--lavender-soft); }

/* 备注 */
.c-note { font-size: 13px; color: var(--dim); }

/* 点歌按钮（表格内） */
.req-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  color: var(--dark);
  background: var(--accent);
  border: none;
  border-radius: 999px; /* 设计稿 RequestButton r=999 */
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease;
}
.req-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.req-btn:active { transform: translateY(0); }

/* 空状态 */
.status {
  flex-shrink: 0;
  padding: 26px 18px;
  text-align: center;
  color: var(--dim);
  font-size: 14px;
}
.status:empty { display: none; }

/* ---------- 移动端卡片歌单（默认隐藏） ---------- */
.card-scroll { display: none; }

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 28px 20px 24px;
  text-align: center;
}
.footer-bubbles {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-bubbles span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.footer-bubbles span:nth-child(1) { background: rgba(168, 216, 234, 0.55); }
.footer-bubbles span:nth-child(2) { background: rgba(195, 174, 214, 0.55); }
.footer-bubbles span:nth-child(3) { background: rgba(168, 216, 234, 0.28); }
.footer p { font-size: 13px; color: var(--dim); }

/* 底部备案号（工信部备案查询链接） */
.beian {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.15s ease;
}
.beian:hover { color: var(--dim); }

/* ---------- 复制提示 Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translate(-50%, 20px);
  z-index: 60;
  padding: 11px 22px;
  font-size: 14px;
  color: var(--dark);
  font-weight: 600;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 点歌说明弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 9, 20, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-mask[hidden] { display: none; }
.modal {
  position: relative;
  width: min(440px, 100%);
  padding: 30px 32px 26px;
  background: linear-gradient(170deg, #16223b, var(--bg-panel));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 8px;
  color: var(--dim);
  font-size: 14px;
  cursor: pointer;
}
.modal-close:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.modal h2 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  margin-bottom: 18px;
}
.modal ol { margin-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.modal li { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.modal code {
  padding: 2px 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
}
.modal-tip { margin-top: 18px; font-size: 13px; color: var(--dim); }

/* ================================================================== */
/*  响应式                                                             */
/* ================================================================== */

/* 中屏：welcome 卡片竖排 */
@media (max-width: 900px) {
  .portal-cards { grid-template-columns: 1fr; }
  .c-note { display: none; }
  .c-artist { width: 20%; }
  .c-name { width: auto; }
  .nav-inner { padding: 12px 16px; }
  .nav-right { width: 100%; justify-content: space-between; }
}

/* 移动端：切换为卡片歌单（设计稿 playlist-mobile） */
@media (max-width: 640px) {
  body {
    height: auto;
    overflow-y: auto;
  }

  /* 导航：只留 Logo + 直播间按钮，搜索/筛选移入下方 */
  .nav-inner { padding: 12px 16px; gap: 12px; }
  .logo-icon { width: 32px; height: 32px; font-size: 16px; }
  .logo-name { font-size: 16px; }
  .logo-sub { font-size: 10px; }
  .nav-right { width: auto; justify-content: flex-end; gap: 10px; }
  .nav .tabs,
  .nav .search-box { display: none; }
  .nav-live-btn { display: inline-flex; }

  /* 头部：居中竖排，头像缩小，显示统计徽章（设计稿 40:4 移动端全部居中） */
  .hero { padding: 22px 16px 10px; }
  .profile { flex-direction: column; justify-content: center; align-items: center; gap: 12px; }
  .char-info { align-items: center; }
  .badge-row { justify-content: center; }
  .avatar { width: 80px; height: 80px; }
  .anchor-name { font-size: 24px; margin-top: 8px; text-align: center; }
  .tagline { font-size: 12px; margin-top: 4px; text-align: center; }
  .quick-stats { display: none; }
  .stats-badge { display: inline-flex; }

  /* 搜索 + 语种筛选 */
  .mobile-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px 4px;
  }
  .mobile-filter .search-box { width: 100%; }
  .mobile-filter .tabs { flex-wrap: wrap; gap: 8px; }
  .mobile-filter .tab { padding: 8px 16px; font-size: 13px; }

  /* 点歌说明条 */
  .instruction-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 16px 0;
    padding: 11px 14px;
    background: rgba(13, 17, 34, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
  }
  .ib-label { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--accent); }
  .ib-text { font-size: 12px; color: var(--dim); }

  /* 主体：隐藏表格，显示卡片 */
  .panel { flex: 0 0 auto; min-height: 0; padding: 12px 16px 16px; }
  .panel-head { display: none; }
  .table-glass {
    flex: none;
    height: auto;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .table-scroll,
  .song-table { display: none; }

  /* 卡片歌单 */
  .card-scroll { display: block; }
  .card-section-title {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 2px 2px 12px;
  }
  .card-section-title > span:first-child { font-size: 16px; font-weight: 700; color: var(--ink); }
  .card-section-title .cst-count { font-size: 12px; font-weight: 400; color: var(--dim); }

  .song-cards { display: flex; flex-direction: column; gap: 12px; }
  .song-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: rgba(18, 23, 45, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px; /* 设计稿 SongCard r=12 */
  }
  .song-card.playing { background: rgba(255, 255, 255, 0.05); }

  .sc-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .sc-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .sc-idx { font-size: 13px; font-weight: 700; color: var(--dim); flex: 0 0 auto; font-variant-numeric: tabular-nums; }
  .sc-title {
    font-size: 15px; font-weight: 600; color: var(--ink);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  }
  .sc-title .m-icon { color: var(--accent); font-size: 13px; margin-right: 2px; }
  .sc-title.playing { color: var(--accent); }
  .lang-badge {
    flex: 0 0 auto;
    padding: 2px 8px;
    font-size: 11px; font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 4px; /* 设计稿 LangBadge r=4 */
  }
  .lang-badge.ja { color: var(--lavender); background: var(--lavender-soft); }

  .sc-details { display: flex; flex-direction: column; gap: 7px; }
  .sc-row { display: flex; align-items: center; gap: 12px; }
  .sc-label { flex: 0 0 58px; font-size: 12px; color: var(--dim); }
  .sc-value {
    font-size: 13px; color: var(--text-2);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  }

  .card-req {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%;
    padding: 9px;
    font-family: var(--font-body);
    font-size: 13px; font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 8px; /* 设计稿 SongCardAction r=8 */
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .card-req.active,
  .song-card.playing .card-req {
    background: var(--accent);
    color: var(--dark);
  }

  /* 页脚 */
  .footer { padding: 18px 16px 16px; }
  .footer-bubbles { margin-bottom: 10px; }
}

/* 较矮的桌面屏：压缩 Hero / 页脚，给歌单列表更多空间 */
@media (max-height: 760px) and (min-width: 641px) {
  .hero { padding: 24px 28px 8px; }
  .anchor-name { font-size: 30px; margin-top: 8px; }
  .tagline { margin-top: 4px; }
  .avatar { width: 104px; height: 104px; }
  .footer { padding: 18px 20px 14px; }
  .footer-bubbles { margin-bottom: 8px; }
}

/* 小屏 welcome：缩小间距与字号 */
@media (max-width: 480px) {
  .welcome-wrap { padding: 32px 16px 32px; gap: 24px; }
  .w-title { font-size: 32px; }
  .w-sub { font-size: 14px; }
  .portal-card { padding: 24px 22px 22px; min-height: 260px; }
  .card-cta { font-size: 15px; padding: 12px 20px; }
}
