/* ===================================================
   联盛森宝 · 数字化服务
   设计方向：纸纤维、亲肤、可信赖、移动端优先
   =================================================== */

:root {
  color-scheme: light;
  /* 基础主题变量：节日主题只需要覆盖这些变量即可 */
  --paper: #fbf7ee;
  --paper-deep: #f1eadc;
  --sheet: #fffdf8;
  --ink: #302b25;
  --muted: #8c8174;
  --faint: #c9bdae;
  --line: rgba(97, 78, 56, .14);
  --green: #3f7a5b;
  --green-soft: #e4f0e8;
  --blue: #477aa8;
  --rose: #b96a75;
  --black: #1f2023;
  --gold: #b58a4b;
  --shadow: 0 18px 50px rgba(78, 55, 27, .10);
  --shadow-soft: 0 8px 26px rgba(78, 55, 27, .07);
  --body-bg-1: rgba(255,255,255,.9);
  --body-bg-2: rgba(198,220,204,.36);
  --body-bg-3: #eee7d9;
  --body-bg-4: #dcd4c5;
  --shell-top-glow: rgba(255,255,255,.56);
  --decor-green: rgba(99,146,112,.22);
  --decor-gold: rgba(213,174,111,.18);
  --theme-accent-text: var(--green);
  --theme-badge-bg: rgba(255,253,248,.58);
  --bg-image: none;
  --bg-image-opacity: .34;
  --bg-image-position: center top;
  --bg-image-size: cover;
  --bg-overlay: linear-gradient(180deg, rgba(251,247,238,.82), rgba(251,247,238,.94));
  --shell-bg-image: none;
  --shell-bg-image-opacity: .18;
  --shell-bg-image-position: center top;
  --shell-bg-image-size: cover;
  --shell-bg-overlay: linear-gradient(180deg, var(--shell-top-glow), transparent 220px);
  --logo-surface: rgba(255,253,248,.9);
  --logo-tone: auto;
  --logo-surface-contrast: light;
  --logo-dark-filter: none;
  --logo-light-filter: none;
  --logo-outline: rgba(112, 92, 67, .14);
  --logo-shadow: 0 14px 34px rgba(78, 55, 27, .10);
  --hero-mark: rgba(63,122,91,.08);
  --hero-mark-line: rgba(63,122,91,.22);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--body-bg-4);
  background:
    radial-gradient(circle at 10% 4%, var(--body-bg-1), transparent 28%),
    radial-gradient(circle at 90% 10%, var(--body-bg-2), transparent 34%),
    linear-gradient(135deg, var(--body-bg-3), var(--body-bg-4));
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 1;
  background-image: var(--bg-overlay), var(--bg-image);
  background-position: center, var(--bg-image-position);
  background-size: cover, var(--bg-image-size);
  background-repeat: no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

button { font: inherit; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }

