:root {
  --ink: #1f2724;
  --muted: #66716d;
  --line: #dfe6e2;
  --paper: #fbfaf6;
  --white: #ffffff;
  --teal: #156b63;
  --teal-dark: #0f514b;
  --mint: #dbeee8;
  --clay: #c7855c;
  --stone: #eee9df;
  --shadow: 0 22px 60px rgba(31, 39, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 10px 34px rgba(31, 39, 36, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 50px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: currentColor;
  font-size: 11px;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.5vw, 34px);
  color: currentColor;
  font-size: 15px;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover::after {
  opacity: 0.75;
  transform: translateY(0);
}

.nav-cta,
.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-cta {
  padding: 0 18px;
  border: 1px solid currentColor;
}

.primary-action {
  padding: 0 24px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: var(--white);
}

.secondary-action {
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.nav-cta:hover,
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

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

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.menu-toggle svg,
.intro-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(19, 39, 35, 0.82) 0%, rgba(19, 39, 35, 0.58) 33%, rgba(19, 39, 35, 0.06) 68%),
    linear-gradient(0deg, rgba(18, 26, 23, 0.22), rgba(18, 26, 23, 0.06));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  padding: clamp(118px, 16vh, 176px) 0 64px clamp(18px, 6vw, 84px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 580px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.6vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  width: min(560px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 44px 0 0;
}

.hero-metrics div {
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  padding-left: 18px;
}

.hero-metrics dt {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 850;
  line-height: 1;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.intro-item {
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--white);
  color: var(--teal-dark);
  font-size: 17px;
  font-weight: 800;
}

.section {
  padding: clamp(70px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.align-left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact-section p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.product-search {
  width: min(560px, 100%);
  margin: 0 auto 24px;
}

.product-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.product-search-control {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(31, 39, 36, 0.05);
}

.product-search input {
  min-width: 0;
  min-height: 48px;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 16px;
  background: transparent;
  color: var(--ink);
}

.product-search input::placeholder {
  color: #98a29e;
}

.product-search button {
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0 16px;
  background: var(--mint);
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 800;
}

.product-search button[hidden] {
  display: none;
}

.product-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 48px 20px;
  color: var(--muted);
  text-align: center;
}

.tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
}

.tab.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

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

.product-count {
  margin: -10px 0 18px;
  color: var(--muted);
  text-align: right;
  font-size: 14px;
  font-weight: 700;
}

.product-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.product-pagination[hidden] {
  display: none;
}

.product-pagination button {
  min-width: 92px;
  min-height: 42px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--teal);
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.product-pagination button:disabled {
  border-color: var(--line);
  background: var(--stone);
  color: var(--muted);
  cursor: not-allowed;
}

.product-pagination span {
  min-width: 86px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(31, 39, 36, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card[hidden] {
  display: none;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.product-visual {
  display: grid;
  position: relative;
  height: 214px;
  place-items: center;
  background: var(--stone);
}

.product-visual > span {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(31, 39, 36, 0.14);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.product-visual > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.product-visual > img:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: -3px;
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  padding: clamp(18px, 4vw, 48px);
  place-items: center;
  background: rgba(10, 14, 13, 0.9);
  backdrop-filter: blur(10px);
}

.image-lightbox[hidden] {
  display: none;
}

.lightbox-content {
  display: grid;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  margin: 0;
  gap: 12px;
  place-items: center;
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 52px);
  border-radius: 8px;
  object-fit: contain;
  background: #080a09;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-content figcaption {
  color: var(--white);
  text-align: center;
  font-weight: 800;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  padding: 0;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.product-card:hover .product-visual > img {
  transform: scale(1.035);
}

.product-visual.has-image::before,
.product-visual.has-image::after {
  display: none;
}

.product-visual::before,
.product-visual::after {
  position: absolute;
  content: "";
}

.product-visual::before {
  left: 50%;
  bottom: 42px;
  width: 62%;
  height: 58%;
  border: 10px solid rgba(255, 255, 255, 0.94);
  border-bottom-width: 18px;
  border-radius: 46% 46% 40% 40%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 22px 32px rgba(31, 39, 36, 0.14);
  transform: translateX(-50%);
}

.product-visual::after {
  left: 30%;
  right: 30%;
  bottom: 106px;
  height: 12px;
  border-radius: 999px;
  background: rgba(31, 39, 36, 0.16);
}

.pp-visual {
  background: linear-gradient(135deg, #dcece7, #f8f5ed);
}

.skin-visual {
  background: linear-gradient(135deg, #ece7de, #d9eee6);
}

.black-visual {
  background: linear-gradient(135deg, #303632, #b3aaa0);
}

.black-visual::before {
  border-color: rgba(18, 20, 19, 0.95);
  background: rgba(36, 38, 37, 0.72);
}

.black-visual::after {
  background: rgba(255, 255, 255, 0.2);
}

.smart-visual {
  background: linear-gradient(135deg, #e8f2ee, #d5cec2);
}

.uf-visual { background: linear-gradient(135deg, #ece7de, #d9eee6); }
.pp-visual { background: linear-gradient(135deg, #dcece7, #f8f5ed); }
.bracket-visual { background: linear-gradient(135deg, #e8f2ee, #d5cec2); }
.qq-visual { background: linear-gradient(135deg, #dfe8e3, #eee9df); }
.tank-visual { background: linear-gradient(135deg, #eee8dc, #d8e6e1); }
.other-visual { background: linear-gradient(135deg, #eee9df, #d7ded9); }

.smart-visual::after {
  left: auto;
  right: 21%;
  bottom: 95px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(21, 107, 99, 0.86);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.42);
}

.product-body {
  box-sizing: border-box;
  height: 112px;
  min-height: 112px;
  padding: 22px;
}

.product-body span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
}

.product-body h3 {
  margin: 8px 0 8px;
  font-size: 21px;
}

.product-body h3 small {
  color: var(--teal);
  font-size: 1em;
  font-weight: 850;
  white-space: nowrap;
}

.product-body p,
.craft-panel p {
  margin: 0;
  color: var(--muted);
}

.craft-section {
  background: var(--white);
}

.craft-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.craft-panel {
  min-height: 244px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--paper);
}

.craft-panel h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.highlight-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  background: var(--teal);
  color: var(--white);
}

.highlight-panel strong {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
}

.highlight-panel span {
  color: rgba(255, 255, 255, 0.82);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
  padding: clamp(70px, 9vw, 116px) clamp(18px, 5vw, 72px);
  background: var(--white);
}

.contact-card {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: var(--paper);
}

.contact-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.contact-row strong {
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.28;
}

.phone-list {
  display: grid;
  gap: 10px;
}

.phone-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.call-button {
  flex: 0 0 auto;
  min-width: 58px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.phone-link:hover .call-button {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.phone-link:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(21, 107, 99, 0.25);
  outline-offset: 4px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

@media (max-width: 1040px) {
  .product-grid,
  .craft-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header {
    min-height: 68px;
    padding: 14px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .nav-cta {
    min-height: 52px;
    border: 0;
    border-radius: 0;
    background: var(--teal);
    color: var(--white);
  }

  .hero {
    min-height: 84vh;
  }

  .hero-image {
    object-position: 68% 50%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(19, 39, 35, 0.86), rgba(19, 39, 35, 0.42)),
      linear-gradient(0deg, rgba(19, 39, 35, 0.26), rgba(19, 39, 35, 0.02));
  }

  .hero-content {
    width: min(100% - 32px, 620px);
    padding: 106px 0 46px 16px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-metrics div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0 12px 14px;
  }

  .intro-band,
  .craft-layout {
    grid-template-columns: 1fr;
  }

  .product-section {
    padding-right: 12px;
    padding-left: 12px;
  }

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

  .product-card {
    border-radius: 5px;
  }

  .product-visual {
    height: auto;
    aspect-ratio: 500 / 934;
  }

  /* 所有产品图在手机两列布局下统一为 900 的展示比例。 */
  .product-visual > img {
    object-fit: fill;
  }

  .product-visual::before {
    bottom: 28px;
    border-width: 7px;
    border-bottom-width: 12px;
  }

  .product-visual::after {
    bottom: 74px;
    height: 8px;
  }

  .product-visual > span {
    padding: 5px 9px;
    font-size: 10px;
  }

  .product-body {
    height: 82px;
    min-height: 82px;
    padding: 10px 9px 12px;
  }

  .product-body > span {
    font-size: 10px;
  }

  .product-body h3 {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.35;
  }

  .product-count {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .product-pagination {
    gap: 10px;
    margin-top: 20px;
  }

  .product-pagination button {
    min-width: 80px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .product-pagination span {
    min-width: 76px;
    font-size: 12px;
  }

  .intro-item {
    min-height: 86px;
  }

  .section-heading {
    text-align: left;
  }

  .product-tabs {
    justify-content: flex-start;
  }

  .product-search {
    margin-bottom: 16px;
  }

  .product-search label {
    font-size: 12px;
  }

  .product-search input {
    min-height: 44px;
    font-size: 14px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 0;
  }
}

@media (max-width: 440px) {
  .brand strong {
    font-size: 16px;
  }

  .brand-mark {
    width: 46px;
    height: 38px;
  }

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

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

  .product-visual {
    height: auto;
    aspect-ratio: 500 / 934;
  }

}
