* { box-sizing: border-box; }
:root { color-scheme: light; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-synthesis: none; }
body { margin: 0; color: var(--ink); background: var(--base); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.85; }
svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--base); }
.skip-link:focus { top: 15px; }
.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; }
.site-header { height: 90px; max-width: 1360px; padding: 0 48px; margin: auto; display: flex; align-items: center; gap: 48px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { display: block; width: 126px; height: auto; max-width: none; filter: url(#coolwj-logo-light-ink); }
.night .brand img { filter: none; }
.coolwj-logo-filters { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.brand-mark { border: 1px solid currentColor; display: grid; place-items: center; width: 35px; height: 35px; font-family: "JXZhuoKai", "STKaiti", serif; font-size: 27px; border-radius: 10px 2px 10px 2px; }
.brand-name { font-size: 22px; font-weight: 650; letter-spacing: .08em; }
.main-nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.main-nav a, .nav-more { color: var(--muted); padding: 8px 0; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current], .nav-more:hover { color: var(--ink); }
.main-nav a[aria-current] { font-weight: 650; }
.header-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; background: transparent; border-radius: 50%; }
.icon-button:hover { background: var(--soft); }
.nav-more { background: transparent; display: inline-flex; gap: 5px; align-items: center; }
.nav-more svg { width: 13px; height: 13px; }
.login-link { white-space: nowrap; }
.menu-button { display: none; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 23px; gap: 10px; border-radius: 5px; font-weight: 550; background: var(--ink); color: var(--base); }
.button.secondary { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; }
.text-link svg { width: 16px; height: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 25px; }
.section-heading h2 { font-size: 25px; font-weight: 550; }
.section-heading .text-link { color: var(--muted); }
.muted { color: var(--muted); }
.tag { font-size: 12px; display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; }
.play-small { background: var(--ink); color: var(--base); display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.play-small svg { width: 17px; height: 17px; }
.site-footer { margin: 70px auto 0; max-width: 1216px; padding: 30px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-note { line-height: 1.8; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); padding: 12px 20px; z-index: 60; border: 1px solid var(--line); background: var(--base); color: var(--ink); border-radius: 8px; box-shadow: 0 6px 30px #0002; max-width: calc(100vw - 32px); width: max-content; }
dialog { border: 1px solid var(--line); border-radius: 14px; padding: 28px; color: var(--ink); background: var(--base); width: min(540px, calc(100vw - 32px)); max-height: 85dvh; }
dialog::backdrop { background: #0b1f3280; backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.dialog-head h2 { font-size: 22px; }
.search-form { display: flex; gap: 8px; }
.search-form input { min-width: 0; width: 100%; border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 6px; padding: 13px 14px; }
.search-hint { color: var(--muted); font-size: 12px; margin-top: 15px; }
.all-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.all-links a { padding: 16px 10px; border-radius: 5px; display: flex; align-items: center; gap: 10px; }
.all-links a:hover { background: var(--soft); }
.floating-player { display: flex; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: min(760px, calc(100% - 32px)); border: 1px solid var(--line); background: var(--base); z-index: 30; padding: 12px 18px 12px 12px; border-radius: 12px; align-items: center; gap: 15px; box-shadow: 0 12px 50px #0002; }
.floating-player img { width: 48px; height: 48px; object-fit: cover; border-radius: 5px; }
.player-description { min-width: 0; width: 175px; }
.player-description strong { display: block; font-size: 13px; font-weight: 550; }
.player-description span { color: var(--muted); font-size: 11px; }
.player-timeline { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 60px; }
.player-timeline input { width: 100%; accent-color: var(--accent); cursor: pointer; min-width: 0; }
.player-time { font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.player-close { width: 28px; height: 28px; }
body.has-player { padding-bottom: 100px; }
body.has-player .toast { bottom: 110px; }
@media (max-width: 1100px) {
  .site-header { padding: 0 30px; gap: 32px; }
  .main-nav { gap: 20px; }
  .site-footer { margin-right: 30px; margin-left: 30px; }
}
@media (max-width: 760px) {
  .site-header { height: 74px; padding: 0 22px; gap: 10px; }
  .brand-name { font-size: 20px; }
  .brand img { width: 106px; }
  .brand-mark { width: 30px; height: 30px; font-size: 23px; }
  .main-nav, .login-link { display: none; }
  .menu-button { display: inline-grid; }
  .header-actions { gap: 4px; }
  .section-heading { margin-bottom: 20px; }
  .section-heading h2 { font-size: 23px; }
  .site-footer { margin: 40px 22px 0; padding: 25px 0; flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 18px; }
  .floating-player { gap: 10px; padding-right: 10px; bottom: 12px; }
  .floating-player img { width: 38px; height: 38px; }
  .player-description { flex: 1; width: auto; }
  .player-timeline { display: none; }
  .player-description strong { font-size: 12px; }
  dialog { padding: 20px; }
  .all-links { gap: 2px; }
  .all-links a { font-size: 13px; padding: 15px 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
