@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=ZCOOL+XiaoWei&display=swap');

:root {
  --ink: #15202b;
  --ink-soft: #3d4f5f;
  --mist: #f3f7fa;
  --paper: #ffffff;
  --coral: #ff6a5c;
  --coral-deep: #e84a3c;
  --teal: #1aa6a0;
  --teal-deep: #0e7f7a;
  --sky: #7ec8e3;
  --dawn: #ffe3d4;
  --line: rgba(21, 32, 43, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 48px rgba(21, 32, 43, 0.08);
  --radius: 22px;
  --max: 1080px;
  --promo-h: 52px;
  --nav-h: 64px;
  --stick-h: 76px;
  --font-brand: "ZCOOL XiaoWei", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffe8dc 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #d9f3f1 0%, transparent 50%),
    linear-gradient(180deg, #f7fbfd 0%, var(--mist) 40%, #eef5f8 100%);
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-deep);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--coral-deep);
}

.prism-wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Top promo ads (loaded from ads JSON) */
.prism-promo {
  position: relative;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(26, 166, 160, 0.08), rgba(255, 106, 92, 0.08));
  padding: 12px 0 6px;
}

.prism-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 8px;
  margin: 0;
}

.prism-ads > div {
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prism-ads a {
  text-decoration: none;
  border-radius: 15px;
}

.prism-ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  background: #fff;
}

.prism-ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.prism-ads .prism-ad-cap {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Nav — no download CTAs */
.prism-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
}

.prism-nav__bar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.prism-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink) !important;
  font-family: var(--font-brand);
  font-size: 22px;
  letter-spacing: 0.04em;
}

.prism-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(26, 166, 160, 0.25);
}

.prism-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  font-size: 14px;
}

.prism-menu a {
  color: var(--ink-soft);
  padding: 4px 2px;
}

.prism-menu a:hover,
.prism-menu a.is-on {
  color: var(--teal-deep);
}

