/* 停车费账 · 交通标线视觉
   沥青灰底、荧光黄标线、白色车位框、P 字牌、斜线禁停纹理 */

:root {
  --asphalt: #3A3F44;
  --asphalt-deep: #2F3438;
  --asphalt-soft: #454B50;
  --yellow: #F5E663;
  --white: #F7F7F2;
  --chalk: #DDE0DA;
  --muted: #A9B0B4;
  --line: rgba(255, 255, 255, 0.22);
  --hatch: rgba(245, 230, 99, 0.16);
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }

html { background: var(--asphalt); }

body {
  margin: 0;
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.035) 0 1px, transparent 1.5px) 0 0 / 26px 26px,
    radial-gradient(circle at 72% 68%, rgba(0,0,0,0.12) 0 1px, transparent 1.5px) 0 0 / 31px 31px,
    var(--asphalt);
}

/* 道闸：黄黑斜线 */
.gate {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  overflow: hidden;
  background: var(--asphalt-deep);
  border-bottom: 3px solid var(--yellow);
}
.gate .stripe {
  flex: 1;
  height: 12px;
  background: repeating-linear-gradient(45deg, var(--yellow) 0 9px, var(--asphalt-deep) 9px 18px);
  opacity: 0.85;
}
.gate-label {
  font: 10px/1 var(--mono);
  letter-spacing: 0.26em;
  color: var(--yellow);
  white-space: nowrap;
}

main { max-width: 820px; margin: 0 auto; padding: 0 22px 100px; }

/* P 字牌 */
.sign-row { display: flex; align-items: center; gap: 18px; }
.psign {
  flex: none;
  width: 62px; height: 62px;
  background: var(--yellow);
  border: 4px solid var(--white);
  color: #1E2225;
  display: grid; place-items: center;
  box-shadow: 7px 7px 0 rgba(0,0,0,0.28);
  position: relative;
}
.psign span { font: 900 40px/1 var(--sans); letter-spacing: -0.04em; }
.psign::after {
  content: '';
  position: absolute;
  left: 50%; top: 100%;
  width: 8px; height: 22px;
  transform: translateX(-50%);
  background: var(--white);
}

.eyebrow { font: 10px/1 var(--mono); letter-spacing: 0.34em; color: var(--yellow); margin: 0 0 12px; }
h1 { font-size: clamp(40px, 7vw, 60px); line-height: 1.05; letter-spacing: 0.08em; margin: 0; font-weight: 900; }
.intro { padding: 44px 0 10px; position: relative; }
.intro::after {
  content: '';
  display: block;
  height: 16px;
  width: min(100%, 640px);
  margin-top: 30px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 26px, transparent 26px 44px);
  opacity: 0.9;
}
.lede { color: var(--chalk); margin: 22px 0 0; max-width: 640px; }

