/* 银发旅游适配清单 · 独立主题（旅行蓝 #1D4ED8 + 日落橙 #EA580C · 登机牌/行李箱视觉） */
:root {
  --stf-a: #1d4ed8;
  --stf-a2: #2563eb;
  --stf-a3: #1e3fae;
  --stf-acc: #ea580c;
  --stf-acc-soft: #feefe4;
  --stf-soft: #dbe7fe;
  --stf-bg: #f3f6fe;
  --stf-card: #ffffff;
  --stf-card2: #f7f9ff;
  --stf-txt: #101d3d;
  --stf-txt2: #3a4a75;
  --stf-txt3: #7484ab;
  --stf-line: #ccd9f2;
  --stf-line2: #e6edfc;
  --stf-ok: #15803d;
  --stf-ok-soft: #e8f6ec;
  --stf-warn: #b45309;
  --stf-warn-soft: #fdf3e3;
  --stf-bad: #dc2626;
  --stf-bad-soft: #fdeceb;
  --stf-shadow: 0 1px 2px rgba(29, 78, 216, .07), 0 14px 32px -20px rgba(29, 78, 216, .4);
  --stf-r: 16px;
  --stf-r2: 11px;
}
[data-theme='dark'] .stf {
  --stf-a: #60a5fa;
  --stf-a2: #93c5fd;
  --stf-a3: #bfdbfe;
  --stf-acc: #fb923c;
  --stf-acc-soft: #33200f;
  --stf-soft: #14294f;
  --stf-bg: #0a1226;
  --stf-card: #121d38;
  --stf-card2: #172342;
  --stf-txt: #e8efff;
  --stf-txt2: #b4c4e8;
  --stf-txt3: #7e90b8;
  --stf-line: #24365e;
  --stf-line2: #1d2c50;
  --stf-ok: #4ade80;
  --stf-ok-soft: #10301f;
  --stf-warn: #fbbf24;
  --stf-warn-soft: #3a2b0f;
  --stf-bad: #f87171;
  --stf-bad-soft: #3d1a19;
  --stf-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 14px 32px -20px rgba(0, 0, 0, .8);
}

.stf { background: var(--stf-bg); color: var(--stf-txt); padding: 28px 0 46px; }
.stf-inner { width: min(1140px, calc(100% - 44px)); max-width: none; margin: 0 auto; }
.stf-frame { max-width: 940px; margin: 0 auto; }

