:root {
  color: #171717;
  background: #fff;
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --ink: #171717;
  --muted: #77736d;
  --line: #e6e2dc;
  --yellow: #f8bf2d;
  --yellow-soft: #fff9e8;
  --blue: #65aee8;
  --blue-soft: #eef7fd;
  --coral: #f78a96;
  --coral-soft: #fff0f2;
  --cream: #fffaf2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; border: 2px solid var(--yellow); border-radius: 6px; transition: top 160ms ease; }
.skip-link:focus { top: 16px; }
.section-shell, .header-inner { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.header-inner { min-height: 72px; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 24px; }
.brand, .footer-brand { display: flex; align-items: center; gap: 12px; }
.brand img, .footer-brand img { border: 1px solid #f4dda2; border-radius: 10px; }
.brand strong { font-size: 23px; letter-spacing: -1px; }
.main-nav { height: 72px; display: flex; justify-content: center; gap: clamp(20px, 2.6vw, 40px); }
.main-nav a { position: relative; min-width: 56px; display: grid; place-items: center; color: #2f2e2b; font-size: 15px; }
.main-nav a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px; background: var(--yellow); transform: translateX(-50%); transition: width 180ms ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a.is-active::after { width: 32px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.header-search { position: relative; width: 235px; }
.header-search input { width: 100%; height: 40px; padding: 0 42px 0 15px; border: 1px solid #dedbd5; border-radius: 22px; outline: none; }
.header-search button { position: absolute; right: 3px; top: 3px; width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; }
.download-button { min-height: 42px; display: inline-flex; align-items: center; padding: 0 22px; border-radius: 24px; background: var(--yellow); font-weight: 700; }
.menu-button { display: none; width: 44px; height: 44px; place-items: center; border: 0; background: transparent; font-size: 26px; }

.hero { display: grid; grid-template-columns: 168px minmax(325px,.9fr) minmax(440px,1.16fr); gap: 42px; padding-top: 50px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.editorial-mark { position: relative; min-height: 410px; display: flex; flex-direction: column; padding: 0 18px 0 22px; border-left: 4px solid var(--yellow); border-right: 1px dashed #d8d2c7; font-family: "Noto Serif SC", "Songti SC", SimSun, serif; }
.editorial-mark > span { font-size: 62px; font-weight: 900; line-height: .95; letter-spacing: 7px; }
.editorial-mark > span:nth-child(2), .editorial-mark > span:nth-child(4) { margin-left: 18px; }
.editorial-meta { margin-top: auto; display: flex; flex-direction: column; gap: 5px; font-family: Inter, "Noto Sans SC", sans-serif; font-size: 12px; }
.editorial-meta strong { font-size: 13px; letter-spacing: 2px; }
.editorial-meta small { color: var(--muted); letter-spacing: 2px; }
.hero-copy { align-self: center; padding-bottom: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #a96d00; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.hero-copy h1 { margin: 18px 0 22px; font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: clamp(42px,4.1vw,64px); line-height: 1.18; letter-spacing: -.045em; }
.hero-copy > p { max-width: 490px; margin: 0; color: #55514c; font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; }
.button { min-width: 150px; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--ink); border-radius: 26px; font-weight: 700; transition: transform 160ms ease, box-shadow 160ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23,23,23,.1); }
.button-primary { border-color: var(--yellow); background: var(--yellow); }
.button-secondary { background: #fff; }
.device-note { display: block; margin-top: 18px; color: #96918a; }

.featured-wrap { min-width: 0; }
.section-label { margin: 0 0 10px; font-size: 19px; }
.featured-player { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 10px; color: #fff; background: #16191d; box-shadow: 0 18px 40px rgba(10,17,25,.16); }
.featured-player > img { width: 100%; height: 100%; object-fit: cover; }
.featured-scrim { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(7,10,14,.88),rgba(7,10,14,.34) 58%,rgba(7,10,14,.12)); }
.featured-kicker { position: absolute; top: 18px; left: 18px; padding: 5px 10px; border-radius: 5px; color: #16130d; background: var(--yellow); font-size: 12px; font-weight: 800; }
.featured-copy { position: absolute; left: 24px; bottom: 72px; width: min(58%,300px); }
.featured-copy h2 { margin: 0 0 8px; font-size: clamp(22px,2.2vw,33px); }
.featured-copy p { margin: 4px 0; color: #f1eee9; font-size: 12px; }
.featured-copy .featured-summary { color: #d6d1ca; line-height: 1.55; }
.hero-play { position: absolute; right: 22px; top: 50%; width: 62px; height: 62px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.92); font-size: 29px; transform: translateY(-50%); cursor: pointer; }
.hero-play.is-playing { color: #19140b; background: var(--yellow); }
.featured-progress { position: absolute; inset: auto 0 0; height: 58px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 0 20px; background: rgba(10,12,15,.86); font-size: 12px; }
.featured-progress > i { overflow: hidden; color: #e7e4de; font-size: 58px; line-height: 1; }
.featured-progress strong { font-weight: 500; }
.carousel-dots { display: flex; gap: 9px; margin: 18px 0 0 8px; }
.carousel-dots span { width: 9px; height: 9px; border-radius: 50%; background: #ddd9d2; }
.carousel-dots .is-current { background: var(--yellow); }

.ranking { padding-top: 30px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.section-heading > div { display: flex; align-items: baseline; gap: 18px; }
.section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.section-heading span { color: #8f8a83; font-size: 12px; }
.section-heading a, .section-heading button { display: inline-flex; align-items: center; gap: 4px; border: 0; color: #56524d; background: transparent; font-size: 13px; cursor: pointer; }
.ranking-list { border-top: 1px solid var(--line); }
.ranking-row { min-height: 124px; display: grid; grid-template-columns: 62px 94px minmax(280px,1.25fr) minmax(120px,.75fr) 130px 48px; align-items: center; gap: 16px; padding: 13px 4px; border-bottom: 1px solid var(--line); transition: background 160ms ease; }
.ranking-row:hover, .ranking-row.is-playing { background: #fffdf7; }
.ranking-row[hidden] { display: none; }
.rank-number { color: #4c4b49; font-size: 53px; font-weight: 800; line-height: 1; text-align: center; }
.rank-1 { color: var(--yellow); }
.rank-3 { color: #a66332; }
.rank-cover { width: 94px; height: 96px; overflow: hidden; border-radius: 8px; }
.rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-copy { min-width: 0; }
.rank-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rank-title-line h3 { margin: 0; font-size: 19px; }
.tags { display: flex; gap: 5px; }
.tags span { padding: 3px 6px; border-radius: 4px; color: #386d93; background: var(--blue-soft); font-size: 10px; }
.tags span:nth-child(2) { color: #a95560; background: var(--coral-soft); }
.rank-copy p { margin: 6px 0 0; color: #706c66; font-size: 12px; }
.rank-summary { max-width: 430px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-waveform { width: 100%; overflow: hidden; color: #c8c4bd; font-size: 90px; line-height: 1; }
.play-count { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; color: #4e4b46; font-size: 12px; }
.row-play { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #88837b; border-radius: 50%; color: var(--ink); background: #fff; cursor: pointer; }
.ranking-row.is-playing .row-play { border-color: var(--yellow); background: var(--yellow); }
.empty-state { padding: 56px 20px; color: #77736d; text-align: center; }
.empty-state > i { font-size: 32px; }
.empty-state h3 { margin: 12px 0 6px; color: var(--ink); }
.empty-state p { margin: 0 0 18px; }
.empty-state button { padding: 10px 18px; border: 0; border-radius: 22px; background: var(--yellow); font-weight: 700; cursor: pointer; }

.topics { padding-top: 30px; }
.section-heading.compact { align-items: center; }
.topic-grid { display: grid; grid-template-columns: repeat(6,1fr); overflow: hidden; border-radius: 10px; background: #fbfaf8; }
.topic-item { position: relative; min-height: 88px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; border: 0; background: transparent; cursor: pointer; }
.topic-item + .topic-item::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.topic-item > i { font-size: 28px; }
.topic-item strong, .topic-item small { display: block; text-align: left; }
.topic-item strong { font-size: 17px; }
.topic-item small { margin-top: 6px; color: #817c76; font-size: 10px; }
.topic-gold > i { color: #dba321; }
.topic-blue > i { color: var(--blue); }
.topic-coral > i { color: var(--coral); }
.topic-ink > i { color: #47494e; }
.topic-item.is-active { background: var(--yellow-soft); box-shadow: inset 0 -3px var(--yellow); }

.discover { display: grid; grid-template-columns: 1.7fr .9fr; gap: 22px; padding-top: 30px; padding-bottom: 44px; }
.search-panel, .help-panel { padding: 22px; border: 1px solid #eadcc6; border-radius: 12px; }
.search-panel h2, .help-panel h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 20px; }
.search-form { position: relative; margin-bottom: 14px; }
.search-form input { width: 100%; min-height: 44px; padding: 0 48px 0 15px; border: 1px solid var(--line); border-radius: 8px; outline: none; }
.search-form input:focus, .header-search input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(248,191,45,.18); }
.search-form button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.query-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.query-grid button, .query-grid a { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; color: #45423e; background: #fff; text-align: left; cursor: pointer; }
.query-grid button:hover, .query-grid button:focus-visible, .query-grid a:hover, .query-grid a:focus-visible { border-color: var(--yellow); background: var(--yellow-soft); }
.help-panel { background: var(--cream); }
.help-panel ul { margin: 0; padding: 0; border-top: 1px solid #e8dccb; list-style: none; }
.help-panel li { border-bottom: 1px solid #e8dccb; }
.help-panel li a { min-height: 38px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.help-download { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 18px; border-radius: 7px; background: var(--yellow); font-size: 14px; font-weight: 800; }

.seo-guide { display: grid; grid-template-columns: .9fr 2fr; gap: 56px; padding-top: 44px; padding-bottom: 48px; border-top: 1px solid var(--line); }
.seo-guide h2 { margin: 12px 0 0; font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: 31px; line-height: 1.45; }
.guide-columns { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.guide-columns p { margin: 0; color: #625e58; font-size: 14px; line-height: 1.8; }
.guide-columns strong { display: block; margin-bottom: 5px; color: var(--ink); }

.faq { padding-top: 34px; padding-bottom: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq summary i { transition: transform 160ms ease; }
.faq details p { margin: 0; padding: 0 0 20px; color: #625e58; line-height: 1.8; }

.site-footer { border-top: 1px solid var(--line); background: #fcfbf9; }
.footer-inner { min-height: 130px; display: grid; grid-template-columns: 1.1fr 1.5fr auto; align-items: center; gap: 34px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { font-size: 19px; }
.footer-brand span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 28px; color: #5c5852; font-size: 12px; }
.footer-inner p { margin: 0; color: #7f7a73; font-size: 11px; line-height: 1.6; text-align: right; }

:focus-visible { outline: 3px solid rgba(50,126,196,.45); outline-offset: 3px; }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-search { width: 180px; }
  .main-nav { gap: 16px; }
  .hero { grid-template-columns: 130px 1fr 1fr; gap: 26px; padding-top: 32px; padding-bottom: 26px; }
  .editorial-mark { min-height: 330px; }
  .editorial-mark > span { font-size: 50px; }
  .ranking-row { min-height: 92px; grid-template-columns: 52px 76px minmax(250px,1fr) 130px 100px 46px; gap: 12px; padding-block: 8px; }
  .rank-cover { width: 76px; height: 78px; }
  .rank-number { font-size: 43px; }
  .rank-title-line h3 { font-size: 17px; }
  .guide-columns { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 780px) {
  .section-shell, .header-inner { width: min(100% - 32px,620px); }
  .site-header { position: relative; }
  .header-inner { min-height: 66px; gap: 12px; }
  .header-search { display: none; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 20px; }
  .download-button { display: none; }
  .menu-button { display: grid; }
  .main-nav { position: absolute; left: 0; right: 0; top: 66px; z-index: 10; height: auto; display: none; flex-direction: column; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); background: #fff; }
  .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 46px; display: flex; justify-content: flex-start; }
  .main-nav a::after { display: none; }

  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .editorial-mark { min-height: 0; flex-direction: row; align-items: center; gap: 2px; padding: 10px 14px; border: 0; border-left: 4px solid var(--yellow); background: var(--yellow-soft); }
  .editorial-mark > span { font-size: 29px; letter-spacing: 0; }
  .editorial-mark > span:nth-child(2), .editorial-mark > span:nth-child(4) { margin-left: 0; }
  .editorial-meta { margin: 0 0 0 auto; align-items: flex-end; }
  .editorial-meta small { display: none; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { margin: 13px 0 16px; font-size: 39px; line-height: 1.18; }
  .hero-copy > p { font-size: 14px; line-height: 1.75; }
  .hero-actions { margin-top: 24px; }
  .button { min-width: 0; flex: 1; }
  .device-note { line-height: 1.5; }
  .featured-player { width: 100%; height: 250px; min-height: 0; aspect-ratio: auto; }
  .featured-copy { bottom: 70px; width: 66%; }
  .featured-copy .featured-summary { display: none; }

  .ranking { padding-top: 24px; }
  .section-heading > div { display: block; }
  .section-heading h2 { font-size: 22px; }
  .section-heading span { display: block; margin-top: 6px; }
  .ranking-row { grid-template-columns: 38px 68px 1fr 40px; min-height: 98px; gap: 10px; padding-block: 10px; }
  .rank-number { font-size: 35px; }
  .rank-cover { width: 68px; height: 74px; }
  .rank-title-line { display: block; }
  .rank-title-line h3 { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
  .tags { margin-top: 6px; }
  .rank-copy p { margin-top: 4px; }
  .rank-summary, .row-waveform, .play-count { display: none; }
  .row-play { width: 38px; height: 38px; }

  .topic-grid { grid-template-columns: repeat(2,1fr); }
  .topic-item:nth-child(4)::before { display: block; }
  .topic-item { min-height: 76px; justify-content: flex-start; }
  .topic-item:nth-child(3)::before, .topic-item:nth-child(5)::before { display: none; }
  .topic-item:nth-child(4)::before { display: block; }
  .topic-item:nth-child(-n+4) { border-bottom: 1px solid var(--line); }

  .discover { grid-template-columns: 1fr; padding-bottom: 32px; }
  .search-panel, .help-panel { padding: 18px; }
  .query-grid { grid-template-columns: repeat(2,1fr); }
  .query-grid button, .query-grid a { font-size: 12px; }
  .seo-guide { grid-template-columns: 1fr; gap: 22px; padding-top: 34px; }
  .seo-guide h2 { font-size: 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; padding-block: 30px; }
  .footer-inner nav { gap: 18px; }
  .footer-inner p { text-align: left; }
}

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