/* ===== 道歉之路 · 共享样式（融易开红白体系） ===== */
:root {
  --ht-red: #E60012;
  --ht-red-dark: #C2000F;
  --ht-red-soft: #FFF1F2;
  --ink: #1F2329;
  --ink-2: #4E5969;
  --ink-3: #86909C;
  --line: #E5E6EB;
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(31,35,41,.04), 0 6px 18px rgba(230,0,18,.05);
  --shadow-2: 0 2px 8px rgba(31,35,41,.06), 0 8px 24px rgba(230,0,18,.10);
  --focus-ring: 0 0 0 3px rgba(230,0,18,.20);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #FDF4F5 0%, var(--bg) 260px);
  min-height: 100vh;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: .15px;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 40px 20px 64px; }

/* ===== 顶部品牌区 ===== */
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.top .back {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--ink-2); text-decoration: none;
  padding: 6px 12px; border-radius: 20px; background: #fff;
  border: 1px solid #F2D9DC; transition: all .18s;
}
.top .back:hover { color: var(--ht-red); border-color: #FFB9C0; transform: translateX(-2px); }
.title {
  font-size: 26px; font-weight: 800; letter-spacing: 1px; line-height: 1.3;
  display: flex; align-items: center; gap: 10px;
}
.title em {
  font-style: normal;
  background: linear-gradient(135deg, #E60012, #C2000F);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.7; }

/* ===== 双入口主卡 ===== */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.duo a {
  position: relative; display: block;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFBF9 100%);
  border-radius: 18px; padding: 14px 13px 12px; text-decoration: none; color: inherit;
  border: 1px solid #FFD5D9; overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.duo a::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 3px;
  background: linear-gradient(90deg, #E60012, #FF7A84, #E60012);
  border-radius: 0 0 6px 6px;
}
.duo a:hover {
  transform: translateY(-4px); border-color: #FFB0B8;
  box-shadow: 0 4px 10px rgba(31,35,41,.05), 0 16px 36px rgba(230,0,18,.16);
}
.duo .wm {
  position: absolute; right: -8px; bottom: -16px; font-size: 54px; opacity: .07;
  transform: rotate(-12deg); pointer-events: none; transition: transform .3s, opacity .3s;
}
.duo a:hover .wm { transform: rotate(-6deg) scale(1.08); opacity: .12; }
.duo .ic {
  width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 19px; margin-bottom: 10px;
  background: linear-gradient(135deg, #FFDDE2, #FFF0F2);
  box-shadow: 0 3px 8px rgba(230,0,18,.14), inset 0 0 0 1.5px rgba(255,255,255,.9);
  position: relative; z-index: 1;
}
.duo .k { font-size: 13.5px; font-weight: 800; letter-spacing: .8px; position: relative; z-index: 1; }
.duo .v {
  font-size: 25px; font-weight: 800; margin-top: 5px;
  line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #E60012 20%, #B3000D 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative; z-index: 1;
}
.duo .v small {
  font-size: 11.5px; font-weight: 500; color: var(--ink-3);
  -webkit-text-fill-color: var(--ink-3); margin-left: 4px;
}
.duo .s { font-size: 10.5px; color: var(--ink-3); margin-top: 6px; }
.duo .go {
  position: absolute; right: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ht-red-soft); color: var(--ht-red); display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 12px; transition: all .18s;
}
.duo a:hover .go { background: var(--ht-red); color: #fff; transform: rotate(-45deg); }

/* ===== 统计三卡 ===== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
.stat {
  background: #fff; border: 1px solid #F2E3E5; border-radius: 14px;
  padding: 13px 10px; text-align: center;
  box-shadow: var(--shadow-1);
}
.stat b {
  display: block; font-size: 22px; font-weight: 800;
  background: linear-gradient(180deg, #E60012 20%, #B3000D 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 10.5px; color: var(--ink-3); display: block; margin-top: 4px; letter-spacing: .5px; }

/* ===== CTA 大红条 ===== */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(120deg, #E60012, #C2000F);
  color: #fff; border-radius: 16px; padding: 20px 24px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(230,0,18,.26), inset 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .15s, box-shadow .15s;
  position: relative; overflow: hidden; border: none; width: 100%;
  font-family: inherit; cursor: pointer; font-size: inherit;
}
.cta::after {
  content: ""; position: absolute; top: -40%; left: -20%; width: 60%; height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent);
  transform: rotate(12deg); transition: left .6s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(230,0,18,.36); }
.cta:hover::after { left: 130%; }
.cta .t { font-size: 17px; font-weight: 800; text-align: left; }
.cta .d { font-size: 12.5px; opacity: .85; margin-top: 4px; text-align: left; }
.cta .go { font-size: 22px; font-weight: 800; flex-shrink: 0; }

/* ===== 列表卡片 ===== */
.sec { margin-top: 22px; }
.sec-t {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 14.5px; font-weight: 800; letter-spacing: .6px; margin-bottom: 12px;
}
.sec-t small { font-size: 11px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.card {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFBF9 100%);
  border: 1px solid #F2E3E5; border-radius: var(--radius-lg);
  padding: 14px 16px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-1); position: relative; overflow: hidden;
  margin-bottom: 10px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
a.card:hover { transform: translateY(-2px); border-color: #FFB0B8; box-shadow: var(--shadow-2); }
.card .av {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: linear-gradient(135deg, #FFDDE2, #FFF0F2);
  box-shadow: 0 3px 8px rgba(230,0,18,.12), inset 0 0 0 1.5px rgba(255,255,255,.9);
}
.card .bd { min-width: 0; flex: 1; }
.card .nm { font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.card .ad { font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.6; }
.card .nt { font-size: 11.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.6; }
.card .ar {
  font-size: 10.5px; font-weight: 700; color: var(--ht-red-dark);
  background: var(--ht-red-soft); border: 1px solid #FFD9DD;
  padding: 2px 9px; border-radius: 20px; letter-spacing: .5px; flex-shrink: 0;
}
.badge {
  font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 20px; letter-spacing: .5px;
  flex-shrink: 0; background: var(--ht-red-soft); color: var(--ht-red-dark); border: 1px solid #FFD9DD;
}
.badge.gray { background: #F4F5F7; color: var(--ink-3); border-color: #E5E6EB; }
.card .del {
  width: 30px; height: 30px; border-radius: 8px; border: none; cursor: pointer;
  background: #F4F5F7; color: var(--ink-3); font-size: 13px; flex-shrink: 0;
  font-family: inherit; transition: all .15s; line-height: 1;
}
.card .del:hover { background: var(--ht-red-soft); color: var(--ht-red); }

/* ===== 区域筛选 chips ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  font-size: 12px; padding: 7px 14px; border-radius: 20px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  font-family: inherit; transition: all .15s;
}
.chip:hover { border-color: #FFB9C0; color: var(--ht-red); }
.chip.on { background: var(--ht-red); border-color: var(--ht-red); color: #fff; font-weight: 700; }

/* ===== 搜索框 ===== */
.search {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 6px 4px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--ht-red); box-shadow: var(--focus-ring); }
.search .ic { font-size: 15px; color: var(--ink-3); }
.search input {
  flex: 1; min-width: 0; height: 38px; border: none; outline: none; font-size: 14.5px;
  font-family: inherit; background: transparent; color: var(--ink);
}
.search input::placeholder { color: var(--ink-3); }
.search .clr {
  width: 34px; height: 34px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--ht-red-soft); color: var(--ht-red); font-size: 14px; font-family: inherit;
}

/* ===== 路线卡片（区域专属色调） ===== */
.r-card {
  position: relative; display: block;
  border-radius: var(--radius-lg); border: 1px solid;
  padding: 16px 16px 14px; text-decoration: none; color: inherit;
  margin-bottom: 12px; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
a.r-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.r-card::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--rc, #E60012), #FF7A84, var(--rc, #E60012));
  border-radius: 0 0 6px 6px;
}
.r-card .r-top { display: flex; align-items: center; gap: 10px; }
.r-card .r-ic { font-size: 22px; }
.r-card .r-name { font-size: 16px; font-weight: 800; flex: 1; min-width: 0; }
.r-card .r-meta { font-size: 11.5px; color: var(--ink-3); margin: 6px 0 10px; line-height: 1.7; }
.r-card .r-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.r-card .r-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  background: rgba(255,255,255,.75); border: 1px solid rgba(230,0,18,.14); color: var(--ink-2);
}
.r-card .r-go {
  position: absolute; right: 14px; bottom: 12px; font-size: 11px; font-weight: 700;
  color: var(--ink-3); letter-spacing: 1px;
}
.r-card.r-beige { --rc: #E8A33D; background: linear-gradient(135deg, #FFF8EF 0%, #FBEBD8 100%); border-color: #F2DFC4; }
.r-card.r-green { --rc: #52A34A; background: linear-gradient(135deg, #F3FAF1 0%, #E2F0DC 100%); border-color: #CFE3C6; }
.r-card.r-blue  { --rc: #3B82C4; background: linear-gradient(135deg, #F0F7FD 0%, #DDEEF9 100%); border-color: #C6DFF2; }
.r-card.r-grape { --rc: #8E6BC4; background: linear-gradient(135deg, #F6F2FC 0%, #EADFF7 100%); border-color: #D8C9EE; }

/* ===== 路线详情：支行步骤列表 ===== */
.steps { display: flex; flex-direction: column; gap: 0; margin-top: 6px; }
.step {
  display: flex; gap: 14px; position: relative;
  background: #fff; border: 1px solid #F2E3E5; border-radius: var(--radius-lg);
  padding: 14px 16px; box-shadow: var(--shadow-1); margin-bottom: 10px;
}
.step .idx {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ht-red), var(--ht-red-dark));
  color: #fff; font-size: 13.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(230,0,18,.25);
}
.step .sb { flex: 1; min-width: 0; }
.step .nm { font-size: 14.5px; font-weight: 800; }
.step .ad { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.step .nt { font-size: 12px; color: var(--ht-red-dark); margin-top: 5px; line-height: 1.6;
  background: var(--ht-red-soft); border: 1px dashed #FFC9CF; border-radius: 8px; padding: 6px 10px; }
.step .ar {
  align-self: flex-start; font-size: 10.5px; font-weight: 700; color: var(--ht-red-dark);
  background: var(--ht-red-soft); border: 1px solid #FFD9DD;
  padding: 2px 9px; border-radius: 20px; flex-shrink: 0;
}

/* ===== 空态 / 加载 / 底部 ===== */
.none {
  text-align: center; color: var(--ink-3); font-size: 13px;
  padding: 36px 0; line-height: 1.8;
}
.none .big { font-size: 30px; display: block; margin-bottom: 8px; opacity: .8; }
.foot { text-align: center; color: #C9CDD4; font-size: 11.5px; margin-top: 28px; letter-spacing: 1px; }

/* ===== 弹层 ===== */
.mask {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(20, 24, 30, .5); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  width: 100%; max-width: 360px; background: #fff; border-radius: 16px;
  padding: 26px 22px 22px; box-shadow: 0 18px 50px rgba(0,0,0,.25);
  animation: mPop .22s ease-out; text-align: center;
}
@keyframes mPop { from { transform: translateY(14px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal .m-ic { font-size: 34px; }
.modal .m-t { font-size: 16.5px; font-weight: 800; margin-top: 10px; }
.modal .m-d { font-size: 13px; color: var(--ink-2); line-height: 1.8; margin: 10px 0 18px; }
.modal .m-d b { color: var(--ht-red); }
.m-btn {
  width: 100%; height: 44px; border: none; border-radius: 20px; cursor: pointer;
  background: linear-gradient(120deg, var(--ht-red), var(--ht-red-dark));
  color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 3px; font-family: inherit;
  transition: filter .15s;
}
.m-btn:hover { filter: brightness(1.08); }
.m-btn.ghost { background: #fff; color: var(--ink-2); border: 1.5px solid var(--line); letter-spacing: 1px; }

/* ===== 通用 ===== */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ht-red); outline-offset: 2px;
}
button:active { transform: scale(.97); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D0D3D9; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #B4B9C2; }
