/* ============================================================
   45号电车 · 组件层 (Components)
   —— 各页面专属区块
   ============================================================ */

/* ============ 首页 · 玩法闭环 ============ */

.loop-quote {
  display: flex;
  gap: 18px;
  margin-block: 34px 44px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--surface);
}

.loop-quote__bar {
  flex: none;
  width: 3px;
  border-radius: 2px;
  background: var(--acc);
}

.loop-quote__text {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.65;
}

/* 站点流程 */
.stations {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.station { text-align: center; }

.station__dot {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--acc);
  border-radius: 50%;
  background: var(--bg);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--acc);
}

.station__name { font-size: var(--fs-sm); font-weight: 600; }

.station__desc {
  margin-top: 6px;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--text-3);
}

/* ============ 首页 · 途径卡 ============ */

.charge-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.charge-card__tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding-inline: 12px;
  margin-bottom: 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}

.charge-card__title { font-size: var(--fs-lg); font-weight: 700; }

.charge-card__desc {
  margin-top: 10px;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text-2);
}

/* ============ 首页 · 角色卡 ============ */

.char-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.char-card__photo {
  height: 250px;
  background-color: var(--bg-2);
  background-size: cover;
  background-position: center 22%;
}

.char-card__body { padding: 22px 24px 26px; }

.char-card__name { font-size: 22px; font-weight: 800; }

.char-card__role {
  margin-top: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.char-card__desc {
  margin-top: 12px;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text-2);
}

/* ============ 首页 · 终点站小卡 ============ */

.term-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.term-card__no {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--acc);
}

.term-card__name {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
}

.term-card__badge {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-2);
}

/* ============ 首页 · 特色格 ============ */

.feat-cell {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feat-cell__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--acc);
}

.feat-cell__icon svg { width: 20px; height: 20px; }

.feat-cell__title { font-size: 17px; font-weight: 700; }

.feat-cell__desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}

/* ============ 首页 · 适合谁 ============ */

.fit {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-top: 44px;
}

.fit-col {
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.fit-col--good { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }

.fit-col__tag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.fit-col--good .fit-col__tag { background: var(--acc); color: var(--ink); }
.fit-col--bad .fit-col__tag { background: var(--surface-2); color: var(--text-2); }

.fit-col__list { display: grid; gap: 14px; }

.fit-col__list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.fit-col__list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.fit-col--good .fit-col__list li::before { content: "✓"; color: var(--acc); }
.fit-col--bad .fit-col__list li::before { content: "×"; color: var(--text-3); }

/* ============ 首页 · 下载收尾区 ============ */

.dl-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 56px 40px;
  border: 1px solid var(--acc);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.dl-band__title {
  font-size: var(--fs-h3);
  font-weight: 900;
  line-height: 1.25;
}

.dl-band__sub {
  font-size: var(--fs-lg);
  color: var(--text-2);
}

.dl-band__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 12px;
}

.dl-band__trust {
  margin-top: 6px;
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--text-3);
}

/* ============ 特色页 · 编号列表 ============ */

.feat-list { display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr); }

.feat-row {
  display: flex;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feat-row__no {
  flex: none;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--acc);
  padding-top: 5px;
}

.feat-row__main { min-width: 0; }

.feat-row__title { font-size: 19px; font-weight: 700; line-height: 1.4; }

.feat-row__desc {
  margin-top: 10px;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text-2);
}

/* 特色页 · 图文横幅 */
.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.band__img {
  min-height: 280px;
  background-color: var(--bg-2);
  background-size: cover;
  background-position: center;
}

.band__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 44px 46px;
}

.band__title { font-size: var(--fs-h3); font-weight: 800; line-height: 1.3; }

.band__desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}

/* ============ 路线页 · 大卡 ============ */

.route-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.route-row__no {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  color: var(--acc);
}

.route-row__main { min-width: 0; }

.route-row__title { font-size: 20px; font-weight: 700; }

