/* pi-cac.cyou — Dawn Stream visual system */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --ink: #1c2430;
  --ink-soft: #4a5568;
  --paper: #f3f7fb;
  --paper-deep: #e8eef5;
  --coral: #ff5a6e;
  --coral-deep: #e83d55;
  --mint: #2bbbad;
  --mint-soft: #d5f5f1;
  --sun: #ffc24b;
  --line: rgba(28, 36, 48, 0.1);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 40px rgba(28, 36, 48, 0.08);
  --radius-lg: 28px 8px 28px 8px;
  --radius-sm: 14px;
  --header-h: 58px;
  --promo-pad: 8px;
  --max: 1080px;
  --font-display: 'ZCOOL XiaoWei', 'Noto Sans SC', serif;
  --font-body: 'Noto Sans SC', system-ui, 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%, rgba(255, 90, 110, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(43, 187, 173, 0.18), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(255, 194, 75, 0.12), transparent 45%),
    var(--paper);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: calc(var(--header-h) + var(--float-dl-h, 0px));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--coral-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--mint);
}

.petal-skip {
  position: absolute;
  left: -9999px;
}

.petal-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 9999;
  background: #fff;
  padding: 8px 12px;
}

/* —— Promo ads (above header) —— */
.petal-promo {
  background: linear-gradient(180deg, #fff 0%, rgba(243, 247, 251, 0.9) 100%);
  border-bottom: 1px solid var(--line);
  padding: var(--promo-pad) 10px;
}

/* Promo + sticky share grid layout */
.petal-ads-grid,
#ads,
#sticky-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 10px;
  background: transparent;
  margin: 4px auto;
  max-width: var(--max);
}

.petal-ads-grid > div,
#ads > div,
#sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 10px);
  max-width: 72px;
  box-sizing: border-box;
  text-align: center;
}

@media (min-width: 900px) {
  .petal-ads-grid > div,
  #ads > div,
  #sticky-ads > div {
    width: calc(12.5% - 10px);
  }
}

.petal-ads-grid img,
#ads img,
#sticky-ads img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  margin: 0 auto;
  border: none;
  background: #fff;
}

#ads img {
  width: 65px;
  height: 65px;
  border-radius: 18px;
}

.petal-ads-grid figure,
#ads figure,
#sticky-ads figure {
  margin: 0;
  padding: 0;
}

.petal-ads-grid img:hover,
#ads img:hover,
#sticky-ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.petal-ads-grid .caption,
#ads .caption,
#sticky-ads .caption {
  display: block;
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* fixed float download strip below header */
.petal-sticky-dl {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 8px 10px 6px;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.petal-sticky-dl.is-on {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.petal-sticky-spacer {
  display: none;
}

/* —— Header (fixed) —— */
.petal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.petal-header__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.petal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.petal-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.petal-brand span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.petal-nav {
  display: none;
  gap: 18px;
  align-items: center;
}

.petal-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.petal-nav a:hover,
.petal-nav a.is-active {
  color: var(--coral-deep);
}

.petal-menu-btn {
  border: 1px solid var(--line);
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.petal-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.petal-menu-btn span::before,
.petal-menu-btn span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.petal-menu-btn span::before { top: -6px; }
.petal-menu-btn span::after { top: 6px; }

.petal-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 1001;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 8px 16px 14px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  box-shadow: 0 16px 36px rgba(28, 36, 48, 0.14);
}

.petal-drawer.is-open {
  display: block !important;
}

.petal-drawer a {
  display: block;
  padding: 12px 4px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}

.petal-drawer a:last-child {
  border-bottom: none;
}

.petal-menu-btn[aria-expanded='true'] {
  border-color: rgba(255, 90, 110, 0.45);
  background: #fff5f6;
}

@media (min-width: 860px) {
  .petal-nav { display: flex; }
  .petal-menu-btn { display: none; }
  .petal-drawer,
  .petal-drawer.is-open {
    display: none !important;
  }
}

/* —— Layout shells —— */
.petal-wrap {
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
}

.petal-crumb {
  margin: 18px auto 8px;
  width: min(100% - 28px, var(--max));
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.petal-crumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.petal-crumb a:hover { color: var(--coral-deep); }

/* Hero — diagonal brand plane */
.petal-hero {
  position: relative;
  overflow: hidden;
  margin: 18px auto 28px;
  width: min(100% - 28px, var(--max));
  min-height: 72vh;
  border-radius: 32px 12px 36px 14px;
  background:
    linear-gradient(135deg, rgba(28, 36, 48, 0.55), rgba(43, 187, 173, 0.25)),
    url('anime-browse.jpg') center/cover no-repeat;
  color: #fff;
  display: grid;
  align-items: end;
  padding: 28px 22px 34px;
  box-shadow: var(--shadow);
  animation: petalRise 0.9s ease both;
}

.petal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(28, 36, 48, 0.88) 0%, rgba(28, 36, 48, 0.45) 48%, rgba(255, 90, 110, 0.25) 100%);
  pointer-events: none;
}

.petal-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.petal-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 3.8rem);
  line-height: 1.15;
  margin: 0 0 12px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.petal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 400;
  line-height: 1.45;
  margin: 0 0 12px;
}

