:root {
  --wangao-deep: #082d20;
  --wangao-green: #0b6b3f;
  --wangao-leaf: #2f8f4e;
  --wangao-orange: #ff9f1a;
  --wangao-ink: #14231a;
  --wangao-muted: #58645c;
  --wangao-line: #dfe8e1;
  --wangao-soft: #f3f7f4;
  --wangao-shadow: 0 16px 42px rgba(8, 45, 32, .1);
}

.wangao-managed-block-content {
  color: var(--wangao-ink);
  background: #fff;
}

.wangao-managed-block-content > [hidden],
.wangao-managed-product-details [hidden],
.machine-detail-cta[hidden],
.machine-detail-hero[hidden] {
  display: none !important;
}

.wangao-block-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* Keep the legacy first-paint fallback consistent with the verified managed capacity. */
.machine-hero-specs article:first-child strong { font-size: 0; }
.machine-hero-specs article:first-child strong::after { content: "15–120 t/h"; font-size: clamp(16px, 1.2vw, 20px); }

.wangao-block-section {
  padding: 82px 0;
  background: #fff;
}

.wangao-block-section:nth-child(even) {
  background: var(--wangao-soft);
}

.wangao-block-kicker {
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--wangao-orange);
}

.wangao-block-section h2,
.wangao-block-cta h2 {
  margin: 0 0 20px;
  color: var(--wangao-ink);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.wangao-block-copy {
  max-width: 880px;
  color: var(--wangao-muted);
  font-size: 17px;
  line-height: 1.75;
}

.wangao-block-copy > :first-child { margin-top: 0; }
.wangao-block-copy > :last-child { margin-bottom: 0; }
.wangao-section-intro { margin-bottom: 28px; }

.wangao-block-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 56px;
  align-items: center;
}

.wangao-block-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--wangao-shadow);
}

.wangao-block-card-grid,
.wangao-block-spec-grid,
.wangao-block-material-grid,
.wangao-block-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

[data-wangao-block="feature-grid"] .wangao-block-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.wangao-block-card,
.wangao-block-spec {
  padding: 26px;
  border: 1px solid var(--wangao-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 45, 32, .055);
}

.wangao-block-card strong,
.wangao-block-spec strong {
  display: block;
  margin-bottom: 8px;
  color: var(--wangao-ink);
  font-size: 20px;
}

.wangao-block-card p,
.wangao-block-card span {
  color: var(--wangao-muted);
  line-height: 1.6;
}

.wangao-block-spec {
  border: 0;
  background: var(--wangao-deep);
  color: #fff;
}

.wangao-block-spec strong { color: #fff; font-size: 27px; }
.wangao-block-spec span { display: block; font-weight: 700; }
.wangao-block-spec small { display: block; margin-top: 8px; color: #c7d9cf; }

.wangao-block-material {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--wangao-deep);
}

.wangao-block-material img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  opacity: .78;
}

.wangao-block-material strong {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: #fff;
  font-size: 20px;
}

.wangao-block-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--wangao-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--wangao-shadow);
}

.wangao-block-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.wangao-block-table th,
.wangao-block-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--wangao-line);
  text-align: left;
  vertical-align: top;
}

.wangao-block-table tr:last-child td,
.wangao-block-table tr:last-child th { border-bottom: 0; }
.wangao-block-table th { background: #e9f3ec; }
.wangao-technical-table thead th { background: var(--wangao-green); color: #fff; }
.wangao-table-note { margin-top: 16px; color: var(--wangao-muted); font-size: 14px; }

.wangao-block-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.wangao-block-faq { display: grid; gap: 12px; }
.wangao-block-faq details { border: 1px solid var(--wangao-line); border-radius: 12px; background: #fff; }
.wangao-block-faq summary { position: relative; padding: 20px 52px 20px 22px; cursor: pointer; font-weight: 750; list-style: none; }
.wangao-block-faq summary::-webkit-details-marker { display: none; }
.wangao-block-faq summary::after { position: absolute; top: 18px; right: 22px; content: "+"; color: var(--wangao-green); font-size: 24px; }
.wangao-block-faq details[open] summary::after { content: "−"; }
.wangao-block-faq-answer { padding: 0 22px 20px; color: var(--wangao-muted); line-height: 1.68; }

.wangao-block-media-card {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 440px;
  padding: 0;
  overflow: hidden;
  place-items: end start;
  border: 0;
  border-radius: 18px;
  background: var(--wangao-deep);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--wangao-shadow);
}

.wangao-block-media-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 25%, rgba(5, 30, 21, .9));
}

