/* ==========================================================================
   盛衡文化 · 全站样式
   设计方向：墨黑 + 暖纸底 + 琥珀金，内容优先、克制留白、胶囊按钮
   ========================================================================== */

/* ------------------------------ 设计令牌 ------------------------------ */
:root {
  --ink: #0e1117;
  --ink-2: #161b26;
  --ink-3: #1f2534;
  --paper: #faf7f1;
  --paper-2: #f4efe6;
  --card: #ffffff;
  --line: #e9e3d7;
  --line-strong: #d9d1c1;
  --muted: #6c7383;
  --muted-2: #8d94a3;
  --accent: #c2410c;
  --accent-soft: #fdf1e5;
  --accent-2: #0f766e;
  --gold: #f0b429;
  --white: #ffffff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-xs: 0 1px 2px rgba(14, 17, 23, 0.04);
  --shadow-sm: 0 4px 14px rgba(14, 17, 23, 0.06);
  --shadow: 0 16px 40px rgba(14, 17, 23, 0.10);
  --shadow-lg: 0 30px 70px rgba(14, 17, 23, 0.18);

  --header-h: 76px;
  --footer-h: 76px;

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

/* ------------------------------ 基础重置 ------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: var(--footer-h);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  letter-spacing: -0.015em;
  line-height: 1.2;
}

::selection {
  background: rgba(194, 65, 12, 0.18);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------ 布局 ------------------------------ */
.container {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
}

.section {
  padding: 104px 0;
}

.section-alt {
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf8 100%);
}

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.text-muted {
  color: var(--muted);
}

/* ------------------------------ 按钮 ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

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

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

.btn-accent {
  background: linear-gradient(135deg, #b93c0a 0%, #e07a1f 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(194, 65, 12, 0.26);
}

.btn-accent:hover {
  box-shadow: 0 18px 38px rgba(194, 65, 12, 0.34);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 26px rgba(14, 17, 23, 0.22);
}

.btn-ghost-dark {
  border-color: var(--line-strong);
  background: var(--card);
  color: var(--ink);
}

.btn-ghost-dark:hover {
  border-color: var(--ink);
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* ------------------------------ 顶部导航 ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(233, 227, 215, 0.9);
  backdrop-filter: saturate(1.8) blur(16px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-logo {
  height: 46px;
  width: auto;
  display: block;
  flex: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.primary-nav .nav-link:hover {
  color: var(--ink);
  background: rgba(14, 17, 23, 0.05);
}

.primary-nav .nav-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 800;
}

.primary-nav .nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

/* 最后一个导航项作为主 CTA 胶囊（含当前页状态，必须覆盖高亮规则） */
.primary-nav > a:last-child,
.primary-nav > a:last-child[aria-current="page"] {
  margin-left: 6px;
  padding: 11px 22px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 22px rgba(14, 17, 23, 0.18);
}

.primary-nav > a:last-child:hover,
.primary-nav > a:last-child[aria-current="page"]:hover {
  background: var(--accent);
  color: #fff;
}

.primary-nav > a:last-child::after,
.primary-nav > a:last-child[aria-current="page"]::after {
  display: none;
}

/* 下拉菜单 */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-caret {
  transition: transform 0.22s var(--ease);
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 186px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: translateX(-50%) translateY(-8px) scale(0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.22s var(--ease), visibility 0.2s;
  z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav-dropdown-menu a {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

/* ------------------------------ 首页大图 ------------------------------ */
.hero {
  position: relative;
  min-height: clamp(600px, 86vh, 900px);
  display: flex;
  align-items: center;
  background: url("../images/hero.jpg") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    102deg,
    rgba(6, 9, 16, 0.94) 0%,
    rgba(9, 13, 24, 0.78) 42%,
    rgba(10, 14, 26, 0.28) 100%
  );
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--paper));
  z-index: -1;
}

.hero-content {
  position: relative;
  width: min(780px, 100%);
  padding: 120px 0 150px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffe3b0;
}

.hero-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.hero-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}

.hero-logo-badge {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.hero-logo-badge img {
  height: 58px;
  width: auto;
}

.hero h1,
.hero-brand h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.16;
  text-wrap: balance;
}

.hero-content > p {
  margin: 0 0 38px;
  max-width: 620px;
  font-size: 17.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.76);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ------------------------------ 数据条 ------------------------------ */
