.home {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: #101310;
  color: #f4f0e6;
  font-size: 13px;
  letter-spacing: 0;
}

/* 微信 v2 按钮默认宽 184px 并水平居中，尺寸和外边距需由页面布局接管。 */
.home button {
  margin-left: 0;
  margin-right: 0;
}

.home .mission,
.home .continue-button,
.home .setting-row,
.home .reset-row {
  width: 100%;
  max-width: 100%;
}

.home .brand-button {
  width: 36px;
}

.home .route-action-button {
  width: auto;
}

.home .panel-close {
  width: 32px;
}

.home .start-button {
  width: 220px;
}

.home-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, #101410 0%, #1d2a22 48%, #343026 100%);
}

.home-grid {
  position: absolute;
  inset: 0;
  opacity: .06;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 52px 52px;
}

.sun {
  position: absolute;
  top: 8%;
  right: 10%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #d8bd7a;
  box-shadow: 0 0 70px rgba(216,189,122,.2);
  opacity: .72;
}

.mountain {
  position: absolute;
  right: -5%;
  bottom: 0;
  left: 36%;
  height: 70%;
  background: #1c2922;
  clip-path: polygon(0 100%,8% 63%,18% 73%,31% 28%,45% 69%,57% 40%,73% 76%,87% 33%,100% 60%,100% 100%);
}

.mountain.back {
  opacity: .52;
  transform: translate(4%,-7%) scale(1.08);
}

.mountain.front {
  height: 46%;
  background: #0d1511;
}

.flag-scene {
  position: absolute;
  right: 23%;
  bottom: 5%;
  width: 130px;
  height: 340px;
}

.mast {
  position: absolute;
  right: 48%;
  bottom: 0;
  width: 3px;
  height: 100%;
  background: #d8d0b5;
}

.cloth {
  position: absolute;
  top: 5%;
  left: 52%;
  width: 122px;
  height: 68px;
  background: #c4473e;
  clip-path: polygon(0 0,100% 11%,83% 100%,0 83%);
  animation: flag 3s ease-in-out infinite;
  transform-origin: left top;
}

.base {
  position: absolute;
  right: 35%;
  bottom: -2%;
  width: 54px;
  height: 18px;
  background: #080b09;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: .035;
  background: repeating-linear-gradient(110deg, transparent 0, transparent 4px, #fff 5px);
  pointer-events: none;
}

.home-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 130px 35px rgba(0,0,0,.62);
  pointer-events: none;
}

