.panel-tool-page {
  background: #f6f8fb;
  color: #182434;
  font-family: Inter, Arial, "Microsoft YaHei", "微软雅黑", sans-serif;
  overflow-x: hidden;
}

.panel-tool-page button,
.panel-tool-page input,
.panel-tool-page select,
.panel-tool-page textarea {
  font-family: inherit;
}

.panel-tool-page [hidden] {
  display: none !important;
}

.panel-tool-page .section {
  content-visibility: visible;
  contain-intrinsic-size: none;
}

.panel-header-search {
  grid-template-columns: minmax(220px, 1fr) 104px;
}

.panel-tool-hero {
  background: #0d315c;
  color: #fff;
}

.panel-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px;
  align-items: center;
  padding: 24px 0 30px;
}

.panel-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 16px;
  font-size: 14px;
}

.panel-breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.panel-kicker {
  display: inline-block;
  color: #f4be20;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.panel-tool-hero h1 {
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

.panel-tool-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 650;
}

.panel-hero-actions,
.panel-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.panel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.panel-btn--accent,
.panel-btn--primary {
  border-color: #f4be20;
  background: #f4be20;
  color: #102235;
}

.panel-btn--light,
.panel-btn--secondary {
  border-color: #d8e3ef;
  background: #fff;
  color: #173d67;
}

.panel-btn--green {
  border-color: #15935d;
  background: #15935d;
  color: #fff;
}

.panel-btn:hover,
.panel-btn:focus-visible {
  filter: brightness(.97);
  outline: none;
}

.panel-hero-media {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #d9e3ea;
  box-shadow: 0 20px 42px rgba(0, 0, 0, .22);
}

.panel-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.16 / 1;
  object-fit: cover;
}

.panel-hero-media figcaption {
  padding: 12px 14px;
  background: #fff;
  color: #284155;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}

.panel-tool-core {
  padding-top: 24px;
}

.panel-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 24px;
  align-items: start;
}

.panel-card {
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(13, 41, 68, .08);
}

.panel-form,
.panel-results {
  padding: 24px;
}

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

.panel-card-head h2,
.panel-results h2 {
  margin: 0;
  color: #143150;
  font-size: 24px;
  letter-spacing: 0;
}

.panel-card-head p,
.panel-section-note,
.panel-results > p {
  margin: 8px 0 0;
  color: #53687c;
  font-size: 14px;
  line-height: 1.55;
}

.panel-link-btn {
  min-height: 38px;
  border: 1px solid #d4e0ec;
  border-radius: 7px;
  background: #f8fafc;
  color: #173d67;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}

.panel-alert {
  border: 1px solid #efb5a6;
  border-radius: 8px;
  background: #fff3ef;
  color: #8b2c16;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-weight: 800;
}

.panel-form-section {
  padding-top: 18px;
  border-top: 1px solid #e5ecf3;
  margin-top: 18px;
}

.panel-form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
  margin-top: 0;
}

.panel-form-section h3,
.panel-advanced summary {
  margin: 0;
  color: #183247;
  font-size: 17px;
  font-weight: 900;
}

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

.panel-field-wide {
  grid-column: 1 / -1;
}

.panel-field-grid label {
  display: grid;
  gap: 7px;
}

.panel-check {
  min-height: 44px;
  align-content: center;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #cbd8e6;
  border-radius: 7px;
  background: #fff;
}

.panel-check input {
  width: 18px;
  height: 18px;
}

.panel-field-grid span {
  color: #263c50;
  font-size: 13px;
  font-weight: 900;
}

.panel-field-grid em {
  color: #708193;
  font-style: normal;
  font-weight: 800;
}

.panel-field-grid small {
  color: #66798b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.panel-field-grid input,
.panel-field-grid select,
.panel-summary-card textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd8e6;
  border-radius: 7px;
  background: #fff;
  color: #172233;
  font-size: 15px;
}

.panel-field-grid input,
.panel-field-grid select {
  min-height: 44px;
  padding: 0 12px;
}

.panel-field-grid input:focus,
.panel-field-grid select:focus,
.panel-summary-card textarea:focus {
  outline: 3px solid rgba(16, 105, 75, .18);
  border-color: #10694b;
}

