/* 官网落地页样式：只被 landing.html 使用，复用 style.css 里的配色变量。 */

.landing-body { background: var(--bg); }

.landing-wrap {
  width: min(1100px, 100% - 40px);
  margin: 0 auto;
}

/* ---------------- 顶部导航 ---------------- */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.landing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
}
.landing-links { display: flex; align-items: center; gap: 18px; }
.landing-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13.5px;
  transition: color .15s ease;
}
.landing-links a:hover { color: var(--text); }
.landing-enter { text-decoration: none; }

/* ---------------- Hero ---------------- */
.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background:
    radial-gradient(760px 380px at 8% -6%,
      color-mix(in srgb, var(--accent) 20%, transparent), transparent 68%),
    radial-gradient(620px 340px at 96% 8%,
      color-mix(in srgb, #38bdf8 14%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}
.landing-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 46px;
  align-items: center;
}
.landing-eyebrow {
  margin: 0 0 14px;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--accent);
}
.landing-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.16;
  letter-spacing: -.015em;
}
.landing-grad {
  background: linear-gradient(100deg, var(--accent), #2dd4bf 58%, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.landing-sub {
  margin: 0 0 26px;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.85;
}
.landing-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.landing-btn-lg { padding: 11px 22px; font-size: 15px; text-decoration: none; }

/* 右侧展示「精彩时刻」里的一张真实照片；没图时退化为渐变底 + 提示。 */
.landing-hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.art-glow {
  position: absolute;
  inset: 8% 2% 12% 2%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--accent) 34%, transparent), transparent 72%);
  filter: blur(30px);
}
.hero-shot {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: min(72vh, 560px);     /* 竖图兜底：别把首屏撑走 */
  margin: 0;
  aspect-ratio: 2 / 1;             /* 只作占位/空态：有图后由 landing.js 改成图片自身比例 */
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 24%, transparent),
    color-mix(in srgb, #38bdf8 18%, transparent));
  box-shadow: 0 22px 50px var(--shadow-color);
}
.hero-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;           /* 超高被 max-height 限住时完整显示，两侧留白 */
  transition: opacity .5s ease;
}
/* 有图时整块可点（点开大图），鼠标给个放大镜提示 */
.hero-shot:not(.is-empty) { cursor: zoom-in; }
.hero-shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 11px;
  font-size: 12.5px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .58));
}
/* 还没图片时：不出破图、不留空框 */
.hero-shot.is-empty img,
.hero-shot.is-empty figcaption { display: none; }
.hero-shot.is-empty::after {
  content: "精彩时刻 · 等你分享";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------------- 指标条 ---------------- */
.landing-stats {
  padding: 24px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.landing-stats-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}
.landing-stat b { display: block; font-size: 16px; margin-bottom: 4px; }
.landing-stat span { color: var(--text-dim); font-size: 12.5px; }

/* ---------------- 通用区块 ---------------- */
.landing-section { padding: 56px 0; }
.landing-section + .landing-section { border-top: 1px solid var(--border); }
.landing-h2 { margin: 0 0 20px; font-size: 21px; letter-spacing: -.01em; }
.landing-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.landing-note { margin: 14px 0 0; line-height: 1.75; }
.landing-note a { color: var(--accent); }

/* ---------------- 功能特色 ---------------- */
.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 16px;
}
.landing-feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 20px 20px 18px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.landing-feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 14px 30px var(--shadow-color);
}
.landing-feature-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 12px;
  font-size: 20px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.landing-feature h3 { margin: 0 0 8px; font-size: 15px; }
.landing-feature p { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.75; }
.landing-feature code {
  background: var(--sunken);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 12.5px;
}

/* ---------------- 精彩短片（视频墙） ---------------- */
.landing-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 14px;
}
.video-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--sunken);
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.video-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 14px 30px var(--shadow-color);
}
.video-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 16px;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.video-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 12px 9px;
  font-size: 12.5px;
  color: #fff;
  text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
}
.landing-empty { color: var(--text-dim); font-size: 13.5px; }

