:root {
  --jade-deep: #123d32;
  --jade: #23785e;
  --jade-bright: #60cf8a;
  --mint: #dff5e7;
  --ink: #17231f;
  --muted: #697771;
  --line: #dce7df;
  --paper: #f7faf7;
  --gold: #d6a45e;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(18, 61, 50, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.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: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 0 6vw;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 231, 223, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--jade-deep);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  background:
    radial-gradient(circle at 62% 30%, #86ffad 0 12%, transparent 13%),
    linear-gradient(135deg, #0c5d46, #1aad72 60%, #0f4f42);
  border-radius: 50%;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.28);
}

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

.brand strong {
  font-size: 22px;
  letter-spacing: 0;
}

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

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 13px 22px;
  color: #26332e;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--jade), #4dbf78);
}

.cart-button,
.checkout-button,
.quick-actions button,
.add-cart,
.search-box button,
.icon-button {
  border: 0;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--white);
  background: var(--jade-deep);
  border-radius: 999px;
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  color: var(--jade-deep);
  background: var(--mint);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 86px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 80px 6vw 120px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(10, 49, 40, 0.94), rgba(22, 93, 74, 0.72) 54%, rgba(89, 153, 132, 0.65)),
    radial-gradient(circle at 85% 88%, rgba(130, 255, 177, 0.34), transparent 24%),
    linear-gradient(135deg, #173f37, #4d8d78 62%, #c7ead6);
}

