:root {
  --ink: #18201f;
  --muted: #687573;
  --line: #dce5e1;
  --paper: #f7faf8;
  --panel: #ffffff;
  --teal: #167a74;
  --green: #4f8f55;
  --coral: #d75d4c;
  --gold: #b98528;
  --blue: #356ca3;
  --shadow: 0 18px 48px rgba(24, 32, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

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

.hero {
  position: relative;
  min-height: clamp(340px, 54vh, 560px);
  overflow: hidden;
  color: #fff;
}

.hero img,
.heroShade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
}

.heroShade {
  background: linear-gradient(180deg, rgba(9, 26, 28, 0.74), rgba(9, 26, 28, 0.18) 44%, rgba(9, 26, 28, 0.76));
}

.heroTop,
.heroStats {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.heroTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 34px;
}

.eyebrow {
  margin: 0 0 8px;
  color: currentColor;
  opacity: 0.72;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(34px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.liveBadge,
.countPill,
.tag,
.source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.liveBadge {
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(6, 18, 18, 0.36);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #49f0aa;
  box-shadow: 0 0 0 7px rgba(73, 240, 170, 0.18);
}

.heroStats {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 44px;
  gap: 10px;
}

.heroStats > div,
.iconButton {
  min-height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(16px);
}

.heroStats > div {
  padding: 14px;
}

.heroStats span {
  display: block;
  font-size: 26px;
  font-weight: 800;
}

.heroStats small {
  opacity: 0.78;
}

.iconButton {
  display: grid;
  place-items: center;
  cursor: pointer;
}

.iconButton.dark {
  min-height: 40px;
  width: 40px;
  border-color: var(--line);
  background: var(--ink);
  color: #fff;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toolbar,
.liveStream,
.userPublish,
.opsPanel,
.dashboard,
.integration {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
}

.toolbar {
  display: grid;
  grid-template-columns: auto minmax(300px, 1.2fr) minmax(210px, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
}

.segmented,
.areaSelectors select,
.feedbackForm input,
.searchBox,
.switchButton,
.authButton {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

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

.areaSelectors select {
  width: 100%;
  padding: 0 10px;
  color: var(--ink);
  outline: none;
}

.segmented {
  display: flex;
  padding: 4px;
}

.segmented button {
  min-width: 70px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.segmented button.active {
  background: var(--ink);
  color: #fff;
}

.searchBox {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
}

.searchBox input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.switchButton {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: var(--ink);
  cursor: pointer;
}

.switchButton span {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
}

.switchButton span::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}

.switchButton.active span {
  background: var(--teal);
}

.switchButton.active span::after {
  transform: translateX(14px);
}

.authButton {
  padding: 0 14px;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.authButton.muted {
  border-color: #cfe1dc;
  background: #f7fffc;
  color: var(--teal);
}

.liveStream {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.liveRail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 10px;
  overflow-x: auto;
}

.liveCard {
  min-height: 92px;
  padding: 12px;
  border: 1px solid #cfe5df;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fffc, #ffffff);
}

.liveCard strong,
.liveCard span,
.liveCard small {
  display: block;
}

.liveCard strong {
  margin-bottom: 6px;
}

.liveCard span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.liveCard small {
  margin-top: 8px;
  color: var(--teal);
  font-weight: 700;
}

.userPublish {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.opsPanel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.opsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.opsGrid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.opsGrid p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.payActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.statusList {
  display: grid;
  gap: 7px;
}

.statusItem {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #f4f8f6;
  color: var(--muted);
  font-size: 12px;
}

.statusItem strong {
  color: var(--ink);
}

.statusItem.ok strong {
  color: var(--teal);
}

.statusItem.pending strong {
  color: var(--gold);
}

.userPostList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.userPost {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.userPost img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef4f1;
}

.userPostBody {
  padding: 12px;
}

.userPostBody h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.userPostBody p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.userPostMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.dashboard {
  display: grid;
  grid-template-columns: 330px minmax(360px, 1fr) 330px;
  gap: 16px;
  align-items: stretch;
}

.panel,
.mapPanel,
.integration {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel,
.mapPanel {
  min-height: 620px;
  overflow: hidden;
}

.panelHeader {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 18px 12px;
}

.countPill {
  padding: 6px 9px;
  border-radius: 999px;
  background: #ecf4f2;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.countPill.danger {
  background: #fff0ed;
  color: var(--coral);
}

.feedList,
.restaurantList {
  display: grid;
  gap: 10px;
  padding: 0 12px 14px;
}

.feedItem,
.restaurantItem,
.spotDrawer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feedItem,
.restaurantItem {
  padding: 13px;
}

.feedItem.fresh,
.restaurantItem.fresh {
  border-color: rgba(22, 122, 116, 0.42);
  box-shadow: inset 3px 0 0 var(--teal);
}

.feedTop,
.restaurantTop,
.metaRow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.source {
  font-size: 12px;
  color: var(--muted);
}

.source i,
.mapLegend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.feedItem h3,
.restaurantItem h3 {
  margin: 10px 0 8px;
}

.feedItem p,
.restaurantItem p,
.integration p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.guideNote {
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  background: #f4f8f6;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.detailButton {
  width: 100%;
  min-height: 36px;
  margin-top: 10px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: #f7fffc;
  color: var(--teal);
  font-weight: 700;
  cursor: pointer;
}

.reportButton {
  width: 100%;
  min-height: 36px;
  margin-top: 8px;
  border: 1px solid #e1d4bf;
  border-radius: 8px;
  background: #fffaf1;
  color: #8a5b16;
  font-weight: 700;
  cursor: pointer;
}

.reportButton.wide {
  margin: 4px 0 8px;
}

.feedbackForm {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.feedbackForm label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.feedbackForm select,
.feedbackForm input,
.feedbackForm textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.feedbackForm select,
.feedbackForm input {
  min-height: 42px;
  padding: 0 10px;
}

.feedbackForm textarea {
  resize: vertical;
  min-height: 120px;
  padding: 10px;
  line-height: 1.55;
}

.codeRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
  align-items: end;
}

.authMessage {
  min-height: 20px;
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  line-height: 1.5;
}

.metaRow {
  color: var(--muted);
  font-size: 12px;
}

.tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f3;
  color: var(--ink);
  font-size: 12px;
}

.mapPanel {
  position: relative;
}

.mapLegend {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.mapLegend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mapLegend .food {
  background: var(--coral);
}

.mapCanvas {
  position: relative;
  height: 560px;
  margin: 0 18px;
  overflow: hidden;
  border: 1px solid #d8e5df;
  border-radius: 8px;
  background:
    radial-gradient(circle at 74% 18%, rgba(53, 108, 163, 0.26), transparent 24%),
    radial-gradient(circle at 30% 74%, rgba(22, 122, 116, 0.22), transparent 22%),
    linear-gradient(145deg, #edf8f5, #fff9e9 48%, #e7f4ec);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.mapCanvas.amapReady {
  background: #eef3f1;
}

.mapCanvas.amapReady .mapGrid,
.mapCanvas.amapReady .routeLine {
  display: none;
}

.mapGrid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 122, 116, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 122, 116, 0.14) 1px, transparent 1px);
  background-size: 54px 54px;
}

.routeLine {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: rgba(22, 122, 116, 0.22);
  transform-origin: left center;
}

.routeOne {
  width: 420px;
  left: 70px;
  top: 250px;
  transform: rotate(-18deg);
}

.routeTwo {
  width: 310px;
  left: 230px;
  top: 178px;
  background: rgba(215, 93, 76, 0.22);
  transform: rotate(31deg);
}

.mapHint {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  padding: 10px 12px;
  border: 1px solid rgba(22, 122, 116, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  backdrop-filter: blur(10px);
}

.pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(24, 32, 31, 0.18);
  cursor: pointer;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 800;
}

.pin.food {
  background: var(--coral);
}

.pin.active {
  outline: 4px solid rgba(22, 122, 116, 0.22);
}

.pin.freshPin {
  animation: pinGlow 1.8s ease-in-out infinite;
}

@keyframes pinGlow {
  0%,
  100% {
    box-shadow: 0 12px 24px rgba(24, 32, 31, 0.18), 0 0 0 0 rgba(22, 122, 116, 0.32);
  }

  50% {
    box-shadow: 0 12px 24px rgba(24, 32, 31, 0.18), 0 0 0 10px rgba(22, 122, 116, 0);
  }
}

.spotDrawer {
  min-height: 104px;
  margin: 14px 18px 18px;
  padding: 14px;
}

.spotDrawer h3 {
  margin-bottom: 6px;
}

.drawerMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.guideSteps {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.visualGuide span {
  padding: 9px 10px;
  border: 1px solid #d8e8e2;
  border-radius: 8px;
  background: #f7fffc;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.queueBar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f0;
}

.queueBar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 0.3s ease;
}

.restaurantItem.busy .queueBar span {
  background: var(--coral);
}

.restaurantItem.medium .queueBar span {
  background: var(--gold);
}

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

.modalLayer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 18, 18, 0.58);
}

.modalLayer[hidden] {
  display: none;
}

.detailModal {
  position: relative;
  width: min(760px, 100%);
  max-height: min(780px, calc(100vh - 40px));
  overflow: auto;
  padding: 24px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.28);
}

.detailModal .iconButton {
  position: absolute;
  top: 14px;
  right: 14px;
}

.detailModal h2 {
  max-width: calc(100% - 54px);
  margin-bottom: 10px;
  font-size: 24px;
}

.detailSummary {
  color: var(--muted);
  line-height: 1.65;
}

.detailBlock {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.detailBlock p {
  color: var(--muted);
  line-height: 1.6;
}

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

.detailRestaurants span {
  padding: 10px;
  border-radius: 8px;
  background: #f4f8f6;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.integration {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-bottom: 32px;
  padding: 22px;
}

.integrationGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.integration article {
  padding-left: 14px;
  border-left: 3px solid var(--teal);
}

@media (max-width: 1120px) {
  .dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .mapPanel {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (max-width: 760px) {
  .heroTop {
    flex-direction: column;
  }

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

  .iconButton {
    min-height: 56px;
  }

  .toolbar,
  .liveStream,
  .userPublish,
  .opsPanel,
  .dashboard,
  .integration {
    grid-template-columns: 1fr;
  }

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

  .areaSelectors,
  .visualGuide,
  .detailRestaurants {
    grid-template-columns: 1fr 1fr;
  }

  .segmented {
    overflow-x: auto;
  }

  .dashboard {
    display: flex;
    flex-direction: column;
  }

  .panel,
  .mapPanel {
    min-height: auto;
  }

  .mapCanvas {
    height: 460px;
  }

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

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

  .opsGrid,
  .payActions {
    grid-template-columns: 1fr;
  }
}