/* 车位框：白线 + 黄角标 */
.bays { margin-top: 42px; display: grid; gap: 22px; }
.bay {
  position: relative;
  padding: 22px 24px 24px;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.12);
}
.bay::before, .bay::after {
  content: ''; position: absolute; width: 16px; height: 16px; pointer-events: none;
}
.bay::before { top: -3px; left: -3px; border-top: 4px solid var(--yellow); border-left: 4px solid var(--yellow); }
.bay::after { bottom: -3px; right: -3px; border-bottom: 4px solid var(--yellow); border-right: 4px solid var(--yellow); }
.bay-title { margin: 0 0 14px; font-size: 15px; font-weight: 800; letter-spacing: 0.14em; display: flex; align-items: center; gap: 12px; }
.bay-no {
  font: 700 12px/1 var(--mono);
  color: #1E2225; background: var(--yellow);
  padding: 5px 7px; letter-spacing: 0.05em;
}
.hint { margin: -4px 0 16px; font-size: 12px; color: var(--muted); max-width: 640px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.line { display: flex; align-items: baseline; gap: 10px; position: relative; }
.line.full { display: block; }
.line > span { flex: none; font-size: 13px; color: var(--muted); min-width: 6em; }
.line input, .line textarea {
  flex: 1; min-width: 0;
  border: none; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--white);
  padding: 6px 2px; font: 15px/1.7 var(--mono);
  outline: none;
}
.line textarea {
  display: block; width: 100%; margin-top: 8px;
  border: 1px solid var(--line);
  padding: 12px 14px; resize: vertical;
  font: 13px/1.85 var(--mono);
}
.line input:focus, .line textarea:focus { border-color: var(--yellow); }
.line textarea::placeholder, .line input::placeholder { color: #7D858A; }
.line em { font-style: normal; font-size: 11px; color: var(--muted); flex: none; }

.actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
button, a.ghost { font-family: var(--sans); cursor: pointer; }
.solid {
  background: var(--yellow); color: #1E2225;
  border: 2px solid var(--yellow);
  padding: 12px 28px; font-size: 14px; font-weight: 800; letter-spacing: 0.08em;
}
.solid:hover { background: var(--white); border-color: var(--white); }
.solid:disabled { opacity: 0.5; cursor: wait; }
.ghost {
  background: transparent; color: var(--white);
  border: 2px solid var(--line);
  padding: 12px 22px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  text-decoration: none; display: inline-block;
}
.ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.note { font-size: 12px; color: var(--muted); margin-top: 22px; max-width: 640px; }

/* 读数区 */
.section-head { margin-top: 56px; }
.section-head.tight { margin-top: 46px; }
.section-head h2 { font-size: 24px; letter-spacing: 0.08em; margin: 0 0 8px; }

.meters {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); margin-top: 28px;
}
.meter {
  background: var(--asphalt-deep); padding: 30px 14px 14px;
  position: relative; overflow: hidden;
}
.meter::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px;
  background: repeating-linear-gradient(45deg, var(--hatch) 0 5px, transparent 5px 11px);
  border-bottom: 1px solid var(--line);
}
.meter b { display: block; font: 800 25px/1.2 var(--mono); color: var(--yellow); margin-bottom: 4px; overflow-wrap: anywhere; }
.meter small { font: 12px/1 var(--mono); color: var(--muted); margin-left: 3px; }
.meter span { font-size: 12px; color: var(--chalk); }

.grade-row { display: flex; gap: 28px; align-items: flex-start; margin-top: 28px; }
.grade {
  flex: none; width: 96px; height: 96px;
  border: 3px solid var(--yellow); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--asphalt-deep);
}
.grade span { font: 900 38px/1 var(--mono); color: var(--yellow); }
.grade em { font-style: normal; font-size: 10px; color: var(--muted); letter-spacing: 0.16em; }
.notes { margin: 0; padding: 0; list-style: none; color: var(--chalk); font-size: 13px; max-width: 640px; }
.notes li { padding-left: 20px; position: relative; margin-bottom: 8px; }
.notes li::before { content: ''; position: absolute; left: 2px; top: 0.75em; width: 8px; height: 8px; background: var(--yellow); }

.table-wrap { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; font: 10px/1 var(--mono); letter-spacing: 0.18em;
  color: var(--yellow); border-bottom: 2px solid var(--yellow);
  padding: 10px; white-space: nowrap;
  background: repeating-linear-gradient(45deg, var(--hatch) 0 6px, transparent 6px 13px);
}
td { border-bottom: 1px dashed var(--line); padding: 10px; vertical-align: top; }
td.id { font: 11px/1.9 var(--mono); color: var(--yellow); white-space: nowrap; }
td.num { font-family: var(--mono); white-space: nowrap; color: var(--white); }

/* 报告区 */
.case-bar {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; margin-top: 44px; padding-bottom: 12px;
  border-bottom: 3px solid var(--yellow); flex-wrap: wrap;
}
.code { font: 12px/1.6 var(--mono); color: var(--muted); }
.state { font: 11px/1 var(--mono); letter-spacing: 0.16em; padding: 5px 10px; border: 1px solid var(--line); }
.state.paid { border-color: var(--yellow); color: var(--yellow); }

.report-head { margin-top: 32px; position: relative; padding-left: 22px; }
.report-head::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 8px; background: var(--yellow); }
.report-head h2 { font-size: 28px; letter-spacing: 0.06em; margin: 0 0 10px; }
.report-head p { margin: 0; color: var(--chalk); }
.report-meta { display: flex; gap: 16px; flex-wrap: wrap; font: 11px/1.8 var(--mono); color: var(--muted); margin-top: 14px; }

