:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #222222;
  --muted: #667085;
  --line: #e8ebf0;
  --red: #a82020;
  --red-soft: #fff1f1;
  --blue: #3676e8;
  --green: #23a957;
  --green-soft: #eefaf2;
  --yellow-soft: #fff8dc;
  --shadow: 0 8px 28px rgba(21, 39, 66, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 16px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -120px, rgba(232, 75, 75, 0.12), transparent 360px),
    var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.hero,
.step-card,
.status-card,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero {
  overflow: hidden;
  border: 2px solid #ed3838;
  background:
    linear-gradient(135deg, rgba(255, 238, 238, 0.96), rgba(255, 255, 255, 0.96)),
    var(--card);
  text-align: center;
}

.hero-main {
  padding: 26px 22px 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: #8a1b1b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  color: #a82020;
  font-size: clamp(25px, 6vw, 36px);
  line-height: 1.25;
}

.hero-summary {
  margin: 9px 0 0;
  color: #666666;
  font-size: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #f2d6d6;
  background: rgba(255, 255, 255, 0.68);
}

.stat {
  min-width: 0;
  padding: 14px 8px;
}

.stat + .stat {
  border-left: 1px solid #f2d6d6;
}

.stat-value {
  display: block;
  color: #8d1c1c;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 4px;
  color: #7c6970;
  font-size: 12px;
}

.notice {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid #f1dfdf;
  border-radius: 12px;
  background: #fffafa;
  color: #7e1b1b;
  font-size: 14px;
}

.step-card {
  margin-top: 16px;
  padding: 20px;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--red);
  font-size: 19px;
  font-weight: 700;
}

.step-number {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #ffffff;
  background: var(--red);
  font-size: 14px;
}

.step-copy {
  margin: 0 0 14px;
  color: #505866;
  font-size: 15px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.topic-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px 8px 11px;
  border-radius: 8px;
  background: #f7f8fa;
}

.topic-item span {
  overflow: hidden;
  color: #356c48;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button,
.small-button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 6px;
  padding: 5px 10px;
  color: #ffffff;
  background: var(--blue);
  font-size: 13px;
}

.rule-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  position: relative;
  padding: 10px 12px 10px 36px;
  border-radius: 9px;
  background: #f7f9fc;
  color: #4d5664;
  font-size: 14px;
}

.rule-list li::before {
  position: absolute;
  top: 9px;
  left: 12px;
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  color: #3f4754;
  font-size: 14px;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 9px;
  padding: 11px 12px;
  color: #273142;
  background: #ffffff;
  outline: none;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(54, 118, 232, 0.12);
}

.upload-box {
  margin-top: 14px;
  padding: 22px 14px;
  border: 2px dashed #c9ccd2;
  border-radius: 14px;
  text-align: center;
}

.upload-box p {
  margin: 0 0 12px;
  font-weight: 650;
}

.upload-box small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.file-select {
  border: 0;
  border-radius: 9px;
  padding: 10px 18px;
  color: #ffffff;
  background: var(--blue);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.preview {
  position: relative;
  overflow: hidden;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
}

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

.preview button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(20, 26, 35, 0.76);
  line-height: 1;
}

.submit-button {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 11px;
  padding: 15px 18px;
  color: #ffffff;
  background: var(--green);
  font-size: 17px;
  font-weight: 750;
}

.privacy-note {
  margin: 10px 0 0;
  color: #77808e;
  font-size: 12px;
  text-align: center;
}

.status-card {
  margin: 16px 0 34px;
  padding: 20px;
}

.status-card h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.status-card > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid #d8dee8;
  border-radius: 9px;
  padding: 11px 12px;
}

.inline-form button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 9px;
  padding: 11px 16px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 650;
}

.status-result {
  display: none;
  margin-top: 12px;
  padding: 13px;
  border-radius: 9px;
  background: #f7f9fc;
  color: #3f4754;
  font-size: 14px;
  white-space: pre-wrap;
}

.status-result.show {
  display: block;
}

.status-approved {
  color: #14753a;
  background: var(--green-soft);
}

.status-rejected {
  color: #9b2727;
  background: var(--red-soft);
}

.wechat-tips {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(19, 24, 34, 0.65);
}

.wechat-tips.show {
  display: flex;
}