.hero::after {
  content: "";
  position: absolute;
  left: 6vw;
  right: 6vw;
  bottom: 86px;
  height: 1px;
  background: rgba(255, 255, 255, 0.26);
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rough-stone {
  position: absolute;
  border-radius: 41% 59% 48% 52% / 48% 38% 62% 52%;
  background:
    linear-gradient(138deg, rgba(255, 255, 255, 0.38), transparent 22%),
    radial-gradient(circle at 35% 28%, #9bffd0, #35b978 45%, #0c5c48 100%);
  box-shadow: inset -22px -26px 34px rgba(4, 56, 39, 0.52), 0 24px 60px rgba(10, 53, 42, 0.32);
  opacity: 0.78;
  transform: rotate(-13deg);
}

.stone-large {
  right: 10vw;
  bottom: -110px;
  width: 340px;
  height: 270px;
}

.stone-small {
  left: 10vw;
  bottom: 70px;
  width: 150px;
  height: 120px;
  transform: rotate(18deg);
}

.jade-strand {
  position: absolute;
  right: 1vw;
  bottom: 32px;
  display: flex;
  gap: 15px;
  transform: rotate(-5deg);
}

.jade-strand span {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.88) 0 7%, transparent 8%),
    radial-gradient(circle, #7effb2, #18a86c 62%, #0f6a54);
  box-shadow: inset -10px -12px 18px rgba(12, 72, 53, 0.48);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  margin: 0 auto;
  text-align: center;
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.12;
}

.hero-copy {
  width: min(680px, 100%);
  margin: 26px auto 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 76px;
  width: min(840px, 100%);
  min-height: 72px;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.search-box input {
  min-width: 0;
  padding: 0 30px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 19px;
}

.search-box button {
  display: grid;
  place-items: center;
  margin: 6px;
  color: var(--white);
  background: linear-gradient(135deg, #39b76e, #73d487);
  border-radius: 50%;
  font-size: 42px;
  line-height: 1;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.quick-actions button {
  padding: 10px 17px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}

.lookup-result,
.section,
.service-band,
.about {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.lookup-result {
  position: relative;
  z-index: 2;
  margin-top: -58px;
}

.result-card {
  min-height: 130px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.empty-state {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 82px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--jade-deep);
  font-size: 22px;
}

.product-result {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 26px;
  align-items: stretch;
}

.result-visual,
.product-visual {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: var(--visual-bg);
  border-radius: 8px;
}

.result-visual::before,
.product-visual::before {
  content: "";
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 25%, rgba(255, 255, 255, 0.98) 0 6%, transparent 7%),
    radial-gradient(circle at 50% 48%, var(--visual-light), var(--visual-main) 58%, var(--visual-dark));
  box-shadow: inset -16px -18px 30px rgba(5, 55, 43, 0.46), 0 22px 35px rgba(15, 68, 54, 0.22);
}

.result-info {
  display: grid;
  gap: 18px;
}

.result-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.result-top h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 11px;
  color: var(--jade-deep);
  background: var(--mint);
  border-radius: 999px;
  font-weight: 800;
}

.price {
  color: #b5762c;
  font-size: 28px;
  font-weight: 900;
  white-space: nowrap;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.spec-list div {
  padding: 13px 14px;
  background: #f3f8f4;
  border-radius: 8px;
}

.spec-list dt {
  color: var(--muted);
  font-size: 13px;
}

.spec-list dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.section {
  padding: 84px 0 46px;
}

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

.section-heading h2,
.service-band h2,
.about h2 {
  margin: 0;
  color: var(--jade-deep);
  font-size: clamp(26px, 4vw, 38px);
}

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

.product-card {
  display: grid;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(18, 61, 50, 0.08);
}

.product-visual {
  min-height: 245px;
  border-radius: 0;
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.product-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

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

.product-title span {
  color: #b5762c;
  font-weight: 900;
  white-space: nowrap;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.product-meta span {
  padding: 6px 9px;
  background: #f2f6f3;
  border-radius: 999px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.query-link,
.add-cart {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
}

.query-link {
  color: var(--jade-deep);
  background: var(--white);
  border: 1px solid var(--line);
}

.add-cart {
  color: var(--white);
  background: var(--jade);
}

.service-band {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 36px;
  color: var(--white);
  background: linear-gradient(135deg, var(--jade-deep), #1f715d);
  border-radius: 8px;
}

.service-band .eyebrow {
  color: #f2bd70;
}

.service-band h2 {
  color: var(--white);
}

.service-band ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-band li {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.about {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 42px;
  align-items: start;
  padding: 76px 0 96px;
}

.about p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: min(420px, 92vw);
  height: 100vh;
  padding: 22px;
  background: var(--white);
  box-shadow: -20px 0 45px rgba(10, 33, 28, 0.22);
  transform: translateX(105%);
  transition: transform 0.24s ease;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header,
.cart-footer,
.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 0;
}

.icon-button {
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: #eef5f0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
  padding: 20px 0;
}

.cart-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--muted);
  text-align: center;
}

.cart-row {
  padding: 14px;
  background: #f6faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-row strong,
.cart-row span {
  display: block;
}

.cart-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.remove-item {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  color: var(--jade-deep);
  background: #e6f2eb;
  border-radius: 50%;
}

.cart-footer {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.cart-footer strong {
  color: #b5762c;
  font-size: 25px;
}

.checkout-button {
  min-height: 50px;
  color: var(--white);
  background: linear-gradient(135deg, var(--jade), var(--jade-bright));
  border-radius: 8px;
  font-size: 17px;
  font-weight: 900;
}

.page-mask {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(10, 27, 23, 0.44);
}

.page-mask.open {
  display: block;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px 20px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding: 72px 20px 130px;
  }

  .product-result,
  .product-grid,
  .service-band,
  .about {
    grid-template-columns: 1fr;
  }

  .result-top,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

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

  .brand small {
    display: none;
  }

  .cart-button span:nth-child(2) {
    display: none;
  }

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

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

  .search-box {
    grid-template-columns: 1fr 58px;
    min-height: 62px;
  }

  .search-box input {
    padding: 0 18px;
    font-size: 16px;
  }

  .search-box button {
    font-size: 34px;
  }

  .spec-list,
  .card-actions {
    grid-template-columns: 1fr;
  }

  .jade-strand span {
    width: 46px;
    height: 46px;
  }
}

.site-footer {
  padding: 24px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--jade);
  text-decoration: underline;
}

.site-footer .site-owner {
  margin: 0 0 6px;
}