.petal-hero p {
  margin: 0;
  font-size: 0.98rem;
  opacity: 0.95;
  max-width: 28rem;
}

/* Sections */
.petal-section {
  margin: 0 auto 42px;
  width: min(100% - 28px, var(--max));
  animation: petalRise 0.7s ease both;
}

.petal-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2rem);
  margin: 0 0 14px;
  line-height: 1.35;
}

.petal-section h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin: 26px 0 10px;
  color: var(--ink);
}

.petal-section p {
  margin: 0 0 14px;
  color: var(--ink);
}

.petal-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.petal-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 700;
  margin-bottom: 8px;
}

/* Asymmetric media block */
.petal-split {
  display: grid;
  gap: 22px;
  align-items: center;
}

@media (min-width: 820px) {
  .petal-split {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .petal-split.is-flip {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .petal-split.is-flip .petal-shot { order: -1; }
}

.petal-shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  position: relative;
  transform: rotate(-1.2deg);
  transition: transform 0.35s ease;
}

.petal-shot:hover {
  transform: rotate(0deg) translateY(-4px);
}

.petal-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  max-height: 520px;
}

.petal-shot figcaption {
  padding: 10px 14px 12px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: #fff;
}

/* Cards — interaction containers */
.petal-deck {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

@media (min-width: 700px) {
  .petal-deck {
    grid-template-columns: repeat(3, 1fr);
  }
}

.petal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px 10px 22px 10px;
  padding: 18px 16px 16px;
  box-shadow: 0 10px 28px rgba(28, 36, 48, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.petal-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 90, 110, 0.35);
}

.petal-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.petal-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.petal-card a {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  text-decoration: none;
}

/* Ribbon strip */
.petal-ribbon {
  margin: 36px auto;
  width: min(100% - 28px, var(--max));
  padding: 22px 20px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 90, 110, 0.12), rgba(43, 187, 173, 0.14) 55%, rgba(255, 194, 75, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.petal-ribbon p {
  margin: 0;
}

/* Timeline rail */
.petal-rail {
  position: relative;
  padding-left: 22px;
  margin: 18px 0;
}

.petal-rail::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--coral), var(--mint));
  border-radius: 2px;
}

.petal-rail article {
  position: relative;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.petal-rail article::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 90, 110, 0.2);
}

.petal-rail h3 {
  margin: 0 0 6px;
}

.petal-rail p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Text panel */
.petal-panel {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 22px 18px;
  box-shadow: var(--shadow);
}

.petal-panel + .petal-panel {
  margin-top: 16px;
}

/* Legal pages */
.petal-legal {
  margin: 12px auto 48px;
  width: min(100% - 28px, var(--max));
}

.petal-legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  margin: 0 0 16px;
}

.petal-legal h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 28px 0 10px;
}

.petal-legal p,
.petal-legal li {
  color: var(--ink-soft);
}

.petal-legal ul {
  padding-left: 1.2em;
}

/* Error pages */
.petal-error {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}

.petal-error h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  margin: 0 0 10px;
  color: var(--coral-deep);
}

.petal-error p {
  max-width: 28rem;
  margin: 0 auto 18px;
  color: var(--ink-soft);
}

.petal-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff !important;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(232, 61, 85, 0.28);
}

/* Footer */
.petal-footer {
  margin-top: 50px;
  padding: 36px 16px 28px;
  background: #1c2430;
  color: rgba(255, 255, 255, 0.82);
}

.petal-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

@media (min-width: 760px) {
  .petal-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.petal-footer h3 {
  font-family: var(--font-display);
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.15rem;
}

.petal-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  display: block;
  margin: 6px 0;
  font-size: 0.92rem;
}

.petal-footer a:hover {
  color: var(--sun);
}

.petal-footer__copy {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Motion */
@keyframes petalRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.petal-float {
  animation: petalFloat 5s ease-in-out infinite;
}

@keyframes petalFloat {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-8px) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
