/* Fonts loaded async from HTML (Syne only). CJK uses local system faces — no Noto download. */
:root {
  --ink: #14231c;
  --muted: #4a6356;
  --pine: #1b5c45;
  --pine-deep: #0f3d2e;
  --field: #2f7a5b;
  --accent: #e05a1a;
  --accent-hover: #c44a10;
  --mist: #eef4f0;
  --paper: #f8fbf9;
  --line: rgba(20, 35, 28, 0.12);
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(15, 61, 46, 0.12);
  --radius: 4px;
  --font-display: 'Syne', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(47, 122, 91, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(224, 90, 26, 0.08), transparent 50%),
    linear-gradient(180deg, #e6efe9 0%, var(--paper) 28%, var(--mist) 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  content-visibility: auto;
}

a {
  color: var(--pine);
}

.sitePageWrapper {
  width: min(1120px, 100%);
  margin: 0 auto;
  background: rgba(248, 251, 249, 0.92);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 100vh;
}

.siteNavigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 251, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.navBrand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--pine-deep);
  letter-spacing: 0.02em;
  line-height: 1.3;
  max-width: 16rem;
}

.navItemsContainer {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.navLink {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.navLink:hover {
  color: var(--pine);
  border-bottom-color: var(--accent);
}

.mobileMenuToggle {
  display: none;
  background: transparent;
  border: 1px solid var(--pine);
  color: var(--pine);
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1;
}

.heroWithBackgroundImage {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  background-color: var(--pine-deep);
  background-image:
    linear-gradient(180deg, rgba(15, 61, 46, 0.25) 0%, rgba(15, 61, 46, 0.78) 100%),
    url('../picture/hero-banner.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  .heroWithBackgroundImage {
    animation: heroReveal 1.1s ease-out both;
  }

  .heroWithBackgroundImage .brandMark {
    animation: riseIn 0.9s 0.15s ease-out both;
  }

  .heroWithBackgroundImage h1 {
    animation: riseIn 0.9s 0.28s ease-out both;
  }

  .heroWithBackgroundImage p {
    animation: riseIn 0.9s 0.4s ease-out both;
  }

  .heroCtaGroup {
    animation: riseIn 0.9s 0.52s ease-out both;
  }
}

.heroWithBackgroundImage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 61, 46, 0.55) 0%, transparent 62%);
  pointer-events: none;
}

.heroWithBackgroundImage > * {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.heroWithBackgroundImage .brandMark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.heroWithBackgroundImage h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.heroWithBackgroundImage p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  opacity: 0.92;
  margin-bottom: 1.35rem;
}

.heroCtaGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btnPrimary,
.btnGhost,
.formSubmitBtn,
.productDetailActions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btnPrimary,
.formSubmitBtn {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  cursor: pointer;
  font-family: inherit;
}

.btnPrimary:hover,
.formSubmitBtn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btnGhost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btnGhost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pageHeroCompact {
  min-height: 240px;
  justify-content: flex-end;
}

.responsiveSectionContainer {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  content-visibility: auto;
  contain-intrinsic-size: 1px 640px;
}

.sectionHeading {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--pine-deep);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.sectionLead {
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 1.75rem;
  font-size: 0.98rem;
}

.aboutTwoColumnLayout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.aboutTextBlock {
  color: var(--muted);
  font-size: 0.98rem;
}

.aboutTextBlock strong {
  color: var(--ink);
}

.aboutTextBlock p + p {
  margin-top: 1rem;
}

.aboutImage {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: no-preference) {
  .aboutImage {
    animation: floatSoft 6s ease-in-out infinite;
  }
}

.aboutImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  transition: transform 0.6s ease;
}

.aboutImage:hover img {
  transform: scale(1.04);
}

.productGridEightItems,
.caseGridSixItems {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.caseGridSixItems {
  grid-template-columns: repeat(3, 1fr);
}

.productCard,
.caseCard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.productCard:hover,
.caseCard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.productImageContainer,
.caseImageContainer {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dfeae4;
}

.productImageContainer img,
.caseImageContainer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.productCard:hover img,
.caseCard:hover img {
  transform: scale(1.06);
}

.productInfoContent,
.caseDescContent {
  padding: 1rem 1.05rem 1.15rem;
}

.productInfoContent h3,
.caseDescContent h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--pine-deep);
  margin-bottom: 0.4rem;
}

.productInfoContent h3 a,
.caseDescContent h4 a {
  color: inherit;
  text-decoration: none;
}

.productInfoContent p,
.caseDescContent p {
  color: var(--muted);
  font-size: 0.9rem;
}

.caseDetailLink {
  margin-top: 0.65rem;
}

.caseDetailLink a {
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--accent);
}

.caseDetailLink a:hover {
  text-decoration: underline;
}

.guaranteeResponsiveGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.guaranteeCard {
  padding: 1.25rem 1rem;
  background: linear-gradient(160deg, var(--white), #f0f7f3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guaranteeCard h4 {
  font-family: var(--font-display);
  color: var(--pine-deep);
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.guaranteeCard p {
  color: var(--muted);
  font-size: 0.9rem;
}

.contactFlexTwoColumn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contactRow {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  color: var(--ink);
  font-weight: 500;
}

.contactLabel {
  color: var(--pine);
  font-weight: 700;
  min-width: 3rem;
}

.businessHours {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.formGroup {
  margin-bottom: 0.75rem;
}

.formGroup input,
.formGroup textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
}

.formGroup textarea {
  min-height: 120px;
  resize: vertical;
}

.formGroup input:focus,
.formGroup textarea:focus {
  outline: 2px solid rgba(27, 92, 69, 0.35);
  border-color: var(--pine);
}

.siteFooterLegal {
  padding: 1.75rem 1.25rem 2.25rem;
  text-align: center;
  background: var(--pine-deep);
  color: rgba(255, 255, 255, 0.78);
}

.legalLinksContainer {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.legalLinksContainer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.legalLinksContainer a:hover {
  color: #fff;
  text-decoration: underline;
}

.copyrightTextSmall {
  font-size: 0.85rem;
}

.breadcrumb {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.specTable {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

.specTable th,
.specTable td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.specTable th {
  width: 7.5rem;
  background: #e8f1ec;
  color: var(--pine-deep);
  font-weight: 700;
}

.tableResponsiveWrap {
  overflow-x: auto;
}

.productDetailActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.productDetailActions a {
  background: var(--pine);
  color: var(--white);
  border: 1px solid var(--pine);
}

.productDetailActions a:last-child {
  background: var(--accent);
  border-color: var(--accent);
}

.productDetailActions a:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.caseDetailMeta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.policyContent {
  color: var(--muted);
  max-width: 46rem;
}

.policyContent h3 {
  font-family: var(--font-display);
  color: var(--pine-deep);
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
}

@keyframes heroReveal {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 960px) {
  .productGridEightItems {
    grid-template-columns: repeat(2, 1fr);
  }

  .caseGridSixItems,
  .guaranteeResponsiveGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aboutTwoColumnLayout,
  .contactFlexTwoColumn {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mobileMenuToggle {
    display: block;
  }

  .navItemsContainer {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0 0.25rem;
  }

  .navItemsContainer.showMobileMenu {
    display: flex;
  }

  .productGridEightItems,
  .caseGridSixItems,
  .guaranteeResponsiveGrid {
    grid-template-columns: 1fr;
  }

  .heroWithBackgroundImage {
    min-height: 72vh;
  }

  .pageHeroCompact {
    min-height: 200px;
  }
}
