/* 境外差价猎手 · Google Flights 式骨架 + 浅色 v3 皮肤 */
:root {
  --bg: #f6f7f9; --card: #fff; --card-2: #fafafa;
  --border: #e6e7ea; --border-2: #d4d4d8;
  --text: #18181b; --text-2: #52525b; --text-3: #a1a1aa;
  --accent: #ea580c; --accent-deep: #f97316; --accent-soft: rgba(249, 115, 22, .09);
  --green: #059669; --green-soft: rgba(5, 150, 105, .1);
  --red: #dc2626; --red-soft: rgba(220, 38, 38, .08);
  --amber: #d97706; --amber-soft: rgba(217, 119, 6, .12);
  --radius: 14px;
  accent-color: var(--accent);  /* 原生日历/表单控件高亮统一橙色 */
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .05);
  /* app.js 内联引用与旧类名兼容别名 */
  --ok: var(--green); --warn: var(--amber); --danger: var(--red);
  --line: var(--border); --bg-card: var(--card); --bg-input: #fff; --text-dim: var(--text-2);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  background: var(--bg); color: var(--text);
  max-width: 1200px; margin: 0 auto; padding: 0 20px 60px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶栏 ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 4px 10px; }
.brand { font-size: 20px; font-weight: 800; letter-spacing: .5px; display: flex; align-items: center; }
.logo-img {
  width: 32px; height: 32px; border-radius: 9px; flex: none; margin-right: 9px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1); background: #fff;
}
.status-pill {
  display: inline-block; padding: 5px 14px;
  border: 1px solid var(--border-2); border-radius: 999px; background: var(--card);
  font-size: 12px; color: var(--text-2);
}
.status-pill.ready { color: var(--green); border-color: var(--green); background: var(--green-soft); }
.status-pill.off { color: var(--amber); border-color: var(--amber); background: var(--amber-soft); }

/* ---------- 功能胶囊（Google 产品胶囊范式） ---------- */
.capsules {
  position: sticky; top: 0; z-index: 30;
  display: flex; gap: 8px; justify-content: flex-start;
  padding: 10px 4px 14px; background: var(--bg);
  overflow-x: auto; scrollbar-width: none;
}
.capsules::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text-2); font-size: 14px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: color .15s, background .15s, border-color .15s;
}
.tab:hover { border-color: var(--border-2); color: var(--text); }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.tab.danger.active { background: var(--red); border-color: var(--red); }
.tag-mini {
  margin-left: 5px; padding: 1px 7px; border-radius: 6px;
  background: var(--red-soft); color: var(--red); font-size: 11px;
}
.tab.active .tag-mini { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- 面板 / 查询栏 ---------- */
.panel { display: none; }
.panel.active { display: block; }
.querybar {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); padding: 16px 18px 14px;
}
.qbar-desc { color: var(--text-3); font-size: 12.5px; line-height: 1.7; margin-bottom: 12px; }
.mode-switch {
  display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 12px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 999px;
}
.mode-btn {
  padding: 6px 16px; border-radius: 999px; border: none; background: none;
  color: var(--text-2); font-size: 12.5px; cursor: pointer;
}
.mode-btn.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }

.qbar-fields {
  display: flex; flex-wrap: wrap; align-items: stretch;
  border: 1px solid var(--border-2); border-radius: 12px; background: #fff;
}
.qf { flex: 1 1 150px; min-width: 0; padding: 9px 14px; position: relative; }
.qf + .qf { border-left: 1px solid var(--border); }
.qf label { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 3px; line-height: 1.5; }
.qf input, .qf select {
  width: 100%; border: none; outline: none; background: none;
  color: var(--text); font-size: 14px; padding: 2px 0;
}
.qf input::placeholder { color: var(--text-3); }
.city-field { position: relative; }
.city-suggest {
  position: absolute; left: 8px; right: 8px; top: 100%; z-index: 40;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; margin-top: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}
.city-suggest div { padding: 9px 12px; font-size: 14px; cursor: pointer; }
.city-suggest div:hover, .city-suggest div.sel { background: var(--accent-soft); color: var(--accent); }
.city-suggest small { color: var(--text-3); margin-left: 6px; }
.city-suggest div.hint { cursor: default; color: var(--text-3); font-size: 12.5px; }
.city-suggest div.hint:hover { background: none; color: var(--text-3); }

