:root {
  color-scheme: light;
  --bg: #f7f3e8;
  --surface: #fffdf6;
  --ink: #15231b;
  --muted: #627064;
  --line: rgba(28, 48, 36, 0.14);
  --green: #285a3e;
  --green-2: #6e8f5f;
  --blue: #77a8bf;
  --wood: #9b6a3c;
  --cream: #fff9ea;
  --shadow: 0 24px 70px rgba(24, 39, 29, 0.14);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101711;
  --surface: #172319;
  --ink: #edf5e9;
  --muted: #adbaaf;
  --line: rgba(237, 245, 233, 0.16);
  --green: #9dc78a;
  --green-2: #b1c48a;
  --blue: #9cc9d8;
  --wood: #d0a06b;
  --cream: #1d2a20;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid transparent;
  color: #fffdf6;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, backdrop-filter 220ms ease;
}

.site-header[data-elevated="true"] {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.15;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: currentColor;
  font-size: 11px;
  opacity: 0.72;
}

.mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.mark span {
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: currentColor;
}

.mark span:nth-child(1) {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}

.mark span:nth-child(2) {
  top: 0;
  right: 0;
  border-top: 2px solid;
  border-right: 2px solid;
}

.mark span:nth-child(3) {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.mark span:nth-child(4) {
  right: 0;
  bottom: 0;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  color: currentColor;
  font-size: 14px;
}

.desktop-nav a {
  opacity: 0.78;
}

.desktop-nav a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.join-link,
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.icon-button {
  width: 42px;
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header[data-elevated="true"] .icon-button {
  border-color: var(--line);
  background: transparent;
}

.join-link {
  padding: 0 18px;
  background: #fffdf6;
  color: #1c3324;
  font-size: 14px;
  font-weight: 700;
}

.site-header[data-elevated="true"] .join-link {
  background: var(--green);
  color: var(--surface);
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 144px clamp(20px, 6vw, 92px) 9svh;
  color: #fffdf6;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #d9ead4;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.04) contrast(1) brightness(1.02);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(34, 70, 43, 0.56), rgba(34, 70, 43, 0.2) 48%, rgba(34, 70, 43, 0.02)),
    linear-gradient(0deg, rgba(34, 70, 43, 0.44), rgba(34, 70, 43, 0.01) 48%);
}

.scan-line {
  position: absolute;
  inset: 28% 11% auto auto;
  width: min(360px, 34vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(156, 201, 216, 0.95), transparent);
  animation: scan 4.8s ease-in-out infinite;
  z-index: 2;
}

.ai-tag {
  position: absolute;
  z-index: 3;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 7px;
  background: rgba(18, 35, 25, 0.42);
  backdrop-filter: blur(14px);
  color: rgba(255, 253, 246, 0.9);
  font-size: clamp(11px, 1vw, 13px);
}

.tag-one {
  top: 30%;
  right: 14%;
}

.tag-two {
  right: 8%;
  bottom: 18%;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #cfe4bd;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 253, 246, 0.84);
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-width: 128px;
  padding: 0 22px;
  font-weight: 800;
}

.primary-button {
  border-color: var(--green);
  background: var(--green);
  color: #fffdf6;
}

.secondary-button {
  background: #fffdf6;
  color: #1d3324;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.09);
  color: currentColor;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.join-link:hover {
  transform: translateY(-2px);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.icon-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

section {
  padding: clamp(72px, 9vw, 130px) clamp(20px, 6vw, 92px);
}

.section-band {
  background: color-mix(in srgb, var(--surface) 72%, var(--bg));
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.narrow {
  max-width: 760px;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.map-copy p,
.apply-copy p,
.theme-panel p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1160px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metric-grid article {
  min-height: 154px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-grid strong {
  color: var(--green);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}

.metric-grid span {
  color: var(--muted);
  font-size: 14px;
}

.project-section {
  background: var(--bg);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.principle-grid article {
  min-height: 272px;
  padding: 30px;
  background: var(--bg);
}

.principle-grid span {
  color: var(--wood);
  font-size: 13px;
  font-weight: 900;
}

.principle-grid h3,
.result-panel h3,
.discovery-grid h3 {
  margin: 22px 0 12px;
  font-size: 24px;
}

.principle-grid p,
.result-panel p,
.discovery-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.map-section,
.apply-section,
.ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
}

.map-copy,
.apply-copy {
  max-width: 560px;
}

.station-preview {
  display: grid;
  gap: 8px;
  max-width: 360px;
  margin-top: 30px;
  padding: 20px;
  border-left: 3px solid var(--green);
  background: color-mix(in srgb, var(--cream) 80%, transparent);
}

.station-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--line);
}

.station-preview span {
  color: var(--muted);
}

.station-preview small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.amap-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--cream) 72%, transparent);
  box-shadow: var(--shadow);
}

.station-map {
  width: 100%;
  height: clamp(420px, 46vw, 560px);
  min-height: 420px;
}

.map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cream) 86%, transparent), color-mix(in srgb, var(--surface) 92%, transparent));
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  transition: opacity 180ms ease, visibility 180ms ease;
  z-index: 2;
}

