/* 超跃酒店耗材产品目录样式，采用移动端优先的响应式布局。 */
:root {
  color-scheme: light;
  --navy: #12336f;
  --navy-deep: #0b2454;
  --orange: #ef6f22;
  --cyan: #159cb3;
  --green: #2f8b67;
  --ink: #172033;
  --muted: #687286;
  --line: #dce2ea;
  --surface: #ffffff;
  --surface-alt: #f4f7fa;
  --warm: #fff5ec;
  --shadow: 0 14px 36px rgba(23, 32, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 10px max(20px, calc((100% - 1180px) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 216px;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.brand-mark span {
  position: absolute;
  display: block;
  width: 27px;
  height: 9px;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.brand-mark span:nth-child(1) {
  top: 10px;
  left: 9px;
  background: var(--orange);
}

.brand-mark span:nth-child(2) {
  top: 17px;
  left: 5px;
  background: var(--cyan);
}

.brand-mark span:nth-child(3) {
  top: 17px;
  left: 15px;
  width: 12px;
  height: 12px;
  background: #f2b720;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav a {
  color: #3e485b;
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a:hover {
  color: var(--navy);
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  color: white;
  background: var(--navy);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.header-call svg,
.button svg {
  width: 18px;
  height: 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  min-height: calc(100vh - 72px);
  max-height: 760px;
  padding: 64px max(24px, calc((100% - 1180px) / 2));
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 630px;
  padding-right: 64px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.section-heading h2,
.contact h2,
.modal h2 {
  margin: 0;
  color: var(--navy-deep);
  letter-spacing: 0;
}

.hero h1 {
  max-width: 560px;
  font-size: 54px;
  line-height: 1.13;
}

.hero-description {
  max-width: 570px;
  margin: 24px 0 0;
  color: #4f5b6f;
  font-size: 18px;
}

.hero-actions,
.contact-actions,
.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 750;
}

.button:focus-visible,
.icon-button:focus-visible,
.category-tab:focus-visible,
.product-card button:focus-visible,
.quote-dock:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(21, 156, 179, 0.36);
  outline-offset: 2px;
}

.button-primary {
  color: white;
  background: var(--orange);
}

.button-primary:hover {
  background: #d85c10;
}

.button-secondary {
  color: var(--navy);
  background: white;
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: var(--navy);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  min-width: 0;
}

.hero-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--navy-deep);
  font-size: 16px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 520px;
  overflow: hidden;
  background: var(--navy);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: rgba(11, 36, 84, 0.75);
}

.hero-visual-caption {
  position: absolute;
  z-index: 1;
  right: 32px;
  bottom: 30px;
  left: 32px;
  color: white;
}

.hero-visual-caption span,
.hero-visual-caption strong {
  display: block;
}

.hero-visual-caption span {
  font-size: 13px;
}

.hero-visual-caption strong {
  margin-top: 4px;
  font-size: 24px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.category-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 74px;
  padding: 12px;
  color: #364258;
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.category-strip span:last-child {
  border-right: 0;
}

.category-strip svg {
  width: 20px;
  height: 20px;
  color: var(--orange);
}

.catalog,
.services {
  padding: 88px max(24px, calc((100% - 1180px) / 2));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
}

.section-heading h2,
.contact h2 {
  font-size: 34px;
  line-height: 1.25;
}

.section-heading > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  min-height: 38px;
  padding: 0 14px;
  color: #5a6476;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.category-tab[aria-selected="true"] {
  color: white;
  background: var(--navy);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(280px, 100%);
  min-height: 46px;
  padding: 0 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.search-box:focus-within {
  border-color: var(--cyan);
}

.search-box svg {
  width: 18px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card:hover {
  border-color: #b7c0ce;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 188px;
  padding: 24px;
  color: var(--product-color);
  background: var(--product-background);
  border-bottom: 1px solid var(--line);
}

.product-visual::before,
.product-visual::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  opacity: 0.24;
}

.product-visual::before {
  width: 120px;
  height: 82px;
  transform: rotate(-7deg);
}

.product-visual::after {
  width: 82px;
  height: 112px;
  transform: rotate(9deg);
}

.product-visual svg {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  stroke-width: 1.5;
}

.product-placeholder-label {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: #687286;
  font-size: 11px;
}

.product-content {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 20px;
}

.product-category {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.product-card h3 {
  margin: 5px 0 9px;
  color: var(--navy-deep);
  font-size: 20px;
}

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

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.product-meta span {
  padding: 3px 8px;
  color: #596376;
  background: var(--surface-alt);
  border: 1px solid #e4e8ee;
  border-radius: 4px;
  font-size: 11px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}

.product-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.detail-button {
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
}

.add-button {
  color: white;
  background: var(--navy);
  border: 1px solid var(--navy);
}

.add-button.is-added {
  color: var(--green);
  background: #eef9f4;
  border-color: #b7ddcc;
}

.product-actions svg {
  width: 16px;
  height: 16px;
}

.catalog-empty {
  margin: 40px 0 0;
  color: var(--muted);
  text-align: center;
}

.services {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.qr-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 64px max(24px, calc((100% - 1180px) / 2));
  background: var(--warm);
  border-bottom: 1px solid var(--line);
}

.qr-panel h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 32px;
  line-height: 1.25;
}

.qr-panel p:not(.eyebrow) {
  max-width: 540px;
  margin: 12px 0 0;
  color: var(--muted);
}

.qr-code-wrap {
  display: grid;
  justify-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 14px;
  background: white;
  border: 1px solid #f0d7c5;
}

.qr-code-wrap img {
  width: 156px;
  height: 156px;
}

.qr-code-wrap span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-grid article {
  min-width: 0;
  padding: 32px;
  background: white;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid svg {
  width: 28px;
  height: 28px;
  color: var(--orange);
}

.service-grid h3 {
  margin: 18px 0 8px;
  color: var(--navy-deep);
  font-size: 19px;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 64px max(24px, calc((100% - 1180px) / 2));
  color: white;
  background: var(--navy-deep);
}

.contact h2 {
  color: white;
}

.contact p:not(.eyebrow) {
  max-width: 680px;
  margin: 14px 0 0;
  color: #ced8ec;
}

.eyebrow-light {
  color: #7ad2dc;
}

.contact-actions {
  flex: 0 0 auto;
}

.button-light {
  color: var(--navy-deep);
  background: white;
}

.button-outline-light {
  color: white;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.48);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 76px;
  padding: 20px 24px;
  color: #6f7888;
  background: white;
  font-size: 12px;
}

.site-footer strong {
  color: var(--navy);
}

.quote-dock {
  position: fixed;
  z-index: 35;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  color: white;
  background: var(--orange);
  border: 0;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(136, 61, 17, 0.28);
  cursor: pointer;
  font-weight: 800;
}

.quote-dock svg {
  width: 19px;
  height: 19px;
}

.quote-dock b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  color: var(--orange);
  background: white;
  border-radius: 50%;
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  background: rgba(14, 25, 45, 0.56);
}

.modal {
  position: fixed;
  z-index: 51;
  top: 50%;
  left: 50%;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(12, 23, 42, 0.3);
  transform: translate(-50%, -50%);
}

.modal > p:not(.eyebrow) {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #4f5b6f;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.detail-specs div {
  padding: 12px;
  background: var(--surface-alt);
  border-left: 3px solid var(--cyan);
}

.detail-specs small,
.detail-specs strong {
  display: block;
}

.detail-specs small {
  color: var(--muted);
}

.detail-specs strong {
  margin-top: 3px;
  color: var(--navy-deep);
  font-size: 14px;
}

.quote-list {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.quote-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.quote-item span {
  min-width: 0;
  font-weight: 700;
}

.quote-item button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: #a53f35;
  background: white;
  border: 1px solid #edc4bf;
  border-radius: 50%;
  cursor: pointer;
}

.quote-item button svg {
  width: 16px;
  vertical-align: middle;
}

.quote-empty {
  margin: 22px 0;
  padding: 22px;
  color: var(--muted);
  background: var(--surface-alt);
  text-align: center;
}

.quote-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.toast {
  position: fixed;
  z-index: 60;
  bottom: 86px;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  color: white;
  background: #1f2a3d;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 64px;
  }

  .desktop-nav {
    display: none;
  }

  .header-call {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
    padding-top: 48px;
  }

  .hero-copy {
    max-width: none;
    padding: 0 0 42px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-strip span:nth-child(3) {
    border-right: 0;
  }

  .category-strip span:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .category-tabs,
  .search-box {
    width: 100%;
  }

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

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

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

@media (max-width: 620px) {
  .site-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-call span {
    display: none;
  }

  .header-call {
    width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 50%;
  }

  .hero {
    padding: 38px 18px 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-description {
    font-size: 16px;
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    gap: 10px;
  }

  .hero-facts dd {
    font-size: 14px;
  }

  .hero-visual {
    min-height: 380px;
    margin: 0 -18px;
  }

  .hero-visual-caption {
    right: 20px;
    bottom: 22px;
    left: 20px;
  }

  .hero-visual-caption strong {
    font-size: 20px;
  }

  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-strip span,
  .category-strip span:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .category-strip span:nth-child(even) {
    border-right: 0;
  }

  .category-strip span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .category-strip span:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .catalog,
  .services {
    padding: 64px 18px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-heading h2,
  .contact h2 {
    font-size: 28px;
  }

  .section-heading > p {
    max-width: none;
    text-align: left;
  }

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

  .product-visual {
    min-height: 176px;
  }

  .contact {
    padding: 54px 18px;
  }

  .qr-panel {
    align-items: center;
    padding: 54px 18px;
    text-align: center;
  }

  .qr-panel p:not(.eyebrow) {
    max-width: none;
  }

  .contact-actions {
    display: grid;
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .quote-dock {
    right: 14px;
    bottom: 14px;
  }

  .modal {
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: 86vh;
    padding: 28px 20px 22px;
    border-radius: 8px 8px 0 0;
    transform: translate(-50%, 0);
  }

  .detail-specs {
    grid-template-columns: 1fr;
  }

  .quote-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
