:root {
  --brand: #2478E0;
  --brand-dark: #1a5fb4;
  --brand-soft: #e8f1fc;
  --brand-mid: #3d8ee8;
  --ink: #1a2332;
  --muted: #5a6a7a;
  --line: rgba(36, 120, 224, 0.14);
  --bg: #f4f7fb;
  --card: #ffffff;
  --warn-bg: #f7f1e4;
  --warn-ink: #6b5a3a;
  --shadow: 0 12px 32px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 28px 64px rgba(26, 95, 180, 0.18);
  --radius: 1.25rem;
  --wrap: 1200px;
  --font-display: "Literata", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 0% -5%, rgba(36, 120, 224, 0.12), transparent 58%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(61, 142, 232, 0.08), transparent 52%),
    linear-gradient(180deg, #fafcfe 0%, var(--bg) 42%, #eef3f9 100%);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-dark);
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--brand-mid);
}

.site-wrap {
  max-width: var(--wrap);
}

/* —— Nav —— */
.site-nav {
  background: rgba(20, 70, 140, 0.94) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(26, 95, 180, 0.22);
  z-index: 1030;
}

.site-nav .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(62vw, 280px);
  min-width: 0;
}

.site-nav .navbar-brand--logo {
  text-decoration: none;
}

.site-nav .navbar-brand-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-nav .navbar-brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.site-nav .nav-link {
  font-weight: 500;
  font-size: 0.94rem;
  opacity: 0.88;
  border-radius: 999px;
  padding: 0.45rem 0.95rem !important;
  margin-left: 0.2rem;
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

.page-main {
  flex: 1 1 auto;
  width: 100%;
  padding-top: 1.75rem !important;
  padding-bottom: 3rem !important;
}

/* 子页：主区撑满剩余视口，页脚贴底 */
body.page-tall {
  min-height: 100vh;
  min-height: 100dvh;
}

.page-main--fill {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.page-fill {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: clamp(420px, calc(100dvh - 320px), 600px);
}

.page-fill__grow {
  flex: 1 1 auto;
}

/* —— 子页宣传条 —— */
.page-banner {
  position: relative;
  width: 100%;
  min-height: clamp(168px, 26vh, 260px);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.page-banner__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(18, 60, 130, 0.78) 0%, rgba(36, 120, 224, 0.5) 55%, rgba(61, 142, 232, 0.28) 100%),
    var(--hero-image, url("/assets/img/hero-banner.svg")) center / cover no-repeat;
  transform: scale(1.03);
  animation: hero-kenburns 20s var(--ease) alternate infinite;
  z-index: 0;
}

.page-banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 40, 80, 0.12) 0%, rgba(16, 40, 80, 0.4) 100%);
  z-index: 1;
  pointer-events: none;
}

.page-banner__glow {
  position: absolute;
  right: -8%;
  top: -40%;
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
  z-index: 1;
  pointer-events: none;
  animation: promo-float 8s var(--ease) infinite alternate;
}

.page-banner__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.6rem 1.25rem;
}

.page-banner__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.45rem;
}

.page-banner__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.6vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
  max-width: 18ch;
  line-height: 1.25;
}

.page-banner__lead {
  margin: 0;
  max-width: 40em;
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.92;
}

.page-banner--redeem .page-banner__media {
  background:
    linear-gradient(115deg, rgba(20, 70, 150, 0.82) 0%, rgba(36, 120, 224, 0.45) 60%, rgba(80, 150, 230, 0.25) 100%),
    var(--hero-image, url("/assets/img/hero-banner.svg")) 60% center / cover no-repeat;
}

.page-banner--materials .page-banner__media {
  background:
    linear-gradient(125deg, rgba(18, 55, 120, 0.8) 0%, rgba(40, 110, 210, 0.48) 50%, rgba(90, 140, 200, 0.22) 100%),
    var(--hero-image, url("/assets/img/hero-banner.svg")) 40% 40% / cover no-repeat;
}

.page-banner--account .page-banner__media {
  background:
    linear-gradient(100deg, rgba(16, 50, 110, 0.84) 0%, rgba(36, 120, 224, 0.5) 55%, rgba(70, 140, 220, 0.28) 100%),
    var(--hero-image, url("/assets/img/hero-banner.svg")) 70% center / cover no-repeat;
}

@keyframes promo-float {
  from { transform: translateY(0) scale(1); opacity: 0.9; }
  to { transform: translateY(12px) scale(1.06); opacity: 1; }
}

/* —— Notice —— */
.site-notice {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid rgba(107, 90, 58, 0.14);
  border-radius: 0.9rem;
  padding: 0.75rem 1.1rem;
  font-size: 0.84rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.site-notice strong {
  font-weight: 600;
}

/* —— Full-bleed Hero —— */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 68vh, 620px);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero-banner__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 60, 130, 0.72) 0%, rgba(36, 120, 224, 0.45) 48%, rgba(61, 142, 232, 0.25) 100%),
    var(--hero-image, url("/assets/img/hero-banner.svg")) center / cover no-repeat;
  transform: scale(1.02);
  animation: hero-kenburns 18s var(--ease) alternate infinite;
  z-index: 0;
}

