*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background: #f0ebe3;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

.guide-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guide-wrap {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  padding: 0 14px 24px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f7f1e6 0%, #f0ebe3 40%, #ebe4d8 100%);
}

/* 顶栏气质，对齐主站金棕 */
.guide-hero {
  text-align: center;
  padding: 20px 16px 8px;
  margin: 0 -14px 20px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #917843 0%, #b88a27 100%);
  box-shadow: 0 10px 24px rgba(93, 62, 8, 0.22);
  color: #fff5cf;
}

.guide-hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(255, 245, 207, 0.18);
  border: 2px solid rgba(255, 245, 207, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-hero-icon svg {
  width: 44px;
  height: 44px;
  fill: #fff5cf;
}

.guide-hero h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff5cf;
}

.guide-hero p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 245, 207, 0.88);
}

/* 站点按钮列表 */
.guide-routes {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-route {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(93, 62, 8, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.guide-route:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(93, 62, 8, 0.12);
}

.guide-route-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, #917843 0%, #b88a27 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-route-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff5cf;
}

.guide-route-title {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 700;
  color: #2c2416;
}

.guide-route-badge {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3eee4;
  color: #8a7a5e;
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.guide-route-badge.is-loading {
  color: transparent;
  position: relative;
}

.guide-route-badge.is-loading::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(138, 122, 94, 0.25);
  border-top-color: #b88a27;
  animation: guide-spin 0.7s linear infinite;
}

@keyframes guide-spin {
  to {
    transform: rotate(360deg);
  }
}

.guide-route-badge.is-fast {
  color: #2f7d4a;
  background: #e8f5ec;
}

.guide-route-badge.is-mid {
  color: #8a6a2a;
  background: #f7f0e0;
}

.guide-route-badge.is-slow {
  color: #8a5a4a;
  background: #f5ebe8;
}

.guide-route-badge.is-fail {
  color: #999;
  background: #f0ece6;
}

.guide-route-badge.is-pop {
  animation: guide-ms-pop 0.45s ease-out;
}

@keyframes guide-ms-pop {
  0% {
    transform: scale(0.7);
    opacity: 0.55;
  }
  55% {
    transform: scale(1.18);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.guide-tip {
  margin: 4px 0 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #917843;
  line-height: 1.5;
}

/* 使用指南卡片 */
.guide-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(93, 62, 8, 0.1);
  padding: 18px 16px 14px;
  margin-bottom: 20px;
}

.guide-card h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #2c2416;
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-card h2 .pencil {
  color: #b88a27;
  font-size: 15px;
}

.guide-card ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: #555;
  font-size: 14px;
  line-height: 1.85;
}

.guide-card li {
  margin-bottom: 2px;
}

.guide-footer {
  margin-top: auto;
  padding-top: 8px;
  text-align: center;
  font-size: 12px;
  color: #a89878;
  line-height: 1.5;
}