/* ---------- Hero ---------- */
.stf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 26px; align-items: center;
  padding: 30px 30px 26px;
  border: 1px solid var(--stf-line);
  border-radius: 22px;
  background:
    radial-gradient(620px 280px at 4% 0%, rgba(29, 78, 216, .13), transparent 66%),
    radial-gradient(540px 260px at 98% 100%, rgba(234, 88, 12, .15), transparent 68%),
    linear-gradient(155deg, var(--stf-card), var(--stf-card2));
  box-shadow: var(--stf-shadow);
  position: relative; overflow: hidden;
}
.stf-hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, var(--stf-a), var(--stf-acc), transparent);
}
.stf-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .3px;
  color: var(--stf-a); background: var(--stf-soft);
  border: 1px solid color-mix(in srgb, var(--stf-a) 28%, transparent);
  padding: 5px 11px; border-radius: 999px;
}
.stf-hero h1 {
  margin: 14px 0 0; font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.26; letter-spacing: -.6px; font-weight: 800;
}
.stf-hero h1 em {
  font-style: normal; display: inline-block; margin-top: 3px; color: var(--stf-acc);
  background: linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--stf-acc) 22%, transparent) 62%);
  padding: 0 2px;
}
.stf-sub { margin: 12px 0 0; font-size: 14.5px; line-height: 1.85; color: var(--stf-txt2); max-width: 62ch; }
.stf-sub b { color: var(--stf-txt); font-weight: 700; }
.stf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.stf-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--stf-txt2);
  background: var(--stf-card2); border: 1px solid var(--stf-line);
  padding: 5px 10px; border-radius: 8px;
}
.stf-tag i { color: var(--stf-a); font-style: normal; font-weight: 800; }
.stf-hero-cta { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.stf-cta-note { font-size: 12px; color: var(--stf-txt3); }

/* 登机牌插画 */
.stf-bp {
  position: relative; display: flex; width: min(320px, 100%); margin: 0 auto;
  background: var(--stf-card); border: 1px solid var(--stf-line);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--stf-a) 60%, transparent);
  transform: rotate(-1.6deg);
}
.stf-bp-main { flex: 1; padding: 13px 14px 12px; min-width: 0; }
.stf-bp-head {
  display: flex; justify-content: space-between; font-size: 9.5px; font-weight: 800;
  letter-spacing: 1.2px; color: var(--stf-txt3); margin-bottom: 8px;
}
.stf-bp-route { display: flex; align-items: center; gap: 10px; }
.stf-bp-city { display: flex; flex-direction: column; }
.stf-bp-city b { font-size: 24px; font-weight: 800; letter-spacing: 1px; color: var(--stf-a); line-height: 1.1; }
.stf-bp-city i { font-style: normal; font-size: 10px; color: var(--stf-txt3); }
.stf-bp-plane { width: 40px; height: 16px; flex: none; }
.stf-bp-plane path { stroke: var(--stf-acc); stroke-width: 2.4; }
.stf-bp-info { display: grid; grid-template-columns: repeat(4, auto); gap: 10px; margin-top: 9px; }
.stf-bp-info i { display: block; font-style: normal; font-size: 9.5px; color: var(--stf-txt3); }
.stf-bp-info b { font-size: 11px; color: var(--stf-txt2); font-weight: 700; white-space: nowrap; }
.stf-bp-stub {
  flex: none; width: 78px; padding: 12px 8px;
  border-left: 2px dashed var(--stf-line);
  background: var(--stf-card2);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px;
}
.stf-stamp {
  display: grid; place-items: center; text-align: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 2.5px solid var(--stf-acc); color: var(--stf-acc);
  font-size: 11px; font-weight: 900; line-height: 1.25; letter-spacing: 2px;
  transform: rotate(-12deg); opacity: .9;
}
.stf-barcode {
  width: 100%; height: 30px; border-radius: 3px;
  background: repeating-linear-gradient(90deg,
    var(--stf-txt2) 0 2px, transparent 2px 4px,
    var(--stf-txt2) 4px 7px, transparent 7px 9px,
    var(--stf-txt2) 9px 10px, transparent 10px 14px);
  opacity: .75;
}
.stf-chip {
  position: absolute; font-size: 11.5px; white-space: nowrap;
  padding: 5px 10px; border-radius: 8px;
  background: var(--stf-card); border: 1px solid var(--stf-line);
  color: var(--stf-txt2); box-shadow: var(--stf-shadow); z-index: 1;
}
.stf-chip.c1 { left: 0; top: 4px; animation: stfFloat 4.4s ease-in-out infinite; }
.stf-chip.c2 { right: 0; bottom: 2px; animation: stfFloat 4.4s ease-in-out .8s infinite; }
.stf-chip b { color: var(--stf-acc); }
@keyframes stfFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- 免责条 ---------- */
.stf-alert {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 16px; padding: 12px 16px;
  background: var(--stf-acc-soft);
  border: 1px solid color-mix(in srgb, var(--stf-acc) 34%, transparent);
  border-left: 4px solid var(--stf-acc);
  border-radius: 10px;
  font-size: 13px; line-height: 1.7; color: var(--stf-txt);
}
.stf-alert-i { color: var(--stf-acc); font-size: 16px; flex: none; }
.stf-alert strong { font-weight: 700; }

/* ---------- 时间轴骨架 ---------- */
.stf-rail { position: relative; margin-top: 18px; padding-left: 8px; }
.stf-rail::before {
  content: ''; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--stf-a), var(--stf-acc));
  opacity: .35;
}
.stf-sec { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0; margin-bottom: 16px; }
.stf-dot {
  position: relative; z-index: 1; margin-top: 14px;
  width: 48px; height: 34px; display: grid; place-items: center;
  font-size: 0; color: transparent;
}
.stf-dot::before {
  content: ''; position: absolute; inset: 2px 8px;
  background: var(--stf-card); border: 2px solid var(--stf-a); border-radius: 999px;
}
.stf-dot::after {
  content: ''; position: absolute; left: 19px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--stf-acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--stf-acc) 22%, transparent);
}
.stf-panel {
  margin-left: 14px; padding: 18px 20px 20px;
  background: var(--stf-card); border: 1px solid var(--stf-line);
  border-radius: var(--stf-r); box-shadow: var(--stf-shadow);
  min-width: 0;
}
.stf-sec-h {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 15px; padding-bottom: 11px;
  border-bottom: 2px solid var(--stf-line2);
}
.stf-sec-h h2 {
  margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: -.2px;
  display: inline-flex; align-items: center; gap: 8px;
}
.stf-sec-h h2::before { content: ''; width: 8px; height: 16px; border-radius: 3px; background: linear-gradient(180deg, var(--stf-a), var(--stf-acc)); }
.stf-sec-h small { font-size: 12px; color: var(--stf-txt3); }
.stf-sec-h small b { color: var(--stf-a); font-weight: 800; }
.stf-sec-h .stf-badge { margin-left: auto; }
.stf-sec-h .stf-btn.small { padding: 5px 12px; font-size: 12px; }

