/* 耳鸣 THI 自查 · 单列窄栏 + 听力示意（靛蓝主题） */
:root {
  --ti-a: #4f46e5;
  --ti-a2: #818cf8;
  --ti-a3: #c7d2fe;
  --ti-soft: #eef2ff;
  --ti-bg: #f7f7fe;
  --ti-card: #ffffff;
  --ti-card2: #fbfbfe;
  --ti-txt: #1b1a35;
  --ti-txt2: #4f4d70;
  --ti-txt3: #8583a3;
  --ti-line: #e3e2f3;
  --ti-line2: #f0effa;
  --ti-ok: #15803d;
  --ti-warn: #b45309;
  --ti-bad: #be123c;
  --ti-shadow: 0 1px 2px rgba(50, 40, 130, .05), 0 12px 30px -16px rgba(50, 40, 130, .26);
  --ti-r: 16px;
  --ti-r2: 11px;
}

[data-theme='dark'] .ti {
  --ti-a: #818cf8;
  --ti-a2: #6366f1;
  --ti-a3: #3730a3;
  --ti-soft: #1e1b3a;
  --ti-bg: #0e0d1b;
  --ti-card: #191730;
  --ti-card2: #201d3a;
  --ti-txt: #eeecff;
  --ti-txt2: #b7b2dd;
  --ti-txt3: #8b86b0;
  --ti-line: #2f2b4e;
  --ti-line2: #232039;
  --ti-ok: #4ade80;
  --ti-warn: #fbbf24;
  --ti-bad: #fb7185;
  --ti-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -16px rgba(0, 0, 0, .7);
}

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

/* ---------- Hero ---------- */
.ti-hero {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 26px; align-items: center; padding: 30px 32px 28px;
  border-radius: 22px; border: 1px solid var(--ti-line); box-shadow: var(--ti-shadow);
  background:
    radial-gradient(760px 300px at 94% 4%, rgba(79, 70, 229, .2), transparent 62%),
    radial-gradient(520px 220px at 2% 98%, rgba(129, 140, 248, .13), transparent 66%),
    linear-gradient(135deg, var(--ti-card) 0%, var(--ti-card2) 100%);
}
.ti-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .3px;
  color: var(--ti-a); background: var(--ti-soft);
  border: 1px solid color-mix(in srgb, var(--ti-a) 26%, transparent);
  padding: 5px 11px; border-radius: 999px;
}
.ti-hero h1 { margin: 14px 0 0; font-size: clamp(26px, 3.3vw, 39px); line-height: 1.24; font-weight: 800; letter-spacing: -.6px; }
.ti-hero h1 em {
  display: inline-block; font-style: normal; margin-top: 4px; color: var(--ti-a);
  background: linear-gradient(180deg, transparent 60%, rgba(129, 140, 248, .32) 60%);
  padding: 0 2px;
}
.ti-sub { margin: 12px 0 0; font-size: 14.5px; line-height: 1.85; color: var(--ti-txt2); max-width: 66ch; }
.ti-sub b { color: var(--ti-txt); font-weight: 700; }
.ti-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ti-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px;
  padding: 5px 10px; border-radius: 8px;
  background: var(--ti-card2); border: 1px solid var(--ti-line); color: var(--ti-txt2);
}
.ti-tag i { color: var(--ti-a); font-style: normal; font-weight: 800; }

