:root {
  --bg: #090d13;
  --bg-raised: #101722;
  --panel: rgba(17, 27, 39, 0.68);
  --panel-strong: rgba(18, 29, 42, 0.9);
  --line: rgba(222, 196, 150, 0.16);
  --line-strong: rgba(226, 178, 100, 0.34);
  --text: #f7ead5;
  --muted: #aeb4bd;
  --dim: #737d8b;
  --accent: #e5b36a;
  --accent-soft: rgba(229, 179, 106, 0.16);
  --blue: #7fa7c9;
  --green: #91a985;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --container: min(1180px, calc(100vw - 48px));
  --line-dark: rgba(244, 217, 166, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(ellipse at 74% 10%, rgba(127, 167, 201, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(20, 31, 44, 0.94), #080c11 54%, #0b1017 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

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

button {
  font: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-dark);
  color: var(--text);
  background: rgba(8, 12, 18, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.site-wordmark {
  position: relative;
  flex: 0 0 auto;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42), 0 10px 22px rgba(229, 179, 106, 0.18);
}

.site-wordmark::after {
  position: absolute;
  right: 2px;
  bottom: -8px;
  left: 6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 24%, var(--blue) 82%, transparent);
  content: "";
  transform: skewX(-18deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.main-nav > a,
.nav-group > a {
  position: relative;
  padding-block: 24px;
  color: var(--muted);
  transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.main-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  box-shadow: 0 0 14px rgba(229, 179, 106, 0.7);
}

.nav-group {
  position: relative;
  display: flex;
  align-items: center;
}

.submenu {
  position: absolute;
  visibility: hidden;
  top: calc(100% - 7px);
  left: -16px;
  min-width: 132px;
  padding: 9px;
  border: 1px solid var(--line-dark);
  background: rgba(9, 13, 19, 0.98);
  opacity: 0;
  transform: translateY(8px);
  transition: 160ms ease;
  box-shadow: var(--shadow);
}

.submenu a {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
}

.submenu a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-group:hover .submenu,
.nav-group:focus-within .submenu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.submenu-toggle,
.nav-toggle {
  display: none;
}

.sound-hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.sound-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(9, 13, 19, 0.1), rgba(9, 13, 19, 0.64)),
    url("https://images.unsplash.com/photo-1493247035880-efdf27126bb0?auto=format&fit=crop&fm=webp&q=72&w=1800") center / cover;
  opacity: 0.38;
  filter: saturate(0.85) contrast(1.08);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 480px;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 48px;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0 0 24px;
  color: var(--text);
  font-family: Georgia, "Noto Serif SC", "Microsoft YaHei", serif;
  font-size: clamp(58px, 7.6vw, 104px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero-copy h1 span {
  display: block;
  color: #ead0a4;
}

.hero-copy p {
  max-width: 660px;
  margin: 0;
  color: rgba(247, 234, 213, 0.76);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.9;
}

.hero-note {
  align-self: end;
  margin-bottom: 72px;
  padding-left: 22px;
  border-left: 1px solid var(--line-strong);
}

.hero-note span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero-note p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.sound-section {
  padding: 34px 0 76px;
}

.tag-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.tag-buttons {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-button,
.clear-filter {
  border: 1px solid rgba(222, 196, 150, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: 180ms ease;
}

.tag-button {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.tag-button:hover,
.tag-button.active {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(229, 179, 106, 0.18);
}

.clear-filter {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.clear-filter:hover {
  color: var(--accent);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  margin-top: 24px;
  align-items: start;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.category-card,
.song-panel,
.future-panel {
  border: 1px solid rgba(222, 196, 150, 0.14);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.category-card {
  position: relative;
  min-height: 284px;
  padding: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.category-card:hover,
.category-card.active {
  border-color: var(--line-strong);
  box-shadow: 0 20px 70px rgba(229, 179, 106, 0.13), var(--shadow);
  transform: translateY(-4px);
}

.category-card.active {
  background:
    linear-gradient(150deg, rgba(229, 179, 106, 0.13), rgba(127, 167, 201, 0.06)),
    var(--panel);
}

.category-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.category-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent);
  font-size: 21px;
}

.category-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-card h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Microsoft YaHei", serif;
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.keyword-row,
.song-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.keyword,
.song-tag {
  border: 1px solid rgba(222, 196, 150, 0.13);
  color: #c9cfd5;
  background: rgba(255, 255, 255, 0.055);
}

.keyword {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
}

.mini-songs {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(222, 196, 150, 0.12);
}

.mini-song {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.mini-song strong {
  overflow: hidden;
  color: var(--text);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.song-panel-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(222, 196, 150, 0.12);
}

.song-panel-head p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.song-panel h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Microsoft YaHei", serif;
  font-size: 30px;
  font-weight: 500;
}

.song-panel-head span {
  align-self: center;
  color: var(--dim);
  font-size: 13px;
}

.active-description {
  margin: 18px 0 20px;
  color: var(--muted);
  line-height: 1.8;
}

.song-list {
  display: grid;
  gap: 12px;
}

.song-item {
  padding: 15px 0;
  border-top: 1px solid rgba(222, 196, 150, 0.1);
}

.song-item:first-child {
  border-top: 0;
}

.song-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
}

.song-title {
  min-width: 0;
}

.song-title h3 {
  margin: 0 0 4px;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-title p,
.song-comment {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.song-link {
  align-self: start;
  padding: 5px 8px;
  border: 1px solid rgba(229, 179, 106, 0.28);
  border-radius: 7px;
  color: var(--accent);
  font-size: 12px;
}

.song-comment {
  margin-top: 11px;
  line-height: 1.7;
}

.song-tags {
  margin-top: 10px;
}

.song-tag {
  padding: 3px 7px;
  border-radius: 7px;
  font-size: 11px;
}

.future-panel {
  margin-top: 18px;
  padding: 22px 26px;
}

.future-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 980px) {
  .hero-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .hero-note,
  .song-panel {
    position: static;
  }

  .hero-note {
    align-self: auto;
    margin: -52px 0 42px;
  }
}

@media (max-width: 780px) {
  :root {
    --container: min(100% - 30px, 620px);
  }

  .nav-shell {
    min-height: 64px;
  }

  .site-wordmark {
    font-size: 20px;
    letter-spacing: 0.035em;
  }

  .nav-toggle {
    position: absolute;
    z-index: 2;
    top: 11px;
    right: 15px;
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--accent);
  }

  .main-nav {
    position: absolute;
    display: none;
    top: 64px;
    right: 0;
    left: 0;
    align-items: stretch;
    gap: 0;
    padding: 14px 15px 20px;
    border-bottom: 1px solid var(--line-dark);
    background: rgba(9, 13, 19, 0.98);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav > a,
  .nav-group > a {
    display: block;
    padding: 10px 0;
  }

  .main-nav a.active::after {
    display: none;
  }

  .nav-group {
    display: grid;
    grid-template-columns: 1fr 36px;
  }

  .submenu-toggle {
    display: block;
    border: 0;
    color: var(--accent);
    background: transparent;
    font-size: 20px;
  }

  .submenu {
    position: static;
    display: none;
    visibility: visible;
    grid-column: 1 / -1;
    padding: 0 0 6px 14px;
    border: 0;
    background: transparent;
    opacity: 1;
    transform: none;
    box-shadow: none;
  }

  .nav-group:hover .submenu {
    display: none;
  }

  .nav-group.submenu-open .submenu {
    display: block;
  }

  .sound-hero,
  .hero-layout {
    min-height: 520px;
  }

  .hero-layout {
    display: block;
    padding-top: 72px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-note {
    margin: 46px 0 0;
  }

  .tag-filter {
    display: grid;
    align-items: start;
  }

  .clear-filter {
    justify-self: start;
  }

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

  .category-card,
  .song-panel,
  .future-panel {
    padding: 20px;
  }
}

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