:root {
  color-scheme: light;
  --page-bg: #f3f7fc;
  --card-bg: #ffffff;
  --text-main: #172338;
  --text-muted: #68778d;
  --text-light: #8b98a8;
  --line: #e3eaf3;
  --brand-blue: #1677ff;
  --brand-blue-dark: #075ac9;
  --brand-blue-soft: #eaf3ff;
  --warning-bg: #fff9ed;
  --warning-border: #f1d99d;
  --warning-text: #6e541e;
  --error-text: #a43e34;
  --shadow: 0 18px 48px rgba(31, 76, 135, 0.09), 0 3px 12px rgba(31, 76, 135, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--page-bg);
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text-main);
  background:
    radial-gradient(circle at 50% -10%, rgba(22, 119, 255, 0.1), transparent 34rem),
    var(--page-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
img {
  max-width: 100%;
}

button {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(100% - 2rem, 36rem);
  margin: 0 auto;
  padding: 1.4rem 0 0.7rem;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.65rem;
  color: #ffffff;
  background: var(--brand-blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand-name {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-shell {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1rem 1.5rem;
}

.group-card {
  width: min(100%, 36rem);
  padding: 1.8rem 1.25rem 1.35rem;
  border: 1px solid rgba(227, 234, 243, 0.95);
  border-radius: 1.25rem;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.card-header {
  text-align: center;
}

.eyebrow,
.section-label {
  margin: 0 0 0.45rem;
  color: var(--brand-blue-dark);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 1.3;
}

h1 {
  font-size: clamp(1.65rem, 7vw, 2.15rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1rem;
}

.subtitle {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.qr-section {
  margin-top: 1.75rem;
  text-align: center;
}

.qr-section h2 {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.qr-frame {
  display: flex;
  width: min(100%, 20.5rem);
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  margin: 0.8rem auto 0.7rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #ffffff;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.38rem;
  object-fit: contain;
  image-rendering: auto;
}

.qr-date {
  margin: 0;
  color: var(--text-light);
  font-size: 0.78rem;
}

.instructions {
  margin: 1rem auto 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  color: var(--text-muted);
  background: #f8fbff;
  text-align: left;
  font-size: 0.86rem;
}

.instructions p {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.3rem 0;
}

.instruction-dot {
  display: inline-grid;
  flex: 0 0 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  margin-top: 0.15rem;
  border-radius: 50%;
  color: var(--brand-blue-dark);
  background: var(--brand-blue-soft);
  font-size: 0.7rem;
  font-weight: 700;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}

.button {
  min-height: 48px;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.72rem;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

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

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.3);
  outline-offset: 3px;
}

.button-primary {
  color: #ffffff;
  background: var(--brand-blue);
  box-shadow: 0 6px 14px rgba(22, 119, 255, 0.2);
}

.button-primary:hover {
  background: var(--brand-blue-dark);
}

.button-secondary {
  border-color: var(--line);
  color: var(--text-main);
  background: #ffffff;
}

.button-secondary:hover {
  border-color: #b9d0ee;
  background: #f7fbff;
}

.status-message {
  min-height: 1.5rem;
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.status-message[data-state="error"] {
  color: var(--error-text);
}

.status-message[data-state="success"] {
  color: var(--brand-blue-dark);
}

.noscript-message {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.notice-box {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.9rem;
  border: 1px solid var(--warning-border);
  border-radius: 0.8rem;
  color: var(--warning-text);
  background: var(--warning-bg);
}

.notice-icon {
  display: grid;
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  margin-top: 0.1rem;
  border-radius: 50%;
  color: #ffffff;
  background: #d6a62f;
  font-size: 0.78rem;
  font-weight: 800;
}

.notice-box h2 {
  font-size: 0.92rem;
}

.notice-box p,
.support-section > p:not(.section-label) {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
}

.support-section {
  margin-top: 1.45rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.support-details {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.8rem;
  background: var(--brand-blue-soft);
}

.support-qq-line,
.support-hint {
  margin: 0;
}

.support-qq-line {
  color: var(--text-main);
  font-size: 0.9rem;
}

.support-qq-line strong {
  color: var(--brand-blue-dark);
  letter-spacing: 0.04em;
}

.support-hint {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.site-footer {
  width: min(100% - 2rem, 36rem);
  margin: 0 auto;
  padding: 0 0 1.5rem;
  color: var(--text-light);
  text-align: center;
  font-size: 0.75rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

@media (min-width: 30rem) {
  .group-card {
    padding: 2.15rem 2rem 1.55rem;
  }

  .action-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .button:hover,
  .button:active {
    transform: none;
  }
}
