/* 鹦鹉之家 · 官方介绍页 */
:root {
  --bg: #f6f3ec;
  --bg-deep: #ebe4d8;
  --ink: #1f1a16;
  --ink-soft: #5c534a;
  --muted: #8a8076;
  --line: rgba(45, 38, 32, 0.08);
  --orange: #e87222;
  --orange-deep: #c45f18;
  --mint: #2f9b78;
  --mint-soft: #dff3ea;
  --sand: #fff8ef;
  --white: #fffcf7;
  --shadow: 0 24px 60px rgba(60, 40, 20, 0.1);
  --radius: 28px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(246, 243, 236, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 252, 247, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f59a4a, #e87222);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 10px 24px rgba(232, 114, 34, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(232, 114, 34, 0.08);
  color: var(--orange-deep);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #f59a4a, #e87222);
  color: #fff;
  box-shadow: 0 12px 28px rgba(232, 114, 34, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-mint {
  background: linear-gradient(135deg, #3db89a, #2a9f84);
  color: #fff;
  box-shadow: 0 12px 28px rgba(47, 155, 120, 0.25);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 520px;
  height: min(56vh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 14, 10, 0.18) 0%, rgba(20, 14, 10, 0.55) 55%, rgba(20, 14, 10, 0.78) 100%),
    linear-gradient(90deg, rgba(20, 14, 10, 0.45) 0%, transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 0 48px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  animation: rise 0.8s ease both;
}

.hero-brand span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f6b15e;
  box-shadow: 0 0 0 5px rgba(246, 177, 94, 0.25);
}

.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: normal;
  animation: rise 0.9s 0.08s ease both;
}

.hero-lead {
  margin: 14px 0 0;
  max-width: 42ch;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  animation: rise 0.9s 0.16s ease both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  animation: rise 0.9s 0.24s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Sections —— */
section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--orange-deep);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Mini program */
.mp-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 36px;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(240, 136, 58, 0.16), transparent 55%),
    linear-gradient(160deg, #fffdf8, #fff4e8);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.mp-copy h3 {
  margin: 0;
  font-size: 1.6rem;
}

.mp-copy p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.mp-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.mp-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-weight: 600;
}

.mp-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
}

.mp-qr {
  justify-self: center;
  text-align: center;
}

.qr-frame {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(90, 60, 50, 0.1);
  border: 1px solid var(--line);
}

.qr-frame img,
.qr-frame svg {
  width: 100%;
  height: 100%;
}

.qr-tip {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

/* Features */
.features {
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(61, 184, 154, 0.08), transparent 50%),
    var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(90, 60, 50, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(90, 60, 50, 0.1);
}

.feature-ico {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  margin-bottom: 18px;
  background: var(--mint-soft);
  flex-shrink: 0;
}

.feature.tone-orange .feature-ico { background: #ffe8d4; }
.feature.tone-coral .feature-ico { background: #ffe4dc; }
.feature.tone-sand .feature-ico { background: #fff0d8; }
.feature.tone-blue .feature-ico { background: #e7f0ff; }

.feature h3 {
  margin: 0;
  font-size: 1.2rem;
}

.feature p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  flex: 1;
}

.feature-thumb {
  margin-top: 18px;
  height: 140px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
}

.feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Showcase：左大右二，等高对齐 */
.showcase {
  padding-top: 0;
}

.showcase-rail {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  align-items: stretch;
  width: 100%;
  height: 420px;
}

.showcase-card {
  position: relative;
  height: 100%;
  min-height: 0;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.showcase-card .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 24px;
  background: linear-gradient(180deg, transparent, rgba(20, 14, 10, 0.72));
  color: #fff;
}

.showcase-card .cap strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.showcase-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 100%;
  min-height: 0;
}

.showcase-mini {
  position: relative;
  height: 100%;
  min-height: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(90, 60, 50, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.showcase-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-mini .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(20, 14, 10, 0.7));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

/* Guides */
.guides {
  background: linear-gradient(180deg, #efe8dc, #f6f3ec);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.guide-item {
  padding: 24px 22px;
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.guide-item:hover {
  border-color: rgba(232, 114, 34, 0.28);
  transform: translateY(-2px);
}

.guide-item h3 {
  margin: 0;
  font-size: 1.05rem;
}

.guide-item p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  padding-top: 40px;
  padding-bottom: 100px;
}

.cta-box {
  text-align: center;
  padding: 56px 28px;
  border-radius: 36px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(135deg, #f0883a, #e87222 45%, #d35f12);
  color: #fff;
  box-shadow: 0 28px 60px rgba(232, 114, 34, 0.28);
}

.cta-box h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.cta-box p {
  margin: 14px auto 0;
  max-width: 36ch;
  opacity: 0.92;
}

.cta-box .hero-cta {
  justify-content: center;
}

.cta-box .btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* Footer */
.site-footer {
  padding: 40px 0 28px;
  border-top: 1px solid var(--line);
  background: #efe9df;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 28px 48px;
  align-items: start;
  margin-bottom: 28px;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-brand p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 500;
  max-width: 28ch;
}

.footer-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-qrs {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.footer-qr {
  text-align: center;
  width: 118px;
}

.footer-qr-frame {
  width: 118px;
  height: 118px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(90, 60, 50, 0.06);
  box-sizing: border-box;
}

.footer-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.footer-qr-label {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Mobile */
@media (max-width: 900px) {
  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    padding: 12px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }

  .mp-panel,
  .feature-grid,
  .guide-grid,
  .showcase-rail {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-aside {
    align-items: flex-start;
  }

  .footer-links,
  .footer-qrs {
    justify-content: flex-start;
  }

  .showcase-rail {
    grid-template-columns: 1fr;
    height: auto;
  }

  .showcase-card {
    height: 280px;
  }

  .showcase-stack {
    height: auto;
    grid-template-rows: auto;
  }

  .showcase-mini {
    height: 160px;
  }

  .hero {
    min-height: 420px;
    height: 48vh;
  }

  .hero-inner {
    padding-bottom: 36px;
  }

  section {
    padding: 64px 0;
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .container,
  .hero-inner {
    width: calc(100% - 28px);
  }
}