.hero-banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 40, 80, 0.15) 0%, rgba(16, 40, 80, 0.35) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-banner__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem;
}

.hero-banner .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  animation: rise-in 0.7s var(--ease) both;
}

.hero-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0 0 0.85rem;
  max-width: 18em;
  opacity: 0.96;
  animation: rise-in 0.75s var(--ease) 0.08s both;
}

.hero-banner .hero-lead {
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.7;
  max-width: 34em;
  opacity: 0.9;
  margin: 0 0 1.6rem;
  animation: rise-in 0.75s var(--ease) 0.14s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise-in 0.75s var(--ease) 0.2s both;
}

.hero-banner .btn {
  border-radius: 999px;
  padding: 0.7rem 1.45rem;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}

.hero-banner .btn:hover {
  transform: translateY(-2px);
}

.hero-banner .btn-light {
  color: var(--brand-dark);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.hero-banner .btn-outline-light {
  border-width: 1.5px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-banner .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* legacy .hero kept for safety */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #1a5fb4 0%, #2478E0 42%, #3d8ee8 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* —— Sections —— */
.section-block {
  margin-bottom: 2.25rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.section-head h2,
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0.25rem 0 0;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease);
  display: inline-block;
}

.section-link:hover {
  transform: translateX(3px);
}

/* —— Cards —— */
.tool-card,
.form-card,
.stat-box,
.material-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tool-card {
  padding: 1.45rem 1.35rem 1.3rem;
  height: 100%;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  overflow: hidden;
}

.tool-card--media {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.tool-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--brand-soft);
}

.tool-card__cover--square {
  aspect-ratio: 1 / 1;
}

.tool-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.tool-card--media:hover .tool-card__cover img {
  transform: scale(1.04);
}

.tool-card__body {
  padding: 1.2rem 1.25rem 1.25rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* 首页学习资料：更小卡片 + 正方形封面 */
.home-materials__grid {
  justify-content: flex-start;
}

.tool-card--material-sm {
  max-width: 100%;
}

.tool-card--material-sm .tool-card__body {
  padding: 0.85rem 0.9rem 0.95rem;
}

.tool-card--material-sm .card-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  margin-bottom: 0.45rem;
}

.tool-card--material-sm h2 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.tool-card--material-sm .card-cta {
  font-size: 0.82rem;
}

.tool-card--material-sm .muted.small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem !important;
}

.tool-card--material-sm:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(26, 35, 50, 0.1);
}

@media (max-width: 575.98px) {
  .tool-card--material-sm .tool-card__body {
    padding: 0.7rem 0.7rem 0.8rem;
  }

  .tool-card--material-sm h2 {
    font-size: 0.92rem;
  }

  .tool-card--material-sm .muted.small {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(26, 35, 50, 0.12);
  border-color: rgba(36, 120, 224, 0.3);
}

.tool-card .card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.65rem;
  align-self: flex-start;
}

.tool-card h2 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.tool-card .card-cta {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s var(--ease);
  margin-top: auto;
}

.tool-card:hover .card-cta {
  transform: translateX(4px);
}

.muted {
  color: var(--muted);
}

.stat-box {
  padding: 1.15rem 1.25rem;
  height: 100%;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.stat-box:hover {
  border-color: rgba(36, 120, 224, 0.28);
  transform: translateY(-2px);
}

.stat-box .label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-box .value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 0.35rem;
  color: var(--brand-dark);
  line-height: 1.3;
}

.form-card {
  padding: 1.65rem 1.55rem;
}

.form-card h2,
.form-card .h5,
.form-card .h6 {
  font-family: var(--font-display);
  font-weight: 700;
}

/* —— Activation guide (redeem / shop) —— */
.activation-guide {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  line-height: 0;
}

.activation-guide__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* —— Course detail: material list thumbs —— */
.course-mat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.course-mat-item__main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.course-mat-item__meta {
  min-width: 0;
}

.course-mat-item__meta .fw-semibold {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-mat-item__summary {
  margin: 0.2rem 0 0.15rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-mat-thumb {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8f1fc;
}

.course-mat-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-mat-thumb--placeholder {
  background:
    linear-gradient(135deg, rgba(36, 120, 224, 0.16) 0%, #e8f1fc 48%, #f4f8fd 100%);
}

@media (max-width: 575.98px) {
  .course-mat-thumb {
    width: 96px;
    height: 96px;
  }
}

.auth-shell {
  max-width: 460px;
  margin: 0.75rem auto 0;
}

.auth-shell .form-control {
  border-radius: 0.8rem;
  border-color: rgba(36, 120, 224, 0.18);
  padding: 0.75rem 1rem;
}

.auth-shell .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(36, 120, 224, 0.15);
}

.auth-shell .form-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.benefit-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.6rem;
  opacity: 0.85;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1rem 0 1rem 3.25rem;
  border-bottom: 1px dashed var(--line);
  counter-increment: step;
  font-size: 1.02rem;
}

.steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.material-card {
  padding: 1.25rem 1.35rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
}

.material-card--media {
  padding: 0;
}

.material-card__cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brand-soft);
}