.shell {
  width: min(100%, 480px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 18px calc(28px + env(safe-area-inset-bottom, 0px));
  background:
    var(--shell-bg-overlay),
    linear-gradient(rgba(251,247,238, calc(1 - var(--shell-bg-image-opacity))), rgba(251,247,238, calc(1 - var(--shell-bg-image-opacity)))),
    var(--shell-bg-image),
    var(--paper);
  background-position: center, center, var(--shell-bg-image-position), center;
  background-size: cover, cover, var(--shell-bg-image-size), cover;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 20px 80px rgba(50,35,18,.16);
}

.shell::before,
.shell::after,
.shell__bg {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(.2px);
}
.shell::before {
  width: 260px;
  height: 260px;
  right: -150px;
  top: -70px;
  background: radial-gradient(circle, var(--decor-green), transparent 68%);
}
.shell::after {
  width: 220px;
  height: 220px;
  left: -120px;
  bottom: 90px;
  background: radial-gradient(circle, var(--decor-gold), transparent 70%);
}

.hero,
.nav-section,
.nfc-note,
.footer { position: relative; z-index: 1; }

.hero {
  padding: 14px 2px 26px;
  text-align: center;
}

.brand-lockup {
  width: min(360px, 88vw);
  min-height: 94px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  padding: 18px 24px;
  border-radius: 28px;
  background:
    radial-gradient(140% 125% at 18% 0%, rgba(255,255,255,.88), transparent 44%),
    linear-gradient(145deg, color-mix(in srgb, var(--logo-surface) 96%, white), color-mix(in srgb, var(--logo-surface) 82%, var(--paper-deep)));
  border: 1px solid var(--logo-outline);
  box-shadow: var(--logo-shadow);
  position: relative;
  isolation: isolate;
}
.brand-logo {
  grid-area: 1 / 1;
  width: min(100%, 296px);
  max-height: 62px;
  object-fit: contain;
  filter: var(--logo-dark-filter);
  transition: opacity .22s ease, transform .22s ease, filter .22s ease;
}
.brand-logo--light { display: none; filter: var(--logo-light-filter); }
.brand-lockup::before {
  content: none;
}
.brand-lockup::after {
  content: "";
  position: absolute;
  inset: auto 22px 9px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--green) 55%, transparent), transparent);
  pointer-events: none;
}
.brand-lockup[data-logo-tone="dark"],
.logo-on-dark .brand-lockup,
[data-logo-tone="dark"] .brand-lockup {
  background:
    radial-gradient(120% 120% at 18% 0%, rgba(255,255,255,.16), transparent 42%),
    linear-gradient(145deg, rgba(20,34,30,.96), rgba(11,22,18,.98));
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 18px 44px rgba(17,27,23,.28);
}
.brand-lockup[data-logo-tone="dark"] .brand-logo--dark,
.logo-on-dark .brand-logo--dark,
[data-logo-tone="dark"] .brand-logo--dark { display: none; }
.brand-lockup[data-logo-tone="dark"] .brand-logo--light,
.logo-on-dark .brand-logo--light,
[data-logo-tone="dark"] .brand-logo--light { display: block; }
.brand-lockup[data-logo-tone="light"] .brand-logo--dark,
.logo-on-light .brand-logo--dark,
[data-logo-tone="light"] .brand-logo--dark { display: block; }
.brand-lockup[data-logo-tone="light"] .brand-logo--light,
.logo-on-light .brand-logo--light,
[data-logo-tone="light"] .brand-logo--light { display: none; }
@media (prefers-color-scheme: dark) {
  .brand-lockup[data-logo-tone="auto"] {
    background:
      radial-gradient(120% 120% at 18% 0%, rgba(255,255,255,.14), transparent 42%),
      linear-gradient(145deg, rgba(31,45,38,.95), rgba(17,27,23,.95));
    border-color: rgba(255,255,255,.16);
    box-shadow: 0 18px 44px rgba(17,27,23,.28);
  }
  .brand-lockup[data-logo-tone="auto"] .brand-logo--dark { display: none; }
  .brand-lockup[data-logo-tone="auto"] .brand-logo--light { display: block; }
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 92px;
  width: min(330px, 82vw);
  height: 108px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(ellipse at center, var(--hero-mark), transparent 72%);
  opacity: .7;
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--theme-accent-text);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  margin-bottom: 12px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63,122,91,.42));
}
.eyebrow::after { background: linear-gradient(90deg, rgba(63,122,91,.42), transparent); }

.hero h1 {
  font-size: clamp(2.35rem, 12vw, 3.7rem);
  line-height: 1;
  letter-spacing: .05em;
  font-weight: 800;
  color: #2b261f;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

.hero-copy {
  margin-top: 14px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
}

.nav-section {
  background: var(--theme-badge-bg);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius-xl);
  padding: 18px 14px 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0 4px 14px;
}
.section-kicker {
  color: var(--gold);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
}
.section-head h2 {
  font-size: .96rem;
  font-weight: 650;
  color: var(--muted);
}

.nav-list {
  display: grid;
  gap: 12px;
}

.nav-card {
  width: 100%;
  min-height: 84px;
  display: grid;
  grid-template-columns: 34px 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 10px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,252,246,.9));
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 8px 18px rgba(82,61,34,.045);
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, border-color .22s;
}
.nav-card:active { transform: scale(.985); box-shadow: 0 4px 12px rgba(82,61,34,.06); }
.nav-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--card-color, var(--green));
  opacity: .75;
}
.nav-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -34px;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-color, var(--green)) 13%, transparent);
}

.nav-card--mini { --card-color: var(--green); }
.nav-card--senbao { --card-color: var(--blue); }
.nav-card--paper { --card-color: var(--rose); }
.nav-card--douyin { --card-color: var(--black); }
.nav-card--xiaohongshu { --card-color: #d74043; }

.nav-card__index {
  writing-mode: vertical-rl;
  color: var(--faint);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  justify-self: center;
}
.nav-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.82), transparent 42%),
    color-mix(in srgb, var(--card-color, var(--green)) 11%, white);
  color: var(--card-color, var(--green));
  position: relative;
  z-index: 1;
  box-shadow: 0 1px 0 rgba(255,255,255,.78) inset, 0 8px 18px color-mix(in srgb, var(--card-color, var(--green)) 12%, transparent);
}
.nav-card__icon::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--card-color, var(--green)) 18%, transparent);
}
.nav-card__icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: var(--icon-stroke-width, 1.7);
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.55));
  position: relative;
  z-index: 1;
}
.nav-card__icon rect,
.nav-card__icon circle,
.nav-card__icon path { stroke: currentColor; }
.nav-card--senbao .nav-card__icon svg,
.nav-card--douyin .nav-card__icon svg,
.nav-card--xiaohongshu .nav-card__icon svg { stroke-width: calc(var(--icon-stroke-width, 1.7) + .08px); }
.nav-card--paper .nav-card__icon svg { stroke-width: calc(var(--icon-stroke-width, 1.7) - .1px); }

