.home-hero {
  position: relative;
}

.home-hero .hero-copy {
  align-items: flex-start;
  padding-top: clamp(42px, 6vh, 68px);
  padding-bottom: clamp(34px, 5vh, 58px);
}

.home-hero .hero-copy-inner {
  width: min(100%, 640px);
}

.home-hero .eyebrow {
  margin-bottom: 14px;
}

.home-hero h1 {
  max-width: 620px;
  margin-bottom: 18px;
}

.hero-actions {
  margin-bottom: 20px;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 12px;
}

.hero-lead strong {
  color: var(--color-text);
}

.home-hero .hero-trust {
  margin-top: 0;
  margin-bottom: 18px;
  line-height: 1.65;
}

.home-hero .hero-meta {
  gap: 11px;
  padding-top: 14px;
}

.home-hero .platform-inline,
.home-hero .flag-inline {
  flex-wrap: wrap;
  row-gap: 8px;
}

.home-hero .platform-chip svg {
  overflow: visible;
}

.linux-cut {
  fill: var(--color-canvas);
}

.home-hero .hero-device {
  overflow: visible;
}

.home-hero .hero-device::before {
  overflow: hidden;
}

.home-hero .express-map {
  top: 52%;
}

.station-flag-frame {
  fill: var(--color-canvas);
  stroke: var(--color-dark-line);
}

.stats-strip-item strong {
  margin-right: 7px;
  color: var(--color-dark-text);
  font-size: 15px;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: end;
  margin-bottom: 42px;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.section-intro {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 17px;
  line-height: 1.85;
}

.node-preview {
  background: var(--color-canvas);
}

.route-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 2px solid var(--color-text);
  border-bottom: 1px solid var(--color-line);
}

.route-notes article {
  min-width: 0;
  padding: 28px;
  border-right: 1px solid var(--color-line);
}

.route-notes article:last-child {
  border-right: 0;
}

.route-notes h3 {
  font-size: 21px;
}

.route-notes p {
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.8;
}

.status-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  margin-top: 58px;
  margin-bottom: 20px;
}

.status-heading h3 {
  margin-bottom: 6px;
}

.status-heading p {
  max-width: 800px;
  margin: 0;
  color: var(--color-text-soft);
}

.server-status {
  display: grid;
  min-height: 92px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.server-status:not([data-populated])::before {
  display: flex;
  min-height: 78px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-soft);
  content: "正在读取线路状态";
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}

.srv-row {
  display: grid;
  min-width: 0;
  min-height: 74px;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
}

.srv-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--color-positive);
  animation: srv-breathe 1.8s ease-in-out infinite;
}

.srv-flag {
  display: grid;
  width: 28px;
  height: 20px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xs);
  background: var(--color-surface);
  font-size: 12px;
}

