:root {
  /* Colors */
  --ink: #203d36;
  --muted: #69756b;
  --paper: #faf9f5;
  --wash: #edf2ed;
  --line: #dce4dd;
  --deep: #173e38;
  --red: #a4161a;
  --teal: #143f3b;

  /* Typography */
  --serif: "Noto Serif SC", "Source Han Serif SC", STSong, SimSun, serif;
  --sans: "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* Reset & Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: linear-gradient(125deg, #faf9f5 0%, #f6f7f2 43%, #edf3ee 100%);
  color: var(--ink);
  font: 14px/1.85 var(--sans);
  letter-spacing: 0;
}

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

button, a, input, summary, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  cursor: pointer;
  border: 0;
  background: transparent;
}

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

.image-frame {
  position: relative;
  overflow: hidden;
}

.image-fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  padding: 12px;
  background: #f3f5f1;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

[data-image-frame].image-load-failed > img {
  display: none;
}

[data-image-frame].image-load-failed > .image-fallback {
  display: grid;
}

.thumbnail.image-frame .image-fallback {
  font-size: 10px;
  padding: 4px;
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

/* Typography */
p {
  margin: 0 0 18px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 20px;
  letter-spacing: 0;
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 22px;
}

small, .small {
  font-size: 12px;
}

.muted {
  color: var(--muted);
}

/* Utility Classes */
.gift-character {
  color: var(--red);
}

.content {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}

.section {
  padding: 56px 0;
}

.icon {
  flex-shrink: 0;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 4px;
  background: transparent;
}

.icon-button:hover {
  background: #edf1ed;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  border: 1px solid var(--teal);
  border-radius: 3px;
  font-size: 16px;
  line-height: 1.6;
  transition: background-color 140ms, color 140ms;
}

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

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

.button-light {
  background: #fffdf8;
  color: var(--ink);
}

.button-light:hover {
  background: #f0e9dd;
}

.button:active {
  box-shadow: inset 0 0 0 2px #8a9e91;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #a9b8ad;
  padding: 10px 0;
  min-height: 44px;
  font-size: 15px;
}

.text-button:hover {
  border-color: var(--ink);
}

/* Layout */
.hero-actions, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #eff1ed;
}

.site-footer {
  padding-block: 36px;
  background: #fff;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  padding: 22px 0;
}

.breadcrumbs span {
  color: var(--ink);
}

/* Page Intro */
.page-intro {
  padding: 24px 0 40px;
  position: relative;
}

.page-intro .intro-copy {
  max-width: 720px;
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.eyebrow:before {
  content: "";
  width: 22px;
  height: 1px;
  background: #9bb19e;
}

.intro-art {
  position: absolute;
  right: 0;
  top: 12px;
  width: 58px;
  height: 90px;
  object-fit: contain;
  opacity: 0.52;
}

.page-intro h1 {
  margin-bottom: 14px;
}

.page-intro p {
  max-width: 720px;
  color: var(--muted);
  margin-bottom: 0;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-top: 46px;
}

.service-icon {
  margin-bottom: 22px;
}

.service-grid h3 {
  margin-bottom: 14px;
}

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

/* Responsive */
@media (max-width: 1199px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .content {
    width: calc(100% - 36px);
  }

  body {
    font-size: 13px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 25px;
  }

  h3 {
    font-size: 21px;
  }

  .section {
    padding: 36px 0;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  body, .band {
    background: white;
  }

  .header, .footer, .floating-inquiry, .contact-band,
  .inquiry-tools, .inquiry-summary, .breadcrumbs,
  .toast, .icon-btn, .review-device, dialog {
    display: none !important;
  }
}