.qbar-row { display: flex; gap: 12px; align-items: stretch; }
.qbar-row .qbar-fields { flex: 1; }
.btn-primary {
  flex: none; align-self: stretch; border: none; cursor: pointer;
  padding: 0 26px; border-radius: 12px; white-space: nowrap;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(234, 88, 12, .35);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:disabled { opacity: .5; }
.btn-danger { background: linear-gradient(135deg, #ef4444, var(--red)); box-shadow: 0 4px 14px rgba(220, 38, 38, .3); }

.qbar-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 10px; }
.adv-toggle { border: none; background: none; color: var(--text-3); font-size: 12px; cursor: pointer; padding: 0; }
.adv-toggle:hover { color: var(--accent); }
.k-adv-box { position: relative; width: 100%; max-width: 480px; }
.k-adv-box input {
  border: 1px solid var(--border-2); border-radius: 10px; padding: 7px 12px;
  font-size: 13px; width: 100%; max-width: 480px; outline: none; background: #fff; color: var(--text);
}
.check-row {
  display: flex; gap: 7px; align-items: flex-start;
  font-size: 12px; color: var(--text-2); cursor: pointer; line-height: 1.5;
}
.check-row input { margin-top: 2px; flex: none; width: auto; accent-color: var(--accent); }

.warn-banner {
  background: var(--red-soft); border: 1px solid rgba(220, 38, 38, .35);
  color: var(--red); font-size: 13px; line-height: 1.6;
  border-radius: 12px; padding: 10px 14px; margin: 0 0 12px;
}

/* ---------- 结果区（固定锚点 + 空态） ---------- */
.results-zone { margin-top: 16px; min-height: 440px; display: flex; flex-direction: column; }
.rz-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center; color: var(--text-3); font-size: 13.5px;
  border: 1.5px dashed var(--border-2); border-radius: 16px; background: var(--card-2);
  line-height: 1.8;
}
.results-zone:has(.result:not(:empty)) .rz-empty { display: none; }
.result:empty { display: none; }
.loading {
  color: var(--text-2); padding: 40px 24px; text-align: center; font-size: 13.5px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .55; } }
.err-box {
  background: var(--amber-soft); border: 1px solid rgba(217, 119, 6, .4);
  color: var(--amber); border-radius: 12px; padding: 14px; font-size: 13px; line-height: 1.7;
  margin-bottom: 10px;
}
.more-btn {
  width: 100%; margin-top: 6px; padding: 13px; border-radius: 12px;
  border: 1px solid var(--border-2); background: var(--card); color: var(--text-2);
  font-size: 13px; cursor: pointer;
}
.more-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 元信息 / 标题 ---------- */
.queried-at { font-size: 11px; color: var(--text-3); margin: 8px 2px; }
.rt-strip { font-size: 12px; color: var(--text-2); margin: -2px 2px 10px; line-height: 1.7; }
.section-title { font-size: 14px; font-weight: 700; color: var(--text-2); margin: 18px 2px 8px; }