/* 纯 CSS 耳朵与声波 */
.ti-art { position: relative; height: 236px; }
.ti-ear { position: absolute; left: 22px; top: 40px; width: 118px; height: 152px; }
.ti-ear-outer {
  position: absolute; inset: 0; border-radius: 58% 42% 46% 54% / 50% 46% 54% 50%;
  border: 2px solid color-mix(in srgb, var(--ti-a) 55%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--ti-a) 16%, var(--ti-card)), var(--ti-card));
  box-shadow: inset 0 0 0 8px color-mix(in srgb, var(--ti-a) 6%, transparent);
  animation: tiBreath 5.4s ease-in-out infinite;
}
@keyframes tiBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.ti-ear-inner {
  position: absolute; left: 26px; top: 30px; width: 62px; height: 92px;
  border-radius: 52% 48% 44% 56% / 50% 48% 52% 50%;
  border: 1.5px solid color-mix(in srgb, var(--ti-a) 40%, transparent);
  background: color-mix(in srgb, var(--ti-a) 9%, transparent);
}
.ti-ear-canal {
  position: absolute; left: 44px; top: 58px; width: 26px; height: 56px;
  border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ti-a) 32%, transparent);
}
.ti-wave {
  position: absolute; left: 148px; top: 92px; width: 44px; height: 44px;
  border: 2px solid color-mix(in srgb, var(--ti-a) 52%, transparent);
  border-left-color: transparent; border-top-color: transparent; border-bottom-color: transparent;
  border-radius: 50%; transform: rotate(0deg);
  animation: tiWave 2.6s ease-out infinite;
}
.ti-wave.w2 { left: 168px; width: 62px; height: 62px; top: 83px; animation-delay: .45s; }
.ti-wave.w3 { left: 190px; width: 80px; height: 80px; top: 74px; animation-delay: .9s; }
@keyframes tiWave { 0% { opacity: 0; transform: translateX(-6px) scale(.9); } 40% { opacity: .85; } 100% { opacity: 0; transform: translateX(8px) scale(1.06); } }
.ti-art-chip {
  position: absolute; font-size: 11.5px; padding: 5px 10px; border-radius: 8px;
  background: var(--ti-card); border: 1px solid var(--ti-line);
  color: var(--ti-txt2); box-shadow: var(--ti-shadow); white-space: nowrap;
}
.ti-art-chip b { color: var(--ti-a); }
.ti-art-chip.one { right: 4px; top: 44px; animation: tiFloat 4.6s ease-in-out infinite; }
.ti-art-chip.two { right: 12px; bottom: 24px; animation: tiFloat 4.6s ease-in-out .8s infinite; }
@keyframes tiFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- 免责条 ---------- */
.ti-notice {
  margin: 0 0 16px; display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 16px; border-radius: 12px;
  background: color-mix(in srgb, var(--ti-warn) 10%, var(--ti-card));
  border: 1px solid color-mix(in srgb, var(--ti-warn) 32%, transparent);
}
.ti-notice-ico {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff; background: var(--ti-warn);
}
.ti-notice p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ti-txt); }
.ti-notice b { font-weight: 800; }
.ti-notice small { display: block; margin-top: 3px; font-size: 12px; color: var(--ti-txt2); }

/* ---------- 单列卡片流 ---------- */
.ti-card {
  margin-top: 16px; background: var(--ti-card); border: 1px solid var(--ti-line);
  border-radius: var(--ti-r); box-shadow: var(--ti-shadow); padding: 20px 24px 22px;
  position: relative; overflow: hidden;
}
.ti-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--ti-a2), var(--ti-a));
  opacity: .55;
}
.ti-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; flex-wrap: wrap; }
.ti-card-h h2 { margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: -.2px; display: flex; align-items: center; gap: 9px; }
.ti-no { font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #fff; background: var(--ti-a); padding: 3px 7px; border-radius: 6px; }
[data-theme='dark'] .ti .ti-no { color: #12102a; }
.ti-card-h small { font-size: 12px; color: var(--ti-txt3); }

/* 五题 */
.ti-qs { display: flex; flex-direction: column; gap: 10px; }
.ti-q {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr);
  gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--ti-line); background: var(--ti-card2);
}
.ti-q-copy b { display: block; font-size: 13.5px; color: var(--ti-txt); }
.ti-q-copy span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.5; color: var(--ti-txt3); }
.ti-seg { display: flex; gap: 5px; background: var(--ti-line2); padding: 4px; border-radius: 9px; }
.ti-segbtn {
  flex: 1 1 0; border: 0; background: transparent; color: var(--ti-txt2);
  font-size: 12px; font-weight: 600; padding: 8px 4px; border-radius: 7px; cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s; white-space: nowrap;
}
.ti-segbtn.on { background: var(--ti-card); color: var(--ti-a); box-shadow: 0 1px 3px rgba(0, 0, 0, .13); }
.ti-segbtn:hover { color: var(--ti-a); }

