/* ==========================================================================
   V2DJ 曲库 — 共享样式
   基准:沿用官网现有视觉(主色 #ed2623 / 深底 #0a0a0f)
   规则:全站共用,不引入任何构建工具与框架
   ========================================================================== */

:root {
  /* 品牌色(与官网首页一致) */
  --brand: #ed2623;
  --brand-dark: #b81c1a;
  --brand-soft: rgba(237, 38, 35, .12);

  /* 背景层 */
  --bg: #0a0a0f;
  --surface: #14141c;
  --surface-2: #1c1c26;
  --surface-3: #24242f;
  --border: #2a2a36;
  --border-light: #383846;

  /* 文本 */
  --text: #f0f0f4;
  --text-2: #a4a4b4;
  --text-3: #6c6c7e;

  /* 语义色 */
  --gold: #f5a623;
  --success: #22c55e;
  --warning: #f59e0b;
  --info: #3b82f6;
  --purple: #a855f7;

  /* 尺寸 */
  --nav-h: 60px;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1280px;

  /* 阴影 */
  --shadow: 0 4px 20px rgba(0, 0, 0, .4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, .6);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(10, 10, 15, .92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-in {
  max-width: var(--max-w); height: 100%; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 26px;
}
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), #ff5a3c);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; letter-spacing: -.5px;
}
/* 真实 logo(红底白字方形,800x800) */
.logo-img {
  width: 34px; height: 34px; border-radius: 7px;
  object-fit: cover; display: block; flex-shrink: 0;
}
.logo-text { font-size: 19px; font-weight: 800; letter-spacing: -.5px; }
.logo-text em { font-style: normal; color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: 14.5px; color: var(--text-2); transition: .15s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }

/* APP 高亮项:品牌色描边 + 微光,区别于普通导航 */
.nav-links a.nav-app {
  color: var(--brand);
  border: 1px solid rgba(237, 38, 35, .42);
  background: var(--brand-soft);
  font-weight: 500;
  letter-spacing: .3px;
  padding: 5px 13px;
  margin-right: 4px;
}
.nav-links a.nav-app:hover {
  background: rgba(237, 38, 35, .2);
  border-color: var(--brand);
  color: #ff6a5e;
  box-shadow: 0 0 14px rgba(237, 38, 35, .28);
}

.nav-cta {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; transition: .15s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--surface-2); border-color: var(--border-light); color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-lg { padding: 13px 30px; font-size: 15.5px; }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 页面容器 ---------- */
.page { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.page-narrow { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 52px 0 56px;
  border-bottom: 1px solid var(--border);
}
/* 顶部无边界(与 nav 融合),仅保留底部一条 */
.hero::marker { content: none; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 780px 460px at 8% -18%, rgba(237, 38, 35, .20), transparent 62%),
    radial-gradient(ellipse 640px 420px at 78% -12%, rgba(168, 85, 247, .14), transparent 60%),
    radial-gradient(ellipse 520px 340px at 96% 108%, rgba(237, 38, 35, .10), transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; }

/* Hero 左右合并布局:左文案搜索 / 右轮播广告位 */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 40px;
  align-items: center;
}
.hero-left { min-width: 0; }

/* ---- 融合关键:轮播与 Hero 背景无缝 ----
   做法:
   1. 轮播去掉边框/圆角,圆角只留右侧
   2. 轮播底色与 Hero 渐变同色系(透明→由 slide 自身渐变承接)
   3. 左侧加一条品牌色竖线作为"缝合线",视觉上把两块串起来
   4. Hero 背景渐变延伸覆盖整个右栏 */
.hero-right { min-width: 0; position: relative; }

/* ---- 真正的一体化:轮播成为 Hero 背景的一部分 ----
   上一版失败原因:加了红色竖线当"缝合线" → 那是缝补思维,反而更割裂
   本版手法:轮播彻底无盒子(无边框/无圆角/无阴影/透明底),
             文字卡直接坐在 Hero 背景上,四周没有任何边界。 */