.wechat-dialog {
  width: min(430px, 100%);
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.wechat-dialog h3 {
  margin: 0 0 8px;
}

.wechat-dialog p {
  margin: 0 0 16px;
  color: #5f6878;
  font-size: 14px;
}

.toast {
  position: fixed;
  z-index: 20000;
  top: 44%;
  left: 50%;
  display: none;
  transform: translate(-50%, -50%);
  border-radius: 9px;
  padding: 11px 22px;
  color: #ffffff;
  background: rgba(18, 23, 32, 0.86);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.toast.show {
  display: block;
}

.result-code {
  margin-top: 14px;
  border: 1px solid #bfe5cc;
  border-radius: 10px;
  padding: 14px;
  background: var(--green-soft);
}

.result-code strong {
  color: #14753a;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.access-shell {
  display: grid;
  min-height: calc(100vh - 32px);
  place-items: center;
}

.access-card {
  width: min(520px, 100%);
  padding: 34px 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
}

.download-page {
  padding: 30px 16px;
}

.download-page .access-shell {
  display: block;
  min-height: 0;
}

.download-page .access-card {
  margin: 0 auto;
}

.access-card h1 {
  margin: 0 0 5px;
  font-size: 27px;
}

.access-card > p {
  margin: 0 0 25px;
  color: var(--muted);
}

.resource-button {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  padding: 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.resource-primary {
  background: var(--green);
}

.resource-backup {
  background: var(--blue);
}

.access-note {
  margin-top: 18px;
  padding: 12px;
  border-radius: 10px;
  background: var(--yellow-soft);
  color: #8a6500;
  font-size: 13px;
}

.admin-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-header h1 {
  margin: 0;
}

.admin-header p {
  margin: 3px 0 0;
  color: var(--muted);
}

.logout-button {
  border: 1px solid #d9dfe8;
  border-radius: 8px;
  padding: 8px 13px;
  color: #475467;
  background: #ffffff;
}

.auth-card {
  width: min(420px, 100%);
  margin: 8vh auto 0;
  padding: 28px;
}

.auth-card h1 {
  margin: 0 0 5px;
}

.auth-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.auth-card form {
  display: grid;
  gap: 11px;
}

.auth-card input {
  border: 1px solid #d8dee8;
  border-radius: 9px;
  padding: 12px;
}

.auth-card button {
  border: 0;
  border-radius: 9px;
  padding: 12px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 700;
}

.admin-dashboard {
  display: none;
}

.admin-dashboard.show {
  display: block;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff;
}

.admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.admin-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 25px;
  line-height: 1.15;
}

.admin-module-nav {
  position: sticky;
  z-index: 30;
  top: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #dce3ed;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(24, 39, 75, 0.1);
  backdrop-filter: blur(10px);
}

.admin-module-nav-head {
  min-width: 92px;
}

.admin-module-nav-head strong,
.admin-module-nav-head span {
  display: block;
}

.admin-module-nav-head strong {
  color: #273142;
  font-size: 14px;
}

.admin-module-nav-head span {
  color: #8a94a4;
  font-size: 11px;
}

.admin-module-buttons {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.admin-module-button {
  flex: 0 0 auto;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 7px 10px;
  color: #475467;
  background: #f8fafc;
  font-size: 12px;
}

.admin-module-button:hover {
  border-color: #9fb9ec;
  color: #245bb3;
  background: #f2f6ff;
}

.admin-module-button.active {
  border-color: #3676e8;
  color: #ffffff;
  background: #3676e8;
}

.collapse-all-button {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 7px 9px;
  color: #667085;
  background: #ffffff;
  font-size: 12px;
}

.panel {
  margin-top: 14px;
  padding: 18px;
  scroll-margin-top: 110px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
}

.panel h2 {
  margin: 0 0 15px;
  font-size: 19px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f4;
}

.panel-head h2 {
  margin: 0;
}

.panel-toggle {
  flex: 0 0 auto;
  border: 1px solid #d8dee8;
  border-radius: 7px;
  padding: 5px 9px;
  color: #667085;
  background: #f8fafc;
  font-size: 12px;
}

.panel-body {
  min-width: 0;
}

.panel.collapsed .panel-head {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.panel.collapsed .panel-body {
  display: none;
}

.chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(26px, 1fr));
  align-items: end;
  gap: 7px;
  height: 180px;
  padding-top: 10px;
}

.bar-wrap {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 5px;
}

.bar-value {
  color: #5f6878;
  font-size: 10px;
}

.bar {
  width: 100%;
  min-height: 3px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #5c8df0, #3676e8);
}

.bar-label {
  color: #8b94a1;
  font-size: 9px;
  writing-mode: vertical-rl;
}

.submissions {
  display: grid;
  gap: 12px;
}

.submission-bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  padding: 10px 12px;
  border: 1px solid #e0e6ef;
  border-radius: 10px;
  background: #f8fafc;
}

.select-all-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #475467;
  font-size: 13px;
  font-weight: 650;
}