/* 全屏播放器 */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .86);
}
.video-lightbox video {
  max-width: 96vw;
  max-height: 86vh;
  border-radius: 10px;
  background: #000;
}
.video-lightbox-close {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, .18);
}
.video-lightbox-close:hover { background: rgba(255, 255, 255, .32); }

/* ---------------- 精美骑行路线（管理员维护的精选） ---------------- */
.landing-featured {
  display: grid;
  /* 用 auto-fill（不是 auto-fit）：条目少时保留空列，卡片不会被拉成整行那么宽
     —— 之前只有 1 条时卡片会铺满整行，封图却只有 76px，缩在左上角很难看。 */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  align-items: stretch;
}
/* 卡片：封面在上、标题与指标在下（图上文下） */
.featured-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.featured-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 12px 26px var(--shadow-color);
}
.featured-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--sunken);
  overflow: hidden;
}
.featured-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 没配图时用渐变底 + 图标兜住，不留破图 */
.featured-cover.is-empty {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 22%, transparent),
    color-mix(in srgb, #38bdf8 16%, transparent));
}
.featured-cover.is-empty img { display: none; }
.featured-cover.is-empty::after {
  content: "🚴";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 34px;
  opacity: .75;
}
.featured-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.featured-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(1.45em * 2);
}
.featured-metrics { display: flex; flex-wrap: wrap; gap: 4px; }
.featured-chip {
  font-size: 11.5px;
  line-height: 1.4;
  border-radius: 999px;
  padding: 2px 7px;
}
/* 地点（蓝）/ 距离（绿）/ 爬升（橙）/ 难度（按档位上色） */
.featured-chip--loc   { color: #0ea5e9; background: color-mix(in srgb, #0ea5e9 14%, transparent); }
.featured-chip--dist  { color: #10b981; background: color-mix(in srgb, #10b981 14%, transparent); }
.featured-chip--gain  { color: #f59e0b; background: color-mix(in srgb, #f59e0b 14%, transparent); }
.featured-chip--diff-easy   { color: #10b981; background: color-mix(in srgb, #10b981 14%, transparent); }
.featured-chip--diff-medium { color: #f59e0b; background: color-mix(in srgb, #f59e0b 14%, transparent); }
.featured-chip--diff-hard   { color: #ef4444; background: color-mix(in srgb, #ef4444 14%, transparent); }

/* ---------------- 周边路线 ---------------- */
.landing-route-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
/* 输入框与「搜索」绑成一组：要么同一行，要么整组换行 —— 不让按钮单独掉下去 */
.landing-city-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 240px;
  min-width: 0;
}
.landing-city-row .btn { flex: 0 0 auto; }
.landing-city-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
}
.landing-city-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.landing-routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(266px, 1fr));
  gap: 12px;
  align-items: stretch;   /* 同排卡片等高，看起来整齐 */
}
.landing-route {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px 16px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.landing-route:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 12px 26px var(--shadow-color);
}
/* 标题最多两行 */
.landing-route-name {
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(1.5em * 2);   /* line-clamp 兜不住时还有它 */
}
/* 距离 / 爬升 / 收藏 做成小标签，一眼能分开 */
.landing-route-metrics { display: flex; flex-wrap: wrap; gap: 5px; }
.landing-route-metrics span {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--sunken);
  border-radius: 999px;
  padding: 2px 8px;
}
/* 描述可能非常长（例如跨省路书列了 30 个城市）—— 只留两行，其余省略 */
.landing-route-desc {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(1.65em * 2);  /* 兜底：再长的描述也只占两行 */
}
/* 作者与城市固定在底部，一排卡片底部对齐 */
.landing-route-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.landing-route-foot > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;       /* 再长的作者名/城市名也只占一行 */
  min-width: 0;
}
.landing-route-foot > span:last-child { max-width: 55%; }
.landing-route-city { color: var(--accent); }

