@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=ZCOOL+XiaoWei&display=swap");

:root {
  --ink: #1e2a32;
  --ink-soft: #3d4f5a;
  --paper: #f6f1e8;
  --paper-deep: #ebe3d6;
  --azure: #3aa7b8;
  --azure-deep: #1f7f90;
  --peach: #ef8f7c;
  --citrus: #e2b245;
  --mist: rgba(58, 167, 184, 0.12);
  --glass: rgba(246, 241, 232, 0.82);
  --line: rgba(30, 42, 50, 0.12);
  --shadow: 0 18px 40px rgba(31, 55, 64, 0.14);
  --radius: 18px;
  --header-h: 64px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Serif SC", "Songti SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.az-body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(58, 167, 184, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(239, 143, 124, 0.18), transparent 50%),
    linear-gradient(180deg, #f8f4ec 0%, #f1ebe1 45%, #eef7f8 100%);
  line-height: 1.85;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--azure-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--peach);
}

.az-container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.az-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: var(--glass);
  border-bottom: 1px solid var(--line);
}

.az-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.az-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.az-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(31, 127, 144, 0.25);
}

.az-brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.az-nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: inherit;
  cursor: pointer;
}

.az-nav-panel {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  align-items: center;
}

.az-nav-panel a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 2px;
  position: relative;
}

.az-nav-panel a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--azure), var(--peach));
  transition: right 0.25s ease;
}

.az-nav-panel a:hover::after,
.az-nav-panel a.is-active::after {
  right: 0;
}

/* Top promo ads */
.az-promo-top {
  padding: 12px 0 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
}

.az-ads-grid,
#ads,
#az-top-ads,
#az-sticky-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 8px;
  background: transparent;
}

.az-ad-item,
#ads > div,
#az-top-ads > div,
#az-sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

.az-ads-grid img,
#ads img,
#az-top-ads img,
#az-sticky-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;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

.az-ads-grid a,
#ads a,
#az-top-ads a,
#az-sticky-ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

.az-ads-grid img:hover,
#ads img:hover,
#az-top-ads img:hover,
#az-sticky-ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

.az-ad-caption,
#ads .caption,
#ads figcaption,
#az-top-ads figcaption,
#az-sticky-ads figcaption {
  height: 15px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #666;
  text-align: center;
  margin-top: 4px;
}

/* Sticky download rail */
.az-sticky-rail {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  z-index: 90;
  background: rgba(246, 241, 232, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(30, 42, 50, 0.08);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  padding: 8px 0 10px;
}

.az-sticky-rail.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.az-sticky-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0 0 6px;
  text-align: center;
  letter-spacing: 0.08em;
}

#az-sticky-ads {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  gap: 8px 0;
}

#az-sticky-ads > div {
  width: 25%;
  max-width: none;
}

@media (min-width: 900px) {
  #az-sticky-ads > div {
    width: 12.5%;
  }
}

body.az-rail-active .az-main {
  padding-top: 110px;
}

/* Hero — brand first, no download CTA */
.az-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 28px;
}

.az-hero-grid {
  display: grid;
  gap: 28px;
  align-items: end;
}

.az-hero-kicker {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--azure-deep);
  margin-bottom: 10px;
}

.az-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.25;
  margin: 0 0 14px;
  background: linear-gradient(120deg, var(--ink) 20%, var(--azure-deep) 70%, var(--peach));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.az-hero-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0;
}

.az-hero-ornament {
  height: 4px;
  width: 88px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--azure), var(--citrus), var(--peach));
  animation: az-grow 1.2s ease both;
}

@keyframes az-grow {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 88px;
    opacity: 1;
  }
}

.az-wave {
  height: 48px;
  background:
    radial-gradient(circle at 20% 0, transparent 42%, var(--paper-deep) 43%) 0 0 / 40px 48px repeat-x,
    radial-gradient(circle at 20% 100%, var(--paper-deep) 42%, transparent 43%) 20px 0 / 40px 48px repeat-x;
  opacity: 0.55;
}

/* Sections */
.az-section {
  padding: 36px 0;
}

.az-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.95rem);
  margin: 0 0 14px;
  line-height: 1.35;
}

