:root {
  --bg: #11120f;
  --panel: #1a1b17;
  --panel-light: #22231e;
  --text: #f2f0e8;
  --muted: #9b9c90;
  --line: rgba(255, 255, 255, .12);
  --lime: #d9ff62;
  --orange: #ff825e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(217, 255, 98, .06), transparent 35rem),
    var(--bg);
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 18, 15, .88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-decoration: none;
  white-space: nowrap;
}

.brand strong {
  color: var(--lime);
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 34px);
}

.primary-nav a {
  color: var(--muted);
  font-size: .88rem;
  text-decoration: none;
  transition: color .2s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--lime);
}

/* 首页主视觉 */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(720px, 82vh);
  overflow: hidden;
  padding: clamp(48px, 10vw, 140px) clamp(24px, 9vw, 130px);
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(17, 18, 15, .97) 0%, rgba(17, 18, 15, .76) 48%, rgba(17, 18, 15, .35) 100%),
    url("images/misc/hero.jpg") center / cover,
    #25251f;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: clamp(20px, 9vw, 140px);
  width: clamp(220px, 34vw, 470px);
  aspect-ratio: 1;
  border: 1px solid rgba(217, 255, 98, .4);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--bg) 0 5%, transparent 5.5% 15%, rgba(255,255,255,.08) 15.5% 16%, transparent 16.5% 31%, rgba(255,255,255,.07) 31.5% 32%, transparent 32.5% 48%, rgba(255,255,255,.06) 48.5% 49%, transparent 49.5%),
    radial-gradient(circle at 35% 30%, rgba(217,255,98,.18), transparent 38%);
  box-shadow: 0 0 90px rgba(217, 255, 98, .09), inset 0 0 60px rgba(217,255,98,.07);
  transform: translateY(-50%) rotate(-18deg);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero .eyebrow,
.eyebrow {
  color: var(--lime);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 20px 0;
  font-size: clamp(3.4rem, 8.6vw, 8rem);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: .98;
}

.hero h1 em {
  color: var(--lime);
  font-style: normal;
}

.hero-intro,
.hero > p:not(.eyebrow) {
  max-width: 490px;
  color: #c5c4bb;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  width: fit-content;
  margin-top: 22px;
  padding: 13px 18px;
  border: 1px solid var(--lime);
  color: var(--bg);
  background: var(--lime);
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.hero-link:hover {
  transform: translateY(-3px);
  background: #e7ff9c;
}

/* 专辑区域与标题 */
.collection {
  width: min(1320px, calc(100% - 48px));
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-heading {
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  color: var(--text);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.06em;
}

.section-heading p {
  color: var(--muted);
}

.search-row {
  margin: 30px 0 34px;
}

.search-row label {
  color: var(--muted);
  font-size: .85rem;
}

#album-search {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  background: var(--panel);
}

#album-search::placeholder {
  color: #73746b;
}

#album-search:focus {
  border-color: var(--lime);
  outline: 2px solid rgba(217, 255, 98, .18);
}

#result-count {
  color: var(--lime);
  font-size: .82rem;
}

/* 专辑卡片 */
.album-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 18px;
}

.album-card {
  min-width: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: transform .25s ease;
}

.album-card:hover {
  transform: translateY(-5px);
  box-shadow: none;
}

.cover {
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(135deg, var(--tone-a), var(--tone-b));
  box-shadow: 0 14px 35px rgba(0, 0, 0, .25);
}

.cover img {
  z-index: 1;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

.album-card:hover .cover img {
  transform: scale(1.055);
}

.cover-title {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 36px 14px 13px;
  color: white;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.album-meta {
  min-height: 76px;
  margin-top: 16px;
}

.album-meta h3 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.album-meta p {
  color: var(--muted);
  font-size: .82rem;
}

.album-year {
  color: var(--lime);
  font-size: .78rem;
}

/* 曲目按钮 */
.track-list {
  gap: 7px;
  margin-top: 12px;
}

.track-button {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: #d5d4cc;
  background: transparent;
  font-size: .75rem;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.track-button:hover,
.track-button:focus-visible {
  border-color: var(--lime);
  color: var(--bg);
  background: var(--lime);
}

/* 播放器 */
.player {
  margin-top: 70px;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(217,255,98,.08), transparent 55%),
    var(--panel);
}

.player h2 {
  color: var(--lime);
  font-size: 1.5rem;
}

.player audio {
  accent-color: var(--lime);
}

#player-status {
  color: var(--muted);
}

/* 其他页面链接和页脚 */
.quick-links {
  gap: 10px;
}

.quick-links a {
  padding: 11px 14px;
  border: 1px solid var(--line);
  color: #d8d7cf;
  font-size: .82rem;
  text-decoration: none;
}

.quick-links a:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: transparent;
}

.site-footer {
  padding: 34px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #0b0c0a;
  text-align: center;
}

.site-footer a {
  color: var(--lime);
  text-decoration: none;
}

/* 平板与手机 */
@media (max-width: 980px) {
  .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-header {
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .site-header {
    justify-content: center;
    padding: 14px 18px;
  }

  .primary-nav {
    gap: 12px 18px;
  }

  .hero {
    min-height: 600px;
    padding: 60px 24px;
  }

  .hero::after {
    top: auto;
    right: -50px;
    bottom: -40px;
    width: 240px;
    transform: rotate(-18deg);
  }

  .hero h1 {
    font-size: clamp(3.2rem, 14vw, 5.5rem);
  }

  .section-heading {
    display: block;
  }

  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .collection {
    width: calc(100% - 32px);
  }
}

@media (max-width: 390px) {
  .album-grid {
    grid-template-columns: 1fr;
  }
}

/* 导航右侧操作区：语言切换 + 账号入口 */
.nav-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-auth {
  color: var(--muted);
  font-size: .82rem;
  text-decoration: none;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color .2s ease, border-color .2s ease;
}

.nav-auth:hover {
  color: var(--lime);
  border-color: var(--line);
}

.lang-toggle {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.lang-toggle:hover {
  border-color: var(--lime);
  color: var(--bg);
  background: var(--lime);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}