.select-all-label input,
.submission-select input {
  width: 17px;
  height: 17px;
  accent-color: #3676e8;
}

.selected-count {
  color: #667085;
  font-size: 12px;
}

.bulk-delete-button {
  margin-left: auto;
  border: 1px solid #e6b9b9;
  border-radius: 8px;
  padding: 7px 12px;
  color: #a72929;
  background: #fff5f5;
  font-weight: 650;
}

.bulk-delete-button:disabled {
  border-color: #d8dee8;
  color: #98a2b3;
  background: #f2f4f7;
}

.submission-select {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding-top: 2px;
}

.submission {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  background: #fbfcfe;
}

.submission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.submission-head-info {
  min-width: 0;
  flex: 1;
}

.submission h3 {
  margin: 0;
  font-size: 16px;
}

.submission-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  word-break: break-word;
}

.badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
}

.badge-pending {
  color: #8a5b00;
  background: #fff3cd;
}

.badge-approved {
  color: #126c36;
  background: #dcf7e7;
}

.badge-rejected {
  color: #9b2727;
  background: #ffe4e4;
}

.submission-note {
  margin: 10px 0;
  color: #4d5664;
  font-size: 14px;
  white-space: pre-wrap;
}

.admin-images {
  display: grid;
  grid-template-columns: repeat(3, 120px);
  gap: 7px;
}

.admin-images a {
  display: block;
  overflow: hidden;
  height: 90px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f1f3f7;
}

.admin-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-actions {
  display: flex;
  gap: 8px;
  margin-top: 11px;
}

.record-actions {
  justify-content: flex-end;
}

.approve-button,
.reject-button {
  border: 0;
  border-radius: 8px;
  padding: 8px 13px;
  color: #ffffff;
  font-weight: 650;
}

.approve-button {
  background: var(--green);
}

.reject-button {
  background: #d74747;
}

.empty {
  padding: 25px 10px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 680px) {
  body {
    padding: 12px;
  }

  .hero-main {
    padding: 22px 15px 17px;
  }

  .step-card,
  .status-card {
    padding: 16px;
  }

  .topic-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart {
    overflow-x: auto;
    grid-template-columns: repeat(14, 34px);
    justify-content: start;
  }

  .admin-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-header {
    align-items: flex-start;
  }

  .inline-form {
    flex-direction: column;
  }
}

/* Visual alignment with the referenced mobile landing page. */
body {
  background: #f4f6f9;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

.shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.pay-card {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 2px solid #d63031;
  border-radius: 14px;
  background: #fff1f1;
  box-shadow: none;
  text-align: center;
}

.pay-title {
  display: inline-block;
  margin: 0 0 6px;
  color: #d63031;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.shake-text {
  animation: shake 0.5s infinite;
}

.pay-desc {
  margin: 8px 0 0;
  color: #444444;
  font-size: 14px;
}

.intro-copy {
  color: #222222;
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 4px;
}

.intro-copy .text-red {
  color: #a83232;
}

.step-card,
.shell > .status-card {
  margin: 16px 0;
  padding: 20px;
  border: 1px solid #e8ebf0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.step-card-header {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eeeeee;
  color: #a83232;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.step-copy {
  margin: 0 0 10px;
  color: #222222;
  font-size: 16px;
}

.topic-grid {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 0;
}

.topic-item {
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f7f8fa;
}

.topic-item span {
  color: #268844;
  font-weight: 700;
}

.copy-button {
  padding: 5px 10px;
  border-radius: 5px;
  background: #3676e8;
  font-size: 14px;
}

.rule-list {
  gap: 8px;
}

.rule-list li {
  padding: 8px 9px 8px 30px;
  border-radius: 6px;
  background: #f7f8fa;
  font-size: 15px;
}

.rule-list li::before {
  top: 8px;
  left: 10px;
}

.application-card {
  margin: 24px 0 0;
  padding: 28px 24px;
  border: 2px solid #ed3838;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.application-card-title {
  margin: 0 0 24px;
  color: #111111;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.4;
}

.application-card .upload-box {
  margin: 20px 0 24px;
  padding: 32px 16px;
  border: 2px dashed #c9ccd2;
  border-radius: 16px;
}

.upload-tip-text {
  margin: 0 0 16px !important;
  font-size: 22px;
  font-weight: 400 !important;
}

.upload-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.file-select {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  color: #222222;
  background: #e9edf2;
  font-size: 16px;
}

.file-status {
  color: #666666;
  font-size: 18px;
}

.count-text {
  margin-top: 14px;
  color: #666666;
  font-size: 18px;
}

.upload-box small {
  margin-top: 12px;
  color: #666666;
  font-size: 15px;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 0;
  padding: 18px 0;
  border-radius: 50px;
  background: #23c159;
  font-size: 26px;
  font-weight: 700;
}

.submit-button-icon {
  display: inline-flex;
  width: 44px;
  height: 38px;
  flex: 0 0 auto;
}

.submit-button-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.robot-notice {
  margin-top: 0;
  margin-bottom: 20px;
  padding: 16px;
  border-left: 4px solid #ed3838;
  border-radius: 12px;
  color: #a82020;
  background: #fff3f3;
  font-size: 18px;
  line-height: 1.7;
}

.privacy-note {
  margin: -8px 0 20px;
  font-size: 13px;
}

.demo-wrap {
  margin: 30px 0 20px;
  padding: 26px 20px;
  border: 1px solid #f2ddbc;
  border-radius: 32px;
  background: #fff8e3;
}

.demo-top-text {
  margin-bottom: 22px;
  color: #c26d1b;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.demo-img-box {
  overflow: hidden;
  padding: clamp(8px, 2vw, 18px);
  border-radius: 22px;
  background: #ffffff;
}

.demo-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
}