.ti-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 14px; }
.ti-presets-label { font-size: 11.5px; color: var(--ti-txt3); margin-right: 2px; }
.ti-preset {
  border: 1px solid var(--ti-line); background: var(--ti-card2); color: var(--ti-txt2);
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.ti-preset:hover { border-color: var(--ti-a); color: var(--ti-a); }
.ti-preset.on { background: var(--ti-soft); border-color: var(--ti-a); color: var(--ti-a); }

.ti-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ti-field { margin-bottom: 4px; }
.ti-field-wide { margin-top: 14px; }
.ti-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.ti-label label { font-size: 13.5px; font-weight: 600; color: var(--ti-txt); }
.ti-label label b { color: var(--ti-bad); }
.ti-hint { font-size: 11.5px; color: var(--ti-txt3); text-align: right; }
.ti-range-row { display: grid; grid-template-columns: 1fr 116px; gap: 12px; align-items: center; }
.ti-range-row input[type='range'] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--ti-line); outline: none; }
.ti-range-row input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ti-a); border: 3px solid var(--ti-card); box-shadow: 0 0 0 1px var(--ti-a); cursor: pointer;
}
.ti-range-row input[type='range']::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%; background: var(--ti-a); cursor: pointer; }
.ti-numbox { display: flex; align-items: center; border: 1px solid var(--ti-line); border-radius: var(--ti-r2); background: var(--ti-card2); overflow: hidden; }
.ti-numbox.wide { max-width: 100%; }
.ti-numbox input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ti-txt); font-size: 15px; font-weight: 700; padding: 9px 9px; outline: none; }
.ti-numbox span { padding: 0 10px; font-size: 12px; color: var(--ti-txt3); background: var(--ti-line2); align-self: stretch; display: flex; align-items: center; }
.ti-err { display: none; margin-top: 6px; font-size: 12px; color: var(--ti-bad); }
.ti-err.on { display: block; }
.ti-field.bad .ti-numbox, .ti-field.bad .ti-range-row input[type='range'] { border-color: var(--ti-bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ti-bad) 13%, transparent); }
.ti-control { border: 1px solid var(--ti-line); border-radius: var(--ti-r2); background: var(--ti-card2); }
.ti-control select {
  width: 100%; border: 0; background: transparent; color: var(--ti-txt);
  font-size: 13.5px; padding: 10px 11px; outline: none; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ti-txt3) 50%), linear-gradient(135deg, var(--ti-txt3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.ti-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ti-check {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--ti-line); border-radius: 10px; padding: 9px 11px;
  font-size: 12.5px; color: var(--ti-txt2); background: var(--ti-card2);
  transition: border-color .18s, background .18s, color .18s;
}
.ti-check input { appearance: none; width: 17px; height: 17px; border: 1.5px solid var(--ti-line); border-radius: 5px; flex: none; position: relative; cursor: pointer; }
.ti-check input:checked { background: var(--ti-a); border-color: var(--ti-a); }
.ti-check input:checked::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 800; }
[data-theme='dark'] .ti .ti-check input:checked::after { color: #12102a; }
.ti-check:has(input:checked) { border-color: var(--ti-a); background: var(--ti-soft); color: var(--ti-txt); }
.ti-check.red:has(input:checked) { border-color: var(--ti-bad); background: color-mix(in srgb, var(--ti-bad) 12%, var(--ti-card)); }
.ti-check.red input:checked { background: var(--ti-bad); border-color: var(--ti-bad); }

.ti-tip {
  margin: 14px 0 0; font-size: 12.5px; line-height: 1.75; color: var(--ti-txt2);
  background: var(--ti-line2); border-left: 3px solid var(--ti-a2);
  padding: 9px 12px; border-radius: 0 8px 8px 0;
}
.ti-tip b { color: var(--ti-txt); }

/* 动作 */
.ti-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.ti-actions.tight { margin-top: 12px; }
.ti-btn {
  border: 1px solid var(--ti-line); background: var(--ti-card); color: var(--ti-txt);
  font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 10px; cursor: pointer;
  transition: transform .12s, box-shadow .18s, background .18s;
}
.ti-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgba(50, 40, 130, .6); }
.ti-btn.primary { background: var(--ti-a); border-color: var(--ti-a); color: #fff; }
[data-theme='dark'] .ti .ti-btn.primary { color: #12102a; }
.ti-btn.ghost { background: transparent; color: var(--ti-txt2); }
.ti-msg { margin-top: 12px; font-size: 12.5px; color: var(--ti-txt3); }

/* ---------- 结果 ---------- */
.ti-badge { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ti-line2); color: var(--ti-txt3); }
.ti-badge.ok { background: color-mix(in srgb, var(--ti-ok) 15%, transparent); color: var(--ti-ok); }
.ti-badge.warn { background: color-mix(in srgb, var(--ti-warn) 17%, transparent); color: var(--ti-warn); }
.ti-badge.bad { background: color-mix(in srgb, var(--ti-bad) 14%, transparent); color: var(--ti-bad); }

.ti-verdict {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 16px 18px; border-radius: 13px;
  background: linear-gradient(120deg, var(--ti-soft), transparent 82%);
  border: 1px solid var(--ti-line);
}
.ti-verdict-label { display: block; font-size: 11.5px; letter-spacing: .4px; color: var(--ti-txt3); }
.ti-verdict-main strong { display: inline-block; font-size: 50px; line-height: 1.02; font-weight: 800; letter-spacing: -2px; color: var(--ti-a); }
.ti-verdict-main em { font-style: normal; font-size: 13px; color: var(--ti-txt3); margin-left: 4px; }
.ti-verdict-side { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--ti-txt2); }
.ti-verdict-side b { color: var(--ti-txt); font-weight: 800; }
.ti-verdict-sub { margin: 8px 0 0; font-size: 12px; color: var(--ti-txt3); }

