:root {
  color-scheme: light;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: #1199da;
  color: #111827;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #1685d7 0%, #13aee6 100%);
  padding: 18px 12px;
}

.phone-frame {
  width: min(100%, 400px);
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(4, 86, 151, 0.35);
}

.form-panel {
  padding: 34px 20px 20px;
}

.hero-image-wrap {
  position: relative;
  min-height: 230px;
  background: linear-gradient(135deg, #0fb3ef 0%, #45d3ff 56%, #0aa2df 100%);
}

.hero-image {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center bottom;
}

.hero-fallback {
  display: none;
  min-height: 230px;
  padding: 42px 26px;
  color: #fff;
}

.hero-image-missing .hero-image {
  display: none;
}

.hero-image-missing .hero-fallback {
  display: block;
}

.fallback-logo {
  margin-bottom: 26px;
  font-size: 30px;
  font-weight: 800;
}

.hero-fallback h1 {
  margin: 0 0 18px;
  font-size: 24px;
}

.hero-fallback p {
  margin: 0 0 12px;
  font-size: 14px;
}

.hero-fallback span {
  display: inline-block;
  padding: 5px 18px;
  border-radius: 4px;
  background: #fff;
  color: #1398df;
  font-size: 14px;
}

.form-panel h2,
.form-panel h3 {
  margin: 0 0 12px;
  color: #078ff0;
  font-size: 19px;
  line-height: 1.35;
}

.form-panel h3 {
  margin-top: 18px;
}

.field-label {
  display: block;
  margin: 14px 0 7px;
  font-size: 14px;
  font-weight: 700;
}

.field-label b {
  color: #e53935;
}

input,
select {
  width: 100%;
  height: 44px;
  border: 1px solid #d7dde8;
  border-radius: 7px;
  padding: 0 14px;
  background: #fff;
  color: #111827;
  outline: none;
}

input:focus,
select:focus {
  border-color: #13aee6;
  box-shadow: 0 0 0 3px rgba(19, 174, 230, 0.12);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.upload-list {
  display: grid;
  gap: 10px;
}

.upload-tile {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px dashed #10a9e8;
  border-radius: 7px;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
}

.upload-tile input {
  display: none;
}

.upload-plus {
  color: #0b9fe4;
  font-size: 24px;
  line-height: 1;
}

.upload-tile strong {
  font-size: 15px;
  font-weight: 500;
}

.upload-tile small {
  max-width: 90%;
  color: #6b7280;
  overflow-wrap: anywhere;
}

.upload-tile.has-file {
  background: #effaf6;
  border-color: #16a34a;
}

.notice {
  margin: 18px 0;
  border-left: 4px solid #0b9fe4;
  background: #eef8ff;
  padding: 12px 14px;
  font-size: 13px;
}

.notice p {
  margin: 7px 0 0;
  line-height: 1.5;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.45;
}

.consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.primary-button {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 7px;
  background: #13aee6;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.submit-meta {
  display: grid;
  place-items: center;
  gap: 8px;
  margin: 18px 0 12px;
  text-align: center;
  color: #7b8a8f;
  font-size: 13px;
}

.submit-meta p {
  margin: 0;
}

.submit-meta button {
  border: 0;
  background: transparent;
  color: #049ed9;
  padding: 0 3px;
  cursor: pointer;
}

#quickReviewLink {
  font-size: 18px;
}

.form-message {
  min-height: 22px;
  margin: 14px 0;
  color: #4b5563;
  text-align: center;
  font-size: 13px;
}

.form-message[data-type="success"] {
  color: #15803d;
}

.form-message[data-type="error"] {
  color: #dc2626;
}

.service-card {
  width: 100%;
  border: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.15);
  text-align: left;
  cursor: pointer;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #18a9e7;
  color: #fff;
}

.service-card p {
  margin: 4px 0 0;
  color: #4b5563;
}

.service-card > div:nth-child(2) {
  flex: 1;
}

.service-arrow {
  color: #64748b;
  font-size: 24px;
}

@media (max-width: 360px) {
  .page-shell {
    padding: 0;
  }

  .phone-frame {
    border-radius: 0;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

.admin-shell {
  min-height: 100vh;
  background: #f3f6fb;
  padding: 24px;
}

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

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

.admin-header p,
.admin-toolbar p {
  margin: 0 0 4px;
  color: #64748b;
}

.admin-header h1,
.admin-panel h2 {
  margin: 0;
}

.admin-panel {
  margin-bottom: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.login-form {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
  margin-top: 18px;
}

.hidden {
  display: none !important;
}

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

.toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #0f172a;
  padding: 0 14px;
  text-decoration: none;
  cursor: pointer;
}

.submission-list {
  display: grid;
  gap: 12px;
}

.submission-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

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

.submission-main div {
  display: grid;
  gap: 4px;
}

.submission-main span,
.submission-card p {
  color: #4b5563;
}

.submission-main em {
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 10px;
  font-style: normal;
  white-space: nowrap;
}

.image-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.image-chip {
  border-radius: 999px;
  background: #eef8ff;
  color: #0477bd;
  padding: 6px 10px;
  text-decoration: none;
  font-size: 13px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
}

@media (max-width: 640px) {
  .admin-shell {
    padding: 14px;
  }

  .admin-header,
  .admin-toolbar,
  .login-form {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}

.qr-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #0f8bd5 0%, #12b8e8 100%);
  padding: 18px;
}

.qr-panel {
  width: min(100%, 420px);
  border-radius: 8px;
  background: #fff;
  padding: 26px;
  text-align: center;
  box-shadow: 0 18px 48px rgba(4, 86, 151, 0.35);
}

.qr-kicker {
  margin: 0 0 6px;
  color: #078ff0;
  font-weight: 800;
}

.qr-panel h1 {
  margin: 0 0 18px;
  font-size: 24px;
}

.qr-canvas {
  width: 256px;
  height: 256px;
  max-width: 100%;
  border: 10px solid #f8fafc;
  border-radius: 8px;
}

.qr-url-label {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  text-align: left;
  color: #4b5563;
  font-size: 13px;
}

.qr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.primary-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #13aee6;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.qr-note {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 420px) {
  .qr-actions {
    grid-template-columns: 1fr;
  }
}
