/* 二级页面（列表 / 详情）— 液态玻璃 */

body.page-secondary {
  min-height: 100vh;
}

.page-header {
  background: var(--hero-bg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  color: var(--text-primary);
  padding: 52px 0 44px;
  text-align: center;
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1rem;
  color: var(--text-regular);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.search-section .stats-card {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.search-section .stat-item {
  text-align: center;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  padding: 14px 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.search-section .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.search-section .stat-number.is-loading {
  color: var(--text-secondary);
  font-size: 1.5rem;
}

.search-section .stat-label {
  font-size: 14px;
  color: var(--text-regular);
  margin-top: 4px;
}

.breadcrumb {
  margin: 22px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  opacity: 0.7;
}

.site-footer a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

/* 大学列表页（无筛选侧栏） */
.main-content--list-only {
  display: block;
}

.main-content--list-only .university-list {
  width: 100%;
}

.page-list-only .page-header p a {
  color: var(--color-primary);
  text-decoration: underline;
}

.page-header--compact {
  padding: 24px 0 16px;
}

.page-header--compact h1 {
  margin-bottom: 6px;
}

.page-header--compact p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.page-list-only .main-content--list-only {
  padding-top: 8px;
}

/* 大学列表页：横向精简行 */
.university-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uni-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.uni-row:hover {
  background: var(--bg-muted);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.uni-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.uni-row-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.uni-row-campus {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 2px 8px;
  background: var(--color-primary-soft);
  border-radius: 4px;
}

.uni-row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.uni-row-loc {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.uni-row-badge {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-muted);
  color: var(--text-regular);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.uni-row-arrow {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--text-secondary);
  opacity: 0.5;
}

.uni-row:hover .uni-row-arrow {
  opacity: 1;
  color: var(--color-primary);
}

@media (max-width: 600px) {
  .uni-row {
    position: relative;
    flex-wrap: wrap;
    gap: 8px;
    padding-right: 36px;
  }

  .uni-row-meta {
    width: 100%;
  }

  .uni-row-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
  }

  .uni-row:hover .uni-row-arrow {
    transform: translateY(-50%);
  }
}

/* 大学列表页卡片 */
.card-info .info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.card-info .info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-secondary);
}

.info-value {
  font-weight: 500;
  color: var(--text-primary);
}

.card-tags .card-tag {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--color-primary-soft);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.card-tags .tag-level {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-regular);
}

[data-theme="dark"] .card-tags .tag-level {
  background: rgba(255, 255, 255, 0.08);
}

.card-tags .tag-type {
  background: var(--color-secondary-soft);
  color: var(--text-secondary);
}

/* 详情页布局 */
body.page-secondary .container > .main-content {
  flex-direction: column;
  gap: 28px;
  padding: 28px 0 48px;
}

.university-header {
  background: var(--hero-bg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  padding: 28px 28px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.university-header h1 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.university-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 10px;
}

.meta-item {
  font-size: 14px;
}

.meta-item .label {
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-card {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid var(--border-glass);
}

.detail-card h3 {
  margin-bottom: 16px;
  font-size: 17px;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: inline-block;
}

.detail-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-item:last-child {
  border-bottom: none;
}

.campus-map-container {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 12px 0 16px;
  overflow: hidden;
  background: var(--bg-glass);
}

.map-wrapper,
.map-wrap {
  position: relative;
}

.map-loading-overlay {
  position: absolute;
  inset: 12px 0 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-regular);
}

[data-theme="dark"] .map-loading-overlay {
  background: rgba(15, 23, 42, 0.88);
}

.map-radius-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--color-primary, #2563eb);
  vertical-align: middle;
}

.poi-count {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.map-error {
  color: #dc2626;
}

.map-radius-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.map-placeholder,
.map-hint,
.loading-inline {
  font-size: 14px;
  color: var(--text-regular);
  padding: 12px 0;
}

.transport-description-card {
  margin-top: 0;
  border-left: 4px solid var(--color-primary, #2563eb);
}

.transport-description-card h3 {
  margin-bottom: 8px;
  color: var(--text-primary, #0f172a);
}

.transport-description-tip {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--text-secondary, #64748b);
  line-height: 1.5;
}

.transport-description-empty {
  padding: 20px 16px;
  text-align: center;
  border-radius: var(--radius-md, 10px);
  background: var(--surface-muted, #f8fafc);
  border: 1px dashed var(--border-color, #cbd5e1);
  color: var(--text-secondary, #64748b);
  font-size: 14px;
  line-height: 1.6;
}

.transport-description-empty p {
  margin: 0 0 6px;
}

.transport-description-empty-hint {
  font-size: 12px;
  opacity: 0.9;
}

[data-theme="dark"] .transport-description-empty {
  background: rgba(30, 41, 59, 0.45);
  border-color: rgba(148, 163, 184, 0.35);
}

.transport-description-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color, #e2e8f0);
}

.transport-description-block {
  padding: 14px 16px;
  border-radius: var(--radius-md, 10px);
  background: var(--surface-muted, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
}

[data-theme="dark"] .transport-description-block {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(148, 163, 184, 0.2);
}

.transport-description-line {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-primary, #1e293b);
}

.transport-description-line:last-child {
  margin-bottom: 0;
}

.street-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-regular);
  margin-bottom: 8px;
  padding: 12px 14px;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-primary, #2563eb);
}

.poi-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.poi-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-regular);
}

.poi-list li:last-child {
  border-bottom: none;
}

/* 统一灰色框逐条展示 */
.info-item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-item-row {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-regular);
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--bg-muted);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.info-item-row:last-child {
  margin-bottom: 0;
}

.info-item-row--poi strong {
  color: var(--text-primary);
}

.info-item-meta {
  font-size: 12px;
  color: var(--text-secondary, #64748b);
  margin-top: 4px;
}

.mini-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap, 8px);
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-regular);
}

