: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(56%, 240px);
  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-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;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: #fff;
  text-align: center;
  background: url("./assets/bg.png") center / 100% 100% no-repeat #242120;
}

.mail-panel p {
  margin: 0 0 8px;
  color: #f2ece6;
  font-size: 14px;
}

.mail-panel a {
  color: #ff6e8b;
  font-weight: 900;
  text-decoration: none;
}

.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: 50%;
  margin: 3rem auto auto;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.45;
}

.announcements h1,
.announcements h2,
.announcements h3,
.announcements h4,
.announcements p {
  margin: 0 0 1rem;
}

.announcements h1 {
  font-size: 2rem;
  line-height: 1.2;
}

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

.announcements strong {
  color: #b8b6b6;
  font-weight: 400;
}

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

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

.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: 62%;
  }

  .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;
  }
}
