:root {
  --color-primary: #b91c1c;
  --color-primary-dark: #991b1b;
  --color-accent: #15803d;
  --color-accent-soft: #dcfce7;
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-text: #1c1917;
  --color-text-muted: #57534e;
  --color-border: rgba(28, 25, 23, 0.08);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 40px rgba(28, 25, 23, 0.08);
  --shadow-hover: 0 20px 50px rgba(185, 28, 28, 0.12);
  --header-h: 72px;
  --max-w: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: none;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--color-bg);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: rgba(250, 249, 247, 0.98);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}

.nav-mobile.is-open {
  transform: translateX(0);
}

.nav-mobile a {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 500;
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.nav-mobile a.is-active {
  border-left: 4px solid var(--color-primary);
  color: var(--color-primary);
}

main {
  padding-top: var(--header-h);
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(28, 25, 23, 0.55) 0%,
    rgba(28, 25, 23, 0.25) 45%,
    rgba(28, 25, 23, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0 4rem;
  color: #fff;
}

.hero-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.hero p {
  max-width: 36rem;
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(185, 28, 28, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section--alt {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--color-text-muted);
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-accent-soft), #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Product grid */
.product-grid {
  display: grid;
  gap: 1.5rem;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.product-card .media {
  overflow: hidden;
  background: #1c1917;
}

.product-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--ease);
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-card .body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.product-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}

.product-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* Product showcase (homepage) */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

a.showcase-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.showcase-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
  background: #1c1917;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--ease);
}

.showcase-item:hover img {
  transform: scale(1.05);
}

.showcase-item .label {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(28, 25, 23, 0.88));
  color: #fff;
}

.showcase-item .label strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.showcase-item .label span {
  font-size: 0.8rem;
  opacity: 0.85;
}

.showcase-item figcaption.label {
  margin: 0;
}

figure.showcase-item {
  margin: 0;
}

.showcase-item--wide {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

.showcase-item--wide img {
  object-position: center 30%;
}

/* Partners strip */
.partners {
  background: linear-gradient(135deg, #1c1917, #292524);
  color: #fff;
  padding: 2.5rem 0;
  margin-bottom: 0;
}

.partners .labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.partners .chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Gallery / cert */
.gallery {
  display: grid;
  gap: 1.25rem;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-surface);
}

.gallery-item figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Certificates — honors (single featured image) */
.cert-license {
  max-width: 720px;
  margin: 0 auto;
}

.cert-honors {
  display: grid;
  gap: 1.5rem;
}

.cert-honors__featured {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.cert-honors__frame {
  padding: 1rem;
  background: linear-gradient(165deg, #292524 0%, #1c1917 55%, #0f0e0d 100%);
}

.cert-honors__frame img {
  width: 100%;
  max-height: min(56vh, 520px);
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius-lg) - 10px);
}

.cert-honors__featured figcaption {
  margin: 0;
  padding: 1.15rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.cert-honors__aside {
  display: grid;
  gap: 0.85rem;
}

.cert-honor-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(28, 25, 23, 0.04);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.cert-honor-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cert-honor-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.cert-honor-item:nth-child(2) .cert-honor-item__icon {
  background: linear-gradient(135deg, var(--color-accent), #166534);
}

.cert-honor-item:nth-child(3) .cert-honor-item__icon {
  background: linear-gradient(135deg, #b45309, #92400e);
}

.cert-honor-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-family: var(--font-display);
}

.cert-honor-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* About split */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Contact page */
.contact-intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.contact-intro__lead {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.contact-phone-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 12px 32px rgba(185, 28, 28, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-phone-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: #fff;
}

.contact-phone-cta__label {
  font-size: 0.8rem;
  opacity: 0.9;
  letter-spacing: 0.06em;
}

.contact-phone-cta__number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-blocks {
  display: grid;
  gap: 1.5rem;
}

.contact-block {
  display: grid;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.contact-block__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center;
}

.contact-block__body {
  padding: 1.75rem;
}

.contact-block__body--full {
  padding: 2rem;
}

.contact-block__tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.contact-block__tag--muted {
  background: rgba(28, 25, 23, 0.06);
  color: var(--color-text-muted);
}

.contact-block h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--color-text);
}

.contact-block--store h2 {
  color: var(--color-primary);
}

.contact-block__sub {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.contact-block__list {
  margin: 0 0 1.5rem;
  display: grid;
  gap: 1rem;
}

.contact-block__list dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.contact-block__list dd {
  margin: 0;
  font-weight: 500;
  line-height: 1.55;
}

.contact-block__list a[href^="tel"] {
  color: var(--color-accent);
  font-size: 1.15rem;
  font-weight: 600;
}

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

.btn-outline-dark {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-outline-dark:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.contact-block--hq {
  border-top: 4px solid var(--color-accent);
}

.contact-tips {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.06), rgba(185, 28, 28, 0.04));
  border: 1px solid var(--color-border);
}

.contact-tips h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.contact-tips ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.contact-tips li + li {
  margin-top: 0.5rem;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #1c1917;
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 200;
  transition: transform 0.35s var(--ease);
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

/* Page banner */
.page-banner {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary) 50%, var(--color-accent));
  color: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.page-banner p {
  margin: 0;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: #1c1917;
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 1rem;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.beian {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  align-items: center;
}

.beian a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
}

.beian a:hover {
  color: #fff;
}

.beian img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }

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

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

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

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

  .cert-honors {
    grid-template-columns: 1.15fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }

  .cert-honors__featured {
    display: flex;
    flex-direction: column;
  }

  .cert-honors__frame {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .showcase-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-card img {
    aspect-ratio: 4/5;
  }

}