.mini-pagination button {
  /* 动画见 buttons-animated.css */
}

.mini-pagination button:disabled {
  /* 见 buttons-animated.css */
}

.section-loading-hint {
  font-size: 13px;
  color: var(--text-secondary, #64748b);
  padding: 8px 0;
}

.info-item-row--uni {
  border-left: 3px solid #ea580c;
}

.info-item-row--highlight {
  background: color-mix(in srgb, #ea580c 8%, var(--bg-muted));
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-regular);
  margin: 8px 0 12px;
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.map-legend-dot--poi { background: #3b82f6; }
.map-legend-dot--uni { background: #ea580c; }

.map-marker-uni {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  pointer-events: auto;
}

.map-marker-uni-icon {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}

.map-marker-uni-label {
  font-size: 10px;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(234, 88, 12, 0.92);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.map-marker-poi {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.map-marker-poi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.map-marker-poi-dot--active {
  transform: scale(1.35);
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.35), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.info-item-row--poi {
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.info-item-row--poi:hover {
  background: var(--surface-muted, #f8fafc);
}

.info-item-row--poi-active {
  border-color: var(--color-primary, #2563eb) !important;
  background: color-mix(in srgb, var(--color-primary, #2563eb) 10%, var(--card-bg, #fff)) !important;
}

.poi-detail-sheet {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: min(360px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow: auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .poi-detail-sheet {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.25);
}

.poi-detail-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.poi-detail-sheet-head strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.poi-detail-sheet-meta {
  font-size: 12px;
  color: var(--text-secondary, #64748b);
  line-height: 1.45;
}

.poi-detail-sheet-body {
  padding: 12px 14px 14px;
}

.poi-detail-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.poi-detail-label {
  flex-shrink: 0;
  width: 56px;
  color: var(--text-secondary, #64748b);
  font-weight: 600;
}

.poi-detail-link {
  color: var(--color-primary, #2563eb);
  word-break: break-all;
}

.poi-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.poi-photo-item {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color, #e2e8f0);
}

.transit-panel-tip {
  margin: 0 0 10px;
  font-size: 12px;
}

.evaluation-section h2 {
  font-size: 21px;
  margin-bottom: 18px;
  color: var(--text-primary);
  font-weight: 700;
}

.evaluation-card {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid var(--border-glass);
}

.evaluation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.evaluation-header h3 {
  font-size: 18px;
  color: var(--text-primary);
}

.evaluation-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.evaluation-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.evaluation-stats .stat-item {
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px 12px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid var(--border-glass);
}

.stat-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
}

.evaluation-stats .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.evaluation-detail-group {
  margin-bottom: 18px;
  padding: 18px;
  background: var(--bg-muted);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.evaluation-detail-group h4 {
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

.evaluation-detail-item {
  font-size: 14px;
  padding: 6px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.major-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.major-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--text-regular);
  background: var(--bg-card, #fff);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.advice-section h4 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.advice-content {
  line-height: 1.65;
  color: var(--text-regular);
  font-size: 14px;
}

.evaluation-actions {
  margin-top: 22px;
}

.btn-like {
  /* 动画见 buttons-animated.css */
  font-size: 14px;
}

.btn-like:hover {
  transform: none;
  opacity: 1;
}

/* 学长有话说 */
.advice-wall-section {
  margin-top: 32px;
  padding-bottom: 40px;
}

.advice-wall-section h2 {
  margin-bottom: 6px;
  color: var(--text-primary);
}

.advice-wall-desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.advice-form.card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.advice-form-row {
  margin-bottom: 12px;
}

.advice-input,
.advice-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
}

.advice-textarea {
  resize: vertical;
  min-height: 96px;
}

.advice-char-count {
  text-align: right;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.advice-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.advice-message {
  font-size: 13px;
  color: var(--color-success, #2e7d32);
}

.advice-message.error {
  color: var(--color-danger, #c62828);
}

.advice-loading,
.advice-empty {
  padding: 24px 0;
  text-align: center;
  color: var(--text-secondary);
}

.advice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.advice-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  position: relative;
}

.advice-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.advice-author {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.advice-time {
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.advice-item-content {
  margin: 0;
  line-height: 1.65;
  color: var(--text-regular);
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.advice-delete-btn {
  margin-top: 10px;
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.advice-delete-btn:hover {
  color: var(--color-danger, #c62828);
  border-color: var(--color-danger, #c62828);
}

.advice-item--official {
  border-left: 3px solid var(--color-primary);
  margin-bottom: 16px;
}

.advice-item--official .advice-author {
  color: var(--color-primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.campus-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft, rgba(64, 158, 255, 0.12));
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
}

.campus-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 4px;
  padding: 5px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.campus-tabs .campus-tab {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.campus-tabs .campus-tab:hover:not(.is-active) {
  color: var(--text-primary);
  background: var(--bg-glass-strong);
  border-color: var(--border);
}

.campus-tabs .campus-tab.is-active,
.campus-tabs .campus-tab.active {
  background: var(--color-primary) !important;
  color: var(--text-on-primary) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

[data-theme="dark"] .campus-tabs .campus-tab.is-active,
[data-theme="dark"] .campus-tabs .campus-tab.active {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.campus-single {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--btn-gap, 8px);
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.section-head-row h3 {
  margin: 0;
}

.btn-transit-lines {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  white-space: nowrap;
}

.btn-transit-lines:hover {
  opacity: 1;
}

.transit-page {
  padding-bottom: 48px;
  max-width: 1200px;
}

/* 顶栏：标题 + 检索 */
.transit-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 18px 20px;
}

.transit-hero-main {
  flex: 1;
  min-width: 240px;
}

.transit-hero-main h1 {
  font-size: 22px;
  margin: 0 0 10px;
  line-height: 1.35;
}

.transit-hero-search {
  display: flex;
  gap: var(--btn-gap, 8px);
  align-items: center;
  min-width: 260px;
  flex: 0 1 340px;
}

.transit-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.transit-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: color-mix(in srgb, var(--color-primary, #2563eb) 10%, var(--card-bg, #fff));
  color: var(--color-primary, #2563eb);
  border: 1px solid color-mix(in srgb, var(--color-primary, #2563eb) 25%, transparent);
}

.transit-anchor-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary, #64748b);
  line-height: 1.5;
}

/* 全宽地图区 */
.transit-map-section {
  margin-bottom: 16px;
  padding: 16px 18px 18px;
  overflow: hidden;
}

.transit-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.transit-map-toolbar h3 {
  margin: 0;
  font-size: 16px;
}

.transit-map-legend {
  margin: 0;
}

.transit-map-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-glass, #f8fafc);
}

.transit-map-section .transit-map-container {
  width: 100%;
  height: clamp(320px, 42vh, 460px);
  min-height: 320px;
  margin: 0;
  border: none;
  border-radius: 0;
}

.transit-map-float-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  font-size: 13px;
  color: var(--text-primary, #1e293b);
}

[data-theme="dark"] .transit-map-float-bar {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.25);
}

.transit-map-float-bar strong {
  color: var(--color-primary, #2563eb);
}

.transit-map-float-loading {
  color: var(--text-secondary, #64748b);
  font-size: 12px;
}

.transit-station-sheet {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: min(360px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow: auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .transit-station-sheet {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.25);
}

.transit-station-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.transit-station-sheet-head strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.transit-station-sheet-meta {
  font-size: 12px;
  color: var(--text-secondary, #64748b);
  line-height: 1.45;
}

.transit-sheet-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: var(--surface-muted, #f1f5f9);
  color: var(--text-secondary, #64748b);
  font-size: 18px;
  cursor: pointer;
}

.transit-sheet-close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

[data-theme="dark"] .transit-sheet-close:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.transit-station-sheet-body {
  padding: 12px 14px 14px;
}

.transit-sheet-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
}

.transit-sheet-line-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transit-sheet-line-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #e2e8f0);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.transit-sheet-line-item:hover {
  background: var(--surface-muted, #f8fafc);
}

.transit-sheet-line-item--active {
  border-color: var(--color-primary, #2563eb);
  background: color-mix(in srgb, var(--color-primary, #2563eb) 8%, var(--card-bg, #fff));
}

.transit-sheet-line-main {
  flex: 1;
  min-width: 0;
}

.transit-sheet-line-main strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.transit-sheet-line-route {
  font-size: 12px;
  color: var(--text-secondary, #64748b);
}

.transit-line-detail-card {
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-muted, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  font-size: 13px;
  line-height: 1.6;
}

.transit-line-detail-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--color-primary, #2563eb);
}

.transit-path-stop-section {
  margin-top: 12px;
}

.transit-path-stop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  background: var(--card-bg, #fff);
}

.transit-path-stop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  cursor: pointer;
  transition: background 0.15s;
}

.transit-path-stop-item:last-child {
  border-bottom: none;
}

.transit-path-stop-item:hover {
  background: var(--surface-muted, #f8fafc);
}

.transit-path-stop-item--via {
  background: color-mix(in srgb, var(--color-primary, #2563eb) 10%, var(--card-bg, #fff));
}

.transit-path-stop-item--via .transit-path-stop-seq {
  background: var(--color-primary, #2563eb);
  color: var(--text-on-primary, #fff);
}

.transit-path-stop-seq {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-muted, #e2e8f0);
  color: var(--text-secondary, #64748b);
  font-size: 11px;
  font-weight: 600;
}

.transit-path-stop-name {
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.transit-path-stop-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: default;
  user-select: none;
}

.transit-path-stop-marker--subway {
  background: #7c3aed;
}

.info-item-row--station-active {
  border-color: var(--color-primary, #2563eb) !important;
  background: color-mix(in srgb, var(--color-primary, #2563eb) 10%, var(--card-bg, #fff)) !important;
}

.transit-marker {
  transition: transform 0.2s, box-shadow 0.2s;
}

.transit-marker--active {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.35), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.transit-marker--subway.transit-marker--active {
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.35), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.transit-marker--bus.transit-marker--active {
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.35), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 底部双栏：站点 + 线路等宽 */
.transit-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .transit-bottom-grid {
    grid-template-columns: 1fr;
  }

  .transit-hero-search {
    flex: 1 1 100%;
    min-width: 0;
  }
}

.transit-panel {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 16px 18px;
}

.transit-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.transit-panel-head h3 {
  margin: 0;
  font-size: 16px;
}

.transit-panel-count {
  font-size: 12px;
  color: var(--text-secondary, #64748b);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-muted, #f1f5f9);
}

.transit-panel-tip {
  margin: -4px 0 12px;
  font-size: 12px;
}

.transit-station-list,
.transit-line-list {
  flex: 1;
  overflow: auto;
  max-height: 520px;
  margin: 0;
  padding-right: 4px;
}

.transit-station-list .info-item-row,
.transit-line-list .info-item-row {
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.transit-station-list .info-item-row:hover,
.transit-line-list .info-item-row:hover {
  background: var(--surface-muted, #f8fafc);
}

/* 最近站点紧凑条 */
.transit-nearest-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.transit-nearest-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--surface-muted, #f8fafc);
  transition: transform 0.15s, box-shadow 0.15s;
}

.transit-nearest-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.transit-nearest-item--bus {
  border-left: 3px solid #16a34a;
}

.transit-nearest-item--subway {
  border-left: 3px solid #7c3aed;
}

.transit-nearest-label {
  font-size: 11px;
  color: var(--text-secondary, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.transit-nearest-dist {
  font-size: 12px;
  color: var(--color-primary, #2563eb);
}

.transit-header h1 {
  font-size: 22px;
  margin: 12px 0 6px;
}

.transit-subtitle {
  color: var(--text-secondary, #64748b);
  font-size: 14px;
  margin: 0 0 8px;
}

.transit-search-bar {
  display: flex;
  gap: 10px;
  margin: 14px 0 8px;
  flex-wrap: wrap;
}

.transit-search-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  font-size: 14px;
  background: var(--card-bg, #fff);
  color: var(--text-primary, #1e293b);
}

.btn-transit-search {
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-transit-search:disabled {
  /* 见 buttons-animated.css */
}

.transit-nearest {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface-muted, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
}

.transit-nearest h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

/* 旧左右布局保留兼容，新页不再使用 */
.transit-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.transit-map-container {
  min-height: 320px;
}

.transit-list-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.transit-marker {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 6px;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transform: translate(-50%, -50%);
}

.transit-marker--subway { background: #7c3aed; }
.transit-marker--bus { background: #16a34a; }

.transit-legend-chip {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}

.transit-legend-chip--subway { background: #7c3aed; }
.transit-legend-chip--bus { background: #16a34a; }

.info-item-row--transit.info-item-row--subway {
  border-left: 3px solid #7c3aed;
}

.info-item-row--transit.info-item-row--bus {
  border-left: 3px solid #16a34a;
}

.transit-line-tags {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.transit-line-tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  cursor: pointer;
}

.transit-line-tag--subway {
  border-color: #7c3aed;
  color: #7c3aed;
}

.transit-line-tag--bus {
  border-color: #16a34a;
  color: #16a34a;
}

.transit-line-row--active {
  border-color: var(--color-primary, #2563eb) !important;
  background: color-mix(in srgb, var(--color-primary, #2563eb) 8%, var(--bg-muted));
}

.transit-selected-line {
  font-size: 13px;
  margin-top: 10px;
  color: var(--text-regular);
}

.transit-line-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.transit-line-row .transit-line-tag {
  align-self: flex-start;
}