.wangao-block-media-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wangao-block-media-card > div { position: relative; z-index: 1; padding: 34px; }
.wangao-block-media-card strong { display: block; font-size: clamp(25px, 3vw, 38px); }
.wangao-block-media-card span { display: block; margin-top: 8px; color: #e2ebe4; }
.wangao-block-media-card span p { margin: 0; }
.wangao-media-action { display: inline-flex !important; width: max-content; margin-top: 18px !important; padding: 10px 16px; border-radius: 999px; background: var(--wangao-orange); color: var(--wangao-ink) !important; font-weight: 800; }

.wangao-block-hero,
.wangao-product-master-hero {
  padding: 82px 0;
  background: var(--wangao-deep);
  color: #fff;
}

.wangao-block-hero-grid,
.wangao-product-master-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(440px, 1.05fr);
  gap: 54px;
  align-items: center;
}

.wangao-product-master-hero-grid > * { min-width: 0; }

.wangao-product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 26px;
  color: #a9cdb5;
  font-size: 13px;
  line-height: 1.4;
}

.wangao-product-breadcrumb a {
  color: #dce9e0;
  text-decoration: none;
}

.wangao-product-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.wangao-product-breadcrumb [aria-current="page"] { color: #9cd2ad; }

.wangao-block-eyebrow {
  color: #9cd2ad;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.wangao-product-master-copy h1,
.wangao-block-hero h1 {
  margin: 13px 0 10px;
  color: #fff;
  font-size: clamp(43px, 5.4vw, 72px);
  line-height: .98;
  letter-spacing: -.045em;
}

.wangao-product-master-copy h2,
.wangao-block-hero h2 {
  margin: 18px 0 16px;
  color: #e7f1ea;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.2;
}

.wangao-product-master-copy .wangao-block-copy,
.wangao-block-hero .wangao-block-copy { color: #c8d9cf; }
.wangao-product-english-name,
.wangao-product-local-name { display: block; color: #a9cdb5; font-size: 15px; }

.wangao-product-master-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.wangao-product-master-stats article {
  min-height: 126px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .075);
}

.wangao-product-master-stats strong { display: block; color: #fff; font-size: 21px; line-height: 1.15; }
.wangao-product-master-stats span { display: block; margin-top: 8px; color: #e7f1ea; font-weight: 700; }
.wangao-product-master-stats small { display: block; margin-top: 6px; color: #a9beb0; }

.wangao-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.wangao-block-button { display: inline-flex; min-height: 49px; padding: 0 23px; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--wangao-orange); color: #172019; font-weight: 800; text-decoration: none; cursor: pointer; }
.wangao-block-button:hover { filter: brightness(1.04); transform: translateY(-1px); }
.wangao-block-button.is-secondary { border: 1px solid rgba(255, 255, 255, .42); background: transparent; color: #fff; }

.wangao-product-gallery {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: #fff;
  color: var(--wangao-ink);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .22);
}

.wangao-product-main { position: relative; min-height: 460px; overflow: hidden; border-radius: 12px; background: #f2f5f3; }
.wangao-product-main-open { position: absolute; inset: 0; width: 100%; padding: 22px; border: 0; background: transparent; cursor: zoom-in; }
.wangao-product-main-open img { width: 100%; height: 100%; object-fit: contain; }
.wangao-product-main-play,
.wangao-product-thumb-play { position: absolute; display: grid; place-items: center; border-radius: 999px; background: var(--wangao-orange); color: var(--wangao-ink); }
.wangao-product-main-play { top: 50%; left: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); font-size: 26px; }
.wangao-product-main-play[hidden],
.wangao-lightbox-prev[hidden],
.wangao-lightbox-next[hidden] { display: none !important; }
.wangao-gallery-prev,
.wangao-gallery-next { position: absolute; z-index: 2; top: 50%; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--wangao-line); border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--wangao-ink); font-size: 29px; cursor: pointer; transform: translateY(-50%); }
.wangao-gallery-prev { left: 12px; }
.wangao-gallery-next { right: 12px; }
.wangao-product-caption { min-height: 22px; padding: 10px 4px 5px; color: var(--wangao-muted); font-size: 13px; }
.wangao-product-thumbs { display: grid; width: 100%; min-width: 0; max-width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wangao-product-thumb { position: relative; min-height: 83px; padding: 4px; overflow: hidden; border: 2px solid transparent; border-radius: 9px; background: #f1f4f2; cursor: pointer; }
.wangao-product-thumb img { display: block; width: 100%; height: 75px; object-fit: contain; }
.wangao-product-thumb.is-active { border-color: var(--wangao-orange); }
.wangao-product-thumb-play { top: 50%; left: 50%; width: 32px; height: 32px; transform: translate(-50%, -50%); font-size: 13px; }

.wangao-media-card-grid {
  display: grid;
  gap: 18px;
}

.wangao-media-card-grid.is-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wangao-media-card-grid.is-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wangao-media-card-grid.is-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.wangao-media-card,
.wangao-project-card,
.wangao-related-product {
  overflow: hidden;
  border: 1px solid var(--wangao-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(8, 45, 32, .065);
}

.wangao-media-card img,
.wangao-project-card img,
.wangao-related-product img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f2f5f3; }
.wangao-media-card > div,
.wangao-project-card > div,
.wangao-related-product a > div { padding: 20px; }
.wangao-media-card h3,
.wangao-project-card h3,
.wangao-related-product h3 { margin: 0 0 9px; color: var(--wangao-ink); font-size: 20px; }
.wangao-media-card p,
.wangao-project-card p,
.wangao-related-product p { margin: 0; color: var(--wangao-muted); line-height: 1.58; }
.wangao-media-card a,
.wangao-project-card,
.wangao-related-product a { color: inherit; text-decoration: none; }

.wangao-project-card-grid,
.wangao-related-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.wangao-project-card > div > span { color: var(--wangao-green); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.wangao-related-product a { display: block; }
.wangao-related-product img { object-fit: contain; }
.wangao-related-product a > div > span { display: inline-block; margin-top: 14px; color: var(--wangao-green); font-weight: 800; }

.wangao-product-inquiry-section { background: #edf4ef !important; }
.wangao-product-inquiry-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr); gap: 54px; align-items: start; }
.wangao-product-inquiry-grid ul { padding-left: 20px; color: var(--wangao-muted); line-height: 1.8; }
.wangao-product-inquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 25px; border-radius: 16px; background: #fff; box-shadow: var(--wangao-shadow); }
.wangao-product-inquiry-form input,
.wangao-product-inquiry-form textarea { min-width: 0; padding: 14px 15px; border: 1px solid var(--wangao-line); border-radius: 9px; background: #fff; color: var(--wangao-ink); font: inherit; }
.wangao-product-inquiry-form textarea { grid-column: 1 / -1; min-height: 132px; resize: vertical; }
.wangao-product-inquiry-form button { grid-column: 1 / -1; width: 100%; }
.wangao-product-inquiry-form .wangao-form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }
.wangao-product-inquiry-form .wangao-form-status { grid-column: 1 / -1; margin: 0; font-size: 14px; font-weight: 700; }
.wangao-product-inquiry-form .wangao-form-status[data-state="pending"] { color: var(--wangao-muted); }
.wangao-product-inquiry-form .wangao-form-status[data-state="success"] { color: var(--wangao-green); }
.wangao-product-inquiry-form .wangao-form-status[data-state="error"] { color: #9f2b21; }

.wangao-block-cta { padding: 70px 0; background: var(--wangao-deep); color: #fff; }
.wangao-block-cta .wangao-block-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 40px; align-items: center; }
.wangao-block-cta h2 { color: #fff; }
.wangao-block-cta p { max-width: 760px; color: #dce8df; line-height: 1.7; }
.wangao-block-highlights { display: grid; gap: 10px; }
.wangao-block-highlight { padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.wangao-block-highlight strong { display: block; }
.wangao-block-highlight span { color: #dce8df; }

.wangao-lightbox[hidden] { display: none !important; }
.wangao-lightbox { position: fixed; z-index: 100000; inset: 0; display: grid; place-items: center; padding: 68px 80px; background: rgba(3, 18, 12, .92); }
.wangao-lightbox-stage { display: grid; width: min(1200px, 100%); height: min(760px, calc(100vh - 136px)); place-items: center; }
.wangao-lightbox-stage img,
.wangao-lightbox-stage video,
.wangao-lightbox-stage iframe { display: block; max-width: 100%; max-height: 100%; border: 0; border-radius: 10px; background: #000; object-fit: contain; }
.wangao-lightbox-stage iframe { width: min(1100px, 100%); aspect-ratio: 16 / 9; }
.wangao-lightbox-close,
.wangao-lightbox-prev,
.wangao-lightbox-next { position: absolute; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; cursor: pointer; }
.wangao-lightbox-close { top: 18px; right: 22px; }
.wangao-lightbox-prev { top: 50%; left: 22px; transform: translateY(-50%); }
.wangao-lightbox-next { top: 50%; right: 22px; transform: translateY(-50%); }
.wangao-lightbox-caption { position: absolute; right: 80px; bottom: 24px; left: 80px; color: #fff; text-align: center; }
body.wangao-lightbox-open { overflow: hidden; }

@media (max-width: 1024px) {
  .wangao-block-hero-grid,
  .wangao-product-master-hero-grid { grid-template-columns: 1fr; }
  .wangao-product-master-copy { max-width: 760px; }
  .wangao-product-main { min-height: 520px; }
  [data-wangao-block="feature-grid"] .wangao-block-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wangao-media-card-grid.is-columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floating-actions {
    top: auto !important;
    right: 12px !important;
    bottom: 14px !important;
    left: auto !important;
    width: 240px !important;
    grid-template-columns: repeat(4, 54px) !important;
    gap: 8px !important;
    transform: none !important;
  }
  .floating-actions .floating-action {
    width: 54px !important;
    height: 54px !important;
    padding: 0 !important;
    font-size: 9px !important;
  }
}

@media (min-width: 1025px) and (max-width: 1500px) {
  .floating-actions { right: 8px !important; }
  .floating-actions .floating-action {
    width: 100px !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 760px) {
  .wangao-block-inner { width: min(100% - 32px, 1180px); }
  .wangao-block-section,
  .wangao-block-hero,
  .wangao-product-master-hero { padding: 56px 0; }
  .wangao-block-two-column,
  .wangao-product-inquiry-grid,
  .wangao-block-cta .wangao-block-inner { grid-template-columns: 1fr; gap: 30px; }
  .wangao-block-card-grid,
  .wangao-block-spec-grid,
  .wangao-block-material-grid,
  .wangao-block-gallery,
  .wangao-media-card-grid.is-columns-2,
  .wangao-media-card-grid.is-columns-3,
  .wangao-media-card-grid.is-columns-4,
  .wangao-project-card-grid,
  .wangao-related-product-grid { grid-template-columns: 1fr; }
  [data-wangao-block="feature-grid"] .wangao-block-card-grid { grid-template-columns: 1fr; }
  .wangao-product-master-stats { grid-template-columns: 1fr; }
  .wangao-product-master-stats article { min-height: 0; }
  .wangao-product-main { min-height: min(430px, 96vw); }
  .wangao-product-main-open { padding: 12px; }
  .wangao-product-thumbs { grid-template-columns: repeat(4, 82px); overflow-x: auto; overscroll-behavior-inline: contain; }
  .wangao-product-inquiry-form { grid-template-columns: 1fr; padding: 18px; }
  .wangao-product-inquiry-form input,
  .wangao-product-inquiry-form textarea,
  .wangao-product-inquiry-form button { grid-column: 1; }
  .wangao-lightbox { padding: 60px 14px; }
  .wangao-lightbox-prev { left: 8px; }
  .wangao-lightbox-next { right: 8px; }
  .wangao-lightbox-caption { right: 48px; bottom: 16px; left: 48px; }
}