.cover-screen,
.route-screen {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 12px 20px 10px;
  padding: max(12px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 96px;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  line-height: 16px;
}

.cover-copy {
  display: flex;
  width: 54%;
  max-width: 660px;
  height: calc(100% - 72px);
  justify-content: center;
  padding-left: 28px;
  flex-direction: column;
}

.cover-eyebrow,
.route-eyebrow {
  display: block;
  color: #e1bc68;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
}

.cover-title {
  display: block;
  margin-top: 6px;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.05;
}

.cover-rule {
  width: 56px;
  height: 4px;
  margin: 10px 0;
  background: #c4473e;
}

.cover-subtitle {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.cover-body {
  display: block;
  max-width: 590px;
  margin-top: 8px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.cover-footer {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
}

.cover-note {
  flex: 1;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  line-height: 16px;
}

.start-button {
  display: flex;
  width: 220px;
  height: 44px;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-left: 4px solid #e1bc68;
  background: #b9433b;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  text-align: left;
}

.start-arrow {
  flex-shrink: 0;
  margin-left: 10px;
  font-size: 22px;
}

.route-screen {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  grid-template-rows: 48px minmax(0,1fr) auto minmax(22px,auto);
  column-gap: 16px;
  padding-top: 10px;
  padding-bottom: 8px;
  padding-top: max(10px, env(safe-area-inset-top));
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.route-topbar {
  display: flex;
  min-width: 0;
  grid-column: 1/3;
  grid-row: 1;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.brand-button {
  display: flex;
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  flex: 0 0 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(225,188,104,.7);
  background: rgba(0,0,0,.24);
  color: #f2d18b;
  font-size: 16px;
  font-weight: 900;
  line-height: 34px;
  margin: 0;
}

.brand-copy {
  display: flex;
  min-width: 0;
  margin-left: 10px;
  flex-direction: column;
}

.brand-title {
  font-size: 16px;
  font-weight: 900;
  line-height: 20px;
}

.brand-subtitle {
  margin-top: 1px;
  color: rgba(255,255,255,.5);
  font-size: 10px;
  line-height: 14px;
}

.route-actions {
  display: flex;
  flex: 0 0 auto;
  flex-shrink: 0;
  gap: 6px;
  margin-left: auto;
  margin-right: 88px;
}

.route-action-button {
  width: auto;
  min-width: 56px;
  max-width: 80px;
  height: 32px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.26);
  font-size: 12px;
  line-height: 30px;
}

.route-intro {
  min-width: 0;
  min-height: 0;
  grid-column: 1;
  grid-row: 2;
  padding: 12px 12px 12px 0;
}

.route-title {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.route-desc {
  display: block;
  margin-top: 8px;
  padding-left: 0;
  color: rgba(255,255,255,.64);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.route-progress {
  min-width: 0;
  align-self: end;
  grid-column: 1;
  grid-row: 3;
  margin: 0 12px 10px 0;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  line-height: 16px;
}

.progress-value {
  color: #fff;
  font-weight: 800;
}

.progress-track {
  overflow: hidden;
  height: 5px;
  background: rgba(255,255,255,.14);
}

.progress-fill {
  height: 100%;
  background: #c4473e;
}

.continue-button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 6px 12px;
  border-left: 4px solid #e1bc68;
  background: #b9433b;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
}

.continue-arrow {
  flex-shrink: 0;
  margin-left: 8px;
  font-size: 18px;
}

.mission-grid {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-column: 2;
  grid-row: 2/4;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  padding: 8px 0 6px;
}

.mission {
  position: relative;
  display: flex;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  justify-content: space-between;
  flex-direction: column;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  background: linear-gradient(155deg, var(--base), rgba(9,13,11,.97));
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
  text-align: left;
}

.mission-shade {
  position: absolute;
  right: -72px;
  bottom: -78px;
  width: 190px;
  height: 190px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: .16;
  box-shadow: 0 0 0 34px rgba(255,255,255,.018), 0 0 0 68px rgba(255,255,255,.012);
}

.mission.locked {
  filter: saturate(.25);
  opacity: .56;
}

.mission.completed {
  border-bottom: 5px solid var(--accent);
}

.mission-top,
.mission-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255,255,255,.52);
  font-size: 10px;
  line-height: 14px;
}

.mission-meta {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mission-order {
  color: var(--accent);
  font-weight: 900;
}

.mission-center {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.mission-copy {
  min-width: 0;
}

.mission-mark {
  display: flex;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: rgba(0,0,0,.18);
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.mission-title {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.mission-keyword {
  display: block;
  margin-top: 3px;
  color: var(--accent);
  font-size: 11px;
  line-height: 14px;
}

.mission-bottom {
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.11);
}

.mission-bottom-tail {
  flex-shrink: 0;
  color: #fff;
  text-align: right;
}

.route-status {
  display: flex;
  min-width: 0;
  grid-column: 1/3;
  grid-row: 4;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  row-gap: 4px;
  color: rgba(255,255,255,.47);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.route-status text {
  flex-shrink: 0;
}

.panel-mask {
  position: absolute;
  z-index: 8;
  inset: 0;
  background: rgba(0,0,0,.68);
}

.side-panel {
  position: absolute;
  z-index: 9;
  top: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  width: min(400px, 88%);
  padding: 16px 18px;
  border-left: 1px solid rgba(255,255,255,.18);
  background: #111713;
  box-shadow: -12px 0 40px rgba(0,0,0,.48);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.panel-heading-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.panel-kicker {
  color: #e1bc68;
  font-size: 10px;
  line-height: 14px;
}

.panel-title {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 900;
  line-height: 22px;
}

.panel-close {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  font-size: 18px;
  line-height: 30px;
}

.setting-row {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: transparent;
  text-align: left;
}

.setting-copy {
  display: flex;
  min-width: 0;
  padding-right: 18px;
  flex-direction: column;
}

.setting-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 18px;
}

.setting-desc {
  margin-top: 2px;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  line-height: 15px;
  white-space: normal;
}

.switch {
  position: relative;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #414842;
}

.switch-knob {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #b6b9b5;
  transition: transform .2s;
}

.switch.on {
  background: #2d8068;
}

.switch.on .switch-knob {
  background: #fff;
  transform: translateX(20px);
}

.reset-row {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 8px 12px;
  border: 1px solid #9a4039;
  background: rgba(154,64,57,.12);
  color: #ec8b83;
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
}

.local-note {
  display: block;
  margin-top: 14px;
  color: rgba(255,255,255,.4);
  font-size: 11px;
  line-height: 1.45;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin-top: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.report-stat {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.1);
}

.report-stat:last-child {
  border-right: 0;
}

.report-stat-value {
  font-size: 18px;
  font-weight: 900;
  line-height: 22px;
}

.report-stat-label {
  margin-top: 2px;
  color: rgba(255,255,255,.46);
  font-size: 10px;
  line-height: 14px;
  text-align: center;
}

.report-scenes {
  margin-top: 4px;
}

.report-scene {
  display: flex;
  min-height: 52px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.report-mark {
  display: flex;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.report-copy {
  min-width: 0;
  flex: 1;
  margin-left: 14px;
}

.report-copy-head {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  line-height: 22px;
}

.report-status {
  flex-shrink: 0;
  color: #e1bc68;
  font-size: 12px;
}

.report-metrics {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.48);
  font-size: 12px;
  line-height: 18px;
  overflow-wrap: break-word;
}

.badge-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.badge {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: rgba(255,255,255,.28);
  font-size: 12px;
}

.badge.earned {
  border-color: #e1bc68;
  background: rgba(225,188,104,.12);
  color: #f0cf88;
}

.reduced .cloth {
  animation: none;
}

@media (max-width: 1050px) {
  .route-screen {
    grid-template-columns: 190px minmax(0,1fr);
    column-gap: 12px;
  }

  .route-title {
    font-size: 22px;
  }

  .mission {
    padding: 10px;
  }

  .mission-center {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .mission-mark {
    width: 34px;
    height: 34px;
  }

  .mission-title {
    font-size: 15px;
  }

  .status-score {
    display: none;
  }
}

@media (max-height: 430px) {
  .cover-title {
    font-size: 40px;
  }

  .cover-subtitle {
    font-size: 15px;
  }

  .cover-body {
    font-size: 12px;
    line-height: 1.4;
  }

  .home .start-button {
    width: 200px;
    height: 40px;
    font-size: 13px;
  }

  .route-screen {
    grid-template-rows: 42px minmax(0,1fr) auto minmax(18px,auto);
  }

  .route-intro {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .route-title {
    font-size: 20px;
  }

  .route-desc {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
  }

  .continue-button {
    min-height: 36px;
    margin-top: 8px;
    font-size: 12px;
  }

  .mission-title {
    font-size: 14px;
  }
}

@keyframes flag {
  0%,100% { transform: skewY(0) scaleX(1); }
  50% { transform: skewY(4deg) scaleX(.92); }
}

/* 小屏横屏：为三个篇章留足宽度，卡片底部文案与入口各占一行。 */
@media (max-width: 700px), (max-height: 400px) {
  .route-screen {
    grid-template-columns: 150px minmax(0,1fr);
    column-gap: 10px;
  }

  .route-intro {
    padding: 8px 8px 8px 0;
  }

  .route-title {
    font-size: 18px;
  }

  .route-desc {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
  }

  .mission-grid {
    gap: 8px;
    padding: 6px 0 4px;
  }

  .mission {
    padding: 8px 9px;
  }

  .mission-center {
    gap: 8px;
    margin: 6px 0;
  }

  .mission-mark {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .mission-title {
    font-size: 16px;
    line-height: 1.25;
  }

  .mission-keyword {
    font-size: 10px;
    line-height: 13px;
  }

  .mission-top {
    gap: 6px;
  }

  .mission-top .mission-meta:last-child {
    flex: 1 1 auto;
    text-align: right;
  }

  .mission-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .mission-bottom-tail {
    align-self: flex-end;
  }

  .route-status {
    column-gap: 12px;
    font-size: 10px;
    line-height: 14px;
  }
}

@media (max-width: 560px), (max-height: 320px) {
  .route-screen {
    grid-template-columns: 124px minmax(0,1fr);
    grid-template-rows: 40px minmax(0,1fr) auto minmax(16px,auto);
  }

  .route-intro {
    padding: 6px 6px 6px 0;
  }

  .route-title {
    font-size: 16px;
  }

  .route-desc {
    font-size: 10px;
    line-height: 1.3;
  }

  .mission-grid {
    gap: 6px;
  }

  .mission {
    padding: 7px 8px;
  }

  .mission-mark {
    width: 28px;
    height: 28px;
  }

  .mission-title {
    font-size: 15px;
  }

  .route-progress {
    margin: 0 6px 8px 0;
  }

  .continue-button {
    min-height: 34px;
    margin-top: 6px;
    padding: 4px 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .continue-arrow {
    margin-left: 6px;
  }

  .route-status {
    column-gap: 10px;
  }
}

/* === 2026 route dashboard refresh === */
.home {
  --ink: #eaf2fb;
  --muted: #8fa6bd;
  --line: rgba(159, 190, 218, .18);
  --panel: rgba(19, 37, 57, .84);
  --panel-2: rgba(25, 47, 71, .92);
  --blue: #4ca5e8;
  --orange: #f2a65a;
  background: #091827;
  color: var(--ink);
  font-family: "Aptos", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.home-sky {
  background:
    radial-gradient(circle at 78% 18%, rgba(65, 132, 177, .24), transparent 28%),
    radial-gradient(circle at 15% 85%, rgba(31, 75, 112, .24), transparent 35%),
    linear-gradient(135deg, #071522 0%, #0d2135 54%, #102b42 100%);
}
.home-grid { opacity: .14; background-size: 42px 42px; background-image: linear-gradient(rgba(126,180,220,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(126,180,220,.11) 1px, transparent 1px); }
.sun { top: -110px; right: 13%; width: 330px; height: 330px; opacity: .2; background: #f2a65a; box-shadow: 0 0 110px rgba(242,166,90,.28); }
.mountain { background: linear-gradient(145deg, rgba(27,67,93,.62), rgba(5,18,31,.96)); opacity: .72; }
.mountain.back { opacity: .28; }
.mountain.front { background: #071523; opacity: .9; }
.flag-scene { right: 7%; bottom: 5%; opacity: .22; transform: scale(.8); }
.cloth { background: #ef7d4c; }
.mast { background: #b9cede; }
.grain { opacity: .02; }
.home-vignette { box-shadow: inset 0 0 140px 28px rgba(1, 8, 16, .62); }
.route-screen { grid-template-columns: 252px minmax(0, 1fr); grid-template-rows: 64px minmax(0,1fr) auto minmax(28px,auto); column-gap: 24px; padding: 22px 30px 16px; }
.route-topbar { border-bottom: 1px solid var(--line); }
.brand-button { width: 42px; height: 42px; min-width: 42px; max-width: 42px; border: 1px solid rgba(242,166,90,.72); border-radius: 10px; background: linear-gradient(145deg, #173b5d, #102a43); color: #ffd39b; font-size: 19px; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.brand-sword { width: 28px; height: 28px; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.28)); }
.brand-sword-blade { fill: #e9f4ff; stroke: #8fc9f1; stroke-width: .8; }
.brand-sword-edge { fill: none; stroke: #f6c477; stroke-width: 1.3; stroke-linecap: round; opacity: .9; }
.brand-sword-guard { fill: #f0ae5d; stroke: #ffd891; stroke-width: .7; }
.brand-sword-hilt { fill: #4a9bd0; stroke: #a9d8f6; stroke-width: .7; }
.brand-sword-pommel { fill: #f0ae5d; stroke: #ffd891; stroke-width: .7; }
.brand-copy { margin-left: 12px; }
.brand-title { font-size: 19px; letter-spacing: .03em; }
.brand-subtitle { color: #91aac2; font-size: 11px; }
.route-actions { gap: 10px; margin-right: 0; }
.route-action-button { min-width: 82px; height: 38px; border: 1px solid rgba(147,186,218,.28); border-radius: 9px; background: rgba(24,52,78,.8); color: #d9e8f5; font-size: 13px; line-height: 36px; }
.route-action-button:hover { border-color: var(--orange); color: #ffd39b; }
.route-intro { padding: 26px 18px 12px 0; }
.route-eyebrow { color: var(--orange); font-size: 12px; letter-spacing: .12em; }
.route-title { margin-top: 12px; color: #f5f8fb; font-size: 31px; line-height: 1.2; letter-spacing: .02em; }
.route-desc { margin-top: 14px; color: #9db3c8; font-size: 13px; line-height: 1.7; }
.route-progress { margin: 0 18px 14px 0; }
.progress-copy { margin-bottom: 9px; color: #8fa8be; font-size: 12px; }
.progress-value { color: #f5f8fb; font-size: 16px; }
.progress-track { height: 7px; border-radius: 4px; background: rgba(127,163,192,.2); }
.progress-fill { background: linear-gradient(90deg, #e88946, #f8bc6b); box-shadow: 0 0 12px rgba(242,166,90,.45); }
.continue-button { min-height: 48px; margin-top: 14px; padding: 8px 16px; border: 1px solid rgba(255,211,155,.3); border-left: 4px solid var(--orange); border-radius: 9px; background: linear-gradient(100deg, #c96f3c, #a74d31); box-shadow: 0 10px 22px rgba(0,0,0,.22); font-size: 14px; }
.continue-button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.mission-grid { gap: 14px; padding: 16px 0 10px; }
.mission { padding: 18px 16px 14px; border: 1px solid rgba(143,185,218,.22); border-radius: 14px; background: linear-gradient(160deg, rgba(30,59,87,.94), rgba(13,31,49,.96)); box-shadow: 0 14px 30px rgba(0,0,0,.24); transition: transform .2s, border-color .2s, box-shadow .2s; }
.mission:hover { transform: translateY(-4px); border-color: rgba(242,166,90,.65); box-shadow: 0 18px 34px rgba(0,0,0,.34); }
.mission.completed { border-bottom: 4px solid #53bd8a; }
.mission-top, .mission-bottom { color: #8fa8be; font-size: 11px; }
.mission-order { color: var(--orange); font-size: 14px; }
.mission-center { align-items: flex-start; gap: 13px; margin: 18px 0; }
.mission-center { align-items: center; justify-content: center; flex-direction: column; gap: 12px; margin: 18px 0; text-align: center; }
.mission-mark { display: flex; width: 76px; height: 76px; align-items: center; justify-content: center; border: 1px solid rgba(255,218,132,.58); border-radius: 18px; background: radial-gradient(circle at 50% 38%, #28527f 0%, #142f50 58%, #0a1d33 100%); color: #ffe6a0; box-shadow: inset 0 0 12px rgba(255,225,150,.1), 0 0 12px rgba(255,195,72,.18); }
.chapter-icon { width: 58px; height: 58px; overflow: visible; fill: none; stroke: #f8d78d; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(255,207,99,.55)); }
.chapter-icon path:first-child { fill: none; }
.chapter-flag path:nth-of-type(2) { fill: rgba(248,215,141,.2); }
.chapter-shield path:first-child { fill: rgba(248,215,141,.13); }
.chapter-shield path:nth-of-type(2) { stroke: #ffe8a5; stroke-width: 2.4; }
.chapter-flag { transform: translateX(4px); }
.chapter-star { width: 58px; height: 58px; fill: #f2c85f; stroke: #ffe9a9; stroke-width: 2; filter: drop-shadow(0 0 3px rgba(255,199,72,.55)); }
.chapter-star path { fill: #f2c85f !important; stroke: #ffe9a9; }
.mission-title { color: #f0f6fb; font-size: 20px; }
.mission-keyword { display: none; }
.mission-bottom { padding-top: 12px; border-top-color: rgba(139,181,214,.16); }
.mission-bottom-tail { margin-left: auto; color: #63b4ec; font-weight: 800; }
.mission-shade { display: none; }
.route-status { gap: 30px; color: #718ca4; font-size: 12px; }
.route-status text::before { content: "• "; color: var(--orange); }
@media (max-width: 1050px) {
  .route-screen { grid-template-columns: 210px minmax(0,1fr); column-gap: 16px; padding-left: 20px; padding-right: 20px; }
  .route-title { font-size: 26px; }
}

/* 提升浅色主题下的标题对比度 */
.home .route-title { color: #173b5b !important; text-shadow: none; }
.home .mission-title { color: #173b5b !important; text-shadow: none; }
.home .route-eyebrow { color: #1769a6 !important; }
.home .mission-keyword { color: #1769a6 !important; }
.home .mission-center { width: 100%; min-width: 0; flex: 1 1 auto; align-items: center; justify-content: center; }
.home .mission-copy { width: 100%; min-width: 0; text-align: center; }
.home .mission-title { display: block; max-width: 100%; white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.2; }
.home .mission-mark { flex: 0 0 auto; }

/* 手机横屏：避开刘海与系统设置浮钮，避免顶部操作区互相挤压 */
.route-screen {
  padding-top: max(22px, env(safe-area-inset-top, 0px));
  padding-right: max(30px, env(safe-area-inset-right, 0px));
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  padding-left: max(30px, env(safe-area-inset-left, 0px));
  row-gap: 10px;
}
.route-intro { overflow: hidden; }
.route-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.route-progress { position: relative; z-index: 2; }
.route-actions {
  margin-right: var(--theme-launcher-space, 76px);
  max-width: calc(100% - var(--theme-launcher-space, 76px));
  min-width: 0;
  flex-shrink: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.route-actions::-webkit-scrollbar { display: none; }
@media (max-width: 700px) {
  .route-screen {
    grid-template-rows: 58px minmax(0,1fr) auto minmax(22px,auto);
    column-gap: 10px;
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    row-gap: 8px;
  }
  .route-topbar { min-width: 0; }
  .brand-copy { margin-left: 8px; }
  .brand-title { font-size: 16px; }
  .brand-subtitle { font-size: 9px; }
  .route-actions { gap: 6px; margin-right: var(--theme-launcher-space, 68px); }
  .route-action-button { min-width: 56px; height: 34px; padding: 0 8px; font-size: 11px; line-height: 32px; }
  .mission { padding: 10px 8px 8px; }
  .mission-center { gap: 7px; margin: 8px 0; }
  .mission-mark { width: 58px; height: 58px; border-radius: 14px; }
  .chapter-icon { width: 43px; height: 43px; }
  .mission-title { font-size: 17px; }
  .mission-bottom { padding-top: 8px; }
  .route-desc { -webkit-line-clamp: 2; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .route-screen { padding-top: max(32px, env(safe-area-inset-top, 0px)); }
  .route-intro { padding-top: 18px; }
  .route-desc { -webkit-line-clamp: 2; }
  .mission-grid { padding-top: 8px; padding-bottom: 5px; }
  .mission-center { gap: 5px; margin: 5px 0; }
  .mission-mark { width: 52px; height: 52px; border-radius: 12px; }
  .chapter-icon { width: 39px; height: 39px; }
  .mission-title { font-size: 16px; }
}
@media (max-height: 380px) and (orientation: landscape) {
  .route-screen { grid-template-rows: 48px minmax(0,1fr) auto minmax(18px,auto); padding-top: max(24px, env(safe-area-inset-top, 0px)); }
  .route-intro { padding-top: 8px; padding-bottom: 4px; }
  .route-title { font-size: 18px; }
  .route-desc { margin-top: 3px; font-size: 10px; line-height: 1.25; }
  .mission { padding: 6px 6px 5px; }
  .mission-center { gap: 3px; margin: 3px 0; }
  .mission-mark { width: 42px; height: 42px; border-radius: 10px; }
  .chapter-icon { width: 32px; height: 32px; }
  .mission-title { font-size: 14px; }
  .mission-bottom { padding-top: 5px; font-size: 9px; line-height: 12px; }
}
