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

:root {
  --ink: #14252e;
  --ink-soft: #2a4050;
  --rose: #e85d75;
  --rose-deep: #c9445c;
  --mint: #2f9e8f;
  --mint-soft: #7dcdc0;
  --sand: #f6efe8;
  --cloud: #fffaf6;
  --glow: #ffb4a2;
  --line: rgba(20, 37, 46, 0.1);
  --glass: rgba(255, 250, 246, 0.72);
  --shadow: 0 18px 48px rgba(20, 37, 46, 0.12);
  --radius: 22px;
  --max: 1080px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 93, 117, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(47, 158, 143, 0.16), transparent 50%),
    linear-gradient(180deg, var(--cloud) 0%, var(--sand) 48%, #f3ebe3 100%);
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--mint);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--rose-deep);
}

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

.hana-brand {
  font-family: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  letter-spacing: 0.04em;
}

/* top promo strip */
.hana-promo {
  background: linear-gradient(90deg, rgba(232, 93, 117, 0.12), rgba(47, 158, 143, 0.12));
  border-bottom: 1px solid var(--line);
  padding: 10px 0 6px;
}

.hana-promo-title {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

#hana-ads,
#hana-stick-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 6px;
  background: transparent;
}

#hana-ads > div,
#hana-stick-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#hana-ads img,
#hana-stick-ads img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  border: none;
  background: #fff;
}

#hana-ads a,
#hana-stick-ads a {
  display: inline-block;
  border-radius: 15px;
}

#hana-ads img:hover,
#hana-stick-ads img:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 22px rgba(24, 24, 24, 0.18);
}

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

/* sticky download rail */
.hana-stick {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 250, 246, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 8px 8px 6px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.hana-stick.is-on {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#hana-stick-ads > div {
  width: 25%;
  max-width: 72px;
}

@media (min-width: 900px) {
  #hana-stick-ads > div {
    width: 12.5%;
  }
}

/* nav */
.hana-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: var(--glass);
  border-bottom: 1px solid var(--line);
}

.hana-nav-inner {
  width: min(100% - 24px, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hana-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
}

.hana-logo img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(232, 93, 117, 0.28);
}

.hana-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  justify-content: flex-end;
}

.hana-menu a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.hana-menu a:hover,
.hana-menu a.is-now {
  color: var(--rose);
}

.hana-burger {
  display: none;
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
}

.hana-burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

@media (max-width: 760px) {
  .hana-burger {
    display: block;
  }

  .hana-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 250, 246, 0.97);
    padding: 14px 20px 18px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 12px;
  }

  .hana-menu.is-open {
    display: flex;
  }
}

/* hero */
.hana-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  isolation: isolate;
}

.hana-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(160deg, rgba(20, 37, 46, 0.55) 8%, rgba(20, 37, 46, 0.15) 55%, rgba(232, 93, 117, 0.35) 100%),
    url("screen-comic-update.jpg") center / cover no-repeat;
}

.hana-hero-glow {
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 55%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 180, 162, 0.55), transparent 70%);
  filter: blur(20px);
  animation: hana-float 8s ease-in-out infinite;
}

@keyframes hana-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.05); }
}

.hana-hero-copy {
  width: min(100% - 32px, var(--max));
  margin: 0 auto 56px;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  animation: hana-rise 0.9s ease both;
}

