:root {
  --brand: #325ed6;
  --brand-dark: #2448aa;
  --brand-soft: #e2ebfb;
  --brand-pale: #f4f7fd;
  --pink: #f1a1b5;
  --ink: #17233c;
  --ink-soft: #536077;
  --line: #c9d6ef;
  --paper: #fffefe;
  --page: #f9fbff;
  --shadow: 0 22px 52px rgba(50, 94, 214, 0.13);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: #fff;
  background: var(--brand);
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  color: #fff;
  background: var(--brand-dark);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 254, 0.96);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  filter: hue-rotate(18deg) saturate(0.76);
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 15px;
}

.primary-nav a,
.primary-nav span {
  position: relative;
  padding: 23px 2px 20px;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--brand);
  content: "";
  transform: scaleX(0);
  transition: transform 160ms ease-out;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-pending {
  color: #8a94a7;
  cursor: not-allowed;
}

.nav-pending::after {
  position: absolute;
  top: 11px;
  right: -9px;
  color: var(--brand-dark);
  font-size: 9px;
  font-weight: 700;
  content: "即将开放";
}

.account-nav {
  min-width: 50px;
  display: flex;
  justify-content: flex-end;
}

.login-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--brand);
  border-radius: 10px;
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
}

.login-link:hover {
  color: #fff;
  background: var(--brand);
}

.account-menu {
  position: relative;
}

.account-menu summary {
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary img {
  width: 38px;
  height: 38px;
  border: 2px solid var(--brand-soft);
  border-radius: 50%;
  object-fit: cover;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 128px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 14px 32px rgba(23, 35, 60, 0.12);
}

.account-menu-panel a {
  display: block;
  padding: 7px 10px;
  border-radius: 7px;
  text-decoration: none;
}

.account-menu-panel a:hover {
  background: var(--brand-soft);
}

.route-hero {
  padding: 52px 0 58px;
  border-bottom: 1px solid var(--line);
  background: var(--brand-soft);
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 26px;
}

.hero-copy h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.route-board {
  padding: 30px 34px 22px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.route-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-track::before {
  position: absolute;
  top: 13px;
  right: 8%;
  left: 8%;
  height: 3px;
  background: var(--brand);
  content: "";
  transform-origin: left;
}

.route-track li {
  position: relative;
  min-width: 0;
  text-align: center;
}

.route-track a {
  display: flex;
  min-height: 108px;
  flex-direction: column;
  align-items: center;
  padding: 0 10px 12px;
  text-decoration: none;
}

.route-marker {
  position: relative;
  z-index: 1;
  width: 29px;
  height: 29px;
  margin-bottom: 13px;
  border: 5px solid var(--brand);
  border-radius: 50%;
  background: var(--paper);
  transition: background-color 160ms ease-out, transform 160ms ease-out;
}

.route-track li:nth-child(even) .route-marker {
  border-color: #d97f9a;
}

.route-track a:hover .route-marker {
  background: var(--brand-soft);
  transform: scale(1.12);
}

.route-name {
  max-width: 14em;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.route-grade {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

.empty-state {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--brand-pale);
}

.news-section {
  scroll-margin-top: 24px;
  padding: 72px 0 76px;
  border-bottom: 1px solid var(--line);
  background: var(--brand-pale);
}

.news-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
  list-style: none;
}

.news-index li {
  min-width: 0;
  padding: 24px;
  background: var(--paper);
}

.news-index strong,
.news-index span {
  display: block;
}

.news-index strong {
  margin-bottom: 7px;
  font-size: 18px;
}

.news-index span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.news-list {
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
  list-style: none;
}

.news-list li {
  border-bottom: 1px solid var(--line);
}

.news-list a {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  text-decoration: none;
}

.news-list a:hover {
  background: var(--brand-pale);
}

.news-category,
.news-action {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.news-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.news-meta {
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.news-action {
  color: var(--ink-soft);
  font-weight: 500;
}

.project-section {
  padding: 88px 0 96px;
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 48px;
  margin-bottom: 34px;
}

.section-heading h2,
.wechat-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.section-heading > p {
  margin: 0 0 5px;
  color: var(--ink-soft);
}

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

.project-card {
  scroll-margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  transition: border-color 160ms ease-out, transform 160ms ease-out;
}

.project-card:hover {
  border-color: var(--brand);
  transform: translate(-2px, -2px);
}

.project-card > a {
  display: grid;
  min-height: 200px;
  grid-template-columns: 68px 1fr;
  gap: 22px;
  padding: 30px;
  text-decoration: none;
}

.project-number {
  color: var(--pink);
  font-size: 35px;
  font-weight: 800;
  line-height: 1;
}

.project-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.project-level {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin-bottom: 12px;
  padding: 3px 11px;
  border: 0;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.project-content strong {
  font-size: 24px;
  line-height: 1.4;
}

.project-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 26px;
  color: var(--brand-dark);
  font-weight: 700;
}

.project-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease-out;
}

.project-card:hover .project-action svg {
  transform: translateX(4px);
}

.wechat-section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
  background: var(--brand-pale);
}

.wechat-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 64px;
}

.wechat-copy p:last-child {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--ink-soft);
}

.wechat-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.wechat-visual img {
  width: 100%;
  height: auto;
}

.site-footer {
  color: #dfe7f8;
  background: var(--ink);
}

.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.footer-inner a {
  color: inherit;
  font-size: 13px;
  text-decoration: none;
}

.footer-inner a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (prefers-reduced-motion: no-preference) {
  .route-track::before {
    animation: reveal-route 700ms ease-out both;
  }

  @keyframes reveal-route {
    from {
      transform: scaleX(0);
    }

    to {
      transform: scaleX(1);
    }
  }
}

@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0 20px;
    padding: 13px 0 0;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
  }

  .primary-nav a,
  .primary-nav span {
    padding-top: 15px;
    padding-bottom: 13px;
  }

  .nav-pending::after {
    top: 3px;
  }

  .route-hero {
    padding-top: 40px;
  }

  .section-heading,
  .wechat-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 14px;
  }

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

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

  .wechat-panel {
    gap: 34px;
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 28px, 1120px);
  }

  .brand {
    font-size: 16px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .login-link {
    min-height: 36px;
    padding-inline: 14px;
  }

  .primary-nav {
    gap: 20px;
    font-size: 14px;
  }

  .route-hero {
    padding: 30px 0 36px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .route-board {
    padding: 22px 20px 12px;
  }

  .route-track {
    display: block;
  }

  .route-track::before {
    top: 12px;
    right: auto;
    bottom: 12px;
    left: 13px;
    width: 3px;
    height: auto;
    transform-origin: top;
  }

  .route-track li {
    text-align: left;
  }

  .route-track a {
    min-height: 62px;
    display: grid;
    grid-template-columns: 30px 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 13px;
    padding: 0 0 10px;
  }

  .route-marker {
    grid-row: 1 / 3;
    width: 27px;
    height: 27px;
    margin: 0;
  }

  .route-name {
    align-self: end;
    padding-top: 1px;
  }

  .route-grade {
    margin-top: 0;
  }

  .project-section {
    padding: 64px 0 70px;
  }

  .news-section {
    padding: 58px 0 62px;
  }

  .news-index {
    grid-template-columns: 1fr;
  }

  .news-list a {
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    padding: 16px;
  }

  .news-category {
    grid-column: 1 / -1;
  }

  .project-card > a {
    min-height: 170px;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 24px 20px;
  }

  .project-number {
    font-size: 28px;
  }

  .project-content strong {
    font-size: 21px;
  }

  .wechat-section {
    padding: 58px 0;
  }

  .footer-inner {
    min-height: 96px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
