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

:root {
  --petal-ink: #0c2340;
  --petal-mist: #eef3f8;
  --petal-paper: #f7fafc;
  --petal-rose: #ff4d6d;
  --petal-rose-deep: #d63357;
  --petal-jade: #2bbbad;
  --petal-jade-deep: #1a8f84;
  --petal-gold: #f0b429;
  --petal-line: rgba(12, 35, 64, 0.1);
  --petal-glass: rgba(255, 255, 255, 0.72);
  --petal-shadow: 0 18px 48px rgba(12, 35, 64, 0.12);
  --petal-radius: 22px;
  --petal-max: 1080px;
  --petal-nav-h: 64px;
  --petal-promo-gap: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans SC', sans-serif;
  color: var(--petal-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 77, 109, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(43, 187, 173, 0.18), transparent 50%),
    linear-gradient(180deg, #f4f8fc 0%, var(--petal-mist) 40%, #e8eef5 100%);
  line-height: 1.85;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

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

.petal-brand {
  font-family: 'ZCOOL QingKe HuangYou', cursive;
  letter-spacing: 0.04em;
}

/* Promo strip */
.petal-promo {
  background: linear-gradient(90deg, rgba(12, 35, 64, 0.95), rgba(26, 143, 132, 0.92));
  padding: 10px 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.petal-promo .petal-ads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  padding: 4px 12px 8px;
}

.petal-promo .petal-ads figure {
  margin: 0;
  width: 68px;
  text-align: center;
}

.petal-promo .petal-ads img {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.petal-promo .petal-ads .caption {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav */
.petal-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: var(--petal-glass);
  border-bottom: 1px solid var(--petal-line);
  height: var(--petal-nav-h);
}

.petal-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.petal-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--petal-ink);
}

.petal-logo-link img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(255, 77, 109, 0.28);
}

.petal-logo-link span {
  font-size: 1.45rem;
  font-weight: 400;
}

.petal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.petal-menu a {
  text-decoration: none;
  color: var(--petal-ink);
  opacity: 0.82;
  font-weight: 500;
}

.petal-menu a:hover,
.petal-menu a.is-on {
  color: var(--petal-rose);
  opacity: 1;
}

.petal-burger {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.petal-burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--petal-ink);
  border-radius: 2px;
}

/* Sticky download dock */
.petal-dock {
  position: sticky;
  top: var(--petal-nav-h);
  z-index: 35;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
  background: rgba(247, 250, 252, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--petal-line);
  box-shadow: 0 10px 30px rgba(12, 35, 64, 0.08);
}

.petal-dock.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.petal-dock-inner {
  padding: 10px 0 8px;
}

.petal-dock-label {
  font-size: 12px;
  color: rgba(12, 35, 64, 0.55);
  margin: 0 0 8px;
  text-align: center;
}

.petal-dock-ads {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
  justify-items: center;
  max-width: var(--petal-max);
  margin: 0 auto;
  padding: 0 12px 6px;
}

.petal-dock-ads figure {
  margin: 0;
  width: 100%;
  max-width: 72px;
  text-align: center;
}

.petal-dock-ads img {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(12, 35, 64, 0.14);
}

.petal-dock-ads .caption {
  font-size: 11px;
  margin-top: 4px;
  color: rgba(12, 35, 64, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 900px) {
  .petal-dock-ads {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

/* Hero */
.petal-hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  padding: 48px 0 56px;
  overflow: hidden;
}

.petal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(12, 35, 64, 0.78) 0%, rgba(12, 35, 64, 0.35) 45%, rgba(43, 187, 173, 0.25) 100%),
    url('anime-portal-home.jpg') center / cover no-repeat;
  transform: scale(1.04);
  animation: petal-drift 18s ease-in-out infinite alternate;
  z-index: -2;
}

.petal-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(to top, var(--petal-mist), transparent);
  z-index: -1;
}

@keyframes petal-drift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.1) translateY(-12px); }
}

.petal-hero-panel {
  color: #fff;
  max-width: 720px;
  animation: petal-rise 0.9s ease both;
}

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

.petal-hero-panel .petal-brand {
  font-size: clamp(2.8rem, 10vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 12px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.petal-hero-panel h1 {
  font-size: clamp(1.15rem, 3.6vw, 1.55rem);
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.45;
}

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

/* Breadcrumb */
.petal-crumb {
  padding: 18px 0 0;
  font-size: 0.88rem;
  color: rgba(12, 35, 64, 0.6);
}

.petal-crumb a {
  color: inherit;
  text-decoration: none;
}

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

.petal-crumb span {
  margin: 0 6px;
  opacity: 0.45;
}

/* Sections */
.petal-section {
  padding: 42px 0;
}

.petal-section h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  margin: 0 0 14px;
  line-height: 1.35;
}

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

.petal-lead {
  font-size: 1.05rem;
  color: rgba(12, 35, 64, 0.78);
  margin: 0 0 18px;
}

.petal-prose p {
  margin: 0 0 1.05em;
  text-align: justify;
  hyphens: auto;
}

.petal-prose p:last-child {
  margin-bottom: 0;
}

/* Unique layouts */
.petal-split {
  display: grid;
  gap: 24px;
  align-items: center;
}

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

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

  .petal-split.is-flip .petal-media {
    order: -1;
  }
}

.petal-media {
  position: relative;
  border-radius: var(--petal-radius);
  overflow: hidden;
  box-shadow: var(--petal-shadow);
  background: #fff;
  animation: petal-float 5.5s ease-in-out infinite;
}

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

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

.petal-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

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

.petal-mosaic {
  display: grid;
  gap: 16px;
}

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

