/* 首页套餐：主档跨两行，次档沿右侧依次排布。 */
.home-plans {
  padding-top: 0;
}

.home-spotlight {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: stretch;
}

.home-spotlight .is-featured {
  grid-row: span 2;
  padding: clamp(24px, 4vw, 56px);
  align-content: stretch;
  gap: clamp(16px, 2.4vw, 32px);
}

.home-spotlight .is-featured .price-value {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.15;
}

.home-spotlight .is-featured ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  align-self: start;
}

.home-spotlight .plan-card p:not(.price-value) {
  max-width: 54ch;
  color: var(--text-muted);
  line-height: 1.75;
}

.home-spotlight .btn {
  justify-self: start;
  flex-shrink: 0;
  white-space: nowrap;
}

.home-plan-notes {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px;
  margin-top: 16px;
}

.home-plan-notes p,
.home-reading-note p {
  margin-top: 8px;
  line-height: 1.8;
}

.home-plan-notes .card p,
.home-reading-note p {
  color: var(--text-muted);
}

.home-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 12px;
  font-weight: 700;
}

.home-reading-note {
  max-width: 75ch;
  margin-top: 24px;
}

.home-reading-note > .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
}

.home-feature-panels > [role="tabpanel"]:not([hidden]) + [role="tabpanel"]:not([hidden]) {
  margin-top: 12px;
}

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

/* 数值由构建提供的线路脚本注入；区域随内容正常增高。 */
.home-status {
  margin-top: 24px;
}

.home-status:has(#server-status:empty) {
  display: none;
}

.home-status > p + p {
  margin-top: 4px;
}

.home-status .server-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 0;
  overflow: hidden;
}

.home-status .server-status:empty {
  display: none;
}

.home-status .srv-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  font-size: .8125rem;
}

.home-status .srv-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-round);
  background: var(--success);
  box-shadow: 0 0 0 3px var(--ok-tint);
  animation: breathe 3.8s ease-in-out infinite;
}

.home-status .srv-flag {
  display: inline-block;
  max-width: 1.5rem;
  border-radius: var(--r-xs);
}

.home-status .srv-name {
  min-width: 0;
  font-weight: 700;
}

.home-status .srv-type {
  padding: 2px 6px;
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  color: var(--ink-3);
}

.home-status .srv-ms,
.home-status .srv-bw {
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: end;
}

@media (max-width: 768px) {
  .home-plan-notes,
  .home-status .server-status {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .home-spotlight,
  .home-articles {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-spotlight .is-featured {
    grid-row: auto;
  }

  .home-status .srv-row {
    grid-template-columns: auto auto minmax(0, 1fr) minmax(0, auto) minmax(0, auto) minmax(0, auto);
    gap: 5px;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-status .srv-dot {
    animation: none;
  }
}
/* fix-20261122 */
@media (min-width: 641px) {
  .home-spotlight { align-items: stretch; }
  .home-spotlight > .plan-card { align-self: stretch; height: 100%; }
  .home-spotlight .is-featured {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    height: 100%;
  }
  .home-spotlight .is-featured .stack {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .home-spotlight .is-featured ul { align-self: stretch; }
  .home-spotlight .is-featured .btn { margin-top: auto; }
}
#server-status.server-status {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#server-status.server-status > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#server-status .ln-head { height: auto; }
#server-status .ln-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  width: 100%;
}
#server-status :is(small, .ln-count, .ln-g b i, .ln-col h4) {
  font-size: 12px !important;
  opacity: .9 !important;
}
#server-status .ln-nm {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  line-height: 1.35;
  min-width: 4.5em;
}
/* /fix-20261122 */
