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

:root {
  --ink: #161b26;
  --mute: #5a6475;
  --rose: #e84b6a;
  --rose-deep: #c73654;
  --tide: #1fa8a0;
  --sky: #4f8fc9;
  --cloud: #eef3f8;
  --blush: #fff0f3;
  --foam: #ffffff;
  --glass: rgba(255, 255, 255, 0.68);
  --line: rgba(22, 27, 38, 0.1);
  --shadow: 0 18px 48px rgba(22, 27, 38, 0.12);
  --radius: 22px;
  --max: 1080px;
  --font-display: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  --font-body: "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.85;
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffd6e2 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #c9e8ff 0%, transparent 50%),
    linear-gradient(180deg, #f7fafc 0%, #eef3f8 42%, #fff5f7 100%);
  min-height: 100vh;
}

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

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

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

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

.mast-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--glass);
  border-bottom: 1px solid var(--line);
}

.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand-mark {
  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.04em;
}

.brand-mark img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(232, 75, 106, 0.28);
}

.nav-rail {
  display: none;
  gap: 18px;
  align-items: center;
}

.nav-rail a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-rail a:hover {
  color: var(--rose);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 14px;
}

.nav-drawer.is-open {
  display: flex;
}

.nav-drawer a {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.sticky-dock {
  position: sticky;
  top: 64px;
  z-index: 35;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.28s ease, opacity 0.28s ease;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.sticky-dock.is-visible {
  max-height: 220px;
  opacity: 1;
  pointer-events: auto;
}

.dock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
  padding: 10px 0 12px;
}

.dock-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--mute);
  font-size: 11px;
}

.dock-chip img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(22, 27, 38, 0.12);
  transition: transform 0.18s ease;
}

.dock-chip:hover img {
  transform: translateY(-3px) scale(1.04);
}

.dock-chip span {
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.promo-strip {
  margin: 14px 0 8px;
  padding: 12px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 240, 243, 0.95), rgba(233, 246, 255, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.promo-strip .dock-grid {
  padding: 0;
}

.vista-hero {
  position: relative;
  margin: 18px 0 28px;
  padding: 36px 22px 42px;
  border-radius: 28px;
  overflow: hidden;
  color: var(--foam);
  background:
    linear-gradient(135deg, rgba(22, 27, 38, 0.55), rgba(232, 75, 106, 0.45)),
    url("screen-comic-serial.jpg") center/cover no-repeat;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.vista-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(31, 168, 160, 0.35), transparent 40%),
    linear-gradient(180deg, transparent 20%, rgba(22, 27, 38, 0.78) 100%);
  z-index: -1;
  animation: mistPulse 8s ease-in-out infinite alternate;
}

.vista-copy h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.35;
  font-weight: 400;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.vista-copy p {
  margin: 0;
  max-width: 36em;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
}

.chapter-block {
  margin: 34px 0;
  padding: 26px 0;
}

.chapter-block h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.6vw, 1.9rem);
  line-height: 1.4;
  position: relative;
  padding-left: 14px;
}

.chapter-block h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 5px;
  height: 1.1em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rose), var(--tide));
}

.chapter-block h3 {
  margin: 22px 0 10px;
  font-size: 1.15rem;
  color: #243044;
}

.chapter-block p {
  margin: 0 0 14px;
  color: #2a3342;
  font-size: 0.98rem;
}

.media-lane {
  display: grid;
  gap: 18px;
  align-items: center;
  margin: 20px 0;
}

.media-lane.reverse .shot-frame {
  order: -1;
}

.shot-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #fff;
  transform: translateY(0);
  animation: floatSoft 5.5s ease-in-out infinite;
}

.shot-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 520px;
}

.tip-grid {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.pulse-card {
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(22, 27, 38, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.pulse-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.pulse-card p {
  margin: 0;
  color: var(--mute);
  font-size: 0.94rem;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 8px;
}

.ink-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--rose), #ff7a93);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(232, 75, 106, 0.32);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.ink-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  color: #fff !important;
}

.ink-btn.ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
  box-shadow: none;
}

.crumb-path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0 8px;
  font-size: 0.88rem;
  color: var(--mute);
}

.crumb-path a {
  color: var(--mute);
  text-decoration: none;
}

.crumb-path a:hover {
  color: var(--rose);
}

.legal-sheet {
  margin: 12px 0 40px;
  padding: 24px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.legal-sheet h1 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.fault-panel {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 12px;
}

.fault-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0 0 10px;
}

.site-foot {
  margin-top: 48px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.9rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.foot-links a {
  color: var(--ink);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--rose);
}

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

.tag-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 168, 160, 0.12);
  color: #157f79;
  font-size: 0.82rem;
}

.mosaic-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.mosaic-board .shot-frame {
  animation: none;
}

.mosaic-board .shot-frame:nth-child(odd) {
  transform: translateY(8px);
}

.quote-ribbon {
  margin: 20px 0;
  padding: 18px 18px 18px 20px;
  border-left: 4px solid var(--tide);
  border-radius: 0 18px 18px 0;
  background: linear-gradient(90deg, rgba(31, 168, 160, 0.1), transparent);
  color: #334155;
}

@keyframes mistPulse {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 1;
    filter: saturate(1.08);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-rail {
    display: flex;
  }

  .nav-drawer {
    display: none !important;
  }

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

  .media-lane {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .media-lane.reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .media-lane.reverse .shot-frame {
    order: 0;
  }

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

  .mosaic-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vista-hero {
    min-height: 520px;
    padding: 48px 40px;
  }

  .legal-sheet {
    padding: 34px 36px;
  }
}

@media (min-width: 1024px) {
  .shot-frame img {
    max-height: 580px;
  }
}
