:root {
  --bg: #eef4f5;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #dce7ea;
  --teal: #0f766e;
  --teal-dark: #0a5d58;
  --teal-soft: #e6f4f1;
  --red: #b42318;
  --red-soft: #fff1ee;
  --amber: #b7791f;
  --amber-soft: #fff5dd;
  --shadow: 0 18px 42px rgba(18, 37, 48, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 36%),
    linear-gradient(180deg, #f8fbfb 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 16px clamp(12px, 3vw, 28px) 34px;
}

.hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 20px;
  align-items: stretch;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.98) 0%, rgba(231, 247, 244, 0.92) 48%, rgba(255, 255, 255, 0.35) 100%);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 5vw, 54px);
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

h1 {
  max-width: 11em;
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.18;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.3;
}

.hero-text {
  max-width: 34em;
  margin-bottom: 18px;
  color: #3f4f63;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.call-btn,
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 11px 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.call-btn {
  border: 1px solid rgba(180, 35, 24, 0.18);
  color: var(--red);
  background: #ffffff;
}

.call-btn.urgent {
  color: #ffffff;
  background: var(--red);
}

.primary-btn {
  border: 1px solid var(--teal);
  color: #ffffff;
  background: var(--teal);
}

.primary-btn:hover {
  background: var(--teal-dark);
}

.ghost-btn {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.hero picture {
  min-height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center right;
  display: block;
}

.nav-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 12px 0;
  padding: 5px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(18, 37, 48, 0.08);
  backdrop-filter: blur(16px);
}

.tab {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  color: #ffffff;
  background: var(--teal);
}

main {
  display: grid;
  gap: 14px;
}

.panel {
  display: none;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(18, 37, 48, 0.08);
}

.panel.active {
  display: block;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.step-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
}

.step-card {
  text-align: left;
  cursor: pointer;
  min-height: 218px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  scroll-snap-align: start;
}

.step-card:hover {
  border-color: rgba(15, 118, 110, 0.36);
  box-shadow: 0 10px 24px rgba(18, 37, 48, 0.08);
}

.step-card.priority {
  border-color: #f0b6af;
  background: var(--red-soft);
}

.step-num {
  display: inline-grid;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--teal);
  font-weight: 900;
}

.step-card.priority .step-num {
  background: var(--red);
}

.step-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.step-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.detail-card {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  background: #f7fbfa;
}

.detail-card h3 {
  margin-bottom: 8px;
}

.detail-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.detail-card ol,
.info-strip ol {
  margin: 0;
  padding-left: 1.25em;
}

.detail-card li,
.info-strip li {
  margin: 4px 0;
}

.visual-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, var(--teal-soft) 100%);
}

.visual-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.visual-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.info-strip {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 14px;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  background: var(--amber-soft);
  color: #4f3a16;
}

.status-pill {
  min-width: 148px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: #f8fafc;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.status-pill.good {
  border-color: #a7dbc6;
  color: #166534;
  background: #e8f5ef;
}

.status-pill.warn {
  border-color: #f2cf8c;
  color: #8a570e;
  background: var(--amber-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #253142;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #ffffff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.2);
  border-color: var(--teal);
}

.wide,
.form-actions {
  grid-column: 1 / -1;
}

.file-input span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.result-box {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #a7dbc6;
  border-radius: var(--radius);
  background: #e8f5ef;
}

.result-box.subtle {
  border-color: var(--line);
  background: #f8fafc;
}

.sources {
  margin: 16px 4px 0;
  color: var(--muted);
  font-size: 12px;
}

.bottom-actions {
  display: none;
}

@media (max-width: 760px) {
  body {
    background: #eef4f5;
  }

  .app-shell {
    padding: 0 10px 24px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    margin: 0 -10px;
    border: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: none;
    background: #dff2ee;
  }

  .hero-copy {
    min-height: 330px;
    padding: 24px 18px 22px;
    justify-content: flex-end;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(10, 93, 88, 0.16) 0%, rgba(10, 93, 88, 0.84) 100%);
  }

  .hero picture {
    position: absolute;
    inset: 0;
  }

  .hero-image {
    min-height: 330px;
    object-position: 58% center;
  }

  .hero .eyebrow,
  .hero-text {
    color: rgba(255, 255, 255, 0.92);
  }

  h1 {
    max-width: 9em;
    font-size: 32px;
  }

  .hero-text {
    font-size: 14px;
  }

  .hero-actions {
    gap: 8px;
  }

  .call-btn {
    min-height: 38px;
    padding: 9px 12px;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
  }

  .call-btn.urgent {
    background: var(--red);
  }

  .nav-tabs {
    top: 8px;
    margin: 10px 0;
  }

  .panel {
    padding: 16px;
  }

  .section-head,
  .section-head.compact {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .desktop-only {
    display: none;
  }

  .step-track {
    grid-template-columns: repeat(5, 78%);
    margin-right: -16px;
    padding-right: 16px;
  }

  .step-card {
    min-height: 200px;
  }

  .visual-card {
    grid-template-columns: 1fr;
  }

  .visual-card img {
    aspect-ratio: 16 / 8.5;
  }

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

  .bottom-actions {
    position: static;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8px;
    margin: 0 10px 12px;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
  }

  .bottom-actions button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: #ffffff;
    font-weight: 800;
  }

  .bottom-actions .primary {
    color: #ffffff;
    border-color: var(--teal);
    background: var(--teal);
  }
}