@keyframes hana-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hana-hero-copy .hana-brand {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.hana-hero-copy h1 {
  font-size: clamp(1.15rem, 3.6vw, 1.65rem);
  font-weight: 700;
  margin-bottom: 12px;
  max-width: 18em;
}

.hana-hero-copy p {
  max-width: 28em;
  font-size: 0.98rem;
  opacity: 0.95;
}

/* sections */
.hana-main {
  padding: 28px 0 80px;
}

.hana-block {
  margin: 42px auto;
  width: min(100% - 32px, var(--max));
  animation: hana-rise 0.7s ease both;
}

.hana-block h2 {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  margin-bottom: 14px;
  color: var(--ink);
  position: relative;
  padding-left: 14px;
}

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

.hana-block h3 {
  font-size: 1.12rem;
  margin: 22px 0 10px;
  color: var(--ink-soft);
}

.hana-block p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.hana-block ul {
  margin: 10px 0 18px 1.2em;
  color: var(--ink-soft);
}

.hana-block li {
  margin-bottom: 8px;
}

/* media layouts */
.hana-split {
  display: grid;
  gap: 22px;
  align-items: center;
}

@media (min-width: 860px) {
  .hana-split {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hana-split.is-flip {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .hana-split.is-flip .hana-shot {
    order: -1;
  }
}

.hana-shot {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  background: #fff;
}

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

.hana-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(20, 37, 46, 0.18));
}

.hana-glass {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.hana-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .hana-grid.is-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .hana-grid.is-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hana-tile {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(20, 37, 46, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.hana-tile img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.hana-tile-body {
  padding: 14px 14px 18px;
}

.hana-tile-body h3 {
  margin-top: 0;
  font-size: 1.02rem;
  color: var(--ink);
}

.hana-tile-body p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.hana-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(232, 93, 117, 0.15), rgba(47, 158, 143, 0.15));
  color: var(--rose-deep);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hana-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hana-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hana-btn:hover {
  transform: translateY(-2px);
}

.hana-btn-fill {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(232, 93, 117, 0.35);
}

.hana-btn-line {
  background: #fff;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}

.hana-quote {
  border-left: 4px solid var(--mint);
  padding: 8px 0 8px 16px;
  margin: 18px 0;
  color: var(--ink);
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 1.15rem;
}

.hana-crumb {
  width: min(100% - 32px, var(--max));
  margin: 18px auto 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

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

.hana-crumb span {
  color: var(--rose);
}

.hana-legal {
  width: min(100% - 32px, 820px);
  margin: 24px auto 80px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px 36px;
  backdrop-filter: blur(10px);
}

.hana-legal h1 {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 8px;
}

.hana-legal .hana-meta {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.hana-legal h2 {
  font-size: 1.2rem;
  margin: 26px 0 10px;
  color: var(--ink);
}

.hana-legal p,
.hana-legal li {
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.hana-legal ul {
  margin-left: 1.2em;
  margin-bottom: 14px;
}

.hana-error {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px 80px;
}

.hana-error h1 {
  font-family: "ZCOOL XiaoWei", serif;
  font-size: clamp(2.4rem, 10vw, 4.5rem);
  background: linear-gradient(135deg, var(--rose), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.hana-error p {
  margin: 14px auto 22px;
  max-width: 28em;
  color: var(--ink-soft);
}

.hana-foot {
  border-top: 1px solid var(--line);
  background: rgba(20, 37, 46, 0.94);
  color: rgba(255, 255, 255, 0.78);
  padding: 42px 0 28px;
}

.hana-foot a {
  color: #fff;
}

.hana-foot-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto 24px;
  display: grid;
  gap: 22px;
}

@media (min-width: 720px) {
  .hana-foot-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.hana-foot h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 10px;
}

.hana-foot p,
.hana-foot li {
  font-size: 0.9rem;
  line-height: 1.7;
}

.hana-foot ul {
  list-style: none;
}

.hana-foot li {
  margin-bottom: 6px;
}

.hana-copy {
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.7;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  padding-top: 16px;
}

.hana-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.hana-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 18px;
  min-height: 180px;
  max-height: 420px;
}

.hana-mosaic .tall {
  grid-row: span 2;
  min-height: 380px;
}

@media (max-width: 700px) {
  .hana-mosaic {
    grid-template-columns: 1fr;
  }

  .hana-mosaic .tall {
    grid-row: auto;
    min-height: 280px;
  }
}

.hana-timeline {
  position: relative;
  padding-left: 22px;
}

.hana-timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--rose), var(--mint));
}

.hana-step {
  position: relative;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 14px;
}

.hana-step::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(232, 93, 117, 0.2);
}

body.has-stick {
  padding-top: 92px;
}

@media (min-width: 900px) {
  body.has-stick {
    padding-top: 86px;
  }
}

body.has-stick .hana-main,
body.has-stick .hana-legal,
body.has-stick .hana-error {
  scroll-margin-top: 160px;
}
