@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+XiaoWei&display=swap');

:root {
  --ink: #0b2e36;
  --ink-soft: #1a4a56;
  --mist: #eef8f6;
  --foam: #f7fcfb;
  --aqua: #2bb8a0;
  --aqua-deep: #178a76;
  --apricot: #ff7a59;
  --apricot-soft: #ffb39e;
  --sand: #d9efe9;
  --line: rgba(11, 46, 54, 0.12);
  --glass: rgba(255, 255, 255, 0.62);
  --shadow: 0 18px 40px rgba(11, 46, 54, 0.12);
  --radius: 22px;
  --max: 1120px;
  --promo-h: 0px;
  --dock-h: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(43, 184, 160, 0.22), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 122, 89, 0.16), transparent 55%),
    linear-gradient(165deg, #f4fbf9 0%, #eaf6f3 42%, #f8f3ef 100%);
  line-height: 1.85;
  padding-bottom: calc(24px + var(--dock-h));
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--aqua-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--apricot);
}

.flare-wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.flare-display {
  font-family: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  letter-spacing: 0.02em;
}

/* top ads promo icon grid */
.flare-promo {
  position: relative;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 0 10px;
}

.flare-promo-inner {
  position: relative;
  z-index: 1;
}

.flare-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 10px;
  min-height: 88px;
}

.flare-ads a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  text-decoration: none;
  color: #555;
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
}

.flare-ads img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(24, 24, 24, 0.12);
  background: linear-gradient(135deg, #fff, #f3f3f3);
  margin-bottom: 5px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.flare-ads a:hover img {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 22px rgba(24, 24, 24, 0.16);
}

.flare-ads span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* top nav */
.flare-nav {
  position: sticky;
  top: 0;
  z-index: 55;
  backdrop-filter: blur(16px);
  background: rgba(247, 252, 251, 0.82);
  border-bottom: 1px solid var(--line);
}

.flare-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.flare-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.flare-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(23, 138, 118, 0.25);
}

.flare-brand span {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 22px;
}

.flare-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.flare-menu a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.flare-menu a:hover,
.flare-menu a.is-on {
  color: var(--aqua-deep);
}

.flare-burger {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.flare-burger span {
  display: block;
  height: 2px;
  margin: 6px 10px;
  background: var(--ink);
  border-radius: 2px;
}

/* sticky download dock — fully hidden until scroll so it never covers top promo */
.flare-dock {
  position: fixed;
  left: 0;
  right: 0;
  top: 64px;
  z-index: 45;
  transform: translateY(calc(-100% - 72px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.2s ease, visibility 0.2s;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(11, 46, 54, 0.08);
}

.flare-dock.is-show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.flare-dock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
  padding: 10px 0 12px;
}

.flare-dock a {
  text-decoration: none;
  color: var(--ink-soft);
  text-align: center;
  font-size: 11px;
}

.flare-dock img {
  width: 48px;
  height: 48px;
  margin: 0 auto 4px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(11, 46, 54, 0.12);
}

body.has-dock {
  --dock-h: 86px;
}

/* hero */
.flare-hero {
  position: relative;
  padding: 36px 0 28px;
  overflow: hidden;
}

.flare-hero-panel {
  position: relative;
  border-radius: 32px;
  padding: 36px 22px 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(232, 248, 244, 0.9)),
    url("feat-comic-serial.jpg") center/cover;
  background-blend-mode: soft-light, normal;
  box-shadow: var(--shadow);
  isolation: isolate;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.flare-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(11, 46, 54, 0.08) 0%, rgba(11, 46, 54, 0.55) 100%);
  z-index: -1;
}

.flare-hero-brand {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(42px, 12vw, 72px);
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  animation: flareRise 0.9s ease both;
}

.flare-hero h1 {
  margin: 0 0 10px;
  color: #fff7f3;
  font-size: clamp(22px, 5.4vw, 34px);
  font-weight: 800;
  line-height: 1.35;
  max-width: 18em;
  animation: flareRise 1s ease 0.08s both;
}

.flare-hero-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  max-width: 28em;
  animation: flareRise 1.05s ease 0.16s both;
}

