:root {
  --paper: #f0f1ed;
  --ink: #191b20;
  --blue: #3155e7;
  --blue-deep: #2442c4;
  --mint: #b9e8d3;
  --white: #ffffff;
  --muted: #5b5f66;
  --body-text: #3c4046;
  --line: rgba(25, 27, 32, 0.18);
  --line-strong: rgba(25, 27, 32, 0.55);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --max-width: 1320px;
  --gutter: clamp(18px, 4vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(240, 241, 237, 0.94);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.12;
}

.brand-domain {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted, #5b5f69);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  font-size: 14px;
}

.site-nav a,
.footer-nav a {
  text-decoration: none;
  color: var(--body-text);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.footer-nav a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.header-download {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.header-download:hover {
  background: var(--blue);
}

/* 首屏 */
.hero {
  padding: clamp(40px, 6vw, 76px) 0 clamp(48px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy {
  padding-top: 8px;
}

.hero-brand {
  display: block;
  font-size: clamp(58px, 9.6vw, 120px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.hero-line {
  display: block;
  max-width: 14em;
  margin-top: clamp(18px, 2.4vw, 28px);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.hero-line-tail {
  display: block;
}

.hero-lead {
  max-width: 42em;
  margin-top: clamp(18px, 2.4vw, 26px);
  color: var(--body-text);
  font-size: clamp(15px, 1.3vw, 17px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
}

.btn-quiet:hover {
  background: var(--white);
}

.hero-fact {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

/* 找片偏好面板 */
.finder {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--mint);
}

.finder-head h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.finder-head p {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(240, 241, 237, 0.66);
}

.pref-label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.08em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 7px 12px;
  background: transparent;
  color: rgba(240, 241, 237, 0.86);
  border: 1px solid rgba(240, 241, 237, 0.28);
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
  border-color: var(--paper);
  color: var(--white);
}

.chip[aria-pressed="true"] {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
  font-weight: 700;
}

.chip:focus-visible,
.reset-btn:focus-visible,
.finder-link:focus-visible {
  outline-color: var(--mint);
}

.finder-output {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(240, 241, 237, 0.26);
}

.result-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(240, 241, 237, 0.55);
}

.result-text {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--mint);
}

.result-hint {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(240, 241, 237, 0.7);
}

.finder-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.reset-btn {
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(240, 241, 237, 0.4);
  color: rgba(240, 241, 237, 0.66);
  font-size: 13px;
  cursor: pointer;
}

.reset-btn:hover {
  color: var(--mint);
  border-bottom-color: var(--mint);
}

.finder-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(185, 232, 211, 0.6);
  text-underline-offset: 4px;
}

.finder-link:hover {
  color: var(--mint);
}

/* 首屏产品界面 */
.hero-console {
  margin-top: clamp(32px, 4vw, 52px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s both;
}

.hero-console img {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.hero-console figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 通用区块 */
section[id] {
  scroll-margin-top: 84px;
}

.section {
  padding: clamp(52px, 7vw, 92px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
  padding-top: 20px;
  margin-bottom: clamp(28px, 4vw, 44px);
  border-top: 2px solid var(--ink);
}

.section-head h2 {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 18em;
}

.section-head p {
  max-width: 46ch;
  justify-self: end;
  color: var(--muted);
  font-size: 15px;
}

/* 发现工具 */
.tools {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  border-top: 1px solid var(--ink);
}

.tool-tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ink);
}

.tool-tab {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 20px 18px;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tool-tab:last-child {
  border-bottom: 0;
}

.tool-tab:hover {
  background: rgba(255, 255, 255, 0.66);
}

.tool-tab-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.tool-tab-note {
  font-size: 12px;
  color: var(--muted);
}

.tool-tab[aria-selected="true"] {
  background: var(--blue);
  color: var(--white);
}

.tool-tab[aria-selected="true"] .tool-tab-note {
  color: rgba(255, 255, 255, 0.76);
}

.tool-tab:focus-visible {
  outline-offset: -3px;
}

.tool-body {
  padding: clamp(22px, 3vw, 38px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 320px;
}

.tool-panel h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.3;
}

.tool-panel p {
  max-width: 60ch;
  margin-top: 12px;
  color: var(--body-text);
  font-size: 15px;
}

.tool-list {
  margin-top: 26px;
}

.tool-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.tool-list dt {
  font-size: 12px;
  color: var(--muted);
}

.tool-list dd {
  font-size: 14px;
  color: var(--ink);
}

/* 类型浏览 */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.genre {
  min-height: 160px;
  padding: clamp(18px, 2vw, 26px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.genre:hover {
  background: var(--white);
}

.genre h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.genre p {
  margin-top: 8px;
  max-width: 22ch;
  color: var(--muted);
  font-size: 13px;
}

/* 收藏与记录 */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--ink);
}

.split-col {
  padding: 30px clamp(24px, 4vw, 56px) 8px 0;
}

.split-col + .split-col {
  padding-right: 0;
  padding-left: clamp(24px, 4vw, 56px);
  border-left: 1px solid var(--line);
}

.split-col h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
}

.split-lead {
  margin-top: 8px;
  color: var(--body-text);
  font-size: 15px;
}

.rule-list {
  margin-top: 24px;
}

.rule-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--line);
  color: var(--body-text);
  font-size: 14px;
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  background: var(--blue);
}

/* 界面横向展示 */
.showcase-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 0 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.showcase-item {
  flex: 0 0 min(720px, 82vw);
  scroll-snap-align: start;
}

.showcase-item img {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--white);
}

.showcase-item figcaption {
  padding-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

/* 播放体验 */
.playback {
  padding: clamp(48px, 7vw, 84px) 0;
  background: var(--mint);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.playback-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.playback-copy h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 11em;
}

.playback-line {
  display: block;
}

.playback-copy p {
  max-width: 40ch;
  margin-top: 18px;
  color: #26312d;
  font-size: 15px;
}

.playback-list {
  border-top: 2px solid var(--ink);
}

.playback-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(25, 27, 32, 0.34);
}

.playback-item h3 {
  font-size: 18px;
  font-weight: 800;
}

.playback-item p {
  color: #26312d;
  font-size: 14px;
}

/* 常见问题 */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 18px 44px 18px 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--blue);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--blue);
}

