:root {
  --ink: #1d2735;
  --muted: #667486;
  --soft-muted: #8490a0;
  --paper: #f7f9fc;
  --card: rgba(255, 255, 255, 0.86);
  --line: #e5eaf1;
  --blue: #356af3;
  --blue-deep: #234cc2;
  --blue-soft: #edf3ff;
  --orange: #ee8d53;
  --orange-soft: #fff2e9;
  --shadow: 0 22px 60px rgba(55, 72, 100, 0.09);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at 13% 0%, rgba(215, 228, 255, .62), transparent 35%),
    radial-gradient(circle at 95% 15%, rgba(255, 231, 213, .55), transparent 30%),
    var(--paper);
  min-height: 100vh;
}

button { font: inherit; }

.page-shell {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 25px 0 44px;
  position: relative;
  z-index: 1;
}

.ambient { position: fixed; pointer-events: none; border-radius: 999px; filter: blur(2px); opacity: .65; }
.ambient-one { width: 340px; height: 340px; left: -190px; top: 35%; background: rgba(198, 218, 255, .32); }
.ambient-two { width: 240px; height: 240px; right: -130px; bottom: 12%; background: rgba(255, 211, 184, .3); }

.site-header { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 13px; font-size: 21px; box-shadow: 0 8px 18px rgba(28, 39, 53, .16); }
.eyebrow, .section-kicker { display: block; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.header-note { display: block; margin-top: 4px; color: var(--soft-muted); font-size: 11px; }
.secure-chip { margin-left: auto; display: flex; align-items: center; gap: 7px; padding: 9px 12px; color: #607087; background: rgba(255, 255, 255, .62); border: 1px solid rgba(220, 228, 239, .9); border-radius: 999px; font-size: 11px; }
.secure-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ac789; box-shadow: 0 0 0 4px rgba(74, 199, 137, .15); }

.hero { display: flex; align-items: center; justify-content: space-between; gap: 46px; padding: 44px 56px 40px; }
.hero-copy { max-width: 650px; }
.hero-kicker { margin: 0 0 14px; color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(38px, 5.4vw, 62px); line-height: 1.08; letter-spacing: -.055em; font-weight: 800; }
h1 em { color: var(--blue); font-style: normal; }
.hero-intro { max-width: 520px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-orbit { width: 190px; height: 190px; position: relative; flex: 0 0 auto; display: grid; place-items: center; }
.orbit-ring { position: absolute; inset: 0; border: 1px solid rgba(53, 106, 243, .2); border-radius: 50%; }
.ring-one { transform: rotate(26deg) scaleX(.68); }
.ring-two { transform: rotate(-32deg) scaleY(.68); border-color: rgba(238, 141, 83, .35); }
.orbit-center { width: 92px; height: 92px; display: grid; place-content: center; text-align: center; color: #fff; background: linear-gradient(145deg, #3f78fb, #244fc9); border-radius: 29px; box-shadow: 0 18px 36px rgba(53, 106, 243, .28); font-size: 12px; line-height: 1.45; transform: rotate(-8deg); }
.orbit-center strong { font-size: 21px; letter-spacing: .03em; }
.orbit-spark { position: absolute; color: var(--orange); font-size: 25px; font-weight: 500; }
.spark-one { top: 8px; left: 19px; }
.spark-two { bottom: 11px; right: 22px; color: var(--blue); font-size: 18px; }

.status-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 13px 16px; background: rgba(237, 243, 255, .83); border: 1px solid #d9e4ff; border-radius: 17px; }
.status-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 11px; font-size: 21px; }
.status-label { margin-bottom: 3px; color: var(--blue-deep); font-weight: 800; font-size: 14px; }
.status-detail { margin-bottom: 0; color: #6e7e99; font-size: 12px; }
.status-pill { margin-left: auto; padding: 7px 10px; color: var(--blue-deep); background: #dce8ff; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }

.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.entry-card { min-width: 0; padding: 22px; background: var(--card); border: 1px solid rgba(222, 229, 239, .95); border-radius: 24px; box-shadow: var(--shadow); backdrop-filter: blur(12px); transition: transform .25s ease, border-color .25s ease, opacity .25s ease, box-shadow .25s ease; }
.entry-card:hover { transform: translateY(-3px); box-shadow: 0 26px 66px rgba(55, 72, 100, .13); }
.card-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.step-tag { color: #9ca9ba; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.card-state { padding: 6px 9px; color: var(--blue); background: var(--blue-soft); border-radius: 999px; font-size: 10px; font-weight: 800; }
.warm-state { color: #d9783e; background: var(--orange-soft); }
.card-heading { display: flex; justify-content: space-between; gap: 12px; }
.card-kicker { margin-bottom: 8px; color: var(--soft-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.card-heading h2 { margin-bottom: 0; font-size: 25px; line-height: 1.2; letter-spacing: -.04em; }
.card-arrow { color: var(--blue); font-size: 21px; }
.contact-card .card-arrow { color: var(--orange); }
.card-description { min-height: 48px; margin: 14px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.qr-wrap { width: min(100%, 244px); margin: 0 auto; padding: 13px; background: #fff; border: 1px solid #e7ecf3; border-radius: 22px; box-shadow: 0 10px 28px rgba(40, 59, 90, .06); }
.qr-wrap img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; border-radius: 12px; }
.qr-caption { display: block; padding-top: 10px; color: #718096; text-align: center; font-size: 11px; }
.qr-tip { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 17px 0 0; color: #8995a4; text-align: center; font-size: 11px; }
.tip-icon { color: var(--blue); font-size: 15px; }
.contact-card .tip-icon { color: var(--orange); }
.wechat-line { display: flex; align-items: center; gap: 8px; width: min(100%, 244px); margin: 15px auto 0; padding: 10px 11px; color: #7c8797; background: #f4f7fb; border-radius: 12px; font-size: 11px; }
.wechat-line strong { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.copy-button { margin-left: auto; padding: 4px 8px; color: var(--blue); background: transparent; border: 1px solid #c7d7ff; border-radius: 7px; cursor: pointer; font-size: 10px; }
.copy-button:hover { background: #eaf0ff; }

.guide-section { margin-top: 24px; padding: 30px 28px; background: rgba(255, 255, 255, .58); border: 1px solid rgba(224, 230, 239, .9); border-radius: 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.section-kicker { margin-bottom: 8px; color: var(--orange); }
.section-heading h2 { margin-bottom: 0; font-size: 22px; letter-spacing: -.03em; }
.section-heading > p { max-width: 260px; margin-bottom: 0; color: var(--soft-muted); font-size: 11px; line-height: 1.6; text-align: right; }
.guide-steps { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.guide-step { display: flex; align-items: center; gap: 10px; min-width: 0; }
.guide-number { width: 32px; height: 32px; display: grid; flex: 0 0 auto; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 10px; font-size: 10px; font-weight: 800; }
.guide-step strong { display: block; margin-bottom: 3px; font-size: 12px; }
.guide-step p { margin: 0; color: var(--soft-muted); font-size: 10px; white-space: nowrap; }
.guide-line { height: 1px; flex: 1; min-width: 20px; background: #dfe5ee; }

.site-footer { padding-top: 30px; text-align: center; }
.footer-rule { width: 44px; height: 3px; margin: 0 auto 13px; background: var(--ink); border-radius: 99px; }
.site-footer p { margin-bottom: 5px; color: #7c8898; font-size: 11px; }
.site-footer span { color: #adb7c4; font-size: 10px; }

.preview-panel { position: fixed; right: 18px; bottom: 18px; z-index: 5; display: flex; align-items: center; gap: 9px; padding: 9px 10px 9px 13px; color: #647187; background: rgba(255, 255, 255, .93); border: 1px solid #d9e1ec; border-radius: 12px; box-shadow: 0 15px 30px rgba(33, 51, 75, .12); font-size: 11px; }
.preview-panel button { padding: 7px 9px; color: #fff; background: var(--ink); border: 0; border-radius: 8px; cursor: pointer; font-size: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 10; padding: 10px 14px; color: #fff; background: rgba(29, 39, 53, .93); border-radius: 999px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s ease, transform .2s ease; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body[data-mode="invite"] .status-banner { background: #fff3e9; border-color: #f7d8bd; }
body[data-mode="invite"] .status-icon { background: var(--orange); }
body[data-mode="invite"] .status-label { color: #bd632b; }
body[data-mode="invite"] .status-pill { color: #b9612b; background: #ffe0c6; }
body[data-mode="invite"] .group-card { opacity: .72; }
body[data-mode="invite"] .contact-card { border-color: #f0c9aa; box-shadow: 0 22px 60px rgba(202, 121, 69, .12); }
body[data-mode="invite"] .contact-card .card-state { color: #b9612b; background: #ffe3ce; }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 24px, 580px); padding-top: 14px; }
  .hero { gap: 10px; padding: 26px 2px 18px; }
  .hero-orbit { width: 108px; height: 108px; transform: scale(.75); transform-origin: center right; }
  .hero-intro { max-width: 410px; font-size: 13px; line-height: 1.55; }
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .entry-card { padding: 13px 9px 12px; border-radius: 17px; }
  .card-topline { margin-bottom: 9px; }
  .step-tag { font-size: 9px; }
  .card-state { padding: 5px 6px; font-size: 8px; }
  .card-kicker { margin-bottom: 5px; font-size: 8px; letter-spacing: .02em; white-space: nowrap; }
  .card-heading h2 { font-size: 16px; letter-spacing: -.045em; }
  .card-arrow { display: none; }
  .card-description { min-height: 38px; margin: 8px 0 9px; font-size: 9px; line-height: 1.48; }
  .qr-wrap { width: 100%; padding: 6px; border-radius: 12px; }
  .qr-wrap img { border-radius: 8px; }
  .qr-caption { padding-top: 6px; font-size: 8px; }
  .qr-tip { gap: 3px; margin-top: 8px; font-size: 8px; white-space: nowrap; }
  .tip-icon { font-size: 11px; }
  .wechat-line { gap: 4px; width: 100%; margin-top: 8px; padding: 7px 6px; font-size: 8px; }
  .wechat-line strong { font-size: 8px; }
  .copy-button { padding: 3px 5px; font-size: 8px; }
  .guide-section { padding: 24px 18px; }
  .guide-steps { align-items: stretch; flex-direction: column; gap: 12px; }
  .guide-line { width: 1px; height: 18px; min-height: 18px; margin-left: 15px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading > p { text-align: left; }
}

@media (max-width: 500px) {
  .secure-chip { padding: 7px 8px; font-size: 9px; }
  .hero { align-items: start; gap: 4px; padding-left: 0; padding-right: 0; }
  h1 { margin-bottom: 9px; font-size: clamp(29px, 9.8vw, 44px); }
  .hero-kicker { margin-bottom: 7px; font-size: 10px; }
  .hero-orbit { width: 88px; height: 88px; margin-top: 5px; transform: scale(.63); transform-origin: top right; }
  .hero-intro { font-size: 11px; }
  .status-banner { gap: 8px; margin-bottom: 10px; padding: 9px 10px; border-radius: 13px; }
  .status-icon { width: 25px; height: 25px; border-radius: 8px; font-size: 16px; }
  .status-label { margin-bottom: 1px; font-size: 10px; }
  .status-detail { font-size: 8px; }
  .status-pill { padding: 5px 7px; font-size: 8px; }
  .card-heading h2 { font-size: 15px; }
}