.demo-bottom-text {
  margin-top: 22px;
  color: #229933;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.status-card {
  margin: 16px 0;
  padding: 20px;
  border: 1px solid #e8ebf0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.status-card h2 {
  margin: 0;
}

.status-card > .step-copy {
  margin-bottom: 14px;
}

.wechat-tips {
  padding: 0;
  background: #ffffff;
}

.wechat-dialog {
  width: 85%;
  padding: 30px 24px;
  border-radius: 0;
  box-shadow: none;
}

.wechat-dialog h3 {
  margin-bottom: 20px;
  color: #d63031;
  font-size: 22px;
}

.wechat-dialog p {
  color: #444444;
  font-size: 17px;
  line-height: 1.8;
}

.wechat-dialog .primary-button {
  width: 100%;
  padding: 14px 0;
  border-radius: 10px;
  background: #d63031;
  font-size: 18px;
  font-weight: 500;
}

.wechat-dialog .secondary-button {
  margin-top: 12px;
  color: #666666;
  background: #eef1f5;
}

.toast {
  top: 45%;
  padding: 12px 26px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 16px;
}

@keyframes shake {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 680px) {
  body {
    padding: 16px;
  }

  .topic-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .application-card {
    padding: 22px 16px;
  }

  .application-card-title {
    font-size: 20px;
  }

  .pay-title {
    font-size: 22px;
  }

  .demo-top-text {
    font-size: 20px;
  }

  .demo-bottom-text {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shake-text {
    animation: none;
  }
}

.site-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.site-gallery-item {
  overflow: hidden;
  margin: 0;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  background: #f7f8fa;
}

.site-gallery-item img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #ffffff;
}

.site-gallery-item figcaption {
  padding: 9px 12px;
  color: #505866;
  font-size: 14px;
  text-align: center;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.editor-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #3f4754;
  font-size: 13px;
  font-weight: 650;
}

.editor-wide {
  grid-column: 1 / -1;
}

.password-change-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.password-help {
  margin: 10px 0 0;
  text-align: center;
}

.editor-field input,
.editor-field textarea {
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 9px 11px;
  color: #273142;
  background: #ffffff;
  font-size: 14px;
  font-weight: 400;
  outline: none;
}

.editor-field textarea {
  min-height: 74px;
  resize: vertical;
}

.editor-field input:focus,
.editor-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(54, 118, 232, 0.12);
}

.save-content-button {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 9px;
  padding: 12px;
  color: #ffffff;
  background: var(--green);
  font-weight: 700;
}

.image-upload-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc;
}

.image-upload-form .primary-button {
  min-height: 39px;
}

.admin-site-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.admin-site-image {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
}

.admin-site-image img {
  width: 112px;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  background: #f1f3f7;
}

.admin-site-image-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 10px 10px 10px 0;
}

.admin-site-image-info strong {
  width: 100%;
  overflow: hidden;
  color: #344054;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-site-image-info span {
  color: var(--muted);
  font-size: 12px;
}

.delete-image-button {
  border: 1px solid #efcaca;
  border-radius: 7px;
  padding: 5px 10px;
  color: #a72929;
  background: #fff5f5;
  font-size: 12px;
}

.quick-copy-block {
  margin-top: 12px;
}