/* ---------- 基准价卡 ---------- */
.baseline-card {
  background: var(--card); border: 1px solid var(--accent);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.baseline-card .price { font-size: 26px; font-weight: 800; color: var(--accent); }
.baseline-card .note { font-size: 12px; color: var(--text-2); margin-top: 4px; }

/* ---------- Google 式行卡：摘要行 + 展开航段时间线 ---------- */
.frow { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
.frow.deal-card { border-color: var(--green); }
.frow.base-card { border-color: var(--accent); }
.flight-card.base-card { border-color: var(--accent); }
.frow-head {
  display: grid; grid-template-columns: auto 1.25fr 1.15fr 1fr auto auto;
  gap: 14px; align-items: center; width: 100%;
  padding: 14px 16px; background: none; border: 0; color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
}
.frow-head:hover { background: var(--card-2); }
.al-badge {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card-2); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--accent);
  position: relative; overflow: hidden; flex: none;
}
.al-badge i { font-style: normal; }
.al-badge img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #fff; border-radius: 50%; padding: 5px;
}
.frow-head .c b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; }
.frow-head .c b sup { font-size: 10px; color: var(--text-3); margin-left: 1px; }
.frow-head .c i { display: block; font-style: normal; font-size: 12px; color: var(--text-3); margin-top: 3px; }
.frow-head .c-price { text-align: right; }
.frow-head .c-price .price { font-size: 17px; font-weight: 800; }
.frow-head .c-price .orig { display: block; font-size: 11px; margin: 0; }
.frow-head .c-price.good .price { color: var(--green); }
.frow-head .c-price .save-tag { display: block; margin: 2px 0 0; }
.frow-head .c-price .neg { color: var(--text-3); }
.head-tag {
  display: block; margin: 3px 0 0 auto; width: max-content;
  font-size: 11px; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 999px; padding: 1px 8px;
}
.chev {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--card-2); border: 1px solid var(--border);
  position: relative; transition: transform .2s;
}
.frow-head[aria-expanded="true"] .chev { transform: rotate(180deg); }
.chev::after {
  content: ""; position: absolute; left: 9px; top: 7px; width: 8px; height: 8px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);  /* top 光学修正：V 形视觉重心比方块几何中心低 ~2px */
}
.frow-body { border-top: 1px solid var(--border); padding: 4px 18px 14px; }
.leg-head { font-size: 13px; font-weight: 700; margin: 14px 0 2px; }
.seg { padding: 10px 0 0; }
.seg-tl { margin-left: 5px; padding-left: 18px; border-left: 2px dotted var(--border-2); }
.seg-row { position: relative; font-size: 14px; }
.seg-row b { font-size: 15px; }
.seg-row .dot {
  position: absolute; left: -24px; top: 5px; width: 8px; height: 8px;
  border: 2px solid var(--text-3); border-radius: 50%; background: var(--card);
}
.seg-mid { font-size: 12px; color: var(--text-3); margin: 7px 0; }
.seg-meta { font-size: 12px; color: var(--text-3); margin: 8px 0 0 23px; }
.layover { border-top: 1px solid var(--border); margin: 12px 0 0; padding: 10px 2px; font-size: 13px; }
.seg-foot { margin-top: 12px; }
.seg-foot a { color: var(--accent); font-size: 13px; text-decoration: none; }

/* ---------- 简单卡（拼假方案 / 邻近机场 / 错峰对照） ---------- */
.flight-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.flight-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.flight-card .price { font-size: 20px; font-weight: 800; }
.flight-card .price .cur { font-size: 12px; color: var(--text-3); font-weight: 400; }
.flight-card .route { font-size: 13px; margin-top: 6px; color: var(--text); line-height: 1.6; }
.flight-card .meta { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.flight-card a { color: var(--accent); text-decoration: none; }
.deal-card { border-color: rgba(5, 150, 105, .5); }
.save-tag { font-size: 12px; font-weight: 700; color: var(--green); }
.orig { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 6px; }
.tags { margin-top: 6px; }
.tags span {
  display: inline-block; margin: 2px 4px 0 0; padding: 2px 8px;
  border-radius: 6px; font-size: 11px;
  background: var(--green-soft); color: var(--green);
}
.badge { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.warn { background: var(--amber-soft); color: var(--amber); }
.badge.danger { background: var(--red-soft); color: var(--red); }

/* ---------- 深链对价卡 ---------- */
.check-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 14px 0; }
.check-links a {
  display: block; text-align: center; padding: 12px 6px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text);
  text-decoration: none; font-size: 12px; line-height: 1.5;
}
.check-links a:hover { border-color: var(--accent); }
.check-links a b { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; margin-bottom: 2px; color: var(--accent); }