.faq-item p {
  max-width: 72ch;
  padding: 0 44px 20px 0;
  color: var(--body-text);
  font-size: 14px;
}

/* 下载 */
.download {
  padding: clamp(52px, 7vw, 88px) 0;
  background: var(--ink);
  color: var(--paper);
}

.download-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 60px);
  align-items: end;
  padding-top: 20px;
  margin-bottom: clamp(26px, 4vw, 40px);
  border-top: 3px solid var(--mint);
}

.download-head h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.download-head p {
  justify-self: end;
  max-width: 44ch;
  color: rgba(240, 241, 237, 0.66);
  font-size: 15px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.download-card:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 232px;
  padding: 24px;
  background: rgba(240, 241, 237, 0.04);
  border: 1px solid rgba(240, 241, 237, 0.28);
  color: var(--paper);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.download-card:hover {
  background: rgba(185, 232, 211, 0.09);
  border-color: var(--mint);
}

.download-card:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.download-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mint);
}

.download-name {
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.2;
}

.download-desc {
  flex: 1;
  margin-top: 4px;
  color: rgba(240, 241, 237, 0.7);
  font-size: 14px;
  max-width: 32ch;
}

.download-action {
  padding-top: 12px;
  border-top: 1px solid rgba(240, 241, 237, 0.24);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

/* 页脚 */
.site-footer {
  padding: 40px 0 20px;
  border-top: 2px solid var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.footer-domain {
  color: var(--muted, #5b5f69);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.footer-tagline {
  color: var(--muted);
  font-size: 13px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
}

.footer-note {
  max-width: 42ch;
  color: var(--muted);
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

/* 页面不存在 */
.notfound {
  padding: clamp(60px, 10vw, 140px) 0;
}

.notfound-code {
  font-size: clamp(84px, 16vw, 200px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--blue);
}

.notfound .notfound-code {
  color: var(--blue);
}

.notfound h1 {
  max-width: 14em;
  margin-top: 18px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.2;
}

.notfound p {
  max-width: 40ch;
  margin-top: 16px;
  color: var(--body-text);
}

.notfound .btn {
  margin-top: 28px;
}

/* 响应式 */
@media (max-width: 1080px) {
  .hero-grid,
  .playback-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .finder {
    border-top-width: 4px;
  }

  .hero-line {
    max-width: 16em;
  }

  .playback-copy h2 {
    max-width: 16em;
  }

  .genre-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  section[id] {
    scroll-margin-top: 128px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    white-space: nowrap;
  }

  .header-download {
    margin-left: auto;
  }

  .section-head,
  .download-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .section-head p,
  .download-head p {
    justify-self: start;
  }

  .tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .tool-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .tool-tab {
    flex: 1 0 210px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .tool-body {
    border-left: 1px solid var(--line);
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-col {
    padding: 26px 0 8px;
  }

  .split-col + .split-col {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--ink);
    margin-top: 20px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

@media (max-width: 720px) {
  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions .btn {
    flex: 1 1 190px;
  }

  .showcase-item {
    flex-basis: 88vw;
  }

  .playback-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

@media (max-width: 480px) {
  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .genre {
    min-height: 0;
  }

  .brand-name {
    font-size: 17px;
  }

  .header-download {
    padding: 0 12px;
  }

  .faq-item summary {
    font-size: 16px;
    padding-right: 34px;
  }

  .faq-item p {
    padding-right: 0;
  }

  .tool-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
