:root {
  --bg: #f3f5f7;
  --panel: #ffffff;
  --text: #16181d;
  --muted: #59636e;
  --line: #dde3ea;
  --green: #1fc96b;
  --green-dark: #13a955;
  --blue: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page {
  width: min(960px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: center;
}

.share-preview,
.wechat-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(30, 41, 59, 0.08);
}

.share-preview {
  overflow: hidden;
}

.preview-image {
  aspect-ratio: 16 / 9;
  background: #eaf7ef;
}

.preview-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.preview-copy {
  padding: 24px;
}

.preview-label {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1.2;
}

.preview-copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.wechat-panel {
  padding: 28px 24px;
  text-align: center;
}

.wechat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 14px;
  overflow: hidden;
}

.wechat-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

h2 {
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1.25;
}

.hint {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.65;
  text-align: left;
}

.qr-box {
  width: min(232px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.wechat-id {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  text-align: left;
}

.wechat-id span {
  color: var(--muted);
  white-space: nowrap;
}

.wechat-id strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.copy-button {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.copy-button:hover {
  background: var(--green-dark);
}

.copy-button:focus-visible {
  outline: 3px solid rgba(31, 201, 107, 0.3);
  outline-offset: 2px;
}

.status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--green-dark);
  line-height: 1.5;
}

@media (max-width: 780px) {
  .page {
    grid-template-columns: 1fr;
    padding: 24px 0;
  }

  h1 {
    font-size: 28px;
  }

  .wechat-panel {
    padding: 24px 18px;
  }
}