/* ---------- 错峰探价 ---------- */
.offpeak-box {
  margin-top: 22px; padding: 16px; border-radius: 16px;
  background: var(--card); border: 1px dashed rgba(217, 119, 6, .5);
}
.btn-offpeak {
  margin-top: 10px; width: 100%; padding: 10px;
  border: 1px dashed var(--accent); border-radius: 10px;
  background: transparent; color: var(--accent);
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.btn-offpeak:hover { background: var(--accent-soft); }
.btn-offpeak:disabled { opacity: .5; }

/* ---------- 甩尾戒律 ---------- */
.rules-box {
  background: var(--red-soft); border: 1px solid rgba(220, 38, 38, .3);
  border-radius: 12px; padding: 14px 16px; margin-top: 14px;
}
.rules-box h4 { color: var(--red); font-size: 14px; margin-bottom: 8px; }
.rules-box li { font-size: 12px; color: var(--text-2); line-height: 1.8; margin-left: 18px; }

/* ---------- 可搜索国家选择器 ---------- */
.oj-picker { position: static; }
.oj-picker > input[type="text"] {
  width: 100%; background: none; border: none;
  color: var(--text); padding: 2px 0; font-size: 14px;
}
.oj-picker > input[type="text"]:focus { outline: none; }
.oj-panel {
  position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; min-width: 280px;
  max-height: 340px; overflow: auto; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
}
.oj-g { padding: 8px 12px 3px; font-size: 11px; color: var(--text-3); }
.oj-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 12px; font-size: 14px; color: var(--text); cursor: pointer;
}
.oj-item small { color: var(--text-3); font-size: 12px; line-height: 1.5; white-space: normal; }
.oj-item:hover, .oj-item.active { background: var(--accent-soft); }

/* ---------- 页脚 ---------- */
footer { margin-top: 16px; }  /* 与 querybar→结果区 的 16px 间距统一 */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.card h3 { font-size: 15px; margin-bottom: 10px; }
.card table { width: 100%; border-collapse: collapse; font-size: 12px; }
.card td { padding: 7px 4px; border-top: 1px solid var(--border); color: var(--text-2); line-height: 1.5; }
.card td:nth-child(2) { color: var(--text); }
#skipleg-rules li { font-size: 13px; color: var(--text-2); line-height: 1.8; margin-left: 18px; }
.disclaimer { font-size: 11px; color: var(--text-3); line-height: 1.8; padding: 0 4px; }
.fx-note { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.credit { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 20px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .qbar-fields { flex-direction: column; }
  .qf { flex: none; }
  .qf + .qf { border-left: none; border-top: 1px solid var(--border); }
  .qbar-row { flex-direction: column; }
  .btn-primary { height: 44px; }
}
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; padding: 14px 4px 8px; }
  .brand { font-size: 17px; }
  .logo-img { width: 26px; height: 26px; border-radius: 7px; margin-right: 7px; }
  .status-pill { font-size: 11px; padding: 4px 10px; }
  .frow-head { grid-template-columns: auto 1fr auto auto; row-gap: 8px; }
  .frow-head .c-dur { grid-column: 2; grid-row: 2; }
  .frow-head .c-stops { grid-column: 3; grid-row: 2; }
  .frow-head .chev { grid-row: 1; }
  .check-links { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}

/* ---------- 自绘日期日历：隐藏原生弹窗图标，橙色主题面板 ---------- */
input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
.dp-btn { position: absolute; right: 12px; bottom: 12px; border: none; background: none;
  cursor: pointer; padding: 2px; color: var(--text-2); display: flex; }