.nav-card__text { position: relative; z-index: 1; min-width: 0; }
.nav-card__text strong {
  display: block;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 680;
  line-height: 1.35;
}
.nav-card__text em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
  font-size: .75rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-card__meta {
  position: relative;
  z-index: 1;
  justify-self: end;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: color-mix(in srgb, var(--card-color, var(--green)) 80%, #5f5548);
  border: 1px solid color-mix(in srgb, var(--card-color, var(--green)) 18%, transparent);
  font-size: .66rem;
  font-weight: 650;
  white-space: nowrap;
}

.nfc-note {
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  font-size: .76rem;
}
.nfc-note svg { width: 22px; height: 22px; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; opacity: .72; }
.nfc-note circle { fill: var(--green); opacity: .72; }

.footer {
  padding: 20px 0 4px;
  text-align: center;
  color: var(--faint);
  font-size: .68rem;
  line-height: 1.9;
}

.dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s;
}
.dialog.is-open { opacity: 1; visibility: visible; }
.dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 33, 24, .42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dialog__panel {
  width: min(100%, 334px);
  position: relative;
  z-index: 1;
  border-radius: 26px;
  background: var(--sheet);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 24px 70px rgba(42,33,24,.22);
  padding: 26px 22px 20px;
  text-align: center;
  transform: translateY(16px) scale(.96);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.dialog.is-open .dialog__panel { transform: translateY(0) scale(1); }
.dialog__visual {
  min-height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: var(--green);
}
.dialog__visual .qr-img {
  width: 188px;
  height: 188px;
  object-fit: contain;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
.dialog__visual .notice-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--green-soft);
}
.dialog__visual svg { width: 32px; height: 32px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dialog h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}
.dialog p {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.65;
  margin: 0 auto 18px;
  max-width: 260px;
}
.dialog__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dialog__actions.single { grid-template-columns: 1fr; }
.dialog-btn {
  height: 44px;
  border-radius: 14px;
  font-size: .9rem;
  font-weight: 650;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dialog-btn--primary { background: var(--green); color: #fff; }
.dialog-btn--secondary { background: #f1eadf; color: var(--muted); }
.dialog-btn:active { transform: scale(.975); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(34px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px);
  z-index: 70;
  min-width: 180px;
  max-width: calc(100vw - 48px);
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(48,43,37,.9);
  color: #fff;
  text-align: center;
  font-size: .8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 520px) {
  .shell {
    margin: 28px auto;
    min-height: calc(100dvh - 56px);
    border-radius: 34px;
  }
}

@media (min-width: 768px) {
  .shell {
    width: min(calc(100% - 56px), 1080px);
    min-height: auto;
    margin: 36px auto;
    padding: 48px;
    border-radius: 38px;
    display: grid;
    grid-template-columns: minmax(300px, 380px) 1fr;
    grid-template-areas:
      "hero nav"
      "note nav"
      "footer footer";
    gap: 26px 34px;
    align-items: center;
  }

  .hero {
    grid-area: hero;
    text-align: left;
    padding: 0;
    align-self: end;
  }

  .brand-lockup {
    margin-left: 0;
    margin-right: 0;
    width: 318px;
  }

  .eyebrow { justify-content: flex-start; }
  .eyebrow::before { display: none; }

  .hero h1 {
    font-size: clamp(3.4rem, 6vw, 5.2rem);
    letter-spacing: .06em;
  }

  .hero-copy {
    max-width: 330px;
    font-size: 1rem;
  }

  .nav-section {
    grid-area: nav;
    padding: 24px;
    min-height: 420px;
  }

  .section-head {
    padding: 0 4px 20px;
  }

  .section-kicker { font-size: .72rem; }
  .section-head h2 { font-size: 1.08rem; }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .nav-card {
    min-height: 164px;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    padding: 18px;
  }

  .nav-card__index {
    writing-mode: horizontal-tb;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .nav-card__icon {
    grid-column: 2;
    grid-row: 1;
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }

  .nav-card__text {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: end;
  }

  .nav-card__text strong { font-size: 1.08rem; }
  .nav-card__text em {
    font-size: .82rem;
    white-space: normal;
  }

  .nav-card__meta {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
  }

  .nfc-note {
    grid-area: note;
    justify-content: flex-start;
    margin: 0;
    align-self: start;
  }

  .footer {
    grid-area: footer;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  .dialog__panel { width: 360px; }
}

@media (min-width: 1180px) {
  .shell {
    width: min(calc(100% - 96px), 1180px);
    grid-template-columns: 420px 1fr;
    padding: 56px;
  }

  .nav-card { min-height: 178px; }
}

@media (max-width: 360px) {
  .shell { padding-left: 12px; padding-right: 12px; }
  .nav-card { grid-template-columns: 26px 46px 1fr; gap: 10px; }
  .nav-card__meta { display: none; }
  .nav-card__icon { width: 46px; height: 46px; border-radius: 16px; }
  .nav-card__text strong { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