/* ---------- 表单 ---------- */
.stf-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stf-field { margin-bottom: 4px; }
.stf-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.stf-label label { font-size: 13.5px; font-weight: 600; }
.stf-label label b { color: var(--stf-bad); }
.stf-hint { font-size: 11.5px; color: var(--stf-txt3); }
.stf-box {
  display: flex; align-items: center; overflow: hidden;
  border: 1px solid var(--stf-line); border-radius: var(--stf-r2);
  background: var(--stf-card2);
}
.stf-box input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--stf-txt);
  font-size: 14.5px; padding: 10px 11px; outline: none;
}
.stf-box input::placeholder { color: var(--stf-txt3); font-size: 13px; }
.stf-box.num input { font-weight: 700; }
.stf-box span { padding: 0 10px; align-self: stretch; display: flex; align-items: center; font-size: 11.5px; color: var(--stf-txt3); background: var(--stf-line2); white-space: nowrap; }
.stf-box.sel select {
  width: 100%; border: 0; background: transparent; color: var(--stf-txt);
  font-size: 13.5px; padding: 10px 30px 10px 11px; outline: none; cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--stf-txt3) 50%),
    linear-gradient(135deg, var(--stf-txt3) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.stf-box:focus-within { border-color: var(--stf-a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--stf-a) 14%, transparent); }
.stf-range-row { display: grid; grid-template-columns: 1fr 130px; gap: 12px; align-items: center; }
.stf-range-row input[type='range'] {
  -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--stf-a2), var(--stf-acc)); outline: none;
}
.stf-range-row input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--stf-card); border: 3px solid var(--stf-a);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--stf-a) 15%, transparent); cursor: pointer;
}
.stf-range-row input[type='range']::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%; background: var(--stf-a);
  border: 2px solid var(--stf-card); cursor: pointer;
}

/* 慢病多选 chips */
.stf-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.stf-chipbox { cursor: pointer; }
.stf-chipbox input { position: absolute; opacity: 0; pointer-events: none; }
.stf-chipbox span {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px;
  color: var(--stf-txt2); background: var(--stf-card2); border: 1px solid var(--stf-line);
  transition: background .16s, color .16s, border-color .16s;
}
.stf-chipbox:hover span { border-color: color-mix(in srgb, var(--stf-a) 45%, transparent); }
.stf-chipbox input:checked + span { background: var(--stf-a); color: #fff; border-color: var(--stf-a); }
[data-theme='dark'] .stf .stf-chipbox input:checked + span { color: #0a1226; }
.stf-chipbox input:focus-visible + span { outline: 2px solid var(--stf-a2); outline-offset: 2px; }
.stf-other { margin-top: 9px; max-width: 340px; }
.stf-err { display: none; margin-top: 7px; font-size: 12px; color: var(--stf-bad); line-height: 1.6; }
.stf-err.on { display: block; }

/* ---------- 按钮 ---------- */
.stf-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 0 62px; }
.stf-btn {
  border: 1px solid var(--stf-line); background: var(--stf-card); color: var(--stf-txt);
  font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 10px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: transform .12s, box-shadow .18s, background .18s;
}
.stf-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--stf-a) 80%, transparent); }
.stf-btn.primary {
  background: linear-gradient(135deg, var(--stf-a), var(--stf-a3));
  border-color: transparent; color: #fff;
}
.stf-btn.ghost { background: transparent; color: var(--stf-txt2); }
.stf-btn.small { padding: 5px 12px; font-size: 12px; }
.stf-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.stf-msg { margin: 10px 0 0 62px; font-size: 12.5px; line-height: 1.6; color: var(--stf-txt3); }
.stf-empty { margin: 0; font-size: 12.5px; color: var(--stf-txt3); }

