/* 演出票预算计算器 · 现代产品感三步向导 · 作用域 .t3-show（深色仅改变量值） */
.t3-show {
  --bg: #f5f7fb;
  --card: #ffffff;
  --ink: #1f2937;
  --sub: #667085;
  --line: #e4e7ec;
  --acc: var(--a);
  --acc-deep: #c2410c;
  --soft: rgba(234, 88, 12, .08);
  --gold: #f59e0b;
  --bad: #be123c;
  --warn: #b45309;
  --ok: #15803d;
  --top-bg: #f0fdf4;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 28px -14px rgba(16, 24, 40, .12);
  --ring: 0 0 0 3px rgba(234, 88, 12, .25);
  --btn-fg: #fff;
  --hero-bg: linear-gradient(135deg, #7c2d12, var(--a) 60%, #f97316);
  --hero-ink: #ffffff;
  --hero-sub: #ffedd5;
  --hero-em: #fde68a;
  --svg-bg: #fff7ed;
  --svg-soft: #ffedd5;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  padding: 20px 14px 46px;
  line-height: 1.7;
  font-size: 14px;
}
[data-theme='dark'] .t3-show {
  --bg: #0b1220;
  --card: #121a2b;
  --ink: #e6edf7;
  --sub: #9fb0c9;
  --line: rgba(148, 163, 184, .18);
  --acc: #fb923c;
  --acc-deep: #ea580c;
  --soft: rgba(251, 146, 60, .14);
  --gold: #fbbf24;
  --bad: #fb7185;
  --warn: #fbbf24;
  --ok: #4ade80;
  --top-bg: rgba(74, 222, 128, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 28px -14px rgba(0, 0, 0, .55);
  --ring: 0 0 0 3px rgba(251, 146, 60, .3);
  --btn-fg: #0b1220;
  --hero-bg: linear-gradient(135deg, #131c2e, #2a1a10 60%, #3b1d0a);
  --hero-ink: #e6edf7;
  --hero-sub: #e5d5c5;
  --hero-em: #fdba74;
  --svg-bg: #1a2338;
  --svg-soft: #2c2418;
}
.t3-show * { box-sizing: border-box; }
.t3-show .sh-wrap { max-width: 900px; margin: 0 auto; }

/* ---------- hero ---------- */
.t3-show .sh-hero {
  display: flex; gap: 24px; align-items: center; justify-content: space-between;
  background: var(--hero-bg);
  border-radius: 16px; padding: 26px 28px; color: var(--hero-ink);
  box-shadow: var(--shadow);
}
.t3-show .sh-badge {
  display: inline-block; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px; padding: 3px 14px; font-size: 13px; letter-spacing: 1px;
}
.t3-show .sh-hero h1 { margin: 10px 0 6px; font-size: clamp(22px, 3.2vw, 30px); line-height: 1.35; font-weight: 800; }
.t3-show .sh-hero h1 em {
  font-style: normal; font-size: clamp(14px, 1.9vw, 18px); color: var(--hero-em); font-weight: 600;
}
.t3-show .sh-sub { margin: 4px 0 0; font-size: 14px; color: var(--hero-sub); max-width: 620px; }
.t3-show .sh-sub b { color: var(--hero-em); }
.t3-show .sh-art { flex: 0 0 auto; background: var(--card); border-radius: 14px; padding: 10px; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
@media (max-width: 900px) {
  .t3-show .sh-hero { flex-direction: column; text-align: center; }
  .t3-show .sh-sub { margin-left: auto; margin-right: auto; }
  .t3-show .sh-art { max-width: 260px; }
  .t3-show .sh-art svg { width: 100%; height: auto; }
}

/* ---------- stepper（仅视觉翻新，状态类 on/done 由 JS 控制） ---------- */
.t3-show .sh-steps { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px 0 20px; flex-wrap: wrap; }
.t3-show .sh-step {
  border: 1px solid var(--line); background: var(--card); color: var(--sub); border-radius: 999px;
  padding: 8px 20px; font-size: 14.5px; font-weight: 700; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 9px; transition: .18s; box-shadow: var(--shadow);
}
.t3-show .sh-step:hover { border-color: var(--acc); color: var(--acc); }
.t3-show .sh-step i {
  font-style: normal; width: 24px; height: 24px; border-radius: 999px; background: var(--line); color: var(--card);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; transition: .18s;
}
.t3-show .sh-step.on {
  background: linear-gradient(135deg, var(--acc), var(--acc-deep)); border-color: transparent; color: var(--btn-fg);
  box-shadow: 0 6px 16px -6px var(--soft);
}
.t3-show .sh-step.on i { background: rgba(255, 255, 255, .22); color: var(--btn-fg); }
.t3-show .sh-step.done { border-color: var(--ok); color: var(--ink); }
.t3-show .sh-step.done i { background: var(--ok); color: var(--card); }
.t3-show .sh-arrow { color: var(--sub); font-weight: 700; }
@media (max-width: 560px) {
  .t3-show .sh-step { padding: 7px 14px; font-size: 13px; }
  .t3-show .sh-arrow { display: none; }
}

/* ---------- card ---------- */
.t3-show .sh-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
}
.t3-show .sh-card:hover { box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 14px 30px -14px rgba(16, 24, 40, .16); }
.t3-show .sh-card h2 { margin: 0 0 14px; font-size: 17px; font-weight: 700; color: var(--ink); }
.t3-show .sh-card h2 small { font-weight: 400; font-size: 12px; color: var(--sub); margin-left: 8px; }
.t3-show .sh-h3 { margin: 16px 0 8px; font-size: 14px; color: var(--sub); font-weight: 700; }

/* ---------- ticket rows ---------- */
.t3-show .sh-rows { display: flex; flex-direction: column; gap: 10px; }
.t3-show .sh-row { display: grid; grid-template-columns: 1.2fr 1fr .8fr 1.1fr auto; gap: 10px; align-items: center; }
@media (max-width: 760px) {
  .t3-show .sh-row { grid-template-columns: 1fr 1fr; }
  .t3-show .sh-row .sh-del { grid-column: 2; justify-self: end; }
}
.t3-show .sh-row input, .t3-show .sh-row select {
  height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 14px;
  background: var(--card); color: var(--ink); font-family: inherit; min-width: 0; transition: border-color .15s, box-shadow .15s;
}
.t3-show .sh-row input::placeholder { color: var(--sub); opacity: .7; }
.t3-show .sh-row input:focus, .t3-show .sh-row select:focus { outline: none; border-color: var(--acc); box-shadow: var(--ring); position: relative; z-index: 1; }
.t3-show .sh-row.bad input { border-color: var(--bad); }
.t3-show .sh-del {
  border: 1px solid var(--line); background: none; color: var(--bad); border-radius: 10px;
  width: 40px; height: 44px; cursor: pointer; font-size: 15px; flex: 0 0 auto;
}
.t3-show .sh-del:hover { background: var(--soft); border-color: var(--bad); }
.t3-show .sh-rowerr { grid-column: 1 / -1; margin: -4px 0 0; font-size: 12px; color: var(--bad); }
.t3-show .sh-rowfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; flex-wrap: wrap; }
.t3-show .sh-sum { font-size: 14px; color: var(--acc-deep); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- fields ---------- */
.t3-show .sh-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
@media (max-width: 760px) { .t3-show .sh-row2 { grid-template-columns: 1fr; } }
.t3-show .sh-field { min-width: 0; }
.t3-show .sh-field > label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.t3-show .sh-hint { margin: 6px 0 0; font-size: 12px; color: var(--sub); line-height: 1.5; }
.t3-show .sh-ctl { display: flex; align-items: stretch; }
.t3-show .sh-ctl input {
  flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 10px 0 0 10px; padding: 0 12px;
  font-size: 15px; background: var(--card); color: var(--ink); font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.t3-show .sh-ctl input::placeholder { color: var(--sub); opacity: .7; }
.t3-show .sh-ctl input:focus { outline: none; border-color: var(--acc); box-shadow: var(--ring); position: relative; z-index: 1; }
.t3-show .sh-ctl i {
  font-style: normal; display: inline-flex; align-items: center; padding: 0 12px; font-size: 12px;
  background: var(--soft); color: var(--sub); border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0;
}
.t3-show .err { margin: 4px 0 0; font-size: 12px; color: var(--bad); }
.t3-show .sh-field.bad input { border-color: var(--bad); }
.t3-show .sh-field-blank { display: none; }

/* ---------- buttons ---------- */
.t3-show .sh-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px;
  height: 44px; padding: 0 20px; font-size: 14.5px; cursor: pointer; font-family: inherit; transition: .15s;
}
.t3-show .sh-btn:hover { border-color: var(--acc); color: var(--acc); }
.t3-show .sh-btn-go {
  background: linear-gradient(135deg, var(--acc), var(--acc-deep)); border: none; color: var(--btn-fg);
  font-weight: 700; box-shadow: 0 6px 16px -6px var(--soft);
}
.t3-show .sh-btn-go:hover { color: var(--btn-fg); filter: brightness(1.06); transform: translateY(-1px); }
.t3-show .sh-btn-ghost { color: var(--sub); }
.t3-show .sh-btn-add { border-style: dashed; color: var(--acc); background: transparent; }
.t3-show .sh-btn-add:hover { background: var(--soft); }
.t3-show .sh-nav { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.t3-show .sh-msg { margin: 12px 0 0; font-size: 13px; color: var(--sub); background: var(--soft); border-radius: 10px; padding: 8px 12px; }
.t3-show .sh-msg.bad { color: var(--bad); background: rgba(244, 63, 94, .1); }

/* ---------- result（主结果区） ---------- */
.t3-show .sh-bigwrap { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
@media (max-width: 640px) { .t3-show .sh-bigwrap { grid-template-columns: 1fr; } }
.t3-show .sh-big {
  background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 24px;
  text-align: center; display: flex; flex-direction: column; gap: 2px;
}
.t3-show .sh-big span { font-size: 12px; color: var(--sub); letter-spacing: 2px; }
.t3-show .sh-big b {
  font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--acc), var(--a2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.t3-show .sh-big em { font-style: normal; font-size: 12px; color: var(--sub); }
.t3-show .sh-budget-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--sub); margin-bottom: 6px; }
.t3-show .sh-budget-top b { color: var(--ink); font-weight: 700; }
.t3-show .sh-track { height: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.t3-show .sh-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--a2), var(--acc)); border-radius: 999px; transition: width .4s; }
.t3-show .sh-track i.over { background: linear-gradient(90deg, #ef4444, var(--bad)); }
.t3-show .sh-warn { margin: 7px 0 0; font-size: 13px; min-height: 20px; }
.t3-show .sh-warn.red { color: var(--bad); font-weight: 700; }
.t3-show .sh-warn.yellow { color: var(--warn); font-weight: 700; }
.t3-show .sh-warn.green { color: var(--ok); }

/* 空态引导 */
.t3-show .sh-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  border: 1px dashed var(--line); border-radius: 16px; padding: 34px 20px; background: transparent;
}
.t3-show .sh-empty-ico { font-size: 32px; line-height: 1; }
.t3-show .sh-empty b { color: var(--ink); font-size: 15px; }
.t3-show .sh-empty p { margin: 0; font-size: 13px; color: var(--sub); max-width: 440px; }
.t3-show #shPanel3[hidden] ~ .sh-empty { display: flex; }
.t3-show #shPanel3:not([hidden]) ~ .sh-empty { display: none; }

/* ---------- table ---------- */
.t3-show .sh-tbwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.t3-show .sh-tb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t3-show .sh-tb th, .t3-show .sh-tb td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.t3-show .sh-tb thead th { background: var(--soft); color: var(--ink); font-size: 12.5px; font-weight: 700; }
.t3-show .sh-tb thead th:first-child { border-radius: 8px 0 0 8px; }
.t3-show .sh-tb thead th:last-child { border-radius: 0 8px 8px 0; }
.t3-show .sh-tb td.num, .t3-show .sh-tb th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t3-show .sh-tb tr.top td { background: var(--top-bg); font-weight: 700; }
@media (max-width: 760px) { .t3-show .sh-tb { min-width: 520px; } }

.t3-show .sh-steps-list { margin: 0; padding-left: 20px; font-size: 13px; color: var(--sub); }
.t3-show .sh-steps-list li { margin-bottom: 5px; }
.t3-show .sh-steps-list b { color: var(--ink); }
.t3-show .sh-ops { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.t3-show .sh-ops button {
  border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px;
  padding: 8px 16px; font-size: 13px; cursor: pointer; font-family: inherit; transition: .15s;
}
.t3-show .sh-ops button:hover { border-color: var(--acc); color: var(--acc); transform: translateY(-1px); }

/* ---------- history ---------- */
.t3-show .sh-histcard { margin-top: 24px; }
.t3-show .sh-hist-head { display: flex; justify-content: space-between; align-items: center; }
.t3-show .sh-hist-head h2 { margin: 0; font-size: 17px; }
.t3-show .sh-hist-head button {
  border: 1px solid var(--line); background: none; color: var(--sub); border-radius: 999px;
  padding: 3px 12px; font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.t3-show .sh-hist-head button:hover { border-color: var(--bad); color: var(--bad); }
.t3-show .sh-hist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.t3-show .sh-hist-empty { margin: 0; font-size: 12.5px; color: var(--sub); }
.t3-show .sh-hitem {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; cursor: pointer;
  font-size: 13.5px; background: var(--bg); transition: .15s;
}
.t3-show .sh-hitem:hover { border-color: var(--acc); transform: translateY(-1px); }
.t3-show .sh-hitem small { color: var(--sub); font-size: 11.5px; }

@media print {
  .t3-show .sh-hero, .t3-show .sh-steps, .t3-show .sh-panel:not(#shPanel3), .t3-show .sh-empty, .t3-show .sh-ops, .t3-show .sh-nav, .t3-show .sh-histcard { display: none !important; }
  .t3-show { background: #fff; padding: 0; }
}