.stats-strip {
  position: relative;
  z-index: 3;
  margin-top: -58px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.stat {
  padding: 28px 22px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat em {
  margin-left: 3px;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

/* ------------------------------ 内页页头 ------------------------------ */
.page-hero {
  position: relative;
  padding: 104px 0 92px;
  color: #fff;
  background:
    radial-gradient(900px 420px at 12% -20%, rgba(124, 58, 237, 0.35), transparent 62%),
    radial-gradient(700px 400px at 92% 10%, rgba(194, 65, 12, 0.32), transparent 60%),
    linear-gradient(118deg, #0b0e16 0%, #1a1430 52%, #341a2a 100%);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 78%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: #ffcf87;
}

.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.page-hero p {
  margin: 0;
  max-width: 720px;
  font-size: 16.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------ 卡片通用 ------------------------------ */
.category-card,
.work-card,
.comic-card,
.scene-card,
.replay-card,
.business-card,
.info-card,
.plan-card,
.account-panel,
.player-shell,
.playlist-shell,
.account-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s ease;
}

.category-card:hover,
.work-card:hover,
.comic-card:hover,
.scene-card:hover,
.replay-card:hover,
.business-card:hover,
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.category-card img,
.business-card img,
.scene-card img,
.work-cover img,
.poster-wrap img {
  transition: transform 0.6s var(--ease);
}

.category-card:hover img,
.business-card:hover img,
.scene-card:hover img,
.work-card:hover .work-cover img,
.comic-card:hover .poster-wrap img {
  transform: scale(1.045);
}

/* ------------------------------ 首页三板块 ------------------------------ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.category-card {
  display: flex;
  flex-direction: column;
}

.category-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.category-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  flex: 1;
}

.category-body h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
}

.category-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.category-body small {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

/* 企业简介双栏 */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}

.about-grid h2 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
}

.about-grid > div > p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scope-chip {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.scope-chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ------------------------------ 近期作品 ------------------------------ */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.feature-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.feature-item strong {
  padding: 18px 20px 4px;
  font-size: 17px;
  font-weight: 800;
}

.feature-item small {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 13px;
}

/* ------------------------------ 业务专区 ------------------------------ */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.business-card {
  display: flex;
  flex-direction: column;
}

.business-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.business-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
}

.business-body h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
}

.business-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.business-body .btn {
  margin-top: auto;
  align-self: flex-start;
  min-height: 46px;
  padding: 0 22px;
  font-size: 14px;
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 14.5px;
}

.service-list li {
  position: relative;
  padding-left: 22px;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.service-band {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(194, 65, 12, 0.07), transparent 60%),
    linear-gradient(180deg, #f7f2e9, #fbf8f2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-band .container {
  max-width: 960px;
}

.service-band h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
}

.service-band p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15.5px;
}

.service-band .service-list {
  margin-top: 18px;
}

/* ------------------------------ 会员方案 ------------------------------ */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
}

.plan-card-pro {
  border-color: rgba(194, 65, 12, 0.4);
  box-shadow: 0 20px 48px rgba(194, 65, 12, 0.12);
  position: relative;
}

.plan-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.plan-price {
  margin: 0;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.plan-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.plan-card .service-list {
  margin: 6px 0 10px;
  font-size: 14px;
}

.plan-card .btn {
  margin-top: auto;
  min-height: 46px;
}

/* ------------------------------ 关于我们 ------------------------------ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.info-card {
  padding: 28px;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.info-card p {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
  word-break: break-word;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.team-grid .info-card h3 {
  font-size: 18px;
  color: var(--ink);
  font-weight: 800;
}

.team-grid .info-card p {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.85;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
  margin: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.contact-item dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contact-item dd {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 700;
  word-break: break-word;
}

/* ------------------------------ 音乐专区 ------------------------------ */
.music-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 26px;
  align-items: start;
  margin-bottom: 72px;
}