.copy-step-description {
  margin-bottom: 10px;
  white-space: pre-line;
}

.step-inline-highlight {
  color: #d63031;
  font-size: 1.08em;
  font-weight: 650;
}

.quick-copy-list {
  display: grid;
  gap: 8px;
}

.quick-copy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border-radius: 7px;
  background: #f7f8fa;
}

.quick-copy-content {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.quick-copy-content strong {
  color: #364152;
  font-size: 14px;
}

.quick-copy-content span {
  overflow-wrap: anywhere;
  color: #2e8b57;
  font-size: 14px;
}

.quick-copy-button {
  min-width: 82px;
  padding: 7px 12px;
}

.quick-copy-empty {
  padding: 14px;
  border: 1px dashed #d8dee8;
  border-radius: 7px;
  color: #8a94a4;
  background: #fafbfd;
  font-size: 13px;
  text-align: center;
}

.copy-item-form-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(280px, 1.55fr);
  gap: 12px;
}

.copy-item-form-grid .editor-field:last-child textarea {
  min-height: 88px;
}

.admin-copy-items {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.admin-copy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
}

.admin-copy-item-info {
  min-width: 0;
}

.admin-copy-item-info strong {
  display: block;
  color: #344054;
  font-size: 14px;
}

.admin-copy-item-info p {
  margin: 4px 0 0;
  color: #606a79;
  font-size: 13px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.admin-copy-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.admin-copy-actions button {
  border: 1px solid #d8dee8;
  border-radius: 7px;
  padding: 5px 9px;
  color: #475467;
  background: #ffffff;
  font-size: 12px;
}

.admin-copy-actions button:disabled {
  opacity: 0.4;
}

.custom-content-section {
  display: grid;
  gap: 16px;
  margin: 16px 0;
}

.custom-content-card {
  display: grid;
  overflow: hidden;
  border: 1px solid #e8ebf0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.custom-content-card.has-image {
  grid-template-columns: 1fr;
}

.custom-content-media {
  min-height: 0;
  background: #f4f6f9;
}

.custom-content-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.custom-content-body {
  min-width: 0;
  padding: 22px;
}

.custom-content-body h2 {
  margin: 0 0 10px;
  color: #a83232;
  font-size: 20px;
  line-height: 1.45;
}

.custom-content-body p {
  margin: 0;
  color: #505866;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.content-block-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-content-blocks {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-content-block {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  min-height: 105px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfe;
}

.admin-content-block > img,
.admin-content-placeholder {
  width: 130px;
  height: 100%;
  min-height: 105px;
  object-fit: cover;
  background: #eef1f5;
}

.admin-content-placeholder {
  display: grid;
  place-items: center;
  color: #98a2b3;
  font-size: 12px;
}

.admin-content-block-info {
  min-width: 0;
  padding: 12px 13px;
}

.admin-content-block-info strong {
  display: block;
  color: #344054;
  font-size: 15px;
}

.admin-content-block-info p {
  margin: 5px 0 10px;
  color: #606a79;
  font-size: 13px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.topic-item-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc;
}

.editor-help {
  margin: -4px 0 12px;
  color: #667085;
  font-size: 13px;
}

.admin-topic-items {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.admin-topic-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfe;
}

.admin-topic-item > input[type="text"] {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8dee8;
  border-radius: 7px;
  padding: 8px 10px;
  color: #344054;
  background: #ffffff;
}

@media (max-width: 760px) {
  .editor-grid,
  .image-upload-form,
  .copy-item-form-grid,
  .content-block-form-grid,
  .topic-item-form,
  .password-change-grid {
    grid-template-columns: 1fr;
  }

  .editor-wide {
    grid-column: auto;
  }

  .site-gallery-grid {
    grid-template-columns: 1fr;
  }

  .quick-copy-item,
  .admin-copy-item {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-copy-button {
    width: 100%;
  }

  .admin-copy-actions button {
    flex: 1;
  }

  .custom-content-card.has-image {
    grid-template-columns: 1fr;
  }

  .admin-content-block {
    grid-template-columns: 95px minmax(0, 1fr);
  }

  .admin-content-block > img,
  .admin-content-placeholder {
    width: 95px;
  }

  .admin-topic-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-topic-item .admin-copy-actions {
    grid-column: 1 / -1;
  }

  .admin-module-nav {
    grid-template-columns: 1fr auto;
    top: 6px;
  }

  .admin-module-nav-head {
    grid-column: 1 / -1;
  }

  .submission-bulk-toolbar {
    flex-wrap: wrap;
  }

  .bulk-delete-button {
    margin-left: 0;
  }
}
