:root {
  --primary: #5c8dff;
  --primary-dark: #ff5590;
  --bg: #12121d;
  --bg-soft: #191924;
  --card: #20202d;
  --tint: #252536;
  --text: #f0f2f5;
  --text-light: #b5b5c5;
  --border: #353546;
  --radius: 16px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(72px + var(--safe-bottom));
  overscroll-behavior-y: contain;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.m-shell {
  padding: 0 14px;
}

/* ===== 顶部栏 ===== */
.m-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(25, 25, 36, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.m-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.m-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  background: #353546;
}
.m-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.m-brand-copy strong {
  font-size: 14px;
  color: var(--text);
}
.m-brand-copy small {
  font-size: 10px;
  color: var(--text-light);
}
.m-bar-actions {
  display: flex;
  gap: 8px;
}
.m-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 17px;
  cursor: pointer;
}
.m-icon-btn:active {
  transform: scale(0.94);
}

/* ===== 通用区块 ===== */
.m-sec {
  padding: 28px 0;
}
.m-sec--tint {
  background: var(--tint);
}
.m-head {
  margin-bottom: 20px;
}
.m-eyebrow {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.m-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.m-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}
.m-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
}
.m-more:active {
  opacity: 0.7;
}

/* ===== 主视觉 ===== */
.m-hero {
  padding: 24px 0 20px;
  background: linear-gradient(180deg, #191924 0%, var(--bg) 100%);
}
.m-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(92, 141, 255, 0.12);
  color: var(--primary);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 16px;
  margin-bottom: 14px;
}
.m-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}
.m-hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}
.m-hero-lead {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text);
}
.m-hero-accent {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}
.m-hero-desc {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
}
.m-hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.m-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.2s;
}
.m-btn:active {
  transform: scale(0.97);
  background: var(--primary-dark);
}
.m-btn--alt {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.m-btn--alt:active {
  background: rgba(92, 141, 255, 0.1);
}
.m-btn--sm {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 12px;
}
.m-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.m-chips span {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: var(--text-light);
}

/* 热剧果盘 - 横滑 */
.m-plate-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.m-plate-scroll::-webkit-scrollbar {
  display: none;
}
.m-plate-item {
  flex: 0 0 108px;
  scroll-snap-align: start;
}
.m-plate-item img {
  width: 108px;
  height: 144px;
  border-radius: 12px;
  object-fit: cover;
  background: #353546;
  box-shadow: var(--shadow);
}
.m-plate-item span {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 追剧日历 ===== */
.m-cal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.m-cal-cell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.m-cal-day {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
}
.m-cal-drama {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-cal-tag {
  font-size: 11px;
  color: var(--text-light);
}
.m-cal-status {
  font-size: 10px;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(92, 141, 255, 0.15);
  color: var(--primary);
}

/* ===== 热映片架 ===== */
.m-shelf-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.m-shelf-scroll::-webkit-scrollbar {
  display: none;
}
.m-fruit-card {
  flex: 0 0 150px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.m-fruit-media {
  display: block;
  position: relative;
  aspect-ratio: 3/4;
  background: #353546;
  overflow: hidden;
}
.m-fruit-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-fruit-heat,
.m-fruit-genre {
  position: absolute;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}
.m-fruit-heat {
  top: 8px;
  left: 8px;
}
.m-fruit-genre {
  bottom: 8px;
  right: 8px;
  background: var(--primary);
}
.m-fruit-body {
  padding: 10px 12px;
}
.m-fruit-body h4 {
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text);
}
.m-fruit-body p {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== 榜单 ===== */
.m-chart-rows {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}
.m-chart-no {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  min-width: 20px;
  text-align: center;
}
.m-chart-no--top {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.m-chart-thumb {
  width: 44px;
  height: auto;
  aspect-ratio: 3/4;
  border-radius: 8px;
  background: #353546;
  overflow: hidden;
  flex-shrink: 0;
}
.m-chart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-chart-info {
  flex: 1;
  min-width: 0;
}
.m-chart-info h4 {
  font-size: 13px;
  margin-bottom: 2px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-chart-genre {
  font-size: 11px;
  color: var(--text-light);
}
.m-chart-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 5px;
  overflow: hidden;
}
.m-chart-bar i {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
}
.m-chart-heat {
  font-size: 11px;
  color: var(--primary);
  white-space: nowrap;
  font-weight: 600;
}

/* ===== 本周看点 ===== */
.m-spotlight-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.m-spotlight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.m-spotlight-media {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  background: #353546;
  overflow: hidden;
}
.m-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-spotlight-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 8px;
}
.m-spotlight-body {
  padding: 14px;
}
.m-spotlight-body h4 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text);
}
.m-spotlight-body p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}
.m-spotlight-meta {
  font-size: 11px;
  color: var(--primary);
  margin-top: 8px;
  font-weight: 500;
}

/* ===== 角色人气榜 ===== */
.m-role-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-role-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.m-role-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: #353546;
  flex-shrink: 0;
}
.m-role-info {
  flex: 1;
  min-width: 0;
}
.m-role-info h4 {
  font-size: 14px;
  margin-bottom: 3px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-role-info p {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 6px;
}
.m-role-pop {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.m-role-pop i {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
}
.m-role-heat {
  font-size: 11px;
  color: var(--primary);
  white-space: nowrap;
  font-weight: 600;
}

/* ===== 幕后花絮 ===== */
.m-bts-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.m-bts-scroll::-webkit-scrollbar {
  display: none;
}
.m-bts-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.m-bts-media {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  background: #353546;
  overflow: hidden;
}
.m-bts-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-bts-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(32, 32, 45, 0.85);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.m-bts-body {
  padding: 12px;
}
.m-bts-body h4 {
  font-size: 14px;
  margin-bottom: 5px;
  color: var(--text);
}
.m-bts-body p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}
.m-bts-meta {
  font-size: 11px;
  color: var(--primary);
  margin-top: 6px;
  font-weight: 500;
}

/* ===== 三大专区 ===== */
.m-trio-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.m-trio-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
.m-trio-head {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.m-trio-poster {
  width: 64px;
  height: auto;
  aspect-ratio: 3/4;
  border-radius: 10px;
  object-fit: cover;
  background: #353546;
  flex-shrink: 0;
}
.m-trio-head h3 {
  font-size: 16px;
  margin-bottom: 5px;
}
.m-trio-head h3 a {
  color: var(--primary);
}
.m-trio-copy {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}
.m-trio-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.m-trio-items h4 {
  font-size: 13px;
  margin-bottom: 2px;
  color: var(--text);
}
.m-trio-items p {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== 在线观看 ===== */
.m-online-link {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #353546;
  max-width: 280px;
  margin: 0 auto 20px;
}
.m-online-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-online-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(32, 32, 45, 0.85);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-lg);
}
.m-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}
.m-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.m-step-no {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.m-steps strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--text);
}
.m-steps p {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== 追剧体验 ===== */
.m-perk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.m-perk {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
}
.m-perk-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(92, 141, 255, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin: 0 auto 10px;
}
.m-perk strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text);
}
.m-perk p {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== 果友心声 ===== */
.m-voice-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.m-voice-scroll::-webkit-scrollbar {
  display: none;
}
.m-voice {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.m-voice-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.m-voice-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(92, 141, 255, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.m-voice-user strong {
  font-size: 13px;
  display: block;
  color: var(--text);
}
.m-voice-user em {
  font-size: 11px;
  color: var(--text-light);
  font-style: normal;
}
.m-voice-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== 数据 ===== */
.m-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.m-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
}
.m-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}
.m-stat-label {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== FAQ ===== */
.m-faq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.m-faq-q {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text);
}
.m-faq-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(92, 141, 255, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.m-faq-a {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  padding-left: 30px;
}
.m-faq-time {
  font-size: 11px;
  color: var(--text-light);
  padding-left: 30px;
  margin-top: 5px;
}

/* ===== 内容声明 ===== */
.m-notice {
  padding: 18px 0;
  background: var(--tint);
}
.m-note {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== 下载区 ===== */
.m-download {
  background: linear-gradient(135deg, #191924, #252536);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 18px;
}
.m-download .m-title {
  color: var(--text);
}
.m-download .m-desc {
  color: var(--text-light);
}
.m-download-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}
.m-download-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.m-download-steps strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
  color: var(--text);
}
.m-download-steps p {
  font-size: 12px;
  color: var(--text-light);
}
.m-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.m-spec-cell {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.m-spec-k {
  font-size: 10px;
  color: var(--text-light);
}
.m-spec-v {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.m-download-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-download-note {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  margin-top: 10px;
}

/* ===== 页脚 ===== */
.m-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 28px 0 20px;
}
.m-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.m-footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  background: #353546;
}
.m-footer-brand-copy strong {
  font-size: 14px;
  display: block;
  color: var(--text);
}
.m-footer-brand-copy small {
  font-size: 11px;
  color: var(--text-light);
}
.m-footer-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.m-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
  margin-bottom: 20px;
}
.m-footer-col h3 {
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--text);
}
.m-footer-col a {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 7px;
}
.m-footer-col a:active {
  color: var(--primary);
}
.m-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.m-footer-tags strong {
  font-size: 12px;
  color: var(--text);
  margin-right: 4px;
}
.m-footer-tags span {
  background: var(--tint);
  color: var(--text-light);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
}
.m-footer-legal {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.9;
}
.m-footer-legal a {
  color: var(--text-light);
}
.m-footer-legal a:active {
  color: var(--primary);
}