.player-shell {
  padding: 30px;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(124, 58, 237, 0.22), transparent 62%),
    linear-gradient(158deg, #171c28 0%, #0e1117 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.player-now {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.player-now img {
  width: 104px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.player-now strong {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.player-now small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.control-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.control-btn.play-btn {
  width: 60px;
  height: 60px;
  border: 0;
  background: linear-gradient(135deg, #b93c0a, #e07a1f);
  box-shadow: 0 14px 32px rgba(194, 65, 12, 0.4);
}

.control-btn.play-btn:hover {
  box-shadow: 0 18px 40px rgba(194, 65, 12, 0.5);
}

.control-btn .icon-pause,
.control-btn.is-playing .icon-play {
  display: none;
}

.control-btn.is-playing .icon-pause {
  display: block;
}

.player-progress {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.player-progress input,
.player-volume input {
  width: 100%;
}

/* 自定义滑块：细轨道 + 金色圆点 */
.player-progress input[type="range"],
.player-volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  background: transparent;
  cursor: pointer;
}

.player-progress input[type="range"]::-webkit-slider-runnable-track,
.player-volume input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.player-progress input[type="range"]::-webkit-slider-thumb,
.player-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(240, 180, 41, 0.18);
}

.player-progress input[type="range"]::-moz-range-track,
.player-volume input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.player-progress input[type="range"]::-moz-range-thumb,
.player-volume input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
}

.player-volume {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.playlist-shell {
  padding: 16px;
}

.playlist-shell h2 {
  margin: 8px 12px 14px;
  font-size: 17px;
  font-weight: 800;
}

.playlist {
  display: grid;
  gap: 4px;
}

.playlist-item {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.playlist-item:hover {
  background: var(--paper);
}

.playlist-item.is-active {
  background: var(--accent-soft);
  border-color: rgba(194, 65, 12, 0.2);
}

.playlist-index {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.playlist-item.is-active .playlist-index {
  color: var(--accent);
}

.playlist-main strong,
.playlist-main small {
  display: block;
}

.playlist-main strong {
  font-size: 15px;
  font-weight: 700;
}

.playlist-main small,
.playlist-duration {
  font-size: 12.5px;
  color: var(--muted);
}

/* 音乐作品网格 */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}

.work-card {
  display: flex;
  flex-direction: column;
}

.work-cover {
  display: block;
  overflow: hidden;
}

.work-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.work-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.work-body h3 a:hover {
  color: var(--accent);
}

.work-body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13.5px;
}

.work-body dl,
.comic-body dl {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  font-size: 13px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.work-body dt,
.comic-body dt {
  color: var(--muted-2);
}

.work-body dd,
.comic-body dd {
  margin: 0;
  font-weight: 600;
}

.text-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-2);
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--accent);
}

/* ------------------------------ 漫剧专区 ------------------------------ */
.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.comic-card {
  display: flex;
  flex-direction: column;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink-2);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.poster-actions {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(10, 13, 20, 0.62);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--accent);
  transform: scale(1.06);
}

.comic-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.comic-body h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
}

.comic-type {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.comic-body > p:not(.comic-type) {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.review-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.06);
  color: #0d6459;
  font-size: 13px;
  font-weight: 600;
}

/* ------------------------------ 直播专区 ------------------------------ */
.scene-grid,
.replay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.scene-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.scene-body,
.replay-body {
  padding: 22px;
}

.scene-body h3,
.replay-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.scene-body p,
.replay-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.09);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.replay-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05070c;
}

/* ------------------------------ 音乐详情 ------------------------------ */
.breadcrumb {
  padding-top: 28px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent-2);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.detail-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
  margin: 40px 0 40px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-info {
  padding-top: 6px;
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
}

.detail-info > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.meta-list {
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  font-size: 15px;
}

.meta-list dt {
  color: var(--muted);
}

.meta-list dd {
  margin: 0;
  font-weight: 700;
}

.detail-block {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.detail-block h2 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 800;
}

.detail-block p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

/* ------------------------------ 合规横幅 ------------------------------ */
.compliance-band {
  position: relative;
  padding: 88px 0;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(194, 65, 12, 0.16), transparent 68%),
    linear-gradient(160deg, #0e1117, #151b28);
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.compliance-band .container {
  max-width: 880px;
  text-align: center;
}

.compliance-band h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: #fff;
}

.compliance-band p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.9;
}

/* ------------------------------ 协议页 ------------------------------ */
.legal-content {
  max-width: 940px;
  margin: 0 auto;
}

.legal-content article {
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-xs);
}

.legal-meta {
  margin: 0 0 26px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
}

.legal-content h2 {
  margin: 34px 0 12px;
  font-size: 20px;
  font-weight: 800;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content a {
  color: var(--accent-2);
  font-weight: 600;
}

/* ------------------------------ 用户中心 ------------------------------ */
.account-card {
  max-width: 470px;
  margin: 0 auto;
  padding: 34px;
}

.account-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px;
  border-radius: 999px;
  background: var(--paper);
}

.account-tab {
  flex: 1;
  padding: 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.account-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.method-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.method-switch button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.method-switch button.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.account-form {
  display: grid;
  gap: 16px;
}

.account-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.account-form input:not([type="checkbox"]),
.account-form select,
.account-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-form input:not([type="checkbox"]) {
  height: 50px;
  padding: 0 16px;
}

.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.12);
}

.account-form textarea {
  resize: vertical;
  min-height: 130px;
}

.field-select {
  height: 50px;
}