.route-row__desc {
  margin-top: 10px;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text-2);
}

.route-row__badge {
  padding: 6px 16px;
  border: 1px solid var(--acc);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--acc);
  white-space: nowrap;
}

/* 路线页 · 编号总览格 */
.term-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.term-cell {
  display: grid;
  place-items: center;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
}

.term-cell--acc { border-color: var(--acc); color: var(--acc); }
a.term-cell--acc:hover { background: var(--surface-2); }

/* ============ 角色页 · 大卡 ============ */

.member {
  display: grid;
  grid-template-columns: 420px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.member--rev { grid-template-columns: 1fr 420px; }

.member__photo {
  min-height: 380px;
  background-color: var(--bg-2);
  background-size: cover;
  background-position: center 20%;
}

.member__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 44px 48px;
}

.member__tag {
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
}

.member__name { font-size: 38px; font-weight: 900; line-height: 1.15; }

.member__en {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  color: var(--text-3);
}

.member__desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}

.member__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.member__stat b { display: block; font-size: var(--fs-md); font-weight: 700; }
.member__stat span { font-size: var(--fs-xs); color: var(--text-3); }

/* ============ 攻略页 · 时间线 ============ */

.steps { display: grid; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  padding-bottom: 40px;
}

.step:last-child { padding-bottom: 0; }

.step__rail { position: relative; display: flex; justify-content: center; }

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--acc);
  border-radius: 50%;
  background: var(--bg);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--acc);
}

.step__rail::after {
  content: "";
  position: absolute;
  top: 52px;
  bottom: -40px;
  width: 2px;
  background: var(--line);
}

.step:last-child .step__rail::after { display: none; }

.step__body { min-width: 0; padding-top: 6px; }

.step__title { font-size: var(--fs-h4); font-weight: 700; line-height: 1.35; }

.step__desc {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
}

/* ============ FAQ 页 ============ */

.faq-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }

.faq-col { display: grid; gap: 16px; align-content: start; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}

.faq-item[open] { border-color: var(--acc); }

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.5;
}

/* 去掉 <summary> 的默认三角 */
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { content: ""; }

.faq-item__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--acc);
  transition: transform var(--dur) var(--ease);
}

.faq-item__mark svg { width: 16px; height: 16px; }

/* 展开时加号转减号 */
.faq-item[open] .faq-item__mark { transform: rotate(45deg); }

.faq-item__a {
  padding: 0 24px 24px;
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--text-2);
}

/* ============ 下载页 · 下载卡 ============ */

.dl-card {
  overflow: hidden;
  border: 1px solid var(--acc);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.dl-card__head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 32px;
  background: var(--acc);
  color: var(--ink);
}

.dl-card__icon {
  flex: none;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background-color: var(--bg-2);
  background-size: cover;
  background-position: center;
}

.dl-card__title { font-size: 20px; font-weight: 800; }

.dl-card__sub {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

.dl-card__tag {
  margin-left: auto;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.14);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}

.dl-card__body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 32px;
}

.dl-card__shot {
  width: 240px;
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--bg-2);
  background-size: cover;
  background-position: center;
}

.dl-card__specs {
  display: flex;
  gap: 46px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}

.dl-spec b { display: block; font-size: 28px; font-weight: 800; line-height: 1.2; }
.dl-spec span { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--text-3); }

.dl-card__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* 下载卡内的放心微条：把点按钮前最常冒出来的顾虑提前答掉 */
.dl-trust {
  margin-top: 22px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  color: var(--text-2);
}

/* 下载页 · 下载地址弹窗 */
.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.dl-modal[hidden] { display: none; }

.dl-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 8, 0.74);
  backdrop-filter: blur(4px);
}

.dl-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: dl-modal-in 0.2s var(--ease);
}

@keyframes dl-modal-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.dl-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-2);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.dl-modal__close:hover { color: var(--text); border-color: var(--text-3); }
.dl-modal__close svg { width: 18px; height: 18px; }