.ti-ruler-wrap { margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--ti-line); }
.ti-ruler { position: relative; display: flex; height: 26px; border-radius: 9px; overflow: hidden; }
.ti-rseg {
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.ti-rseg.s1 { background: #34d399; }
.ti-rseg.s2 { background: #fbbf24; }
.ti-rseg.s3 { background: #fb923c; }
.ti-rseg.s4 { background: #f43f5e; }
.ti-rseg.s5 { background: #7f1d1d; }
.ti-ruler-mark {
  position: absolute; top: -6px; width: 4px; height: 38px; border-radius: 3px;
  background: var(--ti-txt); box-shadow: 0 0 0 3px var(--ti-card);
  transform: translateX(-50%); transition: left .35s ease; left: 0;
}
.ti-ruler-labels { display: flex; margin-top: 8px; font-size: 10.5px; color: var(--ti-txt3); }
.ti-ruler-labels span { flex: 1; text-align: center; }
.ti-ruler-labels span:first-child { text-align: left; }
.ti-ruler-labels span:last-child { text-align: right; }
.ti-ruler-txt { margin: 7px 0 0; font-size: 11.5px; line-height: 1.65; color: var(--ti-txt3); }

.ti-db { margin-top: 16px; padding-top: 13px; border-top: 1px dashed var(--ti-line); }
.ti-db h3, .ti-bars h3 { margin: 0 0 8px; font-size: 13px; font-weight: 800; }
.ti-db-track { position: relative; display: flex; height: 22px; border-radius: 8px; overflow: hidden; }
.ti-dbseg {
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, #a5b4fc, #6366f1);
}
.ti-dbseg.b2 { background: linear-gradient(90deg, #6366f1, #4338ca); }
.ti-dbseg.b3 { background: linear-gradient(90deg, #4338ca, #312e81); }
.ti-db-mark {
  position: absolute; top: -5px; width: 4px; height: 32px; border-radius: 3px;
  background: var(--ti-txt); box-shadow: 0 0 0 3px var(--ti-card);
  transform: translateX(-50%); transition: left .35s ease; left: 0;
}
.ti-db-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.5px; color: var(--ti-txt3); }
.ti-db-note { margin: 7px 0 0; font-size: 11.5px; line-height: 1.65; color: var(--ti-txt3); }

.ti-bars { margin-top: 16px; padding-top: 13px; border-top: 1px dashed var(--ti-line); }
.ti-bar-row { margin-bottom: 8px; }
.ti-bar-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--ti-txt2); margin-bottom: 3px; }
.ti-bar-head b { color: var(--ti-txt); }
.ti-bar-track { height: 8px; border-radius: 999px; background: var(--ti-line2); overflow: hidden; }
.ti-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ti-a2), var(--ti-a)); width: 0; transition: width .35s ease; }
.ti-bar-fill.high { background: linear-gradient(90deg, #fbbf24, #f97316); }
.ti-bar-fill.max { background: linear-gradient(90deg, #fb7185, #be123c); }

.ti-advice { margin-top: 16px; padding-top: 13px; border-top: 1px dashed var(--ti-line); }
.ti-advice h3 { margin: 0 0 7px; font-size: 13px; font-weight: 800; }
.ti-advice-title { margin: 0 0 7px; font-size: 13.5px; font-weight: 700; color: var(--ti-a); line-height: 1.6; }
.ti-advice ul { margin: 0; padding-left: 17px; }
.ti-advice li { font-size: 12.5px; line-height: 1.78; color: var(--ti-txt2); margin-bottom: 4px; }
.ti-risk {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--ti-warn) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--ti-warn) 32%, transparent);
  font-size: 12.5px; line-height: 1.7; color: var(--ti-txt2);
}
.ti-risk strong { color: var(--ti-warn); margin-right: 6px; }
.ti-redflag {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--ti-bad) 10%, var(--ti-card));
  border: 1.5px solid color-mix(in srgb, var(--ti-bad) 46%, transparent);
}
.ti-redflag h3 { margin: 0 0 6px; font-size: 13.5px; font-weight: 800; color: var(--ti-bad); }
.ti-redflag ul { margin: 0; padding-left: 17px; }
.ti-redflag li { font-size: 12.5px; line-height: 1.7; color: var(--ti-txt); margin-bottom: 3px; }
.ti-redflag p { margin: 8px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--ti-txt3); }

/* 三档方案 */
.ti-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ti-plan {
  border: 1.5px solid var(--ti-line); border-radius: 14px; background: var(--ti-card2);
  padding: 16px 16px 14px; position: relative; transition: border-color .2s, box-shadow .2s;
}
.ti-plan.rec { border-color: var(--ti-a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ti-a) 17%, transparent); background: var(--ti-card); }
.ti-plan-tag { position: absolute; right: 12px; top: -10px; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--ti-a); padding: 3px 9px; border-radius: 999px; }
[data-theme='dark'] .ti .ti-plan-tag { color: #12102a; }
.ti-plan h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.ti-plan h3 span { display: block; font-size: 11.5px; font-weight: 600; color: var(--ti-txt3); margin-top: 3px; }
.ti-plan-range { margin: 10px 0; font-size: 12.5px; font-weight: 700; color: var(--ti-a); letter-spacing: 0; line-height: 1.55; }
.ti-plan dl { margin: 0; display: grid; grid-template-columns: 62px 1fr; gap: 5px 8px; font-size: 12.5px; }
.ti-plan dt { color: var(--ti-txt3); }
.ti-plan dd { margin: 0; color: var(--ti-txt2); line-height: 1.65; }
.ti-plan-pick { margin-top: 12px; width: 100%; border: 0; border-radius: 9px; padding: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; background: var(--ti-line2); color: var(--ti-txt2); }
.ti-plan.rec .ti-plan-pick { background: var(--ti-a); color: #fff; }
[data-theme='dark'] .ti .ti-plan.rec .ti-plan-pick { color: #12102a; }

/* 表格 / 步骤 */
.ti-table-wrap { overflow-x: auto; border: 1px solid var(--ti-line); border-radius: 12px; }
.ti-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.ti-table th, .ti-table td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--ti-line2); }
.ti-table th { background: var(--ti-line2); font-size: 12px; color: var(--ti-txt2); font-weight: 700; }
.ti-table td:nth-child(2) { font-weight: 700; color: var(--ti-txt); white-space: nowrap; }
.ti-table td:last-child { color: var(--ti-txt3); font-size: 12px; }
.ti-table tr:last-child td { border-bottom: 0; }

.ti-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ti-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 13px; line-height: 1.8; color: var(--ti-txt2); }
.ti-steps li b { color: var(--ti-txt); }
.ti-steps li em { display: block; font-style: normal; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ti-a); margin-top: 3px; }