/* ---------- 报告单（票券样式） ---------- */
#stfResultCard { scroll-margin-top: 78px; }
.stf-badge {
  font-size: 11.5px; font-weight: 800; padding: 4px 11px; border-radius: 999px;
  background: var(--stf-line2); color: var(--stf-txt3); white-space: nowrap;
}
.stf-badge.ok { background: var(--stf-ok-soft); color: var(--stf-ok); }
.stf-badge.mid { background: var(--stf-soft); color: var(--stf-a); }
.stf-badge.warn { background: var(--stf-warn-soft); color: var(--stf-warn); }
.stf-badge.bad { background: var(--stf-bad-soft); color: var(--stf-bad); }
.stf-ticket {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  border: 1.5px solid var(--stf-line); border-radius: 16px; overflow: hidden;
  background: var(--stf-card2);
}
.stf-ticket::before, .stf-ticket::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: var(--stf-bg); border: 1.5px solid var(--stf-line);
  top: 50%; margin-top: -9px;
}
.stf-ticket::before { left: -11px; }
.stf-ticket::after { right: -11px; }
.stf-ticket-main { padding: 15px 18px; border-right: 2px dashed var(--stf-line); min-width: 0; }
.stf-ticket-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: 1.4px; color: var(--stf-txt3);
  margin-bottom: 10px;
}
.stf-ticket-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 16px; }
.stf-ticket-rows div { font-size: 12.5px; color: var(--stf-txt2); display: flex; gap: 6px; min-width: 0; }
.stf-ticket-rows i { font-style: normal; color: var(--stf-txt3); flex: none; }
.stf-ticket-rows b { color: var(--stf-txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stf-ticket-side {
  padding: 15px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--stf-a) 8%, transparent), transparent);
}
.stf-stamp2 {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  border: 3px solid var(--stf-ok); color: var(--stf-ok);
  font-size: 15px; font-weight: 900; line-height: 1.3; letter-spacing: 2px;
  transform: rotate(-10deg); padding: 6px;
}
.stf-stamp2.mid { border-color: var(--stf-a); color: var(--stf-a); }
.stf-stamp2.warn { border-color: var(--stf-warn); color: var(--stf-warn); }
.stf-stamp2.bad { border-color: var(--stf-bad); color: var(--stf-bad); }
.stf-ticket-score { font-size: 11.5px; color: var(--stf-txt3); text-align: center; line-height: 1.6; }
.stf-ticket-score b { color: var(--stf-txt); font-size: 14px; }
.stf-ticket-empty { grid-column: 1 / -1; padding: 18px; font-size: 12.5px; color: var(--stf-txt3); }
.stf-reasons { margin: 13px 0 0; padding-left: 18px; }
.stf-reasons li { font-size: 13px; line-height: 1.8; color: var(--stf-txt2); margin-bottom: 4px; }
.stf-reasons li b { color: var(--stf-txt); }
.stf-reasons li.red { color: var(--stf-bad); }
.stf-reasons li.red b { color: var(--stf-bad); }

/* ---------- 四包清单 ---------- */
.stf-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stf-pack {
  border: 1px solid var(--stf-line); border-radius: 14px;
  background: var(--stf-card2); overflow: hidden;
}
.stf-pack-h {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-size: 13.5px; font-weight: 800;
  background: linear-gradient(90deg, var(--stf-soft), transparent);
  border-bottom: 1px solid var(--stf-line2);
}
.stf-pack-h i { font-style: normal; font-size: 15px; }
.stf-pack ul { list-style: none; margin: 0; padding: 6px 10px 8px; }
.stf-pack li { border-bottom: 1px dashed var(--stf-line2); }
.stf-pack li:last-child { border-bottom: 0; }
.stf-pack label {
  display: flex; align-items: flex-start; gap: 9px; cursor: pointer;
  padding: 7px 5px; font-size: 12.5px; line-height: 1.65; color: var(--stf-txt2);
}
.stf-pack label input {
  appearance: none; width: 16px; height: 16px; flex: none; margin-top: 2px;
  border: 1.5px solid var(--stf-line); border-radius: 5px; background: var(--stf-card);
  position: relative; cursor: pointer;
}
.stf-pack label input:checked { background: var(--stf-ok); border-color: var(--stf-ok); }
.stf-pack label input:checked::after {
  content: '✓'; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 11px; font-weight: 900;
}
.stf-pack label:has(input:checked) { color: var(--stf-txt3); text-decoration: line-through; }
.stf-pack label b { color: var(--stf-txt); }
.stf-pack label .stf-price { color: var(--stf-acc); font-weight: 700; }

/* ---------- 交叉核对表 ---------- */
.stf-table-wrap { overflow-x: auto; border: 1px solid var(--stf-line); border-radius: 12px; }
.stf-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 540px; }
.stf-table th, .stf-table td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--stf-line2); vertical-align: top; }
.stf-table th { background: var(--stf-line2); font-size: 12px; font-weight: 700; color: var(--stf-txt2); }
.stf-table td { color: var(--stf-txt2); }
.stf-table td b { color: var(--stf-txt); white-space: nowrap; }
.stf-table td ul { margin: 0; padding-left: 16px; }
.stf-table td li { font-size: 12.5px; line-height: 1.7; margin-bottom: 2px; }
.stf-table tr:last-child td { border-bottom: 0; }

