:root {
  --sky: #3aa0e8;
  --sky-deep: #2b86cb;
  --sky-soft: #e8f5fc;
  --green: #5db36a;
  --pink: #ef7aa0;
  --orange: #f08a2e;
  --ink: #243447;
  --muted: #6b7a8c;
  --line: #e6eef5;
  --white: #ffffff;
  --paper: #f7fbfe;
  --font-display: "Fredoka", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

/* nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(42, 134, 203, 0.92);
  backdrop-filter: blur(10px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.nav-paw {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffe566;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08);
}

.nav-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 12px;
  opacity: 0.9;
}
.nav-name { font-weight: 800; font-size: 16px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.nav-links a:hover { opacity: 0.85; }

.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: #ffe566;
  color: #2a4a63 !important;
  font-weight: 800;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.nav-cta:hover { transform: translateY(-1px); }

/* hero — deeper blue field + paw prints + wave */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 12% 28%, rgba(255, 255, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255, 229, 102, 0.22), transparent 28%),
    linear-gradient(165deg, #2f8fd0 0%, #2478b5 48%, #1a5f96 100%);
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 100px;
}

/* white dog paws + cat paws — sparse spacing */
.hero-paws {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  animation: driftPaws 28s linear infinite;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cg transform='translate(48 48)'%3E%3Cellipse cx='32' cy='44' rx='13' ry='11' fill='%23fff'/%3E%3Ccircle cx='14' cy='24' r='7' fill='%23fff'/%3E%3Ccircle cx='26' cy='15' r='7.2' fill='%23fff'/%3E%3Ccircle cx='38' cy='15' r='7.2' fill='%23fff'/%3E%3Ccircle cx='50' cy='24' r='7' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cg transform='translate(58 58)'%3E%3Cellipse cx='32' cy='42' rx='12' ry='13' fill='%23fff'/%3E%3Cellipse cx='16' cy='22' rx='5.5' ry='7' fill='%23fff'/%3E%3Cellipse cx='26' cy='14' rx='5.5' ry='7' fill='%23fff'/%3E%3Cellipse cx='38' cy='14' rx='5.5' ry='7' fill='%23fff'/%3E%3Cellipse cx='48' cy='22' rx='5.5' ry='7' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 140px 140px, 160px 160px;
  background-position: 0 0, 90px 70px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.8s ease both;
}

.brand-en {
  font-family: var(--font-display);
  letter-spacing: 0.28em;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.92;
  margin-bottom: 14px;
}

.brand-zh {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 92px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-shadow: 0 8px 0 rgba(20, 80, 130, 0.18);
}

.hero-lead {
  max-width: 22em;
  margin: 0 auto 28px;
  font-size: clamp(15px, 2vw, 18px);
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  background: #ffe566;
  color: #24485f;
  box-shadow: 0 6px 0 rgba(20, 70, 110, 0.18);
}

.btn.soft {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 72px;
  display: block;
}