.code-row {
  display: flex;
  gap: 10px;
}

.code-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.btn-code {
  flex: 0 0 auto;
  min-height: 50px;
  padding: 0 18px;
  font-size: 13.5px;
}

.account-check {
  display: flex !important;
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.account-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.form-error {
  margin: 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
}

.form-hint {
  margin: 0;
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.7;
}

.form-success {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 14px;
}

.account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.account-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
}

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

.account-panel {
  padding: 28px;
}

.account-panel h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
}

.account-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.plan-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.plan-row .btn {
  min-height: 46px;
  padding: 0 22px;
  font-size: 14px;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.account-table th,
.account-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.account-table th {
  color: var(--muted-2);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.favorite-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 14.5px;
}

.favorite-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--accent);
}

/* ------------------------------ 页脚 ------------------------------ */
.site-footer {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(194, 65, 12, 0.14), transparent 62%),
    linear-gradient(180deg, #0b0e14 0%, #12161f 100%);
  color: rgba(255, 255, 255, 0.66);
  padding: 64px 0 44px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  display: block;
}

.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 5px;
}

.footer-company {
  margin: 0 0 8px;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.footer-slogan {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.48);
}

.footer-col h4 {
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.footer-dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  font-size: 13px;
}

.footer-dl dt {
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

.footer-dl dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 13px;
}

.footer-list a,
.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.footer-list a:hover,
.footer-links a:hover {
  color: var(--gold);
}

.license-slot {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* 底部固定合规栏 */
.compliance-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  min-height: var(--footer-h);
  background: rgba(10, 13, 19, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.compliance-inner {
  min-height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 10px 24px;
  text-align: center;
}

.compliance-inner span + span::before {
  content: "·";
  margin-right: 22px;
  color: rgba(255, 255, 255, 0.28);
}

.compliance-inner a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.compliance-inner a:hover,
.compliance-inner a:focus-visible {
  color: #fff;
  border-bottom-color: var(--gold);
}

/* ------------------------------ 弹层 ------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(6, 8, 14, 0.94);
  backdrop-filter: blur(8px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(16, 19, 26, 0.7);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s var(--ease);
}

.lightbox-close:hover {
  background: var(--accent);
  transform: rotate(90deg);
}

.lightbox-figure {
  max-width: 980px;
  width: 100%;
  margin: 0;
  text-align: center;
}

.lightbox-figure img,
.lightbox-figure video {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.lightbox-figure figcaption {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

body.no-scroll {
  overflow: hidden;
}

/* ------------------------------ 404 ------------------------------ */
.notfound {
  text-align: center;
  padding: 110px 0 130px;
}

.notfound-code {
  margin: 0 0 16px;
  font-size: clamp(5rem, 12vw, 8.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound h1 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
}

.notfound-desc {
  margin: 0 0 32px;
  color: var(--muted);
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 26px;
}

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1024px) {
  .music-layout {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .detail-cover {
    max-width: 360px;
  }
}

@media (max-width: 960px) {
  .section {
    padding: 76px 0;
  }

  .category-grid,
  .feature-row,
  .scene-grid,
  .replay-grid,
  .business-grid,
  .team-grid,
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .hero-content {
    padding: 100px 0 120px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 36px, 1200px);
  }

  .section {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 18px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav .nav-link {
    padding: 13px 12px;
    border-radius: 10px;
  }

  .primary-nav .nav-link[aria-current="page"]::after {
    display: none;
  }

  .primary-nav > a:last-child {
    margin: 8px 0 0;
    text-align: center;
    justify-content: center;
  }

  .nav-dropdown {
    display: block;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0 16px;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-dropdown-menu a {
    padding: 10px 12px;
  }

  .nav-caret {
    display: none;
  }

  .category-grid,
  .feature-row,
  .scene-grid,
  .replay-grid,
  .business-grid,
  .team-grid,
  .plan-grid,
  .info-grid,
  .contact-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-brand h1,
  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  .hero-logo-badge img {
    height: 44px;
  }

  .hero-content > p {
    font-size: 15.5px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .page-hero {
    padding: 72px 0 64px;
  }

  .compliance-inner {
    flex-direction: column;
    gap: 4px;
  }

  .compliance-inner span + span::before {
    content: none;
    margin: 0;
  }

  body {
    padding-bottom: 170px;
  }

  .legal-content article {
    padding: 26px;
  }

  .account-card {
    padding: 24px;
  }

  .account-panel {
    padding: 22px;
  }

  .contact-grid {
    padding: 22px;
  }

  .notfound-code {
    font-size: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
