:root {
  --ink: #20201d;
  --muted: #69645c;
  --line: #ded7ca;
  --paper: #f8f5ee;
  --white: #ffffff;
  --red: #8b211d;
  --red-deep: #5d1512;
  --gold: #b98a35;
  --green: #286759;
  --green-soft: #e8f1ed;
  --blue-gray: #364653;
  --shadow: 0 16px 42px rgba(31, 23, 15, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { border-radius: 0; }
.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: 30;
  background: rgba(248, 245, 238, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.topbar { background: var(--red-deep); color: #fff0d5; font-size: 0.86rem; }
.topbar__inner {
  width: min(1200px, calc(100% - 32px));
  min-height: 34px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar__inner a { margin-left: auto; color: #ffe0a0; font-weight: 700; }
.brand-row {
  width: min(1200px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 270px; }
.brand__seal {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff7e8;
  background: var(--red);
  border: 2px solid #d7b46a;
  font-size: 1.02rem;
  font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.32rem; line-height: 1.1; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 0.78rem; }
.search {
  display: flex;
  flex: 1;
  max-width: 430px;
  margin-left: auto;
  background: var(--white);
  border: 1px solid var(--line);
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 11px 14px;
  color: var(--ink);
  background: transparent;
}
.search button {
  border: 0;
  padding: 0 18px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--ink); }
.main-nav {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid var(--line);
}
.main-nav a { padding: 13px 17px; color: #36322d; font-weight: 700; }
.main-nav a:hover, .main-nav a.active { color: var(--red); background: #f2eadf; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}
.button--primary { color: #fff; background: var(--red); border-color: var(--red); }
.button--primary:hover { background: #741814; }
.button--quiet { color: #fff6e8; border-color: rgba(255, 255, 255, 0.52); background: rgba(255, 255, 255, 0.08); }
.button--outline { color: var(--red); border-color: var(--red); background: transparent; }

.media-slot {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px;
  overflow: hidden;
  color: #655b4d;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(232, 241, 237, 0.82)),
    repeating-linear-gradient(45deg, #ede6d8 0 12px, #f8f5ee 12px 24px);
  border: 1px dashed #cbbfae;
}
.media-slot::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(139, 33, 29, 0.16);
  pointer-events: none;
}
.media-slot span { color: var(--red); font-weight: 800; }
.media-slot strong { max-width: 360px; font-size: 1.06rem; }
.media-slot em { color: var(--muted); font-style: normal; font-size: 0.92rem; }


.media-slot.has-image {
  background: #1f1713;
  border-style: solid;
  border-color: rgba(139, 33, 29, 0.16);
}
.media-slot.has-image::before {
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.20);
}
.media-slot__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-slot__label {
  position: relative;
  z-index: 2;
  max-width: min(420px, calc(100% - 32px));
  padding: 10px 14px;
  color: #fff7ea;
  background: rgba(28, 18, 13, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.media-slot__label span,
.media-slot__label strong {
  display: block;
}
.media-slot__label span {
  color: #f4d58b;
  font-weight: 800;
}
.media-slot__label strong {
  margin-top: 3px;
  font-size: 0.9rem;
}
.product-card__photo .media-slot__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  font-size: 0.82rem;
}
.product-card__photo .media-slot__label strong {
  display: none;
}.hero {
  position: relative;
  min-height: 560px;
  height: 68vh;
  overflow: hidden;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 100%; border: 0; }
.hero__media::before { border-color: rgba(255, 255, 255, 0.26); }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(34, 17, 13, 0.88) 0%, rgba(62, 31, 22, 0.68) 45%, rgba(38, 31, 24, 0.20) 100%),
    linear-gradient(0deg, rgba(33, 25, 18, 0.28), rgba(33, 25, 18, 0.08));
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1 {
  width: min(720px, 100%);
  margin: 0;
  font-size: 3.35rem;
  line-height: 1.15;
  font-weight: 800;
}
.hero p:not(.eyebrow) {
  width: min(700px, 100%);
  margin: 22px 0 0;
  color: #f8ecdc;
  font-size: 1.08rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.quick-links {
  width: min(1200px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.quick-links a {
  min-height: 108px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}
.quick-links a:last-child { border-right: 0; }
.quick-links span { color: var(--muted); font-size: 0.9rem; }
.quick-links strong { margin-top: 6px; font-size: 1.08rem; }
.quick-links a:hover { color: var(--red); background: #fff8ed; }

.section { padding: 86px 0; }
.section--white { background: var(--white); }
.intro-band { background: #f3efe6; }
.strength-band { background: #eef5f0; }
.news-band { background: #f6f1e9; }
.section__heading, .split-layout, .product-grid, .process-list, .showcase-grid, .news-list, .materials-grid, .contact-section {
  width: min(1200px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.section__heading { margin-bottom: 34px; }
.section__heading h2, .section-copy h2, .contact-section h2, .sub-hero h1, .credential-cta h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.12rem;
  line-height: 1.25;
}
.section__heading p:last-child, .section-copy p, .contact-section p, .sub-hero p, .credential-cta p {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--muted);
}
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  gap: 44px;
  align-items: center;
}
.media-slot--panel { min-height: 360px; }
.fact-list {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.fact-list div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}
.fact-list dt { color: var(--muted); font-size: 0.88rem; }
.fact-list dd { margin: 6px 0 0; font-weight: 800; }

.filter-bar {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-bar button {
  min-height: 40px;
  padding: 8px 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
}
.filter-bar button:hover, .filter-bar button.active { color: #fff; background: var(--green); border-color: var(--green); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.product-card.is-hidden { display: none; }
.product-card__photo { min-height: auto; aspect-ratio: 4 / 3; border-width: 0 0 1px 0; }
.product-card__body { padding: 22px; display: flex; flex: 1; flex-direction: column; }
.product-card__body p { margin: 0 0 8px; color: var(--green); font-size: 0.88rem; font-weight: 800; }
.product-card__body h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.product-card__body span { display: block; margin-top: 10px; color: var(--muted); }
.product-card__body a {
  margin-top: auto;
  padding-top: 18px;
  color: var(--red);
  font-weight: 800;
}

.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-list article {
  padding: 26px;
  background: var(--white);
  border: 1px solid #d9e4d9;
  border-radius: 8px;
}
.process-list span { color: var(--gold); font-weight: 800; }
.process-list h3 { margin: 12px 0 8px; font-size: 1.12rem; }
.process-list p { margin: 0; color: var(--muted); }

.showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.showcase-slot { min-height: 0; aspect-ratio: 4 / 3; }
.news-list { display: grid; gap: 14px; }
.news-list article {
  display: grid;
  grid-template-columns: 120px minmax(0, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.news-list article:last-child { border-bottom: 1px solid var(--line); }
.news-list time { color: var(--gold); font-weight: 800; }
.news-list h3 { margin: 0; font-size: 1.08rem; }
.news-list p { margin: 0; color: var(--muted); }
.materials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.materials-grid article {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.materials-grid h3 { margin: 0; font-size: 1.08rem; }
.materials-grid p { margin: 10px 0 0; color: var(--muted); }

.contact-section {
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 42px;
  align-items: start;
  border-top: 1px solid var(--line);
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; color: var(--muted); font-size: 0.9rem; }
.contact-list strong { display: block; margin-top: 4px; font-size: 1.05rem; }
.contact-list__link {
  color: var(--red);
  text-decoration: none;
}
.contact-list__link:hover { color: var(--green); }
.service-qr {
  text-align: center;
}
.service-qr__eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
}
.service-qr h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.28rem;
}
.service-qr__image-link {
  display: block;
  margin: 0 auto 18px;
  max-width: 300px;
}
.service-qr img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.service-qr .button {
  width: 100%;
}
.order-form {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.order-form label, .order-form span { display: block; }
.order-form label + label { margin-top: 14px; }
.order-form span { margin-bottom: 6px; color: var(--muted); font-size: 0.9rem; }
.order-form input, .order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 11px 12px;
  outline: 0;
  color: var(--ink);
  background: var(--paper);
}
.order-form input:focus, .order-form textarea:focus { border-color: var(--green); background: #fff; }
.order-form button { width: 100%; margin-top: 18px; }
.form-note { min-height: 24px; margin: 12px 0 0; color: var(--green); font-weight: 700; }

.site-footer {
  padding: 34px max(16px, calc((100% - 1200px) / 2));
  color: #f7efe3;
  background: #241b17;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__brand strong, .site-footer__brand span { display: block; }
.site-footer__brand span { margin-top: 6px; color: #c9beb3; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__links a { color: #f3d48f; }

.sub-hero {
  padding: 78px max(16px, calc((100% - 1200px) / 2));
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(45deg, #ede6d8 0 14px, #f8f5ee 14px 28px);
  border-bottom: 1px solid var(--line);
}
.certificate-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.certificate-card {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.certificate-card button {
  width: 100%;
  height: 430px;
  padding: 0;
  border: 0;
  background: #eeeae3;
  cursor: zoom-in;
}
.certificate-card img { width: 100%; height: 100%; object-fit: contain; }
.certificate-card figcaption { padding: 18px 20px 20px; }
.certificate-card strong, .certificate-card span { display: block; }
.certificate-card strong { font-size: 1.08rem; }
.certificate-card span { margin-top: 5px; color: var(--muted); }
.credential-cta {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
}
.lightbox {
  width: min(1080px, calc(100% - 32px));
  max-height: calc(100vh - 42px);
  padding: 0;
  border: 0;
  background: var(--white);
  box-shadow: var(--shadow);
}
.lightbox::backdrop { background: rgba(14, 10, 8, 0.72); }
.lightbox__bar {
  min-height: 56px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.lightbox__bar button {
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}
.lightbox img { width: 100%; max-height: calc(100vh - 112px); object-fit: contain; background: #f1eee9; }

@media (max-width: 1080px) {
  .search { display: none; }
  .product-grid, .materials-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .brand-row { min-height: 68px; }
  .header-button { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    display: none;
    width: 100%;
    padding: 8px 16px 16px;
    border-top: 1px solid var(--line);
    background: var(--paper);
  }
  .main-nav.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav a { padding: 12px; background: var(--white); border: 1px solid var(--line); }
  .quick-links, .split-layout, .contact-section { grid-template-columns: 1fr; }
  .fact-list { grid-template-columns: 1fr; }
  .certificate-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .topbar__inner { min-height: 32px; gap: 10px; font-size: 0.78rem; }
  .topbar__inner span:nth-child(2) { display: none; }
  .brand { min-width: 0; }
  .brand small { max-width: 210px; }
  .brand__seal { width: 40px; height: 40px; }
  .brand strong { font-size: 1.12rem; }
  .main-nav.is-open, .quick-links, .product-grid, .process-list, .showcase-grid, .materials-grid, .certificate-grid { grid-template-columns: 1fr; }
  .hero { min-height: 500px; height: 62vh; }
  .hero h1 { font-size: 2.08rem; }
  .hero p:not(.eyebrow) { font-size: 1rem; }
  .hero__actions, .site-footer, .credential-cta { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .quick-links { width: 100%; margin-top: 0; border-left: 0; border-right: 0; }
  .quick-links a { min-height: 88px; border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding: 60px 0; }
  .section__heading h2, .section-copy h2, .contact-section h2, .sub-hero h1, .credential-cta h2 { font-size: 1.68rem; }
  .media-slot--panel { min-height: 260px; }
  .showcase-slot { min-height: 0; }
  .news-list article { grid-template-columns: 1fr; gap: 6px; }
  .contact-section { padding: 46px 0; }
  .certificate-card button { height: 360px; }
}