.ti-history { display: flex; flex-direction: column; gap: 8px; }
.ti-hist-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--ti-line); border-radius: 10px; padding: 10px 12px;
  background: var(--ti-card2); font-size: 12.5px;
}
.ti-hist-item span { color: var(--ti-txt2); line-height: 1.6; }
.ti-hist-item button { border: 0; background: var(--ti-soft); color: var(--ti-a); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 7px; cursor: pointer; flex: none; }
.ti-empty { font-size: 12.5px; color: var(--ti-txt3); margin: 0; }

/* 响应式 */
@media (max-width: 900px) {
  .ti-hero { grid-template-columns: 1fr; }
  .ti-art { display: none; }
  .ti-plans { grid-template-columns: 1fr; }
  .ti-q { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 700px) {
  .ti-inner { width: calc(100% - 28px); }
  .ti-hero { padding: 22px 18px; border-radius: 16px; }
  .ti-card { padding: 16px 15px 18px; }
  .ti-grid, .ti-chips { grid-template-columns: 1fr; }
  .ti-range-row { grid-template-columns: 1fr 100px; }
  .ti-seg { flex-wrap: wrap; }
  .ti-segbtn { flex: 1 1 44%; }
  .ti-verdict { grid-template-columns: 1fr; }
  .ti-verdict-main strong { font-size: 40px; }
  .ti-actions .ti-btn { flex: 1 1 44%; }
}

/* 打印 */
@media print {
  .ti-actions, .ti-presets, .ti-history, .ti-msg, .tsk-crumb-bar { display: none !important; }
  .ti { padding: 0; background: #fff; }
  .ti-hero, .ti-card, .ti-result { box-shadow: none; border-color: #ddd; break-inside: avoid; }
}

/* 全局对齐：面包屑 / 内容 / 底部区块统一 */
.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}}
