/**
 * [INPUT]: 依赖 index.html 的语义结构和原始深色二维码截图。
 * [OUTPUT]: 提供桌面与手机上清晰的双栏邀请页和可辨识的过期状态。
 * [POS]: dist 的视觉层，不承担内容事实与有效期判断。
 * [PROTOCOL]: 变更时更新此头部，然后检查 CLAUDE.md
 */
:root {
  color-scheme: dark;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  background: #0b1320;
  color: #f6f5ee;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 72% 19%, rgba(155, 187, 120, .15), transparent 27rem),
    radial-gradient(circle at 5% 85%, rgba(81, 138, 153, .11), transparent 30rem),
    #0b1320;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .22;
  pointer-events: none;
  background-image: radial-gradient(circle, #81929c 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 67%);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #d8eb9d;
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

.site-shell {
  width: min(100% - 80px, 1180px);
  margin-inline: auto;
}

.site-header {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(220, 237, 218, .1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #d7ed9e;
  color: #162117;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  transform: rotate(-7deg);
}

.brand-name {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: .02em;
}

.brand-divider {
  padding-inline: 8px;
  color: #688077;
  font-weight: 400;
}

.unofficial-badge {
  padding: 9px 13px;
  border: 1px solid rgba(213, 232, 198, .2);
  border-radius: 999px;
  color: #b8c5c7;
  font-size: 12px;
  letter-spacing: .07em;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  padding-block: 72px 88px;
}

.hero-copy {
  position: relative;
  isolation: isolate;
}

.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  left: -230px;
  top: -130px;
  border: 1px solid rgba(196, 222, 161, .11);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(196, 222, 161, .022), 0 0 0 180px rgba(196, 222, 161, .018);
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: #cbe39f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
}

.eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: #d0e7a2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-block: 30px 25px;
  font-size: clamp(46px, 5.4vw, 74px);
  line-height: 1.15;
  font-weight: 780;
  letter-spacing: -.055em;
  white-space: nowrap;
}

h1 em {
  color: #d5eca0;
  font-style: normal;
}

.hero-lead {
  max-width: 530px;
  margin-bottom: 32px;
  color: #b4c3c5;
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: #d8eea4;
  color: #13201a;
}

.button-primary:hover {
  background: #e8f7c3;
}

.invite-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(194, 225, 168, .18);
  border-radius: 28px;
  background: linear-gradient(158deg, #1b2d34, #111d29 42%, #121922);
  box-shadow: 0 28px 80px rgba(1, 5, 10, .34), inset 0 1px rgba(255, 255, 255, .04);
  scroll-margin-top: 24px;
}

.invite-card::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  top: -150px;
  right: -80px;
  border-radius: 50%;
  background: #d3ecab;
  opacity: .13;
  filter: blur(44px);
  pointer-events: none;
}

.invite-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.invite-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.35;
  letter-spacing: -.035em;
}

.invite-symbol {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(211, 235, 172, .35);
  border-radius: 14px;
  color: #d7eba8;
  font-size: 27px;
  line-height: 1;
}

.qr-link {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 17px;
  background: #171717;
  line-height: 0;
}

.qr-link img {
  width: 100%;
  height: auto;
  display: block;
}

.scan-help {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
}

.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #d8eda0;
  box-shadow: 0 0 0 5px rgba(216, 237, 160, .1);
}

.scan-help p {
  margin: 0;
  color: #dae5dc;
  font-size: 13px;
  line-height: 1.8;
}

.scan-help small {
  color: #98aaa8;
  font-size: 12px;
}

.expired-state {
  padding: 56px 28px;
  border: 1px dashed rgba(216, 238, 164, .27);
  border-radius: 18px;
  background: rgba(7, 13, 20, .38);
  text-align: center;
}

.expired-icon {
  display: block;
  margin-bottom: 22px;
  color: #d7eda5;
  font-size: 36px;
}

.expired-state h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

.expired-state p {
  color: #b4c4c3;
  font-size: 14px;
  line-height: 1.8;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(220, 237, 218, .1);
  color: #708485;
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 44px, 650px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-block: 60px 70px;
  }

  h1 {
    font-size: clamp(41px, 7vw, 61px);
  }

  .invite-card {
    max-width: 530px;
    width: 100%;
    justify-self: center;
  }
}

@media (max-width: 540px) {
  .site-shell {
    width: min(100% - 32px, 430px);
  }

  .site-header {
    min-height: 79px;
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 23px;
  }

  .unofficial-badge {
    padding: 7px 9px;
    font-size: 10px;
    letter-spacing: 0;
  }

  .hero {
    gap: 20px;
    padding-top: 24px;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: .12em;
  }

  .eyebrow-line {
    width: 18px;
  }

  h1 {
    margin-block: 12px;
    font-size: clamp(31px, 8vw, 39px);
    line-height: 1.2;
  }

  .hero-lead {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.55;
  }

  .hero-actions {
    display: none;
  }

  .invite-card {
    padding: 20px;
    border-radius: 22px;
  }

  .invite-heading h2 {
    font-size: 27px;
  }

  .site-footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
