/* ==========================================================================
   VPNNK — nodes.css
   线路列表页(locations.html)专属样式:页头、线路分组表、线路类型卡、
   选线建议卡、覆盖地区徽章墙、旗帜补充填色。
   颜色一律引用 base.css 的 :root 令牌,不写死硬编码色值。
   ========================================================================== */

/* ---- 旗帜补充填色(基础令牌派生,仅本页 sprite 使用) ---- */
.c-green { fill: var(--success); }
.c-saffron { fill: var(--warn); }

/* ==========================================================================
   1. 页头(浅光斑 + 居中左对齐排版,签名元素 1 的轻量版)
   ========================================================================== */
.page-head {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  max-width: 100%;
  padding-top: 44px;
  padding-bottom: 28px;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(540px 320px at 14% -12%, var(--blush) 0%, rgba(246, 214, 232, 0) 70%),
    radial-gradient(560px 340px at 88% -4%, var(--frost) 0%, rgba(207, 233, 245, 0) 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0) 94%);
  mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0) 94%);
}
.page-head .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.page-head h1 { max-width: 24ch; }
.page-head .lede { max-width: 64ch; }
.page-head .ctas { margin-top: 2px; }
.page-head .chips { margin-top: 4px; justify-content: flex-start; }

/* ==========================================================================
   2. 线路分组
   ========================================================================== */
.line-group + .line-group { margin-top: 46px; }
.line-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  letter-spacing: -.02em;
}
.line-group h3 svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.line-group > p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 82ch;
}
.line-group .table-scroll { margin-top: 16px; }

/* ==========================================================================
   3. 线路类型说明卡
   ========================================================================== */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.type-grid > * { min-width: 0; }
.type-card { display: flex; flex-direction: column; gap: 12px; }
.type-card h3 {
  font-size: 19px;
  letter-spacing: -.02em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.type-card > p { font-size: 14.5px; color: var(--text-muted); }
.type-list { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.type-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
}
.type-list b {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  padding-top: 3px;
  letter-spacing: .01em;
}
.type-list span { color: var(--text-muted); }

/* ==========================================================================
   4. 选线建议卡
   ========================================================================== */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.pick-grid > * { min-width: 0; }
.pick-card { display: flex; flex-direction: column; gap: 10px; }
.pick-card h3 { font-size: 18px; letter-spacing: -.02em; }
.pick-card p { font-size: 14.5px; color: var(--text-muted); }
.pick-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--violet-soft);
  border: 1px solid var(--violet-line);
  color: var(--violet);
  font-size: 12.5px;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
}
.pick-card .link-arrow { margin-top: auto; font-size: 14px; }

/* ==========================================================================
   5. 覆盖地区徽章墙(纯装饰)
   ========================================================================== */
.region-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.region-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  max-width: 100%;
}
.region-chip svg {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--border);
  flex: 0 0 auto;
}
.region-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 82ch;
}

/* ==========================================================================
   6. 响应式
   ========================================================================== */
@media (max-width: 1100px) {
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .type-grid { grid-template-columns: minmax(0, 1fr); }
  .pick-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .page-head { padding-top: 30px; padding-bottom: 20px; }
  .line-group + .line-group { margin-top: 34px; }
  .line-group h3 { font-size: 18px; }
}

@media (max-width: 640px) {
  .type-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .type-list b { padding-top: 0; }
  .region-chip { font-size: 12.5px; }
}