/* ---------- 备用方案 ---------- */
.stf-backup { display: flex; flex-direction: column; gap: 8px; }
.stf-backup-item {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; align-items: start;
  padding: 11px 13px; border-radius: 12px;
  background: var(--stf-card2); border: 1px solid var(--stf-line);
  font-size: 13px; line-height: 1.75; color: var(--stf-txt2);
}
.stf-backup-item i {
  font-style: normal; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 800; font-size: 12px;
  background: var(--stf-acc-soft); color: var(--stf-acc);
}
.stf-backup-item b { color: var(--stf-txt); }

/* ---------- AI ---------- */
.stf-ai textarea {
  width: 100%; min-height: 96px; resize: vertical;
  border: 1px solid var(--stf-line); border-radius: 14px;
  background: var(--stf-card2); color: var(--stf-txt); padding: 12px 14px;
  font-size: 13px; line-height: 1.75; outline: none; font-family: inherit;
}
.stf-ai textarea:focus { border-color: var(--stf-a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--stf-a) 13%, transparent); }
.stf-ai-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.stf-ai-status { font-size: 12.5px; color: var(--stf-txt3); line-height: 1.6; }
.stf-ai-result {
  margin-top: 12px; padding: 14px 16px; border-radius: 14px;
  background: var(--stf-card2); border: 1px dashed color-mix(in srgb, var(--stf-a) 36%, transparent);
  font-size: 13px; line-height: 1.85; color: var(--stf-txt2); white-space: pre-wrap;
}
.stf-ai-result[hidden] { display: none; }
.stf-ai-note { margin: 10px 0 0; font-size: 11.5px; color: var(--stf-txt3); }

/* ---------- 历史 ---------- */
.stf-history { display: flex; flex-direction: column; gap: 8px; }
.stf-hist-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--stf-line); border-radius: 10px;
  padding: 10px 12px; background: var(--stf-card2); font-size: 12.5px;
  color: var(--stf-txt2); flex-wrap: wrap;
}
.stf-hist-item button {
  border: 0; border-radius: 7px; padding: 5px 10px; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--stf-a); background: var(--stf-soft);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .stf-hero { grid-template-columns: 1fr; }
  .stf-hero-art { display: none; }
}
@media (max-width: 760px) {
  .stf-sec { grid-template-columns: 1fr; }
  .stf-dot { display: none; }
  .stf-panel { margin-left: 0; }
  .stf-rail::before { display: none; }
  .stf-actions, .stf-msg { margin-left: 0; }
  .stf-packs { grid-template-columns: 1fr; }
  .stf-ticket { grid-template-columns: 1fr; }
  .stf-ticket-main { border-right: 0; border-bottom: 2px dashed var(--stf-line); }
  .stf-ticket::before, .stf-ticket::after { display: none; }
}
@media (max-width: 700px) {
  .stf-inner { width: calc(100% - 28px); }
  .stf-hero { padding: 22px 18px 20px; border-radius: 16px; }
  .stf-panel { padding: 15px 15px 17px; }
  .stf-grid2 { grid-template-columns: 1fr; }
  .stf-range-row { grid-template-columns: 1fr; }
  .stf-actions .stf-btn { flex: 1 1 44%; }
}

/* ---------- 打印 ---------- */
@media print {
  .stf { padding: 0; background: #fff; color: #111; }
  .stf .stf-hero, .stf .stf-alert, .stf .stf-sec-in, .stf .stf-actions, .stf .stf-msg,
  .stf .stf-ai, .stf .stf-history, .tsk-crumb-bar, .bk-wrap, .stf-rail::before { display: none !important; }
  .stf .stf-sec { margin-bottom: 10px; }
  .stf .stf-panel { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .stf .stf-ticket, .stf .stf-packs { background: #fff; }
  .stf .stf-dot { display: none; }
  .stf .stf-panel { margin-left: 0; }
}

/* ---------- 面包屑对齐 ---------- */
.tsk-crumb-bar-in{width:min(1140px,calc(100% - 44px))!important;max-width:none!important;margin:0 auto!important;padding:11px 0!important}
@media (max-width:700px){.tsk-crumb-bar-in{width:calc(100% - 28px)!important;padding:9px 0!important}}