.map-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.map-key {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(24, 39, 29, 0.12);
}

.map-key span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.map-key strong {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.map-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d46b42;
  box-shadow: 0 0 0 5px rgba(212, 107, 66, 0.16);
}

.station-marker {
  width: 18px;
  height: 18px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: #d46b42;
  box-shadow: 0 0 0 8px rgba(212, 107, 66, 0.18), 0 10px 22px rgba(24, 39, 29, 0.22);
  cursor: pointer;
}

.station-info-window {
  min-width: 210px;
  color: #15231b;
  line-height: 1.55;
}

.station-info-window img {
  display: block;
  width: 220px;
  height: 132px;
  margin-bottom: 8px;
  object-fit: cover;
  background: #e7eadf;
}

.station-info-window strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.station-info-window span {
  display: block;
  color: #627064;
  font-size: 13px;
}

.theme-section {
  background: var(--bg);
}

.theme-panel {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px);
  background:
    linear-gradient(120deg, rgba(40, 90, 62, 0.92), rgba(86, 97, 65, 0.78)),
    url("https://images.unsplash.com/photo-1473773508845-188df298d2d1?auto=format&fit=crop&w=1800&q=82") center/cover;
  color: #fffdf6;
}

.theme-panel .eyebrow,
.theme-panel p {
  color: rgba(255, 253, 246, 0.8);
}

.theme-panel h2 {
  max-width: 850px;
}

.task-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  background: rgba(255, 255, 255, 0.2);
}

.task-row article {
  min-height: 136px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.task-row span {
  color: #cfe4bd;
  font-size: 12px;
  font-weight: 800;
}

.ai-layout {
  max-width: 1040px;
  margin: 0 auto;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
}

.upload-surface {
  min-height: 310px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 1px dashed color-mix(in srgb, var(--green) 52%, var(--line));
  background: color-mix(in srgb, var(--cream) 72%, transparent);
}

.upload-surface svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-surface span {
  color: var(--muted);
}

.result-panel {
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.confidence {
  display: inline-flex;
  min-width: 78px;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #10222a;
  font-size: 24px;
  font-weight: 900;
}

.result-panel dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 28px 0 0;
  background: var(--line);
}

.result-panel div {
  padding: 18px;
  background: var(--surface);
}

.result-panel dt {
  color: var(--muted);
  font-size: 12px;
}

.result-panel dd {
  margin: 8px 0 0;
  color: var(--green);
  font-size: 28px;
  font-weight: 900;
}

.discovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 1160px;
  margin: 0 auto;
}

