:root {
  --bg: #070707;
  --panel: #111113;
  --panel-strong: #18181b;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --red: #d71920;
  --red-deep: #8f1016;
  --green: #18c47f;
  --amber: #f59e0b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(215, 25, 32, 0.16), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(215, 25, 32, 0.18), transparent 28%),
    var(--bg);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.hero {
  min-height: 56vh;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 42%),
    linear-gradient(90deg, rgba(215, 25, 32, 0.12), transparent 44%),
    #0a0a0b;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red), transparent 70%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  padding: 7px 12px;
  background: var(--red);
  color: white;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.brand-divider {
  width: 1px;
  height: 26px;
  background: var(--line);
}

.brand-subtitle,
.system-state,
.eyebrow,
.muted,
dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.brand-subtitle,
.eyebrow {
  font-weight: 700;
}

.system-state {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
  padding: 76px 58px 72px;
}

.intro {
  width: 100%;
}

.eyebrow {
  color: #ff4a50;
  margin: 0 0 16px;
}

h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

.summary {
  max-width: 540px;
  margin: 24px 0 0;
  color: #d4d4d8;
  font-size: 18px;
  line-height: 1.7;
}

.query-panel,
.result-card {
  border: 1px solid var(--line);
  background: rgba(17, 17, 19, 0.88);
}

.query-panel {
  width: min(100%, 920px);
  padding: 24px;
}

.query-panel label {
  display: block;
  margin-bottom: 12px;
  color: white;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 12px;
}

input {
  min-width: 0;
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #070707;
  color: white;
  padding: 0 14px;
  outline: none;
}

input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.18);
}

button {
  height: 48px;
  border: 0;
  background: var(--red);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: #ef2028;
}

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.content-grid {
  display: block;
  margin-top: 22px;
}

.result-card {
  min-height: 330px;
  padding: 28px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-title span {
  width: 8px;
  height: 30px;
  background: var(--red);
}

h2,
h3 {
  margin: 0;
}

.result-empty {
  display: grid;
  place-content: center;
  min-height: 220px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: var(--muted);
}

.result-empty strong {
  color: white;
  font-size: 22px;
}

.machine-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.machine-head h3 {
  margin-top: 8px;
  font-size: 28px;
}

.badge {
  padding: 8px 12px;
  background: rgba(24, 196, 127, 0.12);
  color: #77f0bd;
  border: 1px solid rgba(24, 196, 127, 0.28);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge.danger {
  background: rgba(215, 25, 32, 0.16);
  color: #ff8085;
  border-color: rgba(215, 25, 32, 0.45);
}

.badge.safe {
  background: rgba(24, 196, 127, 0.12);
  color: #77f0bd;
  border-color: rgba(24, 196, 127, 0.28);
}

.notice {
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: #e4e4e7;
  line-height: 1.65;
}

.notice.danger {
  border-color: rgba(215, 25, 32, 0.45);
  background: rgba(215, 25, 32, 0.12);
  color: #ffd4d6;
}

.notice.safe {
  border-color: rgba(24, 196, 127, 0.34);
  background: rgba(24, 196, 127, 0.1);
  color: #d6ffe9;
}

.booking-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 16px;
  padding: 0 18px;
  background: var(--red);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.booking-link:hover {
  background: var(--red-dark);
}

.hidden {
  display: none;
}

@media (max-width: 860px) {
  body {
    background:
      linear-gradient(145deg, rgba(215, 25, 32, 0.14), transparent 42%),
      var(--bg);
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 52px 26px 58px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .hero-grid {
    gap: 24px;
    padding: 34px 18px 44px;
  }

  .topbar,
  .query-panel,
  .result-card {
    padding: 18px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .summary {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.65;
  }

  .brand {
    width: 100%;
    gap: 10px;
  }

  .brand-mark {
    font-size: 18px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .system-state {
    font-size: 11px;
  }

  .query-panel {
    margin-inline: -2px;
  }

  input,
  button {
    height: 46px;
  }

  .content-grid {
    margin-top: 14px;
  }

  .result-card {
    min-height: 280px;
  }

  .result-empty {
    min-height: 180px;
    padding: 16px;
  }

  .notice {
    padding: 14px;
    font-size: 14px;
  }

  .machine-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .machine-head h3 {
    font-size: 22px;
    line-height: 1.25;
  }

}

@media (max-width: 360px) {
  .shell {
    width: min(100% - 14px, 1180px);
  }

  .topbar,
  .hero-grid,
  .query-panel,
  .result-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: 30px;
  }
}
