﻿@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=ZCOOL+XiaoWei&display=swap");

:root {
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "ZCOOL XiaoWei", "STSong", serif;
  --bg: #f5f1e8;
  --bg-2: #e5f1ec;
  --card: #ffffff;
  --ink: #1b1f23;
  --muted: #5a6168;
  --accent: #f06d3b;
  --accent-2: #1b8d7b;
  --accent-3: #d9a441;
  --line: #e5ddd2;
  --shadow: 0 18px 40px rgba(23, 28, 32, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: radial-gradient(circle at 12% 10%, #f7e6d7 0%, transparent 45%),
    radial-gradient(circle at 80% 0%, #e1f2f0 0%, transparent 42%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

header {
  padding: 24px 0 6px;
}

h1 {
  font-family: var(--font-serif);
  letter-spacing: 0.6px;
  margin: 0 0 8px;
  font-size: 34px;
}

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

p {
  margin: 0 0 8px;
  color: var(--muted);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px 44px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: center;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.lead {
  font-size: 16px;
  line-height: 1.7;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fdf9f3;
  color: var(--muted);
  font-size: 12px;
}

.hero-card {
  border-left: 4px solid var(--accent-2);
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.hero-list li::before {
  content: "*";
  margin-right: 8px;
  color: var(--accent-3);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  animation: rise 0.6s ease both;
}

.auth-card {
  max-width: 420px;
}

.alert {
  color: #b2493a;
  margin-bottom: 10px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

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

input,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(27, 141, 123, 0.15);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(240, 109, 59, 0.2);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.secondary {
  background: var(--accent-2);
  box-shadow: 0 10px 20px rgba(27, 141, 123, 0.2);
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.suggest-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-height: 200px;
  overflow: auto;
  background: #fff;
  display: none;
  box-shadow: 0 14px 30px rgba(23, 28, 32, 0.1);
}

.suggest-list li {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.suggest-list li:hover {
  background: #f7efe6;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2ebe3;
  color: var(--muted);
  font-size: 12px;
}

.summary {
  display: grid;
  gap: 8px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 6px;
}

#map {
  width: 100%;
  height: 380px;
  border-radius: 18px;
  background: #f8f6f3;
  border: 1px solid var(--line);
  overflow: hidden;
}

#mapCanvas {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  background: #f8f6f3;
  border: 1px solid var(--line);
  display: none;
}

.waypoint {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-bottom: 10px;
}

.transit-steps {
  display: grid;
  gap: 10px;
}

.transit-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8f4ee;
  border: 1px solid var(--line);
}

.loading {
  display: none;
  margin-top: 10px;
  color: var(--muted);
  position: relative;
  padding-left: 22px;
}

.loading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.loading::after {
  content: "...";
  display: inline-block;
  margin-left: 6px;
  width: 0;
  overflow: hidden;
  text-align: left;
  animation: dots 1.2s steps(3, end) infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dots {
  0% {
    width: 0;
  }
  33% {
    width: 0.5em;
  }
  66% {
    width: 1em;
  }
  100% {
    width: 1.5em;
  }
}

.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.6);
}

.nav a:hover {
  border-color: var(--line);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 840px) {
  h1 {
    font-size: 28px;
  }
  #map {
    height: 300px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 24px;
  }
  .container {
    padding: 0 16px 32px;
  }
  .card {
    padding: 16px;
  }
  #map {
    height: 240px;
  }
}
