@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+XiaoWei&display=swap");

:root {
  --ink: #152033;
  --ink-soft: #3d4a63;
  --coral: #ff4f70;
  --coral-deep: #d62850;
  --teal: #1fb8a8;
  --teal-soft: #d8f5f1;
  --mist: #f3f6fb;
  --paper: #ffffff;
  --line: rgba(21, 32, 51, 0.08);
  --shadow: 0 18px 40px rgba(21, 32, 51, 0.08);
  --radius: 18px;
  --nav-h: 64px;
  --promo-h: auto;
  --font-display: "ZCOOL XiaoWei", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 79, 112, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(31, 184, 168, 0.14), transparent 50%),
    linear-gradient(180deg, #f7f9fd 0%, var(--mist) 40%, #eef3f9 100%);
  line-height: 1.75;
  min-height: 100vh;
}

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

a {
  color: var(--coral-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal);
}

.bks-wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Top promo */
.bks-promo-shell {
  background: linear-gradient(90deg, rgba(255, 79, 112, 0.08), rgba(31, 184, 168, 0.1));
  border-bottom: 1px solid var(--line);
  padding: 10px 0 6px;
}

.bks-promo-label {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}

#bks-promo,
#bks-dock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
  justify-items: center;
}

@media (min-width: 900px) {
  #bks-promo,
  #bks-dock-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.bks-dl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 72px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 11px;
}

.bks-dl-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(21, 32, 51, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.bks-dl-item:hover img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 24px rgba(21, 32, 51, 0.16);
}

.bks-dl-item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* Header */
.bks-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 249, 253, 0.82);
  border-bottom: 1px solid var(--line);
}

.bks-nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bks-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.bks-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.bks-brand strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.bks-nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.bks-nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.bks-nav-links a:hover,
.bks-nav-links a.is-current {
  color: var(--coral-deep);
}

.bks-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
}

.bks-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: 0.2s ease;
}

@media (max-width: 860px) {
  .bks-nav-toggle {
    display: inline-block;
  }
  .bks-nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--nav-h) + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }
  .bks-nav-links.is-open {
    display: flex;
  }
}

/* Sticky dock under nav */
.bks-dock {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 35;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 10px;
}

.bks-dock.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.has-dock {
  padding-top: 0;
}

body.has-dock .bks-hero,
body.has-dock .bks-page-head {
  scroll-margin-top: 120px;
}

/* Hero - full bleed, brand first, no download CTA */
.bks-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.bks-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(21, 32, 51, 0.72) 0%, rgba(214, 40, 80, 0.35) 48%, rgba(31, 184, 168, 0.28) 100%),
    url("shot-comic-serial.jpg") center / cover no-repeat;
}

.bks-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 35%),
    linear-gradient(180deg, transparent 40%, rgba(15, 22, 36, 0.55) 100%);
  animation: bksPulse 8s ease-in-out infinite alternate;
}

@keyframes bksPulse {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 1;
  }
}

.bks-hero-inner {
  padding: 72px 0 56px;
  color: #fff;
  max-width: 720px;
}

.bks-hero-brand {
  font-family: var(--font-display);
  font-size: clamp(42px, 9vw, 72px);
  line-height: 1.05;
  margin: 0 0 14px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: bksRise 0.9s ease both;
}

.bks-hero h1 {
  font-size: clamp(22px, 4.2vw, 34px);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.35;
  animation: bksRise 0.9s ease 0.12s both;
}

.bks-hero-lead {
  margin: 0;
  font-size: 16px;
  opacity: 0.92;
  max-width: 34em;
  animation: bksRise 0.9s ease 0.22s both;
}

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

/* Breadcrumb */
.bks-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 18px 0 8px;
}

.bks-crumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.bks-crumb a:hover {
  color: var(--coral-deep);
}

.bks-crumb span {
  opacity: 0.5;
}

/* Page sections */
.bks-page-head {
  padding: 28px 0 10px;
}

.bks-page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 10px;
  font-weight: 400;
}