/* colorful quick tiles */
.quick {
  margin-top: -8px;
  padding: 8px 0 28px;
  background: var(--white);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tile {
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(40, 110, 160, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 132px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeUp 0.7s ease both;
}

.tile:nth-child(2) { animation-delay: 0.06s; }
.tile:nth-child(3) { animation-delay: 0.12s; }
.tile:nth-child(4) { animation-delay: 0.18s; }

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(40, 110, 160, 0.14);
}

.tile-tag {
  padding: 12px 14px 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.tile strong {
  display: block;
  padding: 6px 14px 14px;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
}

.tile > span:last-child {
  margin-top: auto;
  padding: 14px;
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
}

.tile-orange { background: #f08a2e; }
.tile-blue { background: #3a9ad8; }
.tile-yellow { background: #f0c41a; }
.tile-purple { background: #8b6bc9; }

/* 强制四格配色（防缓存旧 CSS 缺 yellow/purple） */
.quick-grid .tile:nth-child(1) { background: #f08a2e !important; }
.quick-grid .tile:nth-child(2) { background: #3a9ad8 !important; }
.quick-grid .tile:nth-child(3) { background: #f0c41a !important; }
.quick-grid .tile:nth-child(4) { background: #8b6bc9 !important; }

/* story */
.story {
  padding: 72px 0 40px;
  background: var(--white);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--sky-deep);
  font-weight: 700;
  margin-bottom: 12px;
}

.eyebrow.light { color: rgba(255, 255, 255, 0.9); }

.paw-badge {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #ffe566, #ffb457);
  color: #3a5a70;
  font-size: 11px;
}

.story h2,
.board h2,
.guide h2,
.miniapp h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--ink);
  max-width: 14em;
}

.story-text,
.board-lead,
.guide-lead,
.miniapp-text {
  color: var(--muted);
  font-size: 16px;
  max-width: 38em;
}

.story-shot {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: 0 18px 40px rgba(50, 120, 170, 0.16);
  border: 4px solid #fff;
  outline: 2px solid rgba(78, 176, 239, 0.25);
  animation: fadeUp 0.9s 0.1s ease both;
}

/* boards */
.board {
  padding: 36px 0 72px;
  background: var(--white);
}

.board-soft {
  background: var(--paper);
  padding-top: 64px;
}

/* 云养区 — 图二暖米底，突出三列白卡片 */
.board-care {
  background: #f3eee6;
  padding: 56px 0 80px;
}

.card-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* 云养卡片 — 参照图二：三列、图上角徽章、标题+标签 */
.pet-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pet-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.pet-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
}

.pet-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pet-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  backdrop-filter: blur(4px);
}

.pet-badge-ico {
  font-size: 13px;
  line-height: 1;
}

.badge-cat {
  background: rgba(255, 186, 140, 0.95);
  color: #7a3f12;
}

.badge-dog {
  background: rgba(160, 210, 255, 0.95);
  color: #1a4a7a;
}

.pet-body {
  padding: 18px 18px 20px;
}

.pet-body h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.3;
}

.pet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pet-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f0f0f0;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

.info-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(40, 110, 160, 0.07);
  transition: transform 0.22s ease;
}

.info-card:hover { transform: translateY(-3px); }

.info-card img {
  width: 100%;
  height: 170px;
  background: #eef6fb;
}

.info-body { padding: 14px 16px 16px; }
.info-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
}
.info-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.info-body span {
  display: inline-block;
  margin-top: 10px;
  color: var(--sky-deep);
  font-weight: 800;
  font-size: 13px;
}

.empty-note {
  grid-column: 1 / -1;
  color: var(--muted);
}

/* guide / fees like wanwan */
.guide {
  padding: 80px 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 229, 102, 0.18), transparent 35%),
    linear-gradient(160deg, #3aa0e8, #2f8fd6 55%, #277cba);
  color: var(--white);
}

.guide h2 { color: var(--white); }
.guide-lead { color: rgba(255, 255, 255, 0.9); margin-bottom: 28px; }

.fee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.fee {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(20, 70, 110, 0.18);
}

.fee header {
  padding: 14px 16px;
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
}

.fee p {
  padding: 16px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  min-height: 72px;
}

.fee-blue header { background: #4ea8e4; }
.fee-green header { background: var(--green); }
.fee-orange header { background: var(--orange); }
.fee-pink header { background: var(--pink); }

.rules {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 22px 24px;
}

.rules h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 12px;
}

.rules ol {
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
}

/* miniapp */
.miniapp {
  padding: 84px 0;
  background: var(--white);
}

.miniapp-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
}

.steps {
  margin-top: 18px;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.steps li::marker {
  color: var(--sky);
  font-weight: 800;
}

.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-box {
  width: 210px;
  height: 210px;
  border-radius: 28px;
  border: 3px dashed rgba(58, 160, 232, 0.45);
  background: linear-gradient(160deg, #eaf6fd, #fff 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--sky-deep);
  font-weight: 800;
}

.qr-hint {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.qr-caption {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* footer */
.footer {
  padding: 36px 0 48px;
  background: #1f4f73;
  color: rgba(255, 255, 255, 0.82);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
}

.footer-meta {
  text-align: right;
  font-size: 13px;
}

.footer-meta a:hover { color: #ffe566; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes driftPaws {
  from { background-position: 0 0, 90px 70px; }
  to { background-position: 140px 140px, 250px 230px; }
}

@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) { display: none; }

  .quick-grid,
  .fee-grid,
  .card-grid,
  .pet-grid,
  .story-grid,
  .miniapp-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-grid,
  .miniapp-grid {
    grid-template-columns: 1fr;
  }

  .hero { min-height: 78vh; padding-top: 110px; }
  .footer-meta { text-align: left; }
}

@media (max-width: 560px) {
  .quick-grid,
  .fee-grid,
  .card-grid,
  .pet-grid {
    grid-template-columns: 1fr;
  }
}