.chapter { margin-top: 38px; position: relative; padding-left: 46px; }
.chapter::before {
  content: ''; position: absolute; left: 13px; top: 6px; bottom: -20px;
  border-left: 2px dashed var(--line);
}
.chapter:last-of-type::before { bottom: auto; height: 100%; }
.chapter::after {
  content: 'P'; position: absolute; left: 4px; top: 5px;
  width: 20px; height: 20px; background: var(--yellow); color: #1E2225;
  font: 800 12px/20px var(--mono); text-align: center;
}
.chapter h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: 0.08em; }
.chapter h3 small { font: 11px/1 var(--mono); color: var(--yellow); margin-right: 10px; }
.chapter p { margin: 0; max-width: 640px; color: var(--chalk); }
.fact-refs { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.fact-refs span { font: 10px/1 var(--mono); letter-spacing: 0.12em; border: 1px solid var(--line); padding: 4px 8px; color: var(--yellow); }

.block-title {
  margin: 46px 0 16px; font-weight: 800; font-size: 15px; letter-spacing: 0.14em;
  display: flex; align-items: center; gap: 12px;
}
.block-title::before { content: ''; width: 12px; height: 12px; background: var(--yellow); flex: none; }
.block-title::after { content: ''; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--yellow) 0 12px, transparent 12px 22px); opacity: 0.7; }

.qa { margin: 0 0 18px; border-left: 5px solid var(--yellow); background: rgba(0,0,0,0.16); padding: 14px 18px; }
.qa .question { margin: 0; font-weight: 800; font-size: 14px; }
.qa .concern { margin: 6px 0 10px; font-size: 12px; color: var(--yellow); }
.qa .answer { margin: 0; font-size: 13px; color: var(--chalk); max-width: 640px; }

.flow { list-style: none; margin: 0; padding: 0; position: relative; }
.flow li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 0 0 18px 30px; position: relative;
}
.flow li::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: -2px; border-left: 2px dashed var(--line); }
.flow li:last-child::before { display: none; }
.flow li::after { content: ''; position: absolute; left: 1px; top: 8px; width: 13px; height: 13px; background: var(--asphalt-deep); border: 2px solid var(--yellow); }
.flow .when { flex: none; font: 800 12px/2 var(--mono); color: var(--yellow); min-width: 5.5em; }
.flow .what { max-width: 640px; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 10px 2px 10px 24px; border-bottom: 1px dashed var(--line);
  font-size: 13px; position: relative;
}
.checklist li::before { content: ''; position: absolute; left: 2px; top: 1.05em; width: 11px; height: 11px; border: 2px solid var(--yellow); }
.checklist li span { font: 11px/2 var(--mono); color: var(--muted); flex: none; }

.paywall {
  border: 2px solid var(--yellow); background: rgba(0,0,0,0.2);
  padding: 26px 28px; margin-top: 28px; position: relative;
}
.paywall::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(45deg, var(--yellow) 0 9px, var(--asphalt-deep) 9px 18px);
}
.paywall h3 { margin: 10px 0 6px; letter-spacing: 0.12em; }
.paywall p { font-size: 13px; color: var(--muted); }
.price-line {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 14px 0; border-top: 1px dashed var(--line); flex-wrap: wrap;
}
.price-line b { font: 800 20px/1 var(--mono); color: var(--yellow); }
.price-line small { font: 12px/1 var(--mono); color: var(--muted); }
.price-line div { display: flex; align-items: center; gap: 16px; }
.pay-links { margin-top: 40px; }
.pay-links a { color: var(--yellow); font-size: 13px; }

.order-box, .result-box { margin-top: 30px; border-top: 2px solid var(--yellow); padding-top: 18px; font-size: 13px; color: var(--muted); }
.order-box b { font-family: var(--mono); color: var(--white); }

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  background: var(--yellow); color: #1E2225;
  padding: 11px 22px; font-size: 13px; font-weight: 700;
  max-width: min(86vw, 520px); z-index: 9;
}

@media (max-width: 700px) {
  .fields { grid-template-columns: 1fr; }
  .meters { grid-template-columns: repeat(2, 1fr); }
  .grade-row { flex-direction: column; }
  .line > span { min-width: 5em; }
}