.bks-lead {
  color: var(--ink-soft);
  margin: 0;
  max-width: 46em;
}

.bks-section {
  padding: 36px 0;
}

.bks-section h2 {
  font-size: clamp(22px, 3.5vw, 28px);
  margin: 0 0 14px;
  line-height: 1.35;
}

.bks-section h3 {
  font-size: 18px;
  margin: 22px 0 10px;
}

.bks-section p {
  margin: 0 0 14px;
  color: var(--ink);
}

.bks-section p + p {
  margin-top: 0;
}

.bks-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.bks-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Unique layouts */
.bks-split {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 880px) {
  .bks-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }
  .bks-split.is-flip {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .bks-split.is-flip .bks-media {
    order: -1;
  }
}

.bks-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.bks-media img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
}

.bks-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.bks-panel-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .bks-panel-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bks-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease;
}

.bks-panel:hover {
  transform: translateY(-4px);
}

.bks-panel h3 {
  margin-top: 0;
}

.bks-panel p:last-child {
  margin-bottom: 0;
}

.bks-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.bks-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: #0f6f66;
  font-size: 12px;
  font-weight: 500;
}

.bks-rail {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .bks-rail {
    grid-template-columns: 220px 1fr;
    gap: 28px;
  }
}

.bks-side-note {
  background: linear-gradient(160deg, rgba(255, 79, 112, 0.1), rgba(31, 184, 168, 0.12));
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-h) + 84px);
}

.bks-side-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 8px;
}

.bks-mosaic {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 0.8fr;
}

.bks-mosaic .bks-media:first-child {
  grid-row: span 2;
}

.bks-mosaic .bks-media img {
  max-height: none;
  height: 100%;
  aspect-ratio: auto;
  min-height: 180px;
}

@media (max-width: 720px) {
  .bks-mosaic {
    grid-template-columns: 1fr;
  }
  .bks-mosaic .bks-media:first-child {
    grid-row: auto;
  }
}

.bks-quote {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--coral);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 0 16px 16px 0;
  color: var(--ink-soft);
}

.bks-text-block p {
  text-align: justify;
}

.bks-feature-band {
  display: grid;
  gap: 14px;
}

@media (min-width: 800px) {
  .bks-feature-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bks-feature-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  overflow: hidden;
}

.bks-feature-card img {
  width: 110px;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
}

.bks-feature-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.bks-feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

@media (max-width: 560px) {
  .bks-feature-card {
    grid-template-columns: 88px 1fr;
  }
  .bks-feature-card img {
    width: 88px;
    height: 120px;
  }
}

.bks-cta-soft {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--coral), var(--coral-deep));
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(214, 40, 80, 0.28);
}

.bks-cta-soft:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

/* Legal prose */
.bks-prose h2 {
  margin-top: 28px;
}

.bks-prose ul {
  padding-left: 1.2em;
  color: var(--ink);
}

.bks-prose li {
  margin-bottom: 8px;
}

/* Error pages */
.bks-error {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.bks-error-code {
  font-family: var(--font-display);
  font-size: clamp(64px, 18vw, 120px);
  line-height: 1;
  background: linear-gradient(120deg, var(--coral), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.bks-error h1 {
  margin: 8px 0 12px;
  font-size: 24px;
}

.bks-error p {
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.bks-error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.bks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.bks-btn-primary {
  background: linear-gradient(120deg, var(--coral), var(--coral-deep));
  color: #fff;
  border: none;
}

/* Footer */
.bks-footer {
  margin-top: 40px;
  padding: 36px 0 100px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.bks-footer-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .bks-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.bks-footer h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.bks-footer p,
.bks-footer a {
  color: var(--ink-soft);
  font-size: 14px;
}

.bks-footer a {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 6px;
}

.bks-footer a:hover {
  color: var(--coral-deep);
}

.bks-copy {
  margin-top: 22px;
  font-size: 12px;
  color: #7a869c;
}

/* Utility */
.bks-muted {
  color: var(--ink-soft);
}

.bks-center {
  text-align: center;
}