/* ---------------- 分页 ---------------- */
.landing-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.landing-pager .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------------- 页脚 ---------------- */
.landing-footer {
  padding: 28px 0 36px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.landing-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.landing-footer-links { display: flex; gap: 14px; }
.landing-footer-links a { color: var(--text-dim); text-decoration: none; }
.landing-footer-links a:hover { color: var(--text); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .landing-hero { padding: 54px 0 46px; }
  .landing-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .landing-hero-art { min-height: 0; }
}
@media (max-width: 640px) {
  .landing-hero { padding: 40px 0 36px; }
  .landing-section { padding: 38px 0; }
  /* 窄屏把导航文字收起来，但「登录 / 注册」必须留在右上角
     （注意它是 <a>，别被上面这条一起隐藏掉） */
  .landing-links a { display: none; }
  .landing-links a.landing-enter {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    font-size: 13.5px;
    text-decoration: none;
  }
  .landing-nav .brand-text { display: none; }   /* 只留 logo 图标，给按钮腾位置 */
  .landing-cta .btn { flex: 1 1 100%; text-align: center; }
  /* 输入框 + 搜索整组占满一行，不再被挤成两行 */
  .landing-city-row { flex: 1 1 100%; }

  /* 功能特色卡片：手机端改成「图标左、文字右」的横向排布，压扁高度 */
  .landing-feature {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
  }
  .landing-feature-ico {
    width: 34px;
    height: 34px;
    margin-bottom: 0;
    flex: 0 0 auto;
    border-radius: 10px;
    font-size: 17px;
  }
  .landing-feature h3 { margin: 0 0 4px; font-size: 14.5px; }
  .landing-feature p { font-size: 13px; line-height: 1.6; }
}


/* ---- 数据条：居中卡片，可点击看详情 ---- */
.landing-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.landing-stat {
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: center;
  padding: 22px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.landing-stat:hover,
.landing-stat:focus-visible {
  transform: translateY(-3px);
  border-color: var(--border);
  background: color-mix(in srgb, var(--card) 65%, transparent);
  outline: none;
}

.landing-stat b {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.landing-stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

.landing-stats-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  opacity: .85;
}

@media (max-width: 720px) {
  .landing-stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ---------------- 本周骑游计划 ---------------- */
/* 未分组时的兜底网格（JS 一定会给 #landingPlans 加上 .landing-plans-cols，见文件后部） */
.landing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

/* 单条计划卡片：尺寸向「周边骑行路线」的小卡看齐（图更扁、字更小、留白更紧） */
.landing-plan {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--card);
  overflow: hidden;   /* 封面贴边时裁掉四角，不要盖住卡片圆角 */
}

.landing-plan-when {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
}

.landing-plan h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.landing-plan p {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.landing-plan-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;   /* 同行卡片被拉高时，底部信息贴底对齐 */
  padding-top: 2px;
  flex-wrap: wrap;
}

/* 报名按钮在小卡里也要瘦一圈，别把底部撑高 */
.landing-plan-foot .btn {
  padding: 4px 10px;
  font-size: 12px;
}

.landing-plan-count {
  font-size: 11.5px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.landing-plan-route {
  font-size: 11.5px;
  color: var(--accent);
  text-decoration: none;
}

.landing-plan-route:hover { text-decoration: underline; }
/* 只让「报名」按钮靠右；人数按钮要贴着左边
   （之前写成 .landing-plan button，把可点的人数也算进去了，结果它被推到中间） */
.landing-plan-foot > button.btn,
.landing-plan-foot > button:last-child { margin-left: auto; }
.landing-plan-count { margin-left: 0; }
.landing-plan-foot { justify-content: flex-start; }


.landing-plan-cover {
  margin: -10px -12px 4px;
  aspect-ratio: 2 / 1;   /* 跟周边路线一样的扁图，整张卡跟着矮下来 */
  overflow: hidden;
  background: var(--bg-soft);
}
.landing-plan-cover img { width: 100%; height: 100%; object-fit: cover; }


/* 骑游计划分组标题（本周 / 以往） */
.landing-plans-group {
  grid-column: 1 / -1;
  margin: 6px 0 -4px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.landing-plans-group::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: -1px;
}


.landing-plan-over {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-dim);
  background: color-mix(in srgb, var(--border) 55%, transparent);
}


/* 报名详情弹窗 */
.signup-card { width: min(420px, 92vw); }
.signup-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; }

.signup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
}