.discovery-grid article {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.discovery-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.discovery-grid span {
  color: var(--wood);
  font-size: 12px;
  font-weight: 900;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1160px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.resource-list a {
  min-height: 146px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.resource-list span {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: var(--wood);
  font-size: 12px;
  font-weight: 900;
}

.resource-list strong {
  font-size: 17px;
  line-height: 1.35;
}

.apply-section {
  background: var(--bg);
}

.apply-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.apply-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.apply-form .full {
  grid-column: 1 / -1;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
}

.apply-form textarea {
  resize: vertical;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  border-color: var(--green);
}

.location-picker {
  display: grid;
  gap: 10px;
}

.location-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.location-picker-head .secondary-button {
  min-width: 112px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.location-picker-map {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}

.location-picker-status {
  min-height: 20px;
  margin: 0;
  color: var(--wood);
  font-size: 13px;
  font-weight: 800;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--wood);
  font-size: 13px;
  font-weight: 800;
}

.portal-body {
  min-height: 100svh;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 62%, transparent), transparent 360px),
    var(--bg);
}

.portal-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.portal-header {
  position: static;
  color: var(--ink);
  min-height: 72px;
  padding: 16px 0 30px;
}

.portal-header .header-actions {
  align-items: stretch;
}

.portal-header .secondary-button,
.portal-logout-button {
  min-height: 40px;
  padding: 0 16px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

.portal-logout-button {
  background: var(--green);
  color: var(--surface);
}

.auth-body {
  background:
    linear-gradient(120deg, rgba(40, 90, 62, 0.12), transparent 46%),
    radial-gradient(circle at 78% 18%, rgba(119, 168, 191, 0.24), transparent 34%),
    var(--bg);
}

.auth-shell {
  min-height: calc(100svh - 140px);
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.auth-intro {
  max-width: 520px;
}

.auth-intro h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.96;
}

.auth-intro p:not(.eyebrow) {
  max-width: 430px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.auth-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.auth-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.auth-stats strong {
  color: var(--green);
}

.auth-card {
  max-width: 520px;
  width: 100%;
  justify-self: end;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.portal-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portal-panel header,
.portal-panel .panel-inner {
  padding: 24px;
}

.portal-panel header {
  border-bottom: 1px solid var(--line);
}

.portal-panel h1,
.portal-panel h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
}

.portal-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.auth-form,
.upload-form,
.station-edit-form {
  display: grid;
  gap: 16px;
}

.auth-form label,
.upload-form label,
.station-edit-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-form input,
.upload-form input,
.upload-form textarea,
.station-edit-form input,
.station-edit-form select,
.station-edit-form textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
}

.upload-form input[type="file"] {
  padding: 10px;
}

.upload-form input[type="datetime-local"] {
  appearance: none;
  -webkit-appearance: none;
}

.station-card {
  display: grid;
  gap: 8px;
}

.station-card strong {
  font-size: 22px;
}

.station-edit-panel {
  border-top: 1px solid var(--line);
}

.form-intro {
  display: grid;
  gap: 6px;
  padding-bottom: 4px;
}

.form-intro strong {
  font-size: 18px;
}

.form-intro span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.record-list {
  display: grid;
  gap: 14px;
}

.record-item {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.record-item img,
.record-item video {
  width: 164px;
  height: 116px;
  object-fit: cover;
  background: var(--line);
}

.record-item h3 {
  margin: 0 0 8px;
}

.record-item p {
  margin: 0;
}

.station-dot-preview {
  width: 34px;
  height: 34px;
  margin: 6px auto 0;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: #d46b42;
  box-shadow: 0 0 0 8px rgba(212, 107, 66, 0.18), 0 10px 22px rgba(24, 39, 29, 0.18);
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.record-actions {
  margin-top: 14px;
}

.action-form {
  display: grid;
  gap: 16px;
}

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

.action-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.action-form input,
.action-form select,
.action-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
}

.action-form textarea {
  resize: vertical;
}

.action-list {
  display: grid;
  gap: 14px;
}

.action-item {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.action-item span {
  display: inline-block;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--wood);
  font-size: 12px;
  font-weight: 900;
}

.action-item strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.action-item p {
  margin: 8px 0 0;
}

.record-actions .secondary-button {
  min-width: 82px;
  min-height: 36px;
  padding: 0 14px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.station-photo-tools {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.station-position-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.station-position-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.station-position-tools input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.station-photo-tools input {
  width: 100%;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.admin-record-item p {
  margin-top: 5px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(140px, 1fr));
  gap: 34px;
  padding: 54px clamp(20px, 6vw, 92px) 28px;
  border-top: 1px solid var(--line);
  background: #15231b;
  color: #fffdf6;
}

.footer-brand strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.site-footer p {
  max-width: 460px;
  margin: 14px 0 0;
  color: rgba(255, 253, 246, 0.68);
  line-height: 1.7;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-column span {
  color: rgba(255, 253, 246, 0.52);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  color: rgba(255, 253, 246, 0.75);
  line-height: 1.4;
}

.footer-column a:hover {
  color: #fffdf6;
}

.footer-admin a {
  word-break: break-word;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 253, 246, 0.14);
  color: rgba(255, 253, 246, 0.48);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.72;
  }
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(-70px);
    opacity: 0;
  }
  28%,
  70% {
    opacity: 1;
  }
  50% {
    transform: translateY(150px);
  }
}

@media (max-width: 1020px) {
  .desktop-nav {
    display: none;
  }

  .metric-grid,
  .principle-grid,
  .resource-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-section,
  .apply-section,
  .ai-layout,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-card {
    justify-self: stretch;
    max-width: none;
  }

  .map-copy,
  .apply-copy {
    max-width: 760px;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 15px;
  }

  .header-actions {
    gap: 7px;
  }

  .icon-button {
    width: 38px;
    min-height: 38px;
  }

  .join-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero {
    min-height: 92svh;
    padding: 118px 18px 68px;
  }

  h1 {
    font-size: clamp(46px, 16vw, 68px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .ai-tag,
  .scan-line {
    display: none;
  }

  section {
    padding: 68px 18px;
  }

  .metric-grid,
  .principle-grid,
  .task-row,
  .resource-list,
  .apply-form,
  .portal-grid,
  .result-panel dl {
    grid-template-columns: 1fr;
  }

  .portal-shell {
    width: min(100% - 28px, 1120px);
    padding-top: 20px;
  }

  .portal-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: flex-start;
    justify-content: stretch;
    padding-bottom: 24px;
  }

  .portal-header .brand {
    width: 100%;
  }

  .portal-header .brand strong {
    white-space: nowrap;
  }

  .portal-header .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 10px;
  }

  .portal-header .secondary-button,
  .portal-logout-button {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
  }

  .upload-form input[type="datetime-local"] {
    font-size: 16px;
    line-height: 1.35;
    padding-right: 10px;
  }

  .auth-shell {
    min-height: auto;
    gap: 24px;
    padding-bottom: 40px;
  }

  .auth-intro h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .record-item {
    grid-template-columns: 1fr;
  }

  .record-item img,
  .record-item video {
    width: 100%;
    height: 230px;
  }

  .principle-grid article,
  .metric-grid article {
    min-height: auto;
  }

  .china-map {
    min-height: 280px;
  }

  .theme-panel {
    padding: 30px 20px;
  }

  .discovery-grid article {
    grid-template-columns: 1fr;
  }

  .discovery-grid img {
    height: 210px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
