:root {
  --primary: #2FA87A;
  --primary-deep: #248A63;
  --primary-bg: #E8F7F2;
  --ink: #222222;
  --muted: #666666;
  --tertiary: #999999;
  --line: #EEEEEE;
  --bg: #FFFFFF;
  --subtle: #F6F7F8;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  border-radius: 8px;
  display: block;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
}

.top-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.hero-brand {
  text-align: left;
}

.hero-logo {
  border-radius: 22%;
  display: block;
}

.hero-brand h1 {
  margin: 20px 0 8px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.slogan {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.lead {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.65;
  max-width: 420px;
}

.feature-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.feature-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-panel {
  background: var(--subtle);
  border-radius: 24px;
  padding: 20px 20px 24px;
  box-shadow: 0 8px 28px rgba(34, 34, 34, 0.06);
}

.platform-tabs {
  display: flex;
  gap: 4px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
}

.tab.is-active {
  background: var(--primary-bg);
  color: var(--primary-deep);
}

.panel-body {
  display: flex;
  gap: 20px;
  align-items: center;
}

.qr-wrap {
  flex: 0 0 auto;
  text-align: center;
}

#qr-canvas {
  display: block;
  width: 160px;
  height: 160px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 8px;
}

.qr-img {
  display: block;
  width: 160px;
  height: 160px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 8px;
}

.qr-box {
  width: 160px;
  height: 160px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box img {
  display: block;
  width: 144px !important;
  height: 144px !important;
}

.qr-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--tertiary);
}

.cta-wrap {
  flex: 1;
  min-width: 0;
}

.platform-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.platform-desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.version-line,
.note-line {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--tertiary);
  line-height: 1.45;
  white-space: pre-wrap;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-width: 168px;
  height: 44px;
  padding: 0 22px;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--primary-deep);
}

.btn-primary.is-disabled,
.btn-primary[aria-disabled="true"] {
  background: #C8CDD0;
  pointer-events: none;
  cursor: default;
}

.btn-ghost {
  background: transparent;
  color: var(--tertiary);
  border: 1px solid var(--line);
  cursor: not-allowed;
}

.btn-ghost[hidden],
.btn-primary[hidden],
#secondary-cta[hidden] {
  display: none !important;
}

.footer {
  padding: 20px 24px 32px;
  text-align: center;
  color: var(--tertiary);
  font-size: 12px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--tertiary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.wechat-tip {
  background: #FFF6E8;
  color: #8A5A00;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
}

.wechat-tip[hidden] {
  display: none;
}

.wechat-tip p {
  margin: 0;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px 28px;
  }

  .hero-brand {
    text-align: center;
  }

  .hero-logo {
    margin: 0 auto;
  }

  .lead,
  .feature-list {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .hero-brand h1 {
    font-size: 32px;
  }

  .panel-body {
    flex-direction: column;
  }

  .qr-wrap.is-mobile-hide {
    display: none;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
}