.signup-row:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }

.signup-no {
  flex: 0 0 20px;
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.signup-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
}

.signup-avatar img { width: 100%; height: 100%; object-fit: cover; }
.signup-name { font-size: 14px; }

/* 报名人数做成可点的 */
.landing-plan-count {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 11.5px;
  color: var(--text-dim);
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.landing-plan-count:hover { color: var(--accent); }


/* 通用确认弹窗 */
.confirm-card { width: min(360px, 92vw); }
.confirm-text { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--text-dim); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }


/* 常用城市快选（http 下拿不到定位时的入口） */
.landing-city-quick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.landing-city-quick button {
  appearance: none;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.landing-city-quick button:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}


/* 本周 / 以往：两栏分区不变，栏内改成小卡网格（一栏能排 2 张，窄屏更多） */
.landing-plans-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.plans-col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 12px;
  align-content: start;
  min-width: 0;
}

/* 在列里时标题跨满整行 */
.plans-col .landing-plans-group {
  grid-column: 1 / -1;
  margin: 0;
}

.landing-plan-more {
  appearance: none;
  grid-column: 1 / -1;   /* 展开按钮在网格里也占满一行 */
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.landing-plan-more:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

@media (max-width: 760px) {
  .landing-plans-cols { grid-template-columns: 1fr; }
}


/* 前往方式选择 */
.transport-card { width: min(400px, 92vw); }
.transport-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.transport-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color .15s ease, background .15s ease;
}

.transport-options label:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.transport-options label:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.transport-options input { accent-color: var(--accent); }

/* 名单里的前往方式标签 */
.signup-transport {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-dim);
  background: color-mix(in srgb, var(--border) 55%, transparent);
}


/* 前往方式：左 radio + 单行文字（之前 radio 被 flex 撑开、文字被挤成竖排） */
.transport-options label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}

.transport-options input[type="radio"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.transport-options label span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}


/* 公告横幅 */
.announce-bar {
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--accent) 12%, transparent),
    color-mix(in srgb, var(--accent) 4%, transparent));
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
}

.announce-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.announce-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce-link { flex: 0 0 auto; color: var(--accent); text-decoration: none; font-size: 12.5px; }
.announce-link:hover { text-decoration: underline; }

.announce-close {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
}
.announce-close:hover { color: var(--text); }


/* 常用城市：当前选中的那个高亮 */
.landing-city-quick button.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font-weight: 600;
}


/* 周边路线：行者风格（上图下文） */
.landing-routes-more { display: flex; justify-content: center; margin-top: 18px; }

.landing-route-cover {
  display: block;
  aspect-ratio: 1.6 / 1;
  margin: -14px -16px 10px;
  overflow: hidden;
  background: var(--bg-soft);
}

.landing-route-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-route-cover.is-empty {
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 22px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 12%, transparent), transparent);
}

/* 指标行里的坡度 */
.landing-route-grade { color: var(--text-dim); }


/* 周边路线：行者风格 —— 无边框、图在上、文字在下 */
.landing-routes .landing-route-card,
.landing-route-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
}

.landing-route-card:hover .landing-route-title { color: var(--accent); }

.landing-route-cover {
  margin: 0 0 2px;
  aspect-ratio: 2 / 1;      /* 比之前的 1.6/1 更扁 */
  border-radius: 8px;
}

.landing-route-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s ease;
}

.landing-route-metrics {
  font-size: 12px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.landing-route-by { font-size: 11.5px; color: var(--text-dim); }
