:root {
  --bg: #e7d2ef;
  --bg-deep: #d9bce8;
  --ink: #1a1a1a;
  --muted: rgba(26, 26, 26, 0.55);
  --card: #ffffff;
  --green: #1f5c3a;
  --green-hover: #174a2e;
  --pink: #f3a7c5;
  --footer: rgba(26, 26, 26, 0.62);
  --max: 1120px;
  --radius: 18px;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--bg);
  background-image: url("../assets/bg.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  isolation: isolate;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 48%, rgba(231, 210, 239, 0.88) 0%, rgba(231, 210, 239, 0.55) 28%, rgba(231, 210, 239, 0.35) 52%, transparent 70%),
    linear-gradient(180deg, rgba(231, 210, 239, 0.8) 0%, rgba(231, 210, 239, 0.58) 42%, rgba(231, 210, 239, 0.84) 100%);
  pointer-events: none;
}

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

.site-header {
  padding: 20px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 0%, #f2d7ff 100%);
  box-shadow: 0 6px 18px rgba(120, 60, 150, 0.18);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #7a3d9c;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 28px 0 48px;
}

.hero-copy h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-copy .lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 28px;
}

.intro-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  padding: 22px 22px 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(110, 60, 140, 0.1);
  margin-bottom: 26px;
}

.intro-card h2 {
  font-size: 15px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.intro-card p {
  font-size: 14px;
  color: rgba(26, 26, 26, 0.72);
}

.intro-card p + p {
  margin-top: 10px;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(31, 92, 58, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-download:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}

.btn-download svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: rgba(26, 26, 26, 0.7);
  font-size: 14px;
}

.hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* 手机构图区：纯色占位卡，后续可换成实图 */
.showcase {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.phone {
  width: min(100%, 340px);
  aspect-ratio: 9 / 17.5;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 30px 70px rgba(90, 40, 120, 0.18);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.phone-screen {
  height: 100%;
  border-radius: 26px;
  background: #f3e8f8;
  overflow: hidden;
  position: relative;
  padding: 14px 12px;
}

.search-fake {
  height: 36px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #999;
  font-size: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.search-fake::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #bbb;
  box-sizing: border-box;
  position: relative;
}

.banner-fake {
  margin-top: 10px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(90deg, #5b8def, #6aa0f5);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.card-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-card {
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--c1, #d8b4e8), var(--c2, #f2c6d8));
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(80, 40, 110, 0.12);
}

.mini-card::after {
  content: attr(data-name);
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.float-stack {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-card {
  position: absolute;
  width: 148px;
  aspect-ratio: 1;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: 0 18px 40px rgba(70, 30, 100, 0.28);
  overflow: hidden;
}

.float-card .meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(230, 90, 150, 0.85));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.float-card.a {
  --c1: #e8b7d4;
  --c2: #c9a0e8;
  left: 8%;
  top: 28%;
  transform: rotate(-8deg);
  z-index: 3;
}

.float-card.b {
  --c1: #f0c4a8;
  --c2: #e8a0c8;
  right: 6%;
  top: 36%;
  transform: rotate(7deg);
  z-index: 4;
}

.float-card.c {
  --c1: #b8d4f0;
  --c2: #d4b8f0;
  left: 28%;
  top: 48%;
  transform: rotate(-2deg) scale(0.92);
  z-index: 2;
  opacity: 0.95;
}

.site-footer {
  padding: 20px 0 28px;
  text-align: center;
  color: var(--footer);
  font-size: 13px;
  background: rgba(231, 210, 239, 0.55);
  backdrop-filter: blur(6px);
}

.site-footer .company {
  margin-bottom: 8px;
  font-weight: 600;
  color: rgba(26, 26, 26, 0.78);
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer .beian a {
  color: inherit;
}

.site-footer .copy {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.85;
}

/* 协议页 */
.doc-page {
  background: #f7f4f9;
  min-height: 100vh;
}

.doc-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.doc-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.doc-header a.back {
  color: #666;
  font-size: 14px;
}

.doc-header h1 {
  font-size: 18px;
}

.doc {
  width: min(100% - 32px, 820px);
  margin: 24px auto 48px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 36px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.doc h2 {
  font-size: 16px;
  margin: 24px 0 10px;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc p,
.doc li {
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
}

.doc ul {
  padding-left: 1.2em;
  margin-bottom: 12px;
}

.doc .meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 12px;
  }

  .showcase {
    min-height: 520px;
    order: -1;
  }

  .phone {
    width: min(100%, 300px);
  }

  .float-card {
    width: 120px;
  }

  .hero-copy h1 {
    text-align: center;
  }

  .hero-copy .lead,
  .intro-card {
    margin-left: auto;
    margin-right: auto;
  }

  .lead {
    text-align: center;
  }

  .download-row {
    justify-content: center;
  }

  .hint {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: min(100% - 24px, var(--max));
  }

  .showcase {
    min-height: 460px;
  }

  .float-card.a {
    left: 0;
  }

  .float-card.b {
    right: 0;
  }

  .btn-download {
    width: 100%;
  }

  .doc {
    padding: 22px 16px 28px;
  }
}
