@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+QingKe+HuangYou&display=swap");

:root {
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --fog: #f7f3ef;
  --paper: #fffdf9;
  --coral: #e85d4c;
  --coral-deep: #c94334;
  --teal: #1fad9f;
  --teal-soft: #d7f4f0;
  --sand: #f3e6d8;
  --line: rgba(26, 35, 50, 0.08);
  --glass: rgba(255, 253, 249, 0.72);
  --shadow: 0 18px 40px rgba(26, 35, 50, 0.08);
  --radius: 22px;
  --max: 1120px;
  --mast-h: 64px;
  --pin-h: 0px;
  --font-display: "ZCOOL QingKe HuangYou", "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%, #ffe3d8 0%, transparent 55%),
    radial-gradient(900px 500px at 90% 0%, #d8f5f0 0%, transparent 50%),
    linear-gradient(180deg, #fff8f2 0%, var(--fog) 40%, #eef7f5 100%);
  line-height: 1.75;
  min-height: 100vh;
  padding-top: var(--mast-h);
}

body.has-pin-rail {
  --pin-h: 92px;
  padding-top: calc(var(--mast-h) + var(--pin-h));
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--coral-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal);
}

.mast-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--mast-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-lockup img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(232, 93, 76, 0.25);
}

.brand-lockup strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: none;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--coral);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  display: grid;
  place-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: 0.25s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  position: fixed;
  top: var(--mast-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 16px 20px 22px;
  flex-direction: column;
  gap: 14px;
}

.nav-drawer.is-open {
  display: flex;
}

.nav-drawer a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.pin-rail {
  position: fixed;
  top: var(--mast-h);
  left: 0;
  right: 0;
  z-index: 980;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  max-height: 120px;
  overflow: auto;
}

.pin-rail.is-shown {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pin-rail-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.rail-cell {
  min-width: 0;
}

.rail-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--ink-soft);
}

.rail-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(26, 35, 50, 0.12);
  transition: transform 0.2s ease;
}

.rail-link:hover .rail-icon {
  transform: translateY(-3px) scale(1.04);
}

.rail-caption {
  font-size: 10px;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boost-strip {
  max-width: var(--max);
  margin: 14px auto 0;
  padding: 14px 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(215, 244, 240, 0.7));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.boost-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.boost-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.shell {
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
}

.crumb-trail {
  margin: 18px auto 8px;
  width: min(100% - 28px, var(--max));
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.crumb-trail a {
  color: var(--ink-soft);
  text-decoration: none;
}

.crumb-trail a:hover {
  color: var(--coral);
}

.hero-stage {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 36px 36px;
  min-height: calc(100vh - var(--mast-h));
  display: grid;
  align-items: end;
  padding: 0 0 48px;
  background:
    linear-gradient(180deg, rgba(26, 35, 50, 0.15) 0%, rgba(26, 35, 50, 0.72) 100%),
    url("screen-comic-update.jpg") center/cover no-repeat;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(232, 93, 76, 0.45), transparent 70%);
  animation: drift 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-stage::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: 10%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(31, 173, 159, 0.4), transparent 70%);
  animation: drift 10s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(24px, 18px); }
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  color: #fff;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 4.8rem);
  line-height: 1.05;
  margin: 0 0 12px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  animation: rise-in 0.9s ease both;
}

.hero-copy h1 {
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px;
  max-width: 18em;
  animation: rise-in 1s ease 0.1s both;
}

.hero-copy p {
  margin: 0;
  max-width: 28em;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  animation: rise-in 1.1s ease 0.2s both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-block {
  margin: 42px auto;
  width: min(100% - 28px, var(--max));
}

.section-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.section-block h3 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
  color: var(--ink);
}

.section-lead {
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-size: 1.02rem;
}

.prose p {
  margin: 0 0 1em;
  font-size: 1.02rem;
  text-align: justify;
}

.prose p:last-child {
  margin-bottom: 0;
}

.duo-row {
  display: grid;
  gap: 22px;
  align-items: center;
  margin: 28px 0;
}

.duo-row.reverse .visual-frame {
  order: -1;
}

.visual-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111;
}

.visual-frame img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
  max-height: 520px;
}

.visual-frame.wide img {
  aspect-ratio: 16/10;
  max-height: 360px;
  object-fit: cover;
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.tile-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.tile-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(26, 35, 50, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(26, 35, 50, 0.1);
}

.tile-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.tile-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.tile-card .mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 800;
}

.mosaic {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.mosaic .visual-frame:first-child {
  grid-column: 1 / -1;
}

.cta-band {
  margin: 48px auto;
  width: min(100% - 28px, var(--max));
  padding: 28px 22px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(232, 93, 76, 0.95), rgba(201, 67, 52, 0.92)),
    var(--coral);
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 40px rgba(232, 93, 76, 0.28);
}

.cta-band h2 {
  font-family: var(--font-display);
  margin: 0 0 10px;
  font-size: 1.8rem;
}

.cta-band p {
  margin: 0 0 18px;
  opacity: 0.95;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--coral-deep);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.btn-pill:hover {
  transform: translateY(-2px);
  color: var(--ink);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  margin-left: 10px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin: 10px 0 16px;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 28px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--coral);
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
  font-size: 1rem;
}

.legal-page ul {
  padding-left: 1.2em;
}

.soft-panel {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.status-page {
  min-height: calc(100vh - var(--mast-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}

.status-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.4rem);
  margin: 0 0 12px;
}

.status-page p {
  color: var(--ink-soft);
  max-width: 28em;
  margin: 0 auto 22px;
}

.site-foot {
  margin-top: 60px;
  padding: 36px 0 48px;
  background: #15202b;
  color: rgba(255, 255, 255, 0.78);
}

.foot-grid {
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.site-foot a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-foot a:hover {
  color: #7ee0d4;
}

.site-foot h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.05rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.foot-copy {
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.tag-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.quote-strip {
  margin: 28px 0;
  padding: 22px 20px;
  border-radius: 20px;
  background: linear-gradient(120deg, var(--teal-soft), #ffe8e2);
  border-left: 5px solid var(--teal);
  font-size: 1.05rem;
  color: var(--ink);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
}

.timeline-num {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }
  .pin-rail-inner,
  .boost-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  .rail-icon { width: 52px; height: 52px; }
  .duo-row {
    grid-template-columns: 1.05fr 1fr;
  }
  .duo-row.reverse {
    grid-template-columns: 1fr 1.05fr;
  }
  .duo-row.reverse .visual-frame {
    order: 0;
  }
  .duo-row.reverse .prose {
    order: 0;
  }
  .tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mosaic {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .mosaic .visual-frame:first-child {
    grid-column: auto;
    grid-row: 1 / 3;
  }
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  body.has-pin-rail {
    --pin-h: 88px;
  }
}

@media (min-width: 1024px) {
  .hero-stage {
    border-radius: 0 0 48px 48px;
  }
}