.material-card__cover--square {
  aspect-ratio: 1 / 1;
}

.material-card--square-sm .material-card__body {
  padding: 0.75rem 0.85rem 0.9rem;
  gap: 0.55rem;
}

.material-card--square-sm .material-card__title {
  font-size: 0.98rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.material-card--square-sm .material-card__summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.material-card--square-sm .material-meta {
  gap: 0.3rem;
}

.material-card--square-sm .chip {
  font-size: 0.72rem;
}

.material-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.material-card--media:hover .material-card__cover img {
  transform: scale(1.05);
}

.material-card__body {
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1 1 auto;
}

.material-card__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.35;
}

.material-card__action {
  margin-top: auto;
}

.material-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(26, 35, 50, 0.1);
}

.material-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(36, 120, 224, 0.07);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.chip-brand {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.page-header {
  margin-bottom: 1.4rem;
}

.page-header .page-title {
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  margin-bottom: 0.45rem;
}

.callout {
  border-radius: 0.95rem;
  padding: 0.95rem 1.1rem;
  font-size: 0.9rem;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid rgba(36, 120, 224, 0.12);
  margin-bottom: 1.2rem;
}

.callout a {
  font-weight: 600;
}

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-brand:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(36, 120, 224, 0.28);
}

.btn-outline-secondary {
  border-radius: 999px;
  border-color: rgba(36, 120, 224, 0.28);
  color: var(--brand-dark);
  font-weight: 500;
}

.btn-outline-secondary:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: linear-gradient(180deg, #eef3f9 0%, #e4ebf4 100%);
  border-top: 1px solid var(--line);
}

.site-footer .footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.site-footer .footer-brand--logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-footer .footer-brand-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-footer a {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-beian {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer-beian {
    align-items: flex-end;
  }
}

.footer-beian-item {
  line-height: 1.4;
}

.footer-police-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  color: var(--brand-dark);
  font-weight: 500;
  text-decoration: none;
  vertical-align: middle;
}

a.footer-police-link:hover {
  text-decoration: underline;
}

.footer-police-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
  display: block;
}

.footer-police-link span {
  word-break: break-all;
}

.alert {
  border-radius: 0.9rem;
  border: 0;
}

/* —— Motion / reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-banner__media,
  .page-banner__media {
    transform: none;
  }

  .page-banner__glow {
    animation: none;
  }
}

@media (max-width: 576px) {
  .hero-banner {
    min-height: 70vh;
  }
  .page-banner {
    min-height: clamp(150px, 30vh, 220px);
  }
  .site-nav .navbar-brand {
    font-size: 1.05rem;
    max-width: min(58vw, 220px);
    gap: 0.4rem;
  }
  .site-nav .navbar-brand-logo {
    height: 28px;
    max-width: 96px;
  }
  .page-main {
    padding-top: 1.25rem !important;
  }
  .page-fill {
    min-height: clamp(320px, calc(100dvh - 280px), 720px);
  }
}

/* —— 微信小店入口 —— */
.wxshop-home-teaser {
  margin: 0 0 1.75rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(36, 120, 224, 0.1) 0%, rgba(232, 241, 252, 0.9) 48%, #fff 100%);
  border: 1px solid var(--line);
}

.wxshop-home-teaser__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.wxshop-home-teaser__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.wxshop-home-teaser__lead {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.55;
}

.wxshop-home-teaser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex-shrink: 0;
}

.wxshop-home-teaser__qr {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(36, 120, 224, 0.14);
}

.wxshop-qr-card--home {
  padding: 0.85rem 0.75rem 0.7rem;
}

.wxshop-qr-card--home .wxshop-qr-img {
  width: min(100%, 168px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.home-activation {
  margin-bottom: 1.25rem;
}

.wxshop-qr-section {
  margin-bottom: 0.5rem;
}

.wxshop-qr-card {
  margin: 0;
  padding: 1.15rem 1rem 1rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.wxshop-qr-img {
  display: block;
  width: min(100%, 280px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto;
  background: #fff;
  border-radius: 0.65rem;
  padding: 0.5rem;
  image-rendering: -webkit-optimize-contrast;
}

.wxshop-qr-caption {
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--brand-dark);
}

@media (max-width: 576px) {
  .wxshop-home-teaser {
    padding: 1rem 1.05rem;
  }

  .wxshop-qr-img {
    width: min(100%, 240px);
  }
}