.dp-btn:hover { color: var(--accent); }
.dp-panel { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: 264px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 12px; }
.dp-head { display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.dp-head button { border: none; background: none; cursor: pointer; font-size: 16px;
  color: var(--text-2); padding: 2px 8px; border-radius: 6px; }
.dp-head button:hover { background: var(--accent-soft); color: var(--accent); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-week span { text-align: center; font-size: 11px; color: var(--text-3); padding: 4px 0; }
.dp-day { border: none; background: none; cursor: pointer; font-size: 12px;
  padding: 6px 0; border-radius: 8px; color: var(--text); }
.dp-day:hover { background: var(--accent-soft); color: var(--accent); }
.dp-day.other { color: var(--text-3); }
.dp-day.dis { color: var(--text-3); opacity: .45; cursor: not-allowed; }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.dp-day.sel { background: var(--accent); color: #fff; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; }
.dp-foot button { border: none; background: none; cursor: pointer; font-size: 12px;
  color: var(--accent); padding: 4px 6px; border-radius: 6px; }
.dp-foot button:hover { background: var(--accent-soft); }

/* ---------- 玩法教学折叠卡 ---------- */
.tut { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin: 0 0 12px; }
.tut-head {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 12px 16px; border: none; background: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--accent);
}
.tut-arrow { transition: transform .15s; font-size: 12px; color: var(--text-3); }
.tut.open .tut-arrow { transform: rotate(180deg); }
.tut-body { padding: 0 16px 16px; font-size: 13px; line-height: 1.75; color: var(--text-2); }
.tut-body h4 {
  margin: 16px 0 8px; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--text-3);
}
.tut-ok {
  margin-top: 14px; padding: 5px 18px; border: 1px solid var(--accent); border-radius: 8px;
  background: #fff; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer;
}
.tut-ok:hover { background: var(--accent); color: #fff; }
#panel-skipleg .tut-head { color: var(--danger); }
#panel-skipleg .tut-ok { border-color: var(--danger); color: var(--danger); }
#panel-skipleg .tut-ok:hover { background: var(--danger); color: #fff; }

/* ---------- 教学卡可视化组件 ---------- */
.tut-viz { display: flex; flex-direction: column; gap: 12px; margin: 10px 0 2px; }
.tut-route { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 2px 0; }
.tut-route .node {
  padding: 4px 12px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-weight: 600; font-size: 12px; white-space: nowrap;
}
.tut-route .node.hi { background: var(--accent); color: #fff; }
.tut-route .node.off { background: transparent; border: 1px dashed var(--border-2); color: var(--text-3); }
.tut-route .leg { position: relative; min-width: 44px; height: 20px; display: flex; align-items: center; justify-content: center; }
.tut-route .leg::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; margin-top: -1px; border-top: 1.5px solid var(--accent); }
.tut-route .leg.ground::before { border-top-style: dashed; border-top-color: var(--border-2); }
.tut-route .leg.skip::before { border-top-style: dashed; border-top-color: var(--danger); }
.tut-route .leg i { position: relative; font-style: normal; font-size: 11px; background: var(--card); padding: 0 4px; color: var(--text-3); white-space: nowrap; }
.tut-cmp { display: flex; flex-direction: column; gap: 8px; }
.cmp-row { display: grid; grid-template-columns: 150px 1fr 64px; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); }
.cmp-label { white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.cmp-logo { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.lv-input { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; color: var(--text); padding: 2px 0; }
.lv-tag {
  padding: 1px 8px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-size: 11px; font-weight: 600; white-space: nowrap;
}
.cmp-bar { width: 100%; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--w), #edeff2 var(--w)); }
.cmp-bar.base { background: linear-gradient(90deg, #c3c9d2 var(--w), #edeff2 var(--w)); }
.cmp-val { font-weight: 700; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-note { font-size: 11px; color: var(--text-3); }
.tut-cal { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.cal-day { min-width: 34px; padding: 5px 4px; text-align: center; border-radius: 6px; font-size: 11px; font-weight: 700; }
.cal-day.we { background: var(--accent-soft); color: var(--accent); }
.cal-day.lv { background: var(--accent); color: #fff; }
.cal-tag { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--accent); }
.tut-steps { list-style: none; padding: 0; }
.tut-steps li { position: relative; padding-left: 26px; }
.tut-steps li + li { margin-top: 8px; }
.tut-steps li::before {
  content: attr(data-n); position: absolute; left: 2px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  color: var(--accent); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
#panel-skipleg .tut-route .node { background: var(--red-soft); color: var(--danger); }
#panel-skipleg .tut-route .node.hi { background: var(--danger); color: #fff; }
#panel-skipleg .tut-route .leg::before { border-top-color: var(--danger); }
#panel-skipleg .tut-steps li::before { color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--danger); }

/* 年份下拉：年份与标签同行 */
#lv-picker .oj-item { flex-direction: row; align-items: center; gap: 8px; white-space: nowrap; }
#lv-picker .oj-item.active { background: none; }  /* 选中项不加底色，仅 hover 着色 */
#lv-picker .oj-item:hover { background: var(--accent-soft); }  /* 选中项 hover 也要着色（覆盖上面的 active 无底色规则） */