.petal-tile {
  background: #fff;
  border-radius: 18px;
  padding: 20px 18px;
  border: 1px solid var(--petal-line);
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.petal-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(12, 35, 64, 0.12);
}

.petal-tile h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.petal-tile p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(12, 35, 64, 0.75);
}

.petal-tile .petal-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--petal-rose), #ff8a5b);
}

.petal-tile:nth-child(2) .petal-mark {
  background: linear-gradient(135deg, var(--petal-jade), #5eead4);
}

.petal-tile:nth-child(3) .petal-mark {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.petal-tile:nth-child(4) .petal-mark {
  background: linear-gradient(135deg, var(--petal-gold), #f59e0b);
}

.petal-tile:nth-child(5) .petal-mark {
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
}

.petal-tile:nth-child(6) .petal-mark {
  background: linear-gradient(135deg, #0c2340, #334155);
}

.petal-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.petal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 77, 109, 0.1);
  color: var(--petal-rose-deep);
  font-size: 0.86rem;
  font-weight: 500;
}

.petal-chip.is-jade {
  background: rgba(43, 187, 173, 0.14);
  color: var(--petal-jade-deep);
}

.petal-chip.is-navy {
  background: rgba(12, 35, 64, 0.08);
  color: var(--petal-ink);
}

.petal-quote {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(12, 35, 64, 0.94), rgba(26, 143, 132, 0.88));
  color: #fff;
  box-shadow: var(--petal-shadow);
}

.petal-quote p {
  margin: 0;
  font-size: 1.05rem;
}

.petal-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 800px) {
  .petal-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.petal-gallery figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(12, 35, 64, 0.1);
}

.petal-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  transition: transform 0.45s ease;
}

.petal-gallery figure:hover img {
  transform: scale(1.06);
}

.petal-gallery figcaption {
  padding: 8px 10px 10px;
  font-size: 0.8rem;
  color: rgba(12, 35, 64, 0.65);
}

.petal-timeline {
  position: relative;
  padding-left: 22px;
  margin: 20px 0;
}

.petal-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--petal-rose), var(--petal-jade));
  border-radius: 2px;
}

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

.petal-step::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--petal-rose);
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.2);
}

.petal-cta-band {
  margin: 36px 0;
  padding: 28px 22px;
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(255, 77, 109, 0.12), rgba(43, 187, 173, 0.14)),
    #fff;
  border: 1px solid var(--petal-line);
  text-align: center;
}

.petal-cta-band h2 {
  margin-bottom: 8px;
}

.petal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--petal-rose), #ff7a59);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(255, 77, 109, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.petal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 77, 109, 0.42);
}

.petal-btn.is-jade {
  background: linear-gradient(135deg, var(--petal-jade-deep), var(--petal-jade));
  box-shadow: 0 12px 28px rgba(26, 143, 132, 0.35);
}

.petal-faq details {
  background: #fff;
  border: 1px solid var(--petal-line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.petal-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.petal-faq p {
  margin: 10px 0 0;
  color: rgba(12, 35, 64, 0.78);
}

/* Legal pages */
.petal-legal {
  padding: 28px 0 56px;
}

.petal-legal h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 8px 0 16px;
}

.petal-legal .petal-glass-card {
  padding: 28px 22px;
}

.petal-legal h2 {
  font-size: 1.25rem;
  margin: 28px 0 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--petal-line);
}

.petal-legal h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

/* Error pages */
.petal-error {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.petal-error-code {
  font-family: 'ZCOOL QingKe HuangYou', cursive;
  font-size: clamp(5rem, 18vw, 8rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--petal-rose), var(--petal-jade));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  animation: petal-pulse 2.4s ease-in-out infinite;
}

@keyframes petal-pulse {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.08); transform: scale(1.03); }
}

.petal-error h1 {
  margin: 8px 0 12px;
  font-size: 1.4rem;
}

.petal-error p {
  margin: 0 auto 18px;
  max-width: 28em;
  color: rgba(12, 35, 64, 0.72);
}

/* Footer */
.petal-foot {
  margin-top: 40px;
  padding: 36px 0 28px;
  background: linear-gradient(180deg, transparent, rgba(12, 35, 64, 0.04));
  border-top: 1px solid var(--petal-line);
}

.petal-foot-grid {
  display: grid;
  gap: 22px;
}

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

.petal-foot h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.petal-foot p,
.petal-foot li {
  font-size: 0.92rem;
  color: rgba(12, 35, 64, 0.7);
}

.petal-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.petal-foot a {
  text-decoration: none;
  color: inherit;
}

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

.petal-copy {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--petal-line);
  font-size: 0.84rem;
  color: rgba(12, 35, 64, 0.55);
  text-align: center;
}

/* Mobile nav */
@media (max-width: 760px) {
  .petal-burger {
    display: inline-block;
  }

  .petal-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--petal-nav-h);
    background: rgba(247, 250, 252, 0.98);
    border-bottom: 1px solid var(--petal-line);
    padding: 12px 16px 16px;
    flex-direction: column;
    gap: 10px;
  }

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

  .petal-nav {
    position: sticky;
  }

  .petal-nav-inner {
    position: relative;
  }
}

/* Utility */
.petal-muted {
  color: rgba(12, 35, 64, 0.68);
}

.petal-center {
  text-align: center;
}

.petal-mt {
  margin-top: 28px;
}

.petal-shine {
  position: relative;
  overflow: hidden;
}

.petal-shine::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -30%;
  width: 40%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(18deg);
  animation: petal-shine 4.8s ease-in-out infinite;
}

@keyframes petal-shine {
  0% { left: -40%; }
  55%, 100% { left: 120%; }
}
