[hidden] {
  display: none !important;
}

* { box-sizing: border-box; }

:root {
  --bg: #f3f5f7;
  --line: #d9dde3;
  --text: #0f2242;
  --muted: #6c7b95;
  --navy: #0d1b3d;
  --green-bg: #e9fbf1;
  --green-line: #99e6ba;
  --green-strong: #b9f0cd;
  --shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 14px 40px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 760px) minmax(280px, 360px);
  gap: 48px;
  align-items: start;
}

.panel {
  background: #f7f7f8;
  border: 1px solid #e2e5ea;
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.badge-dark { background: var(--navy); color: #fff; }
.badge-light { background: #eef3ff; color: #20375f; }

h1 { margin: 0 0 8px; font-size: 22px; line-height: 1.35; }

.subtext {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.field { margin-bottom: 16px; }

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
}

input, textarea {
  width: 100%;
  border: 1px solid #d8dde6;
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus, textarea:focus {
  border-color: #9bb1d9;
  box-shadow: 0 0 0 4px rgba(155, 177, 217, 0.14);
}

textarea { min-height: 144px; resize: vertical; }

.readonly {
  min-height: 52px;
  border: 1px solid #d8dde6;
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  color: #586780;
}

.hint { margin-top: 8px; font-size: 12px; color: var(--muted); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  min-width: 128px;
  border: 1px solid #d6dce6;
  border-radius: 16px;
  background: #eef2f7;
  color: var(--text);
  height: 46px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn:disabled { opacity: .55; cursor: not-allowed; }

.divider {
  height: 1px;
  background: #e0e4ea;
  margin: 18px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: #fff;
  border: 1px solid #dde3eb;
  border-radius: 18px;
  padding: 16px;
}

.feature-card h3 { margin: 0 0 10px; font-size: 16px; }

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preview-card {
  width: 290px;
  border-radius: 28px;
  border: 2px solid var(--green-line);
  background: var(--green-bg);
  box-shadow: var(--shadow);
  padding: 12px;
}

.preview-title {
  min-height: 36px;
  border: 1px solid #7ad79f;
  border-radius: 999px;
  background: var(--green-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-weight: 700;
  color: #24724a;
  text-align: center;
  word-break: break-word;
}

.preview-body {
  margin-top: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,.7);
  padding: 12px;
}

.preview-body img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

.qr-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a2aec1;
  background: #edf0f4;
  font-size: 14px;
}

.multi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}

.mini-card {
  border-radius: 24px;
  border: 2px solid var(--green-line);
  background: var(--green-bg);
  padding: 10px;
  box-shadow: var(--shadow);
}

.mini-title {
  min-height: 34px;
  border: 1px solid #7ad79f;
  border-radius: 999px;
  background: var(--green-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #24724a;
  word-break: break-word;
}

.mini-body {
  margin-top: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  padding: 10px;
}

.mini-body img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #fff;
}

.mini-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.small-btn {
  flex: 1;
  height: 36px;
  border: 1px solid #d6dce6;
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .preview-wrap { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .two-col, .feature-grid { grid-template-columns: 1fr; }
  .preview-card, .multi-grid { max-width: 100%; width: 100%; }
}