.panel-advanced {
  margin-top: 18px;
  border-top: 1px solid #e5ecf3;
  padding-top: 18px;
}

.panel-advanced summary {
  cursor: pointer;
}

.panel-calc-btn {
  width: 100%;
  margin-top: 22px;
}

.panel-results {
  position: sticky;
  top: 16px;
}

.panel-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.panel-result-item {
  min-height: 96px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #f7fafc;
  padding: 14px;
}

.panel-result-item span {
  display: block;
  color: #5d7082;
  font-size: 13px;
  font-weight: 900;
}

.panel-result-item strong {
  display: block;
  margin-top: 10px;
  color: #102235;
  font-size: 22px;
  line-height: 1.12;
}

.panel-warning {
  margin-top: 14px;
  border-left: 4px solid #f4be20;
  background: #fff8dc;
  color: #5d490b;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
}

.panel-assumptions,
.panel-output-group {
  margin-top: 16px;
}

.panel-assumptions h3,
.panel-output-group h3 {
  margin: 0 0 10px;
  color: #1b3448;
  font-size: 17px;
}

.panel-assumptions dl,
.panel-output-group dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.panel-assumptions div,
.panel-output-group div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e7edf3;
  padding-bottom: 8px;
}

.panel-assumptions dt,
.panel-output-group dt {
  color: #65778a;
  font-weight: 800;
}

.panel-assumptions dd,
.panel-output-group dd {
  margin: 0;
  color: #172233;
  font-weight: 900;
  text-align: right;
}

.panel-summary-card {
  margin-top: 16px;
}

.panel-summary-card label {
  display: block;
  color: #1d344b;
  font-weight: 900;
  margin-bottom: 8px;
}

.panel-summary-card textarea {
  min-height: 230px;
  resize: vertical;
  padding: 12px;
  color: #172233;
  font-size: 13px;
  line-height: 1.5;
}

.panel-copy-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #0b6a50;
  font-weight: 900;
}

.panel-tool-support {
  padding-top: 16px;
}

.panel-support-grid,
.panel-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.panel-support-grid article,
.panel-faq details {
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.panel-support-grid h2,
.panel-faq h2 {
  margin: 0 0 10px;
  color: #183247;
  font-size: 22px;
}

.panel-support-grid p,
.panel-faq p {
  margin: 0;
  color: #4f6275;
  line-height: 1.62;
}

.panel-link-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.panel-link-list a {
  display: block;
  min-height: 38px;
  border: 1px solid #d8e4f1;
  border-radius: 7px;
  background: #f8fbff;
  color: #0f5f91;
  font-weight: 900;
  text-decoration: none;
  padding: 9px 12px;
}

.panel-faq {
  padding-top: 16px;
}

.panel-faq summary {
  color: #183247;
  font-weight: 900;
  cursor: pointer;
}

.panel-faq p {
  margin-top: 10px;
}

@media (max-width: 1100px) {
  .panel-hero-grid,
  .panel-tool-grid {
    grid-template-columns: 1fr;
  }

  .panel-results {
    position: static;
  }
}

@media (max-width: 820px) {
  .panel-support-grid,
  .panel-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .panel-tool-page .brand-strip {
    gap: 12px;
  }

  .panel-header-search {
    grid-template-columns: minmax(0, 1fr) 74px;
    width: 100%;
  }

  .panel-header-search input {
    padding-inline: 10px;
  }

  .panel-header-search button {
    font-size: 13px;
  }

  .panel-tool-page .header-actions {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .panel-tool-page .catalog-button,
  .panel-tool-page .rfq-button {
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .panel-hero-grid {
    padding: 18px 0 24px;
  }

  .panel-tool-hero h1 {
    max-width: 100%;
    font-size: 31px;
    overflow-wrap: anywhere;
  }

  .panel-tool-hero p {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .panel-breadcrumb {
    overflow-wrap: anywhere;
  }

  .panel-form,
  .panel-results {
    padding: 18px;
  }

  .panel-card-head,
  .panel-field-grid,
  .panel-result-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel-result-actions .panel-btn,
  .panel-hero-actions .panel-btn {
    width: 100%;
  }

  .panel-assumptions div,
  .panel-output-group div {
    display: grid;
  }

  .panel-assumptions dd,
  .panel-output-group dd {
    text-align: left;
  }
}
