:root {
  --bg: #2a2928;
  --panel: #171717;
  --panel-soft: #202020;
  --line: #3c3937;
  --text: #ffffff;
  --muted: #bdb7b1;
  --coral: #ff4f72;
  --coral-strong: #ff315f;
  --gold: #f6b84b;
  --teal: #28c7a0;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #2c2a2a;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #2c2a2a;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing {
  width: 100%;
}

.brand {
  text-align: center;
  padding: 8px 0 18px;
}

.source-logo {
  display: block;
  width: min(44%, 190px);
  margin: 0 auto 20px;
  text-decoration: none;
}

.source-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
}

.subhead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.route-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.route-block {
  margin-bottom: 16px;
}

.route-block .route-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

#speedRouteList {
  padding-top: 18px;
}

.route-heading {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.25;
  text-align: left;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.14);
}

.route-block .route-card {
  position: relative;
  min-height: 54px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 7px 8px;
  text-align: center;
}

.route-block .route-main {
  justify-items: center;
  gap: 6px;
}

.route-block .route-main strong {
  font-size: 15px;
  line-height: 1.25;
}

.route-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.route-badge {
  position: absolute;
  top: -23px;
  left: 0;
  padding: 3px 6px;
  border-radius: 4px;
  color: #ff2680;
  background: rgba(252, 22, 111, 0.19);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.route-badge.healthy {
  color: #00f59a;
  background: #0e211a;
}

.route-block .route-main small {
  width: 100%;
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.route-block .route-status {
  min-width: 44px;
  padding: 5px 8px;
  font-size: 11px;
}

.route-card {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 79, 114, 0.72);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(255, 79, 114, 0.12), transparent 48%),
    var(--panel);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.route-card:hover,
.route-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--coral-strong);
  outline: none;
  background:
    linear-gradient(90deg, rgba(255, 79, 114, 0.2), rgba(40, 199, 160, 0.08)),
    #181818;
}

.route-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.route-main strong {
  font-size: 17px;
}

.route-main small {
  overflow: hidden;
  color: var(--coral);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-status {
  min-width: 52px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #101010;
  background: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.route-status.muted {
  color: #d8d2cc;
  background: #34302f;
}

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

.github-icon {
  fill: currentColor;
  stroke: none;
}

.mail-panel {
  margin: 0 0 18px;
  min-height: 82px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
  background: url("./assets/mail-panel-bg.png") center / 100% 87% no-repeat;
}

.mail-panel p {
  max-width: 72%;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.92);
}

.mail-panel .mail-address {
  white-space: nowrap;
}

.mail-panel a {
  color: #ff2680;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 4px 0 20px;
}

.contact-grid a {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #f4f1ee;
  text-decoration: none;
  font-size: 12px;
}

.contact-grid svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  background: #181818;
}

.contact-grid span {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.25;
  text-align: center;
}

.footer {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}

.footer p {
  margin: 5px 0;
}

.announcements {
  width: min(92vw, 720px);
  margin: 3rem auto;
  color: #fff;
  font-size: 1rem;
  line-height: 1.55;
}

.announcements h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: 2.15rem;
  line-height: 1.2;
}

.announcements h1 strong {
  color: #fff;
  font-weight: 800;
}

.announcements h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.25;
}

.announcements h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 400;
}

.announcements p {
  margin: 0 0 0.7rem;
}

.announcements strong {
  color: #f4f1ee;
  font-weight: 700;
}

.announcements a {
  color: #ff6e8b;
  text-decoration: none;
}

.announcements em {
  color: #5eb3e5;
  font-style: normal;
}

.tutorial-intro,
.tutorial-section {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(255, 79, 114, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 79, 114, 0.09), transparent 56%),
    #181818;
}

.tutorial-intro {
  color: #d8d2cc;
}

.tutorial-intro p:last-child,
.tutorial-section p:last-child {
  margin-bottom: 0;
}

.route-entry {
  min-height: 64px;
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 79, 114, 0.52);
  border-radius: 8px;
  background: #111;
}

.route-entry.primary {
  border-color: rgba(246, 184, 75, 0.66);
  background:
    linear-gradient(90deg, rgba(246, 184, 75, 0.13), transparent 58%),
    #111;
}

.route-entry span {
  color: #f4f1ee;
  font-size: 0.9rem;
  font-weight: 800;
}

.route-entry strong {
  color: #ff6e8b;
  font-size: 1.03rem;
  overflow-wrap: anywhere;
}

.latest-routes {
  margin-top: 14px;
}

.latest-routes h3 {
  margin: 0 0 10px;
  color: #f4f1ee;
  font-size: 0.95rem;
  font-weight: 800;
}

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

.latest-route-link {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: center;
}

.latest-route-link strong {
  color: #ff6e8b;
  font-size: 0.9rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.access-tips {
  margin: 0 0 14px;
  padding: 12px 13px;
  border-left: 3px solid var(--coral);
  color: #d8d2cc;
  background: rgba(255, 255, 255, 0.04);
}

.mail-save a {
  display: inline-block;
  color: #eee8e2;
  font-size: 1.12rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.save-tips {
  border-color: rgba(94, 179, 229, 0.28);
  color: #f4f1ee;
  background:
    linear-gradient(90deg, rgba(94, 179, 229, 0.1), transparent 60%),
    #181818;
}

.detail-shell {
  justify-content: flex-start;
}

.detail-brand {
  padding-bottom: 12px;
}

.detail-title {
  margin-top: 4px;
  font-size: 26px;
}

.detail-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.guide-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

.guide-card {
  display: flex;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(255, 79, 114, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 79, 114, 0.12), transparent 52%),
    var(--panel);
}

.guide-number {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #101010;
  background: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.guide-card h2 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.3;
}

.guide-card p {
  margin: 0;
  color: #d8d2cc;
  font-size: 13px;
  line-height: 1.6;
}

.guide-card a {
  display: inline-block;
  margin-top: 7px;
  color: #ff6e8b;
  font-weight: 900;
  text-decoration: none;
}

.back-home {
  min-height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #101010;
  background: var(--gold);
  text-decoration: none;
  font-weight: 900;
}

@media (max-width: 380px) {
  .page-shell {
    padding-inline: 12px;
  }

  h1 {
    font-size: 31px;
  }

  .source-logo {
    width: min(46%, 170px);
  }

  .contact-grid {
    gap: 8px;
  }

  .contact-grid svg {
    width: 38px;
    height: 38px;
    padding: 9px;
  }

  .contact-grid a {
    font-size: 11px;
  }
}

@media (max-width: 800px) {
  .announcements {
    width: 90vw;
    margin-top: 2.2rem;
  }
}

@media (max-width: 480px) {
  .announcements {
    width: 100%;
    padding: 0 16px;
  }

  .announcements h1 {
    font-size: 1.85rem;
  }

  .tutorial-intro,
  .tutorial-section {
    padding: 14px;
  }

  .latest-route-grid {
    gap: 6px;
  }

  .latest-route-link {
    min-height: 0;
    padding: 0;
  }

  .latest-route-link strong {
    font-size: 0.78rem;
  }
}