@keyframes flareRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* crumbs */
.flare-crumb {
  padding: 18px 0 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.flare-crumb a {
  text-decoration: none;
}

.flare-crumb span {
  opacity: 0.55;
  margin: 0 6px;
}

/* sections */
.flare-section {
  padding: 34px 0;
}

.flare-section h2 {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(26px, 6vw, 36px);
  margin: 0 0 12px;
  line-height: 1.3;
}

.flare-section h3 {
  font-size: 20px;
  margin: 26px 0 10px;
  color: var(--ink-soft);
}

.flare-lead {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
}

.flare-prose p {
  margin: 0 0 16px;
  font-size: 15px;
  text-align: justify;
}

.flare-prose p:last-child {
  margin-bottom: 0;
}

/* asymmetric media blocks */
.flare-split {
  display: grid;
  gap: 20px;
  align-items: center;
  margin: 22px 0;
}

.flare-shot {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.flare-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  max-height: 520px;
}

.flare-shot.wide img {
  aspect-ratio: 16 / 10;
  max-height: 360px;
  object-position: center;
}

.flare-shot::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(11, 46, 54, 0.18));
  pointer-events: none;
}

.flare-glass {
  backdrop-filter: blur(14px);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

/* card grid - interactive only where needed */
.flare-chip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.flare-chip {
  border-radius: 20px;
  padding: 18px 16px;
  background: linear-gradient(160deg, #fff, #eefaf7);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flare-chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.flare-chip h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.flare-chip p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.flare-mosaic {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.flare-mosaic .flare-shot {
  margin: 0;
}

.flare-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(43, 184, 160, 0.12);
  color: var(--aqua-deep);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.flare-quote {
  margin: 24px 0;
  padding: 22px 20px;
  border-left: 4px solid var(--apricot);
  background: linear-gradient(90deg, rgba(255, 122, 89, 0.08), transparent);
  border-radius: 0 18px 18px 0;
  font-size: 16px;
  color: var(--ink-soft);
}

.flare-timeline {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}

.flare-timeline article {
  position: relative;
  padding: 16px 16px 16px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.flare-timeline article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--aqua), var(--apricot));
}

.flare-faq details {
  margin-bottom: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 16px;
}

.flare-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.flare-faq p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.flare-cta-band {
  margin: 28px 0;
  padding: 28px 22px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(23, 138, 118, 0.95), rgba(11, 46, 54, 0.92)),
    url("feat-anime-home.jpg") center/cover;
  background-blend-mode: multiply, normal;
  color: #fff;
  text-align: center;
}

.flare-cta-band h2 {
  color: #fff;
  margin-bottom: 8px;
}

.flare-cta-band p {
  margin: 0 auto 16px;
  max-width: 34em;
  opacity: 0.92;
}

.flare-cta-band a {
  display: inline-flex;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--apricot), #ff9a78);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* legal pages */
.flare-legal h1 {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(28px, 7vw, 40px);
  margin: 8px 0 16px;
}

.flare-legal .flare-prose h2 {
  font-size: 22px;
  margin-top: 28px;
}

/* error pages */
.flare-error {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}

.flare-error .code {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(72px, 20vw, 140px);
  line-height: 1;
  background: linear-gradient(135deg, var(--aqua), var(--apricot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.flare-error h1 {
  margin: 8px 0 12px;
  font-size: 24px;
}

.flare-error a {
  display: inline-flex;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

/* footer */
.flare-foot {
  margin-top: 40px;
  padding: 36px 0 28px;
  background: #0b2e36;
  color: rgba(255, 255, 255, 0.82);
}

.flare-foot a {
  color: #9fe8d8;
  text-decoration: none;
}

.flare-foot-grid {
  display: grid;
  gap: 22px;
}

.flare-foot h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
}

.flare-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flare-foot li {
  margin-bottom: 8px;
  font-size: 14px;
}

.flare-copy {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  opacity: 0.7;
}

/* motion accents */
.flare-float {
  animation: flareFloat 5s ease-in-out infinite;
}

@keyframes flareFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.flare-shine {
  position: relative;
  overflow: hidden;
}

.flare-shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: flareShine 4.5s ease-in-out infinite;
}

@keyframes flareShine {
  0%,
  55% {
    left: -40%;
  }
  100% {
    left: 130%;
  }
}

@media (min-width: 720px) {
  .flare-dock-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .flare-split {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .flare-split.reverse {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .flare-split.reverse .flare-shot {
    order: 2;
  }

  .flare-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flare-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flare-foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .flare-hero-panel {
    padding: 48px 40px 36px;
    min-height: 480px;
  }
}

@media (min-width: 980px) {
  .flare-chip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .flare-burger {
    display: inline-block;
  }

  .flare-nav-row {
    position: relative;
  }

  .flare-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    z-index: 60;
  }

  .flare-menu.is-open {
    display: flex;
  }
}
