/* bks.pics — ink-stage manga brand theme */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+XiaoWei&display=swap');

:root {
  --ink: #151a2e;
  --ink-soft: #2a3150;
  --paper: #fff7f2;
  --paper-deep: #ffe8df;
  --bloom: #ff4d7a;
  --bloom-deep: #d6285a;
  --mint: #2fd6a8;
  --amber: #ffb347;
  --glass: rgba(255, 247, 242, 0.78);
  --line: rgba(21, 26, 46, 0.1);
  --shadow: 0 18px 40px rgba(21, 26, 46, 0.12);
  --radius: 22px;
  --max: 1080px;
  --header-h: 58px;
  --rail-h: auto;
  --font-display: "ZCOOL XiaoWei", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
}

*,
*::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, 77, 122, 0.18), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(47, 214, 168, 0.14), transparent 55%),
    linear-gradient(180deg, #fff9f5 0%, var(--paper) 40%, #fff1ea 100%);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  color: var(--bloom-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(100% - 28px, var(--max));
  margin-inline: auto;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(14px);
  background: rgba(255, 247, 242, 0.9);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(214, 40, 90, 0.25);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.92rem;
}

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

.nav-links a:hover,
.nav-links a.is-on {
  color: var(--bloom-deep);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle[aria-expanded="true"] {
  background: rgba(255, 77, 122, 0.12);
  border-color: rgba(255, 77, 122, 0.35);
  color: var(--bloom-deep);
}

/* Promo ads top + sticky rail (互斥显示，避免重复) */
.promo-dock,
.sticky-rail {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 232, 223, 0.55));
  border-bottom: 1px solid var(--line);
}

.promo-dock {
  padding: 10px 0 6px;
}

.sticky-rail {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 70;
  padding: 8px 0 4px;
  box-shadow: 0 8px 20px rgba(21, 26, 46, 0.06);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
}

.sticky-rail.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.sticky-spacer {
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.ads-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 8px;
  margin: 0;
  padding: 0;
}

.ads-grid > div {
  width: calc(25% - 8px);
  max-width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 900px) {
  .ads-grid > div {
    width: calc(12.5% - 8px);
  }
}

.ads-grid a {
  display: block;
  border-radius: 16px;
  text-decoration: none;
}

.ads-grid img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(24, 24, 24, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  background: #fff;
}

.ads-grid img:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 24px rgba(24, 24, 24, 0.18);
}

.ads-grid .caption {
  margin-top: 4px;
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hero — brand-first full-bleed atmosphere */
.stage-hero {
  position: relative;
  min-height: clamp(420px, 78vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 28px;
}

.stage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(21, 26, 46, 0.78) 0%, rgba(21, 26, 46, 0.35) 48%, rgba(214, 40, 90, 0.45) 100%),
    url("anime-browse.jpg") center/cover no-repeat;
  z-index: -2;
  transform: scale(1.04);
  animation: drift 18s ease-in-out infinite alternate;
}

.stage-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 55%;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.35), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  animation: pulse 7s ease-in-out infinite;
}

@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-2%, -1%, 0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

.hero-copy {
  padding: 48px 0 56px;
  color: #fff;
  max-width: 640px;
}

.hero-copy .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  line-height: 1.1;
  margin: 0 0 14px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-copy h1 {
  font-size: clamp(1.15rem, 3.4vw, 1.55rem);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.45;
}

.hero-copy p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.92;
  max-width: 34em;
}

/* Content sections */
.ink-section {
  margin: 42px auto 56px;
  padding: 0;
}

.ink-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2rem);
  margin: 0 0 14px;
  color: var(--ink);
  position: relative;
  display: inline-block;
}

.ink-section h2::after {
  content: "";
  display: block;
  width: 64%;
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bloom), var(--amber), transparent);
}

.ink-section h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  color: var(--ink-soft);
}

.ink-section p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--ink);
}

/* Mosaic layouts */
.split-stage {
  display: grid;
  gap: 22px;
  align-items: center;
  margin: 22px 0 8px;
}

@media (min-width: 820px) {
  .split-stage {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .split-stage.flip {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .split-stage.flip .phone-frame {
    order: -1;
  }
}

.phone-frame {
  position: relative;
  border-radius: 28px;
  padding: 12px;
  background: linear-gradient(160deg, #fff, #ffe6ef);
  box-shadow: var(--shadow);
  transform: rotate(-2.5deg);
  transition: transform 0.35s ease;
}

.phone-frame:hover {
  transform: rotate(0deg) translateY(-4px);
}

.phone-frame img {
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.phone-frame.tilt-right {
  transform: rotate(2.8deg);
}

.phone-frame.tilt-right:hover {
  transform: rotate(0deg) translateY(-4px);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 77, 122, 0.1);
  color: var(--bloom-deep);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 77, 122, 0.18);
}

/* Feature cards */
.feature-board {
  display: grid;
  gap: 14px;
  margin: 18px 0 8px;
}

@media (min-width: 700px) {
  .feature-board {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  box-shadow: 0 10px 24px rgba(21, 26, 46, 0.05);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
}

.feature-card .mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--bloom), var(--amber));
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

/* Ribbon band */
.ribbon-band {
  margin: 48px 0;
  padding: 34px 0;
  background:
    linear-gradient(90deg, rgba(255, 77, 122, 0.12), rgba(47, 214, 168, 0.1)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 14px,
      rgba(255, 255, 255, 0.35) 14px,
      rgba(255, 255, 255, 0.35) 15px
    );
  border-block: 1px solid var(--line);
}

.ribbon-band .ink-section {
  margin: 0 auto;
}

/* Timeline */
.flow-track {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  counter-reset: step;
}

.flow-step {
  position: relative;
  padding: 14px 16px 14px 56px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.flow-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.flow-step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.flow-step p {
  margin: 0;
  font-size: 0.95rem;
}

/* Quote panel */
.quote-panel {
  margin: 24px 0;
  padding: 22px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1b1f3b, #2d365f);
  color: #fff;
  box-shadow: var(--shadow);
}

.quote-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
}

/* Breadcrumb */
.crumbs {
  margin: 18px auto 8px;
  font-size: 0.88rem;
  color: #6a718c;
}

.crumbs a {
  color: var(--ink-soft);
}

.crumbs span {
  margin: 0 6px;
  opacity: 0.5;
}

/* Legal pages */
.legal-wrap {
  margin: 18px auto 64px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 20px 36px;
  box-shadow: 0 12px 30px rgba(21, 26, 46, 0.05);
}

.legal-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  margin: 0 0 18px;
}

.legal-wrap h2 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--ink-soft);
}

.legal-wrap ul {
  padding-left: 1.2em;
}

/* Error pages */
.err-stage {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px 70px;
}

.err-stage h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  margin: 0 0 10px;
  background: linear-gradient(90deg, var(--bloom), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.err-stage p {
  max-width: 28em;
  margin: 0 auto 22px;
  color: var(--ink-soft);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.ghost-btn:hover {
  background: var(--bloom-deep);
  text-decoration: none;
  color: #fff;
}

/* Site links */
.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.site-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Footer */
.site-foot {
  margin-top: 40px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.site-foot .shell {
  display: grid;
  gap: 12px;
}

.site-foot p {
  margin: 0;
  color: #6a718c;
  font-size: 0.9rem;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.foot-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin: 0 0 10px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(21, 26, 46, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.98rem;
  }

  .nav-links a:hover,
  .nav-links a.is-on {
    background: rgba(255, 77, 122, 0.1);
    text-decoration: none;
  }
}