.hero-right .carousel {
  margin-bottom: 0;
  aspect-ratio: 1200 / 520;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  /* 必须 hidden:否则 slide 内容(文字卡)会溢出到页面右侧外 */
  overflow: hidden;
}
/* slide 不再画自己的底色,完全交给 Hero 背景 */
.hero-right .carousel-slide { background: transparent; }
.hero-right .carousel-slide::before { content: none; }
.hero-right .carousel-card {
  padding: 0 10px;
  z-index: 3;
  /* 文字块限宽,保证 <br> 换行与长标题不撑破 */
  max-width: 92%;
}
.hero-right .carousel-card h3 {
  font-size: 32px; margin-bottom: 18px; line-height: 1.22;
  word-break: break-word;
}
.hero-right .carousel-card .eb { font-size: 12px; margin-bottom: 10px; letter-spacing: 2px; }
.hero-right .carousel-card .cta2 { font-size: 15px; padding: 11px 24px; }
.hero-right .carousel-btn {
  width: 34px; height: 34px; font-size: 15px;
  background: rgba(10,10,15,.5); border-color: rgba(255,255,255,.14);
}
.hero-right .carousel-btn.prev { left: 2px; }
.hero-right .carousel-btn.next { right: 2px; }
.hero-right .carousel-badge {
  top: 4px; right: 0; font-size: 11px; padding: 4px 11px;
  background: rgba(237,38,35,.9);
}

@media (max-width: 1100px) {
  .hero-split { grid-template-columns: 1fr; gap: 30px; }
  .hero-right { order: 2; }
  .hero-right .carousel { aspect-ratio: 1200 / 440; }
}
.hero h1 {
  font-size: 40px; font-weight: 800; line-height: 1.2;
  letter-spacing: -1.1px; margin-bottom: 14px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p {
  font-size: 16px; color: var(--text-2);
  max-width: none; white-space: nowrap;   /* 强制单行不换行 */
  margin-bottom: 24px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 30px; margin-top: 32px; flex-wrap: wrap;
}
.hero-stat .n { font-size: 25px; font-weight: 800; letter-spacing: -.5px; }
.hero-stat .l { font-size: 13px; color: var(--text-3); }

/* ---------- 搜索 ---------- */
.search-box { position: relative; margin-bottom: 20px; }
.search-box input {
  width: 100%; padding: 15px 50px 15px 50px;
  background: var(--surface-2); border: 1px solid var(--border-light);
  border-radius: var(--radius); color: var(--text); font-size: 15.5px;
  transition: .15s;
}
.search-box input:focus { outline: none; border-color: var(--brand); background: var(--surface-3); }
.search-box input::placeholder { color: var(--text-3); }
.search-icon {
  position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none; font-size: 17px;
}
.search-clear {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-3); color: var(--text-2);
  display: none; align-items: center; justify-content: center; font-size: 15px;
}
.search-box.has-value .search-clear { display: flex; }

/* ---------- 筛选条 ---------- */
.filters {
  display: flex; gap: 10px; align-items: center;
  flex-wrap: wrap; margin-bottom: 22px;
}
.filter-group { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.filter-label { font-size: 13.5px; color: var(--text-3); margin-right: 2px; }
.chip {
  padding: 6px 14px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); font-size: 13.5px; transition: .15s;
}
.chip:hover { background: var(--surface-3); color: var(--text); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .cnt { opacity: .6; margin-left: 4px; font-size: 12px; }

select.sel {
  padding: 7px 12px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); font-size: 13.5px;
}
select.sel:focus { outline: none; border-color: var(--brand); }

/* ---------- 区块 ---------- */
.section { padding: 44px 0; }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.4px; margin-bottom: 4px; }
.section-head p { font-size: 14.5px; color: var(--text-3); }