/* ===== 底部固定导航 ===== */
.m-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(25, 25, 36, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 6px 0 calc(6px + var(--safe-bottom));
  display: flex;
}
.m-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  color: var(--text-light);
  font-size: 10px;
  transition: color 0.2s;
}
.m-tab-icon {
  font-size: 20px;
  line-height: 1;
}
.m-tab.active {
  color: var(--primary);
}
.m-tab:active {
  opacity: 0.7;
}

/* ===== 底部悬浮下载条 ===== */
.m-download-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(66px + var(--safe-bottom));
  z-index: 95;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-lg);
}
.m-download-bar p {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.4;
}
.m-download-bar p strong {
  color: var(--text);
  display: block;
  font-size: 12px;
}

/* ===== 菜单/搜索抽屉 ===== */
.m-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.m-layer.is-open {
  display: block;
}
.m-layer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100%;
  background: var(--bg-soft);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
  padding: 20px 18px calc(20px + var(--safe-bottom));
  overflow-y: auto;
  border-left: 1px solid var(--border);
}
.m-layer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.m-layer-head strong {
  font-size: 15px;
  display: block;
  margin-bottom: 3px;
  color: var(--text);
}
.m-layer-head span {
  font-size: 12px;
  color: var(--text-light);
}
.m-layer-close {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  padding: 0 4px;
}
.m-layer-close:active {
  color: var(--primary);
}
.m-menu-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.m-menu-group h2 {
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.m-menu-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.m-menu-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
}
.m-menu-item:active {
  background: var(--tint);
}
.m-menu-item b {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.m-menu-item span {
  font-size: 11px;
  color: var(--text-light);
}
.m-layer-search {
  margin-bottom: 16px;
}
.m-layer-search input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  background: var(--bg);
  color: var(--text);
}
.m-layer-search input:focus {
  border-color: var(--primary);
}
.m-layer-search input::placeholder {
  color: var(--text-light);
}
.m-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.m-search-chip {
  background: var(--tint);
  border: none;
  color: var(--text-light);
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
}
.m-search-chip:active {
  background: var(--primary);
  color: #fff;
}
.m-search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.m-search-empty {
  font-size: 12px;
  color: var(--text-light);
  padding: 10px 0;
}
.m-search-count {
  font-size: 11px;
  color: var(--primary);
  margin-bottom: 4px;
}
.m-layer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.m-layer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== 响应式微调 ===== */
@media (min-width: 480px) {
  .m-hero-lead {
    font-size: 34px;
  }
  .m-hero-accent {
    font-size: 19px;
  }
  .m-cal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .m-perk-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .m-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .m-footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 自定义弹窗 */
.m-copy-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(32, 32, 45, 0.96);
  backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 20px;
  padding: 18px 22px;
  max-width: 340px;
  width: calc(100% - 40px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.28s,
    transform 0.28s;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}
.m-copy-toast.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.m-copy-toast .m-copy-url {
  display: block;
  word-break: break-all;
  background: #12121d;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--primary);
  margin: 10px 0 12px;
  border: 1px solid var(--border);
}
.m-copy-toast .m-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.2s;
  margin-bottom: 8px;
}
.m-copy-toast .m-copy-btn:active {
  transform: scale(0.96);
  background: var(--primary-dark);
}
.m-copy-toast .m-copy-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
  margin-top: 4px;
}
.m-copy-toast .m-copy-close:active {
  color: var(--primary);
}

/* Keep the shared pending-download dialog centered despite the source reset. */
dialog#gscenes-download-dialog {
  margin: auto;
}
