:root {
  --blue: #1a5fbf;
  --pink: #d6336c;
  --pink-dark: #b02a57;
  --text: #1f2937;
  --text-muted: #5b6472;
  --surface: #ffffff;
  --radius-hero: 12px;
  --radius-card: 10px;
  --gap: 12px;
  --container: 480px;
  --shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #b8cde6;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

/* 全屏背景图 + 遮罩，避免 iOS 下 background-attachment: fixed 失效 */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background: url("/sg4233b8479d386dbaee704.jpg")
    center / cover no-repeat;
}

body::after {
  z-index: -1;
  background: rgba(9, 18, 33, 0.45);
}

.page {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 16px calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.card {
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* 第 1 张：主卡片 */
.card--hero {
  padding: 20px 20px 0;
  border-radius: var(--radius-hero);
  overflow: hidden;
}

.card__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.card__desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.card__strip {
  margin: 16px -20px 0;
  padding: 12px 20px;
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}

/* 其余卡片：整体小一号 */
.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.card--item {
  width: calc(100% - 12px);
  margin: 0 auto;
  padding: 16px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #f0ebd0;
}

.card__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
}

.card__icon {
  display: inline-flex;
  flex: none;
  color: var(--blue);
}

.card__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.card--item .card__desc {
  margin-top: 6px;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  margin-top: 14px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--pink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  background: var(--pink-dark);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* 底部广告 */
.ads {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.ads__item {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.ads__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.ads__item:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