.prism-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.prism-burger span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Sticky floating ads dock (scroll after nav) */
.prism-dock {
  position: sticky;
  top: var(--nav-h);
  z-index: 45;
  display: none;
  background: rgba(243, 247, 250, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.prism-dock.is-show {
  display: block;
  animation: prism-dock-in 0.28s ease;
}

@keyframes prism-dock-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prism-dock__grid {
  width: min(100% - 16px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
  justify-items: center;
}

.prism-dock__grid a {
  text-decoration: none;
  width: 100%;
  max-width: 72px;
  text-align: center;
  color: var(--ink-soft);
}

.prism-dock__grid img {
  width: 52px;
  height: 52px;
  margin-inline: auto;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(21, 32, 43, 0.12);
}

.prism-dock__grid span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #667;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero */
.prism-hero {
  position: relative;
  padding: 48px 0 28px;
  overflow: hidden;
}

.prism-hero__glow {
  position: absolute;
  inset: auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
  animation: prism-float 9s ease-in-out infinite;
}

.prism-hero__glow--a {
  background: #ffc4b8;
  top: 10%;
  left: -40px;
}

.prism-hero__glow--b {
  background: #9fe0dc;
  top: 30%;
  right: -60px;
  animation-delay: -3s;
}

.prism-hero__panel {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 36px 28px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.prism-kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--teal-deep);
  margin-bottom: 12px;
}

.prism-hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.prism-hero__lead {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 36em;
}

.prism-hero__visual {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(21, 32, 43, 0.16);
  transform: rotate(-1.5deg);
  animation: prism-rise 1.1s ease both;
}

.prism-hero__visual img {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

/* Breadcrumb */
.prism-crumb {
  padding: 18px 0 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.prism-crumb a {
  color: var(--ink-soft);
}

.prism-crumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* Sections */
.prism-section {
  padding: 42px 0;
}

.prism-section h2 {
  font-family: var(--font-brand);
  font-size: clamp(24px, 4vw, 34px);
  margin-bottom: 14px;
  line-height: 1.4;
}

.prism-section h3 {
  font-size: 20px;
  margin: 22px 0 10px;
  color: var(--ink);
}

.prism-section p {
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.prism-lead {
  font-size: 16px;
  color: var(--ink);
}

/* Layout blocks */
.prism-split {
  display: grid;
  gap: 24px;
  align-items: center;
  margin: 28px 0;
}

.prism-split--flip .prism-shot {
  order: -1;
}

.prism-shot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  animation: prism-rise 0.9s ease both;
}

.prism-shot img {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
}

.prism-cardrow {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.prism-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prism-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(21, 32, 43, 0.12);
}

.prism-card h3 {
  margin-top: 0;
  font-family: var(--font-brand);
}

.prism-card img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 14px;
  aspect-ratio: 9/16;
  max-height: 420px;
  object-fit: cover;
  object-position: top;
}

.prism-mosaic {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.prism-mosaic figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.prism-mosaic img {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 480px;
  object-fit: cover;
  object-position: top;
}

.prism-mosaic figcaption {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.prism-band {
  margin: 32px 0;
  padding: 28px 22px;
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(26, 166, 160, 0.12), rgba(255, 106, 92, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.prism-band h2 {
  margin-bottom: 10px;
}

.prism-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(14, 127, 122, 0.28);
}

.prism-cta:hover {
  opacity: 0.94;
  color: #fff !important;
}

.prism-cta--coral {
  background: linear-gradient(135deg, var(--coral), #ff8f6b);
  box-shadow: 0 12px 28px rgba(255, 106, 92, 0.28);
}

.prism-list {
  margin: 12px 0 20px 1.2em;
  color: var(--ink-soft);
}

.prism-list li {
  margin-bottom: 8px;
}

.prism-quote {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--coral);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0 18px 18px 0;
  font-family: var(--font-brand);
  font-size: 18px;
  color: var(--ink);
}

.prism-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
  font-size: 14px;
}

/* Legal pages */
.prism-legal {
  padding: 20px 0 60px;
}

.prism-legal article {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
}

.prism-legal h1 {
  font-family: var(--font-brand);
  font-size: clamp(26px, 5vw, 36px);
  margin-bottom: 12px;
}

/* Error pages */
.prism-error {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 40px 0 80px;
  text-align: center;
}

.prism-error__box {
  width: min(100%, 560px);
  padding: 40px 24px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.prism-error__code {
  font-family: var(--font-brand);
  font-size: 72px;
  line-height: 1;
  background: linear-gradient(135deg, var(--coral), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.prism-error h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.prism-error p {
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* Footer */
.prism-foot {
  margin-top: 40px;
  padding: 36px 0 100px;
  background: #122028;
  color: rgba(255, 255, 255, 0.78);
}

.prism-foot a {
  color: #9fe0dc;
}

.prism-foot__grid {
  display: grid;
  gap: 22px;
}

.prism-foot h3 {
  font-family: var(--font-brand);
  color: #fff;
  margin-bottom: 10px;
  font-size: 18px;
}

.prism-foot ul {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.prism-foot__copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  opacity: 0.75;
}

/* Animations */
@keyframes prism-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes prism-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prism-reveal {
  animation: prism-rise 0.8s ease both;
}

/* Responsive */
@media (min-width: 768px) {
  .prism-hero__panel {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 44px 40px;
  }

  .prism-split {
    grid-template-columns: 1fr 1fr;
  }

  .prism-split--flip .prism-shot {
    order: 0;
  }

  .prism-split--flip .prism-copy {
    order: -1;
  }

  .prism-cardrow {
    grid-template-columns: repeat(3, 1fr);
  }

  .prism-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  .prism-foot__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .prism-legal article {
    padding: 40px 42px;
  }
}

@media (max-width: 767px) {
  .prism-burger {
    display: inline-flex;
  }

  .prism-menu {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--nav-h) + 8px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    flex-direction: column;
    box-shadow: var(--shadow);
  }

  .prism-menu.is-open {
    display: flex;
  }

}

@media (min-width: 900px) {
  .prism-dock__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}
