:root {
  --paper: #f4f1e8;
  --ink: #1f2933;
  --green: #176b4d;
  --green-dark: #10523a;
  --white: #fff;
  --border: #b8b0a1;
  --warning: #8a4b08;
  --soft: #e8e4d7;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 20px;
  overflow-x: hidden;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.page {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}

.page-header, .committee-header {
  margin-bottom: 20px;
}

.page-header h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
}

.committee-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 27px;
  line-height: 1.35;
}

.committee-header strong { color: var(--green-dark); }

.committee-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.back-button {
  flex: 0 0 auto;
  min-width: 92px;
  min-height: 58px;
  border: 2px solid var(--green);
  border-radius: 8px;
  background: var(--white);
  color: var(--green-dark);
  font-size: 20px;
  font-weight: 800;
}

.wechat-hint {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 6px solid var(--warning);
  background: #fff7df;
  color: var(--warning);
  font-size: 20px;
  font-weight: 700;
}

.committee-panel {
  display: grid;
  gap: 14px;
}

.committee-panel label,
.field-group label {
  font-size: 24px;
  font-weight: 700;
}

.large-select,
.large-input,
.large-textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.large-select,
.large-input { min-height: 64px; padding: 12px 14px; }
.large-select { font-size: 24px; }
.large-input { font-size: 22px; }
.large-textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
  font-size: 22px;
}

.primary-button {
  min-height: 72px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 25px;
  font-weight: 800;
  text-align: center;
}

.primary-button:active { background: var(--green-dark); }
.primary-button:disabled { background: #7d897f; cursor: wait; }

.selection-page .primary-button { width: 100%; }

.camera-section {
  margin-bottom: 22px;
}

.camera-button,
.take-photo-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.camera-video {
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-top: 14px;
  border-radius: 8px;
  object-fit: cover;
  background: #111;
}

.take-photo-button { margin-top: 14px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.photo-preview-wrap {
  margin-top: 14px;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--soft);
}

.photo-preview-wrap img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.report-form {
  display: grid;
  gap: 20px;
}

.field-group {
  display: grid;
  gap: 9px;
}

.field-status {
  min-height: 24px;
  color: var(--warning);
  font-size: 18px;
  font-weight: 700;
}

.submit-button { width: 100%; margin-top: 4px; }

.local-save-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.location-button {
  min-height: 64px;
  padding: 10px 14px;
  border: 2px solid var(--green);
  border-radius: 8px;
  background: var(--white);
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 800;
}

.success-notice {
  margin-bottom: 18px;
  padding: 24px 12px;
  border: 3px solid var(--green);
  border-radius: 8px;
  background: var(--white);
  color: var(--green-dark);
  font-size: 38px;
  font-weight: 900;
  text-align: center;
}
.success-icon { font-size: 48px; line-height: 1.1; }

.records-section {
  margin-top: 32px;
}

.records-section h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.record-list-empty {
  padding: 16px 0;
  color: #616a70;
  font-size: 20px;
}

.record-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-top: 2px solid var(--border);
}

.record-item img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--soft);
}

.record-info {
  display: grid;
  gap: 5px;
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.record-info strong { font-size: 21px; }
.record-status { color: var(--green-dark); font-weight: 800; }

@media (max-width: 420px) {
  html, body { font-size: 18px; }
  .page { padding-inline: 12px; }
}