.srv-flag img,
.srv-flag svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.srv-name {
  min-width: 0;
  overflow: hidden;
  color: var(--color-text);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srv-type {
  display: inline-flex;
  max-width: 100%;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srv-ms,
.srv-bw {
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

@keyframes srv-breathe {
  0%,
  100% {
    opacity: .48;
    transform: scale(.78);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.section-link-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.section-link-row .article-card-link {
  min-height: 44px;
  align-items: center;
}

.feature-section {
  padding-top: var(--section-space);
}

.feature-intro {
  padding-bottom: clamp(44px, 6vw, 76px);
}

.feature-kicker {
  margin-bottom: 16px;
  color: var(--color-dark-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
}

.feature-intro h2 {
  max-width: 760px;
}

.feature-intro > p:last-child {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--color-dark-soft);
  font-size: 18px;
}

.feature-row h3 {
  margin: 0;
}

.pricing-preview {
  background: var(--color-canvas);
}

.pricing-heading {
  margin-bottom: 52px;
}

.plan-description {
  margin-bottom: 24px;
  color: var(--color-text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.traffic-pack-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  margin-top: 42px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.traffic-pack-panel h3 {
  margin-top: 18px;
  margin-bottom: 8px;
}

.traffic-pack-panel p {
  max-width: 850px;
  margin: 0;
  color: var(--color-text-soft);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 3px solid var(--color-text);
  border-bottom: 1px solid var(--color-line);
}

.decision-grid article {
  position: relative;
  min-width: 0;
  padding: 30px;
  border-right: 1px solid var(--color-line);
}

.decision-grid article:last-child {
  border-right: 0;
}

.decision-index {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}

.decision-grid h3 {
  font-size: 22px;
}

.decision-grid p {
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.85;
}

.home-guidance {
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
}

.guidance-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: start;
}

.guidance-heading {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.guidance-heading .lead {
  font-size: 18px;
}

.guidance-list {
  border-top: 3px solid var(--color-text);
}

.guidance-list article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-line);
}

.guidance-code {
  padding-top: 5px;
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
}

.guidance-list h3 {
  font-size: 23px;
}

.guidance-list p {
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.85;
}

.blog-preview {
  background: var(--color-canvas);
}

.blog-preview .article-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.blog-preview .article-card {
  min-height: 390px;
}

.blog-preview .article-card h3 {
  font-size: 21px;
}

.blog-preview .article-card p {
  font-size: 14px;
  line-height: 1.75;
}

@media (max-width: 1180px) {
  .blog-preview .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-preview .article-card {
    min-height: 330px;
  }
}

@media (max-width: 1000px) {
  .home-hero .platform-inline,
  .home-hero .flag-inline {
    gap: 12px;
  }

  .home-hero .platform-chip,
  .home-hero .flag-chip {
    font-size: 11px;
  }

  .route-notes,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .route-notes article,
  .decision-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .route-notes article:last-child,
  .decision-grid article:last-child {
    border-bottom: 0;
  }

  .server-status {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .home-hero .hero-device {
    overflow: hidden;
  }

  .section-heading-row,
  .guidance-layout {
    grid-template-columns: 1fr;
  }

  .guidance-heading {
    position: static;
  }
}

@media (max-width: 768px) {
  .home-hero .hero-copy {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .home-hero .eyebrow {
    margin-bottom: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .home-hero h1 {
    margin-bottom: 14px;
  }

  .hero-actions {
    margin-bottom: 14px;
  }

  .hero-lead {
    margin-bottom: 9px;
    font-size: 14px;
    line-height: 1.55;
  }

  .home-hero .hero-trust {
    margin-bottom: 12px;
    font-size: 11.5px;
    line-height: 1.5;
  }

  .home-hero .hero-meta {
    gap: 8px;
    padding-top: 10px;
  }

  .home-hero .meta-row {
    gap: 10px;
  }

  .home-hero .meta-label {
    width: 54px;
    font-size: 9px;
  }

  .home-hero .platform-inline,
  .home-hero .flag-inline {
    flex-wrap: nowrap;
  }

  .home-hero .platform-chip,
  .home-hero .flag-chip {
    font-size: 10px;
  }

  .home-hero .platform-chip svg {
    width: 14px;
    height: 14px;
  }

  .home-hero .flag-chip svg {
    width: 21px;
    height: 14px;
  }

  .section-heading-row {
    align-items: start;
    gap: 18px;
  }

  .traffic-pack-panel {
    grid-template-columns: 1fr;
  }

  .status-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .home-hero .button-row {
    flex-wrap: nowrap;
  }

  .home-hero .button-row > .btn-primary,
  .home-hero .button-row > .btn-secondary {
    min-height: 42px;
    padding: 11px 18px;
    font-size: 14px;
  }

  .home-hero .hero-meta {
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
  }

  .home-hero .hero-device {
    min-height: 390px;
  }

  .route-notes article,
  .decision-grid article {
    padding: 24px 0;
  }

  .srv-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
  }

  .srv-type {
    grid-column: 3;
    justify-self: start;
  }

  .srv-ms {
    grid-column: 4;
    grid-row: 1;
  }

  .srv-bw {
    grid-column: 4;
    grid-row: 2;
  }

  .guidance-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guidance-code {
    padding-top: 0;
  }

  .blog-preview .article-grid {
    grid-template-columns: 1fr;
  }

  .blog-preview .article-card {
    min-height: 0;
  }
}

@media (max-width: 420px) {
  .home-hero .platform-inline,
  .home-hero .flag-inline {
    gap: 9px;
  }

  .home-hero .platform-chip,
  .home-hero .flag-chip {
    gap: 4px;
    font-size: 9px;
  }

  .home-hero .meta-label {
    width: 48px;
  }

  .home-hero .flag-chip svg {
    width: 19px;
    height: 13px;
  }

  .home-hero .platform-chip svg {
    width: 13px;
    height: 13px;
  }

  .srv-row {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .srv-dot {
    animation: none;
    opacity: 1;
    transform: none;
  }
}