/* ---------- 曲目列表 ---------- */
.track-list { display: flex; flex-direction: column; gap: 8px; }
.track {
  display: flex; align-items: center; gap: 15px;
  padding: 13px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: .15s;
}
.track:hover { border-color: var(--border-light); background: var(--surface-2); }
.track-play {
  width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0;
  background: var(--surface-3); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: .15s;
}
.track:hover .track-play { background: var(--brand); color: #fff; }
.track-main { flex: 1; min-width: 0; }
.track-name {
  font-size: 15px; font-weight: 500; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-meta {
  font-size: 12.5px; color: var(--text-3);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.track-meta .dot { opacity: .4; }
.tag {
  display: inline-block; padding: 1px 7px; border-radius: 5px;
  background: var(--surface-3); color: var(--text-2); font-size: 11.5px;
}
.tag.genre { background: rgba(168, 85, 247, .14); color: #c084fc; }
.tag.mix { background: rgba(59, 130, 246, .14); color: #60a5fa; }
.tag.single { background: rgba(34, 197, 94, .14); color: #4ade80; }
.track-stats { display: flex; gap: 20px; flex-shrink: 0; }
.track-stat { text-align: right; }
.track-stat .v { font-size: 14.5px; font-weight: 600; }
.track-stat .k { font-size: 11px; color: var(--text-3); }
.track-price {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.price-val { font-size: 16px; font-weight: 700; color: var(--gold); }
.price-val .unit { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 2px; }

/* ---------- 空态 / 加载 ---------- */
.empty, .loading-box {
  padding: 70px 20px; text-align: center; color: var(--text-3);
}
.empty .icon { font-size: 40px; margin-bottom: 14px; opacity: .5; }
.empty .t { font-size: 16px; color: var(--text-2); margin-bottom: 6px; }
.empty .d { font-size: 14px; }

.spinner {
  width: 26px; height: 26px; margin: 0 auto 12px;
  border: 2.5px solid var(--surface-3); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 骨架屏 */
.sk { background: var(--surface-2); border-radius: 6px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 34px; }
.pager button {
  min-width: 36px; height: 36px; padding: 0 11px;
  border-radius: var(--radius-sm); background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text-2);
  font-size: 14px; transition: .15s;
}
.pager button:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.pager button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager button:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border); margin-top: 60px;
  padding: 34px 0; background: var(--surface);
}
.footer-in {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between;
}
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 11px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-3); margin-bottom: 7px; }
.footer-col a:hover { color: var(--text); }
.footer-info { font-size: 12.5px; color: var(--text-3); max-width: 300px; }
.footer-bottom {
  max-width: var(--max-w); margin: 26px auto 0; padding: 18px 20px 0;
  border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-3);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom a { color: var(--brand); transition: .15s; }
.footer-bottom a:hover { color: #ff6a5e; text-decoration: underline; }

/* ---------- 轮播广告位 ---------- */
.carousel {
  position: relative; width: 100%;
  border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  aspect-ratio: 1200 / 420;
  margin-bottom: 22px;
}
.carousel-track {
  display: flex; height: 100%;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}
.carousel-slide {
  min-width: 100%; height: 100%;
  position: relative; overflow: hidden;
  display: block; cursor: pointer;
}
.carousel-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* 图片未加载时的兜底渐变 */
.carousel-slide::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 700px 420px at 8% -30%, rgba(237,38,35,.30), transparent 62%),
    radial-gradient(ellipse 620px 400px at 92% 130%, rgba(168,85,247,.22), transparent 62%),
    linear-gradient(135deg, #12121a 0%, #1a1a26 55%, #101017 100%);
}
.carousel-slide img { position: relative; z-index: 1; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(15,15,20,.62); border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-size: 17px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: .15s; opacity: 0; backdrop-filter: blur(8px);
}
.carousel:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: var(--brand); border-color: var(--brand); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 10;
}
.carousel-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.42); cursor: pointer; transition: .2s;
  display: block;
}
.carousel-dots i.on { background: #fff; width: 22px; border-radius: 4px; }

/* 文字广告卡(无图时用) */
.carousel-card {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 56px; color: #fff;
}
.carousel-card .eb {
  font-size: 13px; font-weight: 600; letter-spacing: 2.5px;
  color: #ff8a7a; margin-bottom: 12px;
}
.carousel-card h3 {
  font-size: 38px; font-weight: 800; letter-spacing: -1px;
  line-height: 1.2; margin-bottom: 20px;
}
.carousel-card h3 em {
  font-style: normal;
  background: linear-gradient(92deg, #ff6b5a, #ffa24d 60%, #ed2623);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.carousel-card .cta2 {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  background: linear-gradient(92deg, #ed2623, #ff5a3c);
  padding: 12px 28px; border-radius: 10px; font-size: 16px; font-weight: 600;
  box-shadow: 0 8px 26px rgba(237,38,35,.34);
}
.carousel-badge {
  position: absolute; top: 18px; right: 20px; z-index: 3;
  background: rgba(237,38,35,.92); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  padding: 5px 13px; border-radius: 20px;
}

/* ---------- 工具类 ---------- */
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.grow { flex: 1; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hide { display: none !important; }

.footer-info .logo-img { width: 40px; height: 40px; border-radius: 9px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero h1 { font-size: 32px; }
  .track-stats { gap: 14px; }
  .track-stat.hide-sm { display: none; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding: 38px 0 34px; }
  .hero h1 { font-size: 26px; letter-spacing: -.6px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 20px; }
  .hero-stat .n { font-size: 21px; }
  .hero-right .carousel { aspect-ratio: 1200 / 560; }
  .hero-right .carousel-card { padding: 0 26px; max-width: 88%; }
  .hero-right .carousel-card h3 { font-size: 23px; }
  .track { flex-wrap: wrap; gap: 11px; }
  .track-main { width: 100%; flex: none; }
  .track-stats { width: 100%; padding-left: 55px; gap: 16px; }
  .track-price { margin-left: auto; }
  .footer-in { gap: 26px; }
  .footer-links { gap: 30px; }
}