.az-section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 28px 0 10px;
  color: var(--azure-deep);
}

.az-section p {
  margin: 0 0 1em;
  color: var(--ink);
  font-size: 1.02rem;
}

.az-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* Zigzag media blocks */
.az-zig {
  display: grid;
  gap: 22px;
  align-items: center;
  margin: 28px 0;
}

.az-media-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  transform: rotate(-1.2deg);
  animation: az-float 5.5s ease-in-out infinite;
}

.az-media-frame:nth-child(even),
.az-zig:nth-of-type(even) .az-media-frame {
  transform: rotate(1.4deg);
}

.az-media-frame img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
}

.az-media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(58, 167, 184, 0.12), transparent 40%, rgba(239, 143, 124, 0.1));
}

@keyframes az-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

/* Card mosaic */
.az-mosaic {
  display: grid;
  gap: 14px;
  margin: 22px 0 8px;
}

.az-tile {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: 0 10px 28px rgba(31, 55, 64, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.az-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.az-tile h3 {
  margin-top: 0;
  font-size: 1.12rem;
}

.az-tile p {
  margin-bottom: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.az-tile-accent {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--azure), var(--peach));
}

/* Ribbon quote */
.az-ribbon {
  margin: 30px 0;
  padding: 22px 24px;
  border-radius: 0 22px 22px 0;
  background: linear-gradient(105deg, rgba(58, 167, 184, 0.18), rgba(226, 178, 69, 0.12));
  border-left: 5px solid var(--azure);
  font-size: 1.05rem;
}

/* Breadcrumb */
.az-breadcrumb {
  padding: 16px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.az-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.az-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #9aa7af;
}

.az-breadcrumb a {
  text-decoration: none;
}

/* Legal / subpage */
.az-page-hero {
  padding: 28px 0 10px;
}

.az-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  margin: 8px 0 12px;
}

.az-prose {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 20px;
  margin: 18px 0 40px;
}

.az-prose h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 1.6em 0 0.55em;
  color: var(--azure-deep);
}

.az-prose h2:first-child {
  margin-top: 0;
}

.az-prose ul {
  padding-left: 1.2em;
}

.az-prose li {
  margin-bottom: 0.45em;
}

/* Error pages */
.az-error {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

.az-error h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  margin: 0 0 10px;
}

.az-error p {
  color: var(--ink-soft);
  max-width: 28em;
  margin: 0 auto 22px;
}

.az-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--azure), var(--azure-deep));
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(31, 127, 144, 0.28);
}

/* Dy page */
.az-dy-page {
  background: linear-gradient(180deg, #f8f4ec, #e8f5f7);
}

.az-dy-wrap {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 36px 0 60px;
}

.az-dy-title {
  font-family: var(--font-display);
  text-align: center;
  margin: 0 0 10px;
}

.az-dy-desc {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* Footer */
.az-footer {
  margin-top: 20px;
  padding: 34px 0 42px;
  background: linear-gradient(180deg, transparent, rgba(30, 42, 50, 0.06));
  border-top: 1px solid var(--line);
}

.az-footer-grid {
  display: grid;
  gap: 18px;
}

.az-footer h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.az-footer a {
  display: inline-block;
  margin-right: 12px;
  margin-bottom: 6px;
  text-decoration: none;
  color: var(--ink-soft);
}

.az-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.az-links-inline {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--mist);
  font-size: 0.95rem;
}

.az-fade-up {
  animation: az-up 0.8s ease both;
}

@keyframes az-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .az-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .az-zig {
    grid-template-columns: 1fr 1.15fr;
  }

  .az-zig.is-reverse {
    grid-template-columns: 1.15fr 1fr;
  }

  .az-zig.is-reverse .az-media-frame {
    order: 2;
  }

  .az-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  .az-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 759px) {
  .az-nav-toggle {
    display: inline-flex;
  }

  .az-nav-panel {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--header-h) + 4px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
  }

  .az-nav-panel.is-open {
    display: flex;
  }

  .az-header {
    position: sticky;
  }

  .az-header-inner {
    position: relative;
  }

  .az-mosaic {
    grid-template-columns: 1fr;
  }
}