.dl-modal__title { font-size: 22px; font-weight: 800; }

.dl-modal__sub {
  margin-top: 8px;
  padding-right: 34px;
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.dl-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.dl-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color var(--dur) var(--ease);
}
.dl-item:hover { border-color: var(--acc); }

.dl-item__no {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--acc);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.dl-item__info { flex: 1; min-width: 0; }

.dl-item__row { display: flex; align-items: center; gap: 10px; }
.dl-item__row b { font-size: var(--fs-md); font-weight: 700; }

.dl-item__tag {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--acc);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dl-item__name {
  display: block;
  margin-top: 5px;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.dl-item__btn {
  flex: none;
  height: 40px;
  padding-inline: 20px;
  font-size: 13px;
}

.dl-modal__tip {
  margin-top: 20px;
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--text-3);
}

/* 弹窗打开时锁住页面滚动 */
body.is-locked { overflow: hidden; }

/* 卡片底部流程提示（替代原来的链接明文盒子） */
.dl-note {
  margin-top: 26px;
  padding-left: 14px;
  border-left: 2px solid var(--acc);
  font-size: var(--fs-xs);
  line-height: 1.8;
  color: var(--text-3);
}

/* 下载页 · 步骤卡 */
.dl-step {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.dl-step__no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--acc);
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.dl-step__title { font-size: 19px; font-weight: 700; }

.dl-step__desc {
  margin-top: 10px;
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--text-2);
}

/* 下载页 · 运行环境 */
.sysreq {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 36px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.sysreq__title { font-size: 22px; font-weight: 700; }

.sysreq__desc {
  margin-top: 10px;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text-2);
}

.sysreq__list { display: flex; gap: 44px; }

.sysreq__item b { display: block; font-size: 15px; font-weight: 700; }
.sysreq__item span { font-size: 11px; color: var(--text-3); }

/* ============ 响应式 ============ */

@media (max-width: 1100px) {
  .feat-list { grid-template-columns: 1fr; }
  .stations { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .term-grid { grid-template-columns: repeat(5, 1fr); }
  .member, .member--rev { grid-template-columns: 1fr; }
  .member__photo { min-height: 300px; }
  .dl-card__body { grid-template-columns: 1fr; }
  .dl-card__shot { width: 100%; max-width: 240px; }
}

@media (max-width: 860px) {
  .stations { grid-template-columns: repeat(2, 1fr); }
  .term-grid { grid-template-columns: repeat(4, 1fr); }
  .faq-cols { grid-template-columns: 1fr; }
  .fit { grid-template-columns: 1fr; margin-top: 32px; }
  .fit-col { padding: 24px 22px; }
  .dl-band { padding: 40px 22px; }
  .step { grid-template-columns: 56px 1fr; gap: 18px; }
  .step__num { width: 42px; height: 42px; font-size: var(--fs-md); }
  .step__rail::after { top: 42px; }
  .route-row { grid-template-columns: 1fr; gap: 14px; }
  .route-row__badge { justify-self: start; }
  .band { grid-template-columns: 1fr; }
  .band__img { min-height: 200px; }
  .member__body { padding: 30px 24px; }
  .member__name { font-size: 30px; }
  .dl-card__head { flex-wrap: wrap; padding: 22px; }
  .dl-card__body { padding: 28px 22px; }
  .dl-card__specs { gap: 28px; flex-wrap: wrap; }
  .sysreq { grid-template-columns: 1fr; gap: 24px; padding: 26px 22px; }
  .sysreq__list { gap: 28px; flex-wrap: wrap; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .dl-modal { padding: 14px; }
  .dl-modal__panel { padding: 26px 20px; }
  .dl-item { flex-wrap: wrap; padding: 16px; }
  .dl-item__info { flex-basis: calc(100% - 50px); }
  .dl-item__btn { width: 100%; }
}
