:root {
  --color-primary: #07c160;
  --color-primary-pressed: #059b4d;
  --color-brand-blue: #1689ee;
  --color-text: #18212b;
  --color-text-secondary: #647180;
  --color-border: #e7edf3;
  --color-surface: #ffffff;
  --color-page-start: #f1f9ff;
  --color-page-end: #f4fffb;
  --shadow-card: 0 24px 72px rgba(25, 88, 128, 0.13);
  --radius-card: 28px;
  --radius-button: 999px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--color-page-end);
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--color-text);
  background:
    radial-gradient(circle at 12% 10%, rgba(30, 150, 244, 0.16), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(7, 193, 96, 0.13), transparent 38%),
    linear-gradient(145deg, var(--color-page-start), var(--color-page-end));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

.page-shell {
  width: 100%;
  flex: 1;
  display: grid;
  place-items: center;
  padding: max(32px, env(safe-area-inset-top)) 20px 28px;
}

.brand-card {
  width: min(100%, 520px);
  padding: 42px 38px 38px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.brand-logo {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 24px;
  border-radius: 25px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(20, 135, 215, 0.2);
}

h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin: 14px 0 0;
  color: var(--color-text-secondary);
  font-size: clamp(15px, 3.5vw, 18px);
  line-height: 1.6;
}

.code-section {
  margin-top: 30px;
}

.mini-program-code,
.deep-link-code img {
  display: block;
  width: min(224px, 64vw);
  height: auto;
  margin: 0 auto;
  padding: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
}

.deep-link-code img {
  width: min(208px, 58vw);
}

.code-caption {
  margin: 12px 0 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.launch-section,
.status-section {
  width: 100%;
  margin-top: 32px;
}

.primary-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  color: #ffffff;
  background: var(--color-primary);
  border: 0;
  border-radius: var(--radius-button);
  box-shadow: 0 10px 24px rgba(7, 193, 96, 0.24);
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  box-shadow: 0 12px 28px rgba(7, 193, 96, 0.3);
}

.primary-button:active {
  background: var(--color-primary-pressed);
  box-shadow: 0 6px 14px rgba(7, 193, 96, 0.22);
  transform: translateY(1px);
}

.primary-button:focus-visible {
  outline: 3px solid rgba(22, 137, 238, 0.35);
  outline-offset: 3px;
}

.wechat-launch-host,
.wechat-launch-host wx-open-launch-weapp {
  width: 100%;
  min-height: 52px;
  display: block;
}

.status-section p {
  margin: 0 0 20px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.site-footer {
  width: 100%;
  padding: 0 20px max(22px, env(safe-area-inset-bottom));
  text-align: center;
}

.site-footer a {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-brand-blue);
  text-decoration: underline;
}

.noscript-message {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  padding: 12px 16px;
  color: #ffffff;
  text-align: center;
  background: #b42318;
  border-radius: 12px;
}

@media (max-width: 560px) {
  .page-shell {
    place-items: start center;
    padding: max(24px, env(safe-area-inset-top)) 16px 22px;
  }

  .brand-card {
    padding: 34px 24px 28px;
    border-radius: 24px;
  }

  .brand-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
    border-radius: 22px;
  }
}

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