/* ============================================================
   Adventure Technology — Formlabs-style rebuild
   Pure HTML + CSS. Palette & layout follow formlabs-设计提取.md
   Black/White + Blue accent, card grids, tab applications
   ============================================================ */

:root {
  --blue: #00A1FE;
  --blue-light: #3DB8FE;
  --blue-dark: #0081CB;
  --black: #000000;
  --dark: #1A1A1A;
  --text: #1A1A1A;
  --text-mid: #333333;
  --text-muted: #666666;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-300: #E0E0E0;
  --footer-bg: #0D0D0D;
  --font: 'Inter', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  --max-w: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
svg { width: 100%; height: 100%; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  text-align: center;
  font-family: var(--font);
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
/* Desktop hover (mouse/trackpad) only — touch devices skip all :hover states. */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover { background: #fff; color: var(--black); border-color: #fff; }
}

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
@media (hover: hover) and (pointer: fine) {
  .btn-outline-dark:hover { background: var(--black); color: #fff; }
}

/* ---------- Link arrow ---------- */
.link-arrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  transition: color .15s, gap .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { color: var(--blue-dark); gap: 10px; }
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  transition: color .15s;
}
@media (hover: hover) and (pointer: fine) {
  .card-link:hover { color: var(--blue-dark); }
}

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; }
.section-gray { background: var(--gray-100); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
}
.section-head-left { max-width: 720px; }
.section-head-right { flex-shrink: 0; }

.section-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-tag-light { color: #fff; }

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
}
.section-title.light { color: #fff; }

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 16px;
  /* max-width: 560px; removed so desktop subtitles stay on one line */
}
.section-sub.light { color: rgba(255,255,255,.7); }

.section-foot {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  justify-content: center;
}
.section-foot-center { justify-content: center; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo img { height: 48px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-mid);
  position: relative;
  cursor: pointer;
  transition: color .15s;
}
@media (hover: hover) and (pointer: fine) {
  .nav-list > li > a:hover { color: var(--blue); }
}
.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
@media (hover: hover) and (pointer: fine) {
  .nav-list > li:hover > a::after { transform: scaleX(1); }
}

.has-sub > a::after {
  content: "\25BE";
  font-size: 9px;
  margin-left: 5px;
  display: inline-block;
}

/* dropdown */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  padding: 8px 0;
  display: none;
  z-index: 50;
}
@media (hover: hover) and (pointer: fine) {
  .has-sub:hover > .submenu { display: block; }
}

.submenu a {
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  color: var(--text-mid);
  cursor: pointer;
  transition: background .15s, color .15s, padding-left .15s;
}
@media (hover: hover) and (pointer: fine) {
  .submenu a:hover { background: var(--gray-50); color: var(--blue); padding-left: 26px; }
}

/* Non-clickable section label inside a dropdown (e.g. Top-down / Bottom-up DLP).
   Deliberately NOT an <a>, so it inherits none of the link hover/indent behaviour
   above — it only groups the items that follow it. */
.submenu-group {
  padding: 12px 20px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: default;
  white-space: nowrap;
}
.submenu-group:first-child { padding-top: 6px; }
.submenu-group:not(:first-child) {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

/* nested (third-level) dropdown — desktop flyout */
@media (hover: hover) and (pointer: fine) and (min-width: 821px) {
  .submenu li.has-sub { position: relative; }
  .submenu .submenu {
    top: -9px;                    /* align flyout's first item with its parent row */
    left: 100%;
    box-shadow: 6px 10px 28px rgba(0,0,0,.10); /* right-biased, not over the parent */
  }
  .submenu .has-sub > a::after { content: none; } /* no caret on nested items */
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header-actions .btn { font-size: 16px; }

/* header social icons (light background variant) */
.header-social {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 14px;
  border-right: 1px solid var(--gray-200);
  margin-right: 2px;
}
.header-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  border-radius: 50%;
  padding: 7px;
  transition: color .15s, background .15s, transform .15s;
}
@media (hover: hover) and (pointer: fine) {
  .header-social a:hover {
    color: var(--blue);
    background: rgba(0,161,254,.08);
    transform: translateY(-1px);
  }
}
.header-social svg { width: 100%; height: 100%; }

/* hamburger */
.nav-toggle { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #A6A6A6;   /* subtle light gray */
  transition: transform .25s, opacity .25s;
}
/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  /* min-height guarantees the text block fits at 100% zoom and below;
     height tracks the viewport width beyond that so the banner keeps the
     SAME crop as at 100% when zoomed out (50%/75%) or on wider screens —
     otherwise the box widens while height stays 600px and cover crops flatter. */
  min-height: 600px;
  height: 31.5vw;
  display: flex;
  align-items: center;   /* vertical centering only */
  padding: 100px 0;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(transparent 20%, rgba(0,0,0,.82) 50%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  /* Stretch to full width like the header container (capped at max-width),
     so the text block aligns with the logo's left edge on any viewport.
     margin:0 auto from .container centers it — correct here because the
     element spans the same width as the header's container. */
  flex: none;
  width: 100%;
}

.hero-text { max-width: 680px; }

.hero-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hl {
  background-image: linear-gradient(transparent 60%, rgba(0,161,254,.45) 60%);
  padding: 0 4px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   Products (Card Grid)
   ============================================================ */
.products { background: #fff; }

/* Homepage Materials grid: 3 columns so the 3 cards fill the full row
   and line up edge-to-edge with the 4-per-view Printers carousel above. */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- Product carousel (horizontal scroll + arrows) ---------- */
.product-carousel {
  position: relative;
}

.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 20px 4px 32px;
  margin: -20px -4px -32px;
}
.carousel-viewport::-webkit-scrollbar { display: none; }

.product-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
}

/* Same card size as the Materials grid: 4 columns, 24px gap. */
.product-carousel-track .product-card {
  flex: 0 0 calc(25% - 18px);
}

/* Homepage product carousel only: square image tiles + larger product.
   Scoped to .products so material inner-page carousels keep the default 4:3 images. */
.products .product-carousel-track .product-img { aspect-ratio: 1 / 1; padding: 12px; }
.products .product-carousel-track .product-img img { max-height: 300px; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, opacity .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.carousel-btn-prev { left: -60px; }
.carousel-btn-next { right: -60px; }
.carousel-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* When page margins shrink, tuck arrows into the container gutter (no overlap). */
@media (max-width: 1400px) {
  .carousel-btn { width: 30px; height: 30px; }
  .carousel-btn svg { width: 18px; height: 18px; }
  .carousel-btn-prev { left: -32px; }
  .carousel-btn-next { right: -32px; }
}
@media (hover: hover) and (pointer: fine) {
  .carousel-btn:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
  }
}
.carousel-btn:active { transform: translateY(-50%) scale(.96); }
.carousel-btn:disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}


.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,.10);
    border-color: var(--blue);
  }
}

.product-img {
  position: relative;
  background: var(--gray-50);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.badge-new {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 0 0 12px 0;
  z-index: 1;
}
.product-img img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  transition: transform .3s;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-img img { transform: scale(1.05); }
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
}

.product-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

.product-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.product-body .card-link { margin-top: 4px; }

/* ============================================================
   Applications (Research + Industry)
   ============================================================ */
.app-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 48px;
  align-items: start;
}
.app-grid-mirror {
  grid-template-columns: 1fr 400px;
}

.app-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 24px 0 32px;
  max-width: 520px;
}

.app-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.app-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .app-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,.10);
    border-color: var(--blue);
  }
}

.app-img {
  height: 240px;
  overflow: hidden;
}
.app-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
@media (hover: hover) and (pointer: fine) {
  .app-card:hover .app-img img { transform: scale(1.05); }
}

.app-body {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.app-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

.app-line {
  width: 32px;
  height: 2px;
  background: var(--blue);
  margin: 16px 0;
}

.app-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .app-grid { grid-template-columns: 1fr; gap: 40px; }
  .app-desc { max-width: none; }
  .app-grid-mirror .app-cards { order: 2; }
  .app-grid-mirror .app-intro { order: 1; }
}
@media (max-width: 640px) {
  .app-cards { grid-template-columns: 1fr; }
  .app-img { height: 200px; }
}

/* ============================================================
   Application page (part gallery)
   ============================================================ */
.app-family {
  margin-bottom: 64px;
}
.app-family:last-child {
  margin-bottom: 0;
}

.app-family-head {
  margin-bottom: 24px;
}
.app-family-head h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}
.app-family-head p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  /* max-width removed so the intro line stays on a single line */
}

.app-part-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.app-part {
  margin: 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .app-part:hover,
  .app-part-full:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    border-color: var(--blue);
  }
}
.app-part img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.app-part figcaption {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  text-align: center;
}
.app-part-full {
  margin: 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.app-part-full img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1.04);
}
#industry .app-part-full img {
  filter: brightness(1.06);
}
.app-part-full + .app-part-full {
  margin-top: 20px;
}

/* Application page — case studies */
.case-study {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
}
.case-study + .case-study {
  margin-top: 32px;
}
.case-study--reverse {
  grid-template-columns: 1fr 1.4fr;
}
.case-study--reverse .case-study-media {
  order: -1;
}
.case-study-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.3;
  margin: 0 0 20px;
}
.case-specs {
  list-style: none;
  margin: 0;
  padding: 0;
}
.case-specs li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 15px;
  line-height: 1.5;
}
.case-specs li:last-child {
  border-bottom: none;
}
.case-specs li span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}
.case-specs li span:last-child {
  color: var(--black);
  font-weight: 600;
}
.case-study-media {
  display: grid;
  gap: 16px;
}
.case-study-media img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}
@media (max-width: 900px) {
  .case-study {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .case-study--reverse .case-study-media {
    order: 0;
  }
}

@media (max-width: 1024px) {
  .app-part-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .app-part-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Materials
   ============================================================ */
.material-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.material-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 24px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  transition: background .2s, border-color .2s, transform .15s;
}
@media (hover: hover) and (pointer: fine) {
  .material-pill:hover {
    background: #fff;
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,161,254,.08);
  }
}

.pill-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 10px;
}
.pill-icon svg { width: 100%; height: 100%; }

/* ============================================================
   News
   ============================================================ */
.news { background: #fff; }
.news.section-gray { background: var(--gray-100); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
    border-color: var(--blue);
  }
}

.news-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-50);
}
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
@media (hover: hover) and (pointer: fine) {
  .news-card:hover .news-img img { transform: scale(1.05); }
}

.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.news-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
}

.news-body h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  flex: 1;
}

.news-date {
  font-size: 13px;
  color: var(--text-muted);
}

.news-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.news-card--blog .news-body h3 { flex: 0 0 auto; }
.news-card--blog .news-excerpt { flex: 1; }

/* Blog listing (no sidebar): single column, image left / text right —
   matches the original Blog.html layout. */
#blog .news-grid {
  grid-template-columns: 1fr;
}
#blog .news-card {
  flex-direction: row;
  align-items: stretch;
  min-height: 180px;
}
#blog .news-card .news-img {
  flex: 0 0 300px;
  aspect-ratio: auto;
  align-self: stretch;
}
#blog .news-card .news-body {
  flex: 1;
  justify-content: center;
}
#blog .news-card .news-excerpt { flex: 0 0 auto; }

/* ---------- Blog filter tabs (no sidebar) ---------- */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 40px;
}

.blog-filter a {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  background: #fff;
  transition: background .2s, color .2s, border-color .2s;
}

@media (hover: hover) and (pointer: fine) {
  .blog-filter a:hover {
    border-color: var(--blue);
    color: var(--blue);
  }
}

.blog-filter a.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Blog listing follows the page hero — tighten the top gap (was .section's 96px). */
.page-hero + .section { padding-top: 48px; }


/* ---------- Blog article detail ---------- */
.article { background: #fff; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 6px;
  font-size: 14px;
}

.article-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
  padding: 3px 12px;
  border-radius: 999px;
}
.article-date { color: rgba(255, 255, 255, .9); }
.article-author { color: rgba(255, 255, 255, .75); }

.article-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-mid);
}
.article-body h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--black);
  margin: 40px 0 16px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin: 30px 0 12px;
}
.article-body p { margin: 0 0 18px; }
.article-body ul {
  list-style: disc;
  padding-left: 24px;
  margin: 0 0 18px;
}
.article-body li { margin: 0 0 6px; }
.article-body strong { font-weight: 700; color: var(--black); }
.article-body a { color: var(--blue); text-decoration: underline; }
.article-body img {
  width: 100%;
  border-radius: 12px;
  margin: 8px 0 20px;
}
.article-nav {
  max-width: 800px;
  margin: 40px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  border-top: 1px solid var(--gray-200);
  padding-top: 28px;
}

/* ---------- Blog article header (title below the text-free banner) ---------- */
.article-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 0 26px;
}
.article-header h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.22;
  color: var(--black);
  margin: 14px 0 0;
  max-width: 900px;
}
.article-header .article-meta {
  color: var(--text-muted);
  margin-top: 16px;
}
.article-header .article-tag {
  color: var(--blue);
  border-color: rgba(0, 161, 254, .45);
  background: rgba(0, 161, 254, .08);
}
.article-header .article-date,
.article-header .article-author {
  color: var(--text-muted);
}

/* ---------- Blog article two-column layout + sticky sidebar ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}
.article-layout .article-body {
  max-width: none;
  margin: 0;
}
.article-layout .article-nav {
  grid-column: 1 / -1;
  max-width: none;
  margin: 40px 0 0;
}
.article-sidebar {
  position: sticky;
  top: 96px;
}
.article-sidebar .service-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
}
.article-sidebar .sidebar-form-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  margin: 0;
}
.article-sidebar .sidebar-form-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.article-sidebar .form-submit { margin-top: 4px; }
.article-sidebar .form-actions { text-align: left; }
.article-sidebar .form-actions .btn { width: 100%; }
.article-sidebar .form-field textarea { min-height: 110px; }
.article-header + .article { padding-top: 40px; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-sidebar { position: static; }
}


/* ============================================================
   Contact
   ============================================================ */
.contact {
  background: #2A2A2A;
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  padding: 32px 28px;
  color: #fff;
  transition: border-color .2s, background .2s;
}
@media (hover: hover) and (pointer: fine) {
  .contact-card:hover {
    border-color: var(--blue);
    background: rgba(0,161,254,.08);
  }
}

.contact-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 12px;
}
.contact-icon svg { width: 100%; height: 100%; }

.contact-text { display: flex; flex-direction: column; gap: 6px; }

.contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-light);
}

.contact-value { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.85); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-logo img { height: 52px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 280px;
}

.footer-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #fff;
}
.footer-title-gap { margin-top: 28px; }

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,.55);
  font-size: 14px;
  transition: color .15s;
}
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--blue-light); }
}

.social-row, .footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.social-row a, .footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  padding: 9px;
  transition: background .2s, color .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .social-row a:hover, .footer-social a:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
  }
}
.social-row svg, .footer-social svg { width: 100%; height: 100%; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 24px 32px;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
.footer-bottom-inner p { margin: 0; }
.footer-bottom-inner a { color: rgba(255,255,255,.4); transition: color .15s; }
@media (hover: hover) and (pointer: fine) {
  .footer-bottom-inner a:hover { color: var(--blue-light); }
}

/* ============================================================
   Floating rail
   ============================================================ */
.float-rail {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-btn {
  width: 48px;
  height: 48px;
  background: var(--black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 12px;
  transition: background .2s, color .2s, transform .15s;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
@media (hover: hover) and (pointer: fine) {
  .float-btn:hover { background: var(--blue); color: #fff; transform: scale(1.08); }
}
.float-btn svg { width: 100%; height: 100%; }

.float-btn-top { background: var(--blue); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .float-btn-top:hover { background: var(--blue-dark); color: #fff; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  /* Tablet (incl. iPad Pro portrait): keep the full horizontal nav,
     hide the social icons and compact spacing so it fits comfortably. */
  .nav-list > li > a { font-size: 13px; padding: 10px 8px; }
  .logo img { height: 40px; }
  .header-actions .btn { font-size: 14px; padding: 10px 18px; }

  .header-inner { gap: 16px; }
  .header-actions { margin-left: auto; }
  .header-social { display: none; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-carousel-track .product-card { flex-basis: calc(50% - 12px); }
  .material-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Up to iPad portrait/landscape (≤1024px): homepage card sections become
     swipeable horizontal scrollers (Printers / Materials / Applications /
     Services / News & Articles). Desktop (>1024px) keeps the grid / arrow
     carousel — these rules are scoped to the homepage sections. No negative
     margin here: a -20px left margin made the browser auto-scroll the
     container by 20px on load, pushing the first card flush to the edge. */
  .products .carousel-viewport {
    padding: 4px 0 16px;
    margin: 0;
    scroll-snap-type: x mandatory;
  }
  .products .carousel-viewport::-webkit-scrollbar { display: none; }
  .products .product-carousel-track { gap: 16px; }
  .products .product-carousel-track .product-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }
  .products .carousel-btn { display: none; }

  /* Inner-page product carousels (printer "Other Printers" / material & service
     "Related Products"): the same .product-carousel component. On ≤1024px switch
     to a swipeable horizontal scroller like the homepage Printers & News sections
     — 84% cards with a peek, scroll-snap, arrows hidden. Desktop (>1024px) is
     untouched. */
  .page-section .carousel-viewport {
    padding: 4px 0 16px;
    margin: 0;
    scroll-snap-type: x mandatory;
  }
  .page-section .carousel-viewport::-webkit-scrollbar { display: none; }
  .page-section .product-carousel-track { gap: 16px; }
  .page-section .product-carousel-track .product-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }
  .page-section .carousel-btn { display: none; }

  .materials .product-grid,
  .news .news-grid,
  .page-section .news-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 16px;
    padding: 4px 0 16px;
  }
  .materials .product-grid::-webkit-scrollbar,
  .news .news-grid::-webkit-scrollbar,
  .page-section .news-grid::-webkit-scrollbar { display: none; }
  .materials .product-grid .product-card,
  .news .news-grid .news-card,
  .page-section .news-grid .news-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  /* 博客列表页(#blog)：移动端竖排单列，取消横向滑动 */
  #blog .news-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: visible;
    gap: 24px;
    padding: 0;
  }
  /* 平板宽度下，横向博客卡缩图变窄 */
  #blog .news-card .news-img { flex-basis: 240px; }

  .applications .app-cards,
  .services .app-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 16px;
    padding: 4px 0 16px;
  }
  .applications .app-cards::-webkit-scrollbar,
  .services .app-cards::-webkit-scrollbar { display: none; }
  .applications .app-card,
  .services .app-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-text { max-width: 100%; }
}

@media (max-width: 820px) {
  .hamburger { display: flex; order: -1; }
  .nav-toggle { display: block; position: absolute; opacity: 0; pointer-events: none; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 18px 40px rgba(0,0,0,.08);
    max-height: calc(100vh - 72px);
    overflow: auto;
    z-index: 60;
  }
  .nav-toggle:checked ~ .main-nav { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .nav-list > li > a { padding: 13px 24px; font-size: 16px; }
  .nav-list > li > a::after { display: none; }
  .has-sub > a::after { display: none; }

  .submenu {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding: 0 0 8px;
    background: var(--gray-50);
    border-radius: 0;
  }
  .submenu a { padding: 9px 40px; }
  .submenu-group { padding: 14px 40px 4px; }
  .submenu-group:first-child { padding-top: 8px; }
  @media (hover: hover) and (pointer: fine) {
    .submenu a:hover { padding-left: 46px; }
  }
  .submenu .submenu a { padding-left: 56px; }
  @media (hover: hover) and (pointer: fine) {
    .submenu .submenu a:hover { padding-left: 62px; }
  }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }

  .product-grid { grid-template-columns: 1fr; }
  .product-carousel-track .product-card { flex-basis: 100%; }
  .carousel-btn { width: 36px; height: 36px; }
  .carousel-btn svg { width: 18px; height: 18px; }
  .carousel-btn-prev { left: 0; }
  .carousel-btn-next { right: 0; }
  .material-grid { grid-template-columns: 1fr; }
  /* 小屏博客卡竖排（图在上、文字在下），banner 高度降低 */
  #blog .news-card { flex-direction: column; min-height: 0; }
  #blog .news-card .news-img { flex: 0 0 auto; aspect-ratio: 16 / 10; }
  .page-hero-photo-blog { height: 180px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .header-actions .btn { padding: 10px 18px; font-size: 14px; }
  .hero { padding: 64px 0; min-height: 500px; }
  .hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .hero-sub { font-size: 16px; }

  .section-foot { flex-direction: column; align-items: stretch; }
  .section-foot .btn { width: 100%; }

  .float-rail { right: 12px; bottom: 72px; }
  .float-btn { width: 44px; height: 44px; }
}

/* ============================================================
   Sub-page additions (appended, index untouched)
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); transition: color .15s; }
@media (hover: hover) and (pointer: fine) {
  .breadcrumb a:hover { color: var(--blue); }
}
.breadcrumb span { color: var(--text); font-weight: 500; }

/* ---------- Page hero (sub-page masthead) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--gray-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--gray-200);
  padding: 64px 0 56px;
}
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 12px 0 16px;
}
.page-hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.55;
}

/* ---------- Page hero with photo background ---------- */
.page-hero-photo {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .45) 100%),
    url("images/printers/banner.webp") center / cover no-repeat;
}
.page-hero-photo-material {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .45) 100%),
    url("images/material/banner.webp") center / cover no-repeat;
}
.page-hero-photo-material .page-hero-sub { max-width: none; }
.page-hero-photo-service {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .45) 100%),
    url("images/service/hero.webp") center / cover no-repeat;
}
.page-hero-photo-service .page-hero-sub { max-width: 960px; }
.page-hero-photo-application {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .45) 100%),
    url("images/application/banner.webp") center / cover no-repeat;
}
.page-hero-photo-application .page-hero-sub { max-width: 760px; }
.page-hero-photo-blog {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .45) 100%),
    url("images/blog/banner.webp") center / cover no-repeat;
}
.page-hero-photo-blog .page-hero-sub { max-width: none; }

/* Blog banner is a text-free photo (matches original Blog.html) */
.page-hero-photo-blog {
  padding: 0;
  height: 300px;
}
.page-hero-photo-blog .breadcrumb,
.page-hero-photo-blog h1,
.page-hero-photo-blog .page-hero-sub {
  display: none;
}
.page-hero-photo-contact {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .45) 100%),
    url("images/contact/hero.webp") center / cover no-repeat;
}
.page-hero-photo-contact .page-hero-sub { max-width: none; }
.page-hero-photo-about {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .45) 100%),
    url("images/about/hero.webp") center / cover no-repeat;
}
.page-hero-photo-about .page-hero-sub { max-width: none; }

.page-hero-photo .breadcrumb,
.page-hero-photo-material .breadcrumb,
.page-hero-photo-service .breadcrumb,
.page-hero-photo-application .breadcrumb,
.page-hero-photo-blog .breadcrumb,
.page-hero-photo-contact .breadcrumb,
.page-hero-photo-about .breadcrumb { color: rgba(255, 255, 255, .8); }
.page-hero-photo .breadcrumb a,
.page-hero-photo-material .breadcrumb a,
.page-hero-photo-service .breadcrumb a,
.page-hero-photo-application .breadcrumb a,
.page-hero-photo-blog .breadcrumb a,
.page-hero-photo-contact .breadcrumb a,
.page-hero-photo-about .breadcrumb a { color: rgba(255, 255, 255, .8); }
@media (hover: hover) and (pointer: fine) {
  .page-hero-photo .breadcrumb a:hover,
  .page-hero-photo-material .breadcrumb a:hover,
  .page-hero-photo-service .breadcrumb a:hover,
  .page-hero-photo-application .breadcrumb a:hover,
  .page-hero-photo-blog .breadcrumb a:hover,
  .page-hero-photo-contact .breadcrumb a:hover,
  .page-hero-photo-about .breadcrumb a:hover { color: #fff; }
}
.page-hero-photo .breadcrumb span,
.page-hero-photo-material .breadcrumb span,
.page-hero-photo-service .breadcrumb span,
.page-hero-photo-application .breadcrumb span,
.page-hero-photo-blog .breadcrumb span,
.page-hero-photo-contact .breadcrumb span,
.page-hero-photo-about .breadcrumb span { color: #fff; }
.page-hero-photo h1,
.page-hero-photo-material h1,
.page-hero-photo-service h1,
.page-hero-photo-application h1,
.page-hero-photo-blog h1,
.page-hero-photo-contact h1,
.page-hero-photo-about h1 { color: #fff; }
.page-hero-photo .page-hero-sub,
.page-hero-photo-material .page-hero-sub,
.page-hero-photo-service .page-hero-sub,
.page-hero-photo-application .page-hero-sub,
.page-hero-photo-blog .page-hero-sub,
.page-hero-photo-contact .page-hero-sub,
.page-hero-photo-about .page-hero-sub { color: rgba(255, 255, 255, .85); }

/* ---------- Product center (sidebar + anchor nav) ---------- */
.product-center { padding: 48px 0 72px; }
.product-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.product-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px;
}
.product-sidebar .sidebar-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 6px 12px 10px;
}
.product-sidebar a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
@media (hover: hover) and (pointer: fine) {
  .product-sidebar a:hover { background: var(--gray-50); color: var(--black); }
}
.product-sidebar a.active { background: var(--blue); color: #fff; }

.product-content { min-width: 0; }

/* ---------- Product family sections (anchor targets) ---------- */
.product-family { scroll-margin-top: 88px; }
.product-family + .product-family { margin-top: 96px; }

/* ---------- Page section ---------- */
.page-section { padding: 72px 0; }
.page-section.bg-light { background: var(--gray-50); }
.page-section .section-head { margin-bottom: 48px; }

/* ---------- Configuration block (matches original site) ---------- */
.config-block { scroll-margin-top: 88px; }
.config-block + .config-block { margin-top: 80px; }
.config-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.config-header h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
}
.config-header .btn { flex-shrink: 0; }
.config-body {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
}
.config-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.config-media { display: block; }
.config-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.config-points { padding: 8px 0; }
.config-points h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 20px;
}
.config-points h3:not(:first-child) { margin-top: 28px; }
.config-points ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.config-points li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
}
.config-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .18;
}
.config-points li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.config-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.config-gallery.gallery-4 { grid-template-columns: repeat(4, 1fr); }
.config-gallery.gallery-square { grid-template-columns: repeat(2, 1fr); }
.config-gallery.gallery-square img { aspect-ratio: 1 / 1; }
.config-gallery.gallery-4 img { aspect-ratio: 1 / 1; object-fit: contain; }

/* Material detail pages: single-image slider (gallery left, points right) */
.config-main .config-gallery { margin-top: 0; }

.config-gallery.gallery-slider { display: block; position: relative; }
.gallery-slider .slider-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery-slider .slider-viewport::-webkit-scrollbar { display: none; }
.gallery-slider .slider-track { display: flex; }
.gallery-slider .slider-track img {
  flex: 0 0 100%;
  scroll-snap-align: start;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.gallery-slider .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, opacity .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.gallery-slider .slider-btn-prev { left: 12px; }
.gallery-slider .slider-btn-next { right: 12px; }
.gallery-slider .slider-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (hover: hover) and (pointer: fine) {
  .gallery-slider .slider-btn:hover:not(:disabled) { background: var(--blue); color: #fff; }
}
.gallery-slider .slider-btn:disabled { opacity: .35; cursor: default; }
.gallery-slider .slider-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.gallery-slider .slider-thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-50);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s;
}
.gallery-slider .slider-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: var(--gray-50);
  display: block;
}
@media (hover: hover) and (pointer: fine) {
  .gallery-slider .slider-thumb:hover { border-color: var(--blue-light); }
}
.gallery-slider .slider-thumb.is-active { border-color: var(--blue); }

/* Mobile only: the arrows use top:50% of the whole .gallery-slider, which also
   contains the thumbnails row (12px margin + 56px thumb). Shift the arrows up
   by half of that (34px) so they sit on the vertical center of the square image. */
@media (max-width: 820px) {
  .gallery-slider .slider-btn-prev,
  .gallery-slider .slider-btn-next {
    top: calc(50% - 34px);
  }
}
.config-actions { margin-top: 40px; text-align: center; }
.config-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* ---------- Header active state ---------- */
.nav-list > li > a.active { color: var(--blue); }
.nav-list > li > a.active::after { transform: scaleX(1); }

/* ---------- Responsive: sub-page additions ---------- */
@media (max-width: 1024px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    border: none;
    padding: 0;
    background: transparent;
  }
  .product-sidebar .sidebar-title { width: 100%; }
  .product-sidebar a {
    border: 1px solid var(--gray-200);
    background: #fff;
  }
  .config-main { grid-template-columns: 1fr; }
  .config-media { min-height: 240px; }
  .config-gallery.gallery-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .page-hero { padding: 48px 0; }
  .product-center { padding: 32px 0 56px; }
  .page-section { padding: 56px 0; }
  .config-body { padding: 24px; }
  .config-header { flex-direction: column; align-items: flex-start; }
  .config-header .btn { width: 100%; text-align: center; }
  .config-gallery.gallery-square { grid-template-columns: 1fr; }
}

/* ============================================================
   Material detail pages — areas, cases, parameter table
   ============================================================ */
.app-areas { display: flex; flex-wrap: wrap; gap: 12px; }
.app-area {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
}
.app-area::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}

.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.case-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
    border-color: var(--blue);
  }
}
.case-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--gray-50); }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
@media (hover: hover) and (pointer: fine) {
  .case-card:hover .case-img img { transform: scale(1.05); }
}
.case-name {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

.param-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
}
.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
.param-table th,
.param-table td {
  padding: 13px 18px;
  border: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}
.param-table thead th {
  background: var(--gray-50);
  font-weight: 700;
  color: var(--text);
}
.param-table tbody th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--text-mid);
}
.param-table td { color: var(--text-mid); }
/* Catalog section divider ("Powder" / "Slurry" / "Sintered Ceramics"). */
.param-table tr.param-section th {
  background: var(--gray-100);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 11px;
  padding-bottom: 11px;
}
.param-group-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 14px;
}
.param-group-title:first-of-type { margin-top: 0; }
.intro-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 860px;
}

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

/* ============================================================
   Service page — description, cases, form, process, related
   ============================================================ */
.service-section { scroll-margin-top: 88px; }
.service-section + .service-section { margin-top: 88px; }

.service-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 16px;
}
.service-intro {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 780px;
  margin-bottom: 28px;
}

/* description banner + split */
.service-banner {
  margin: 0 0 32px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  background: var(--gray-50);
}
.service-banner img { width: 100%; height: auto; display: block; }

.service-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
}
.service-side-img {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-50);
}
.service-side-img img { width: 100%; height: auto; display: block; }

.materials-note {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 26px 28px;
}
.materials-note h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}
.materials-note p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-mid);
}

/* inquiry anchor & form */
#inquiry,
#send-inquiry,
.inquiry-title {
  scroll-margin-top: 96px;
}

/* request form */
.service-form {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.form-field label .req { color: var(--blue); }
.form-field input,
.form-field textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  padding: 13px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: #fff;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,161,254,.15);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-submit { margin-top: 40px; }
.form-actions { text-align: center; }
.service-cta { text-align: center; margin-top: 28px; }
.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* form submission feedback & loading states */
.form-feedback {
  display: none;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 20px;
  text-align: left;
  transition: opacity .3s ease;
}
.form-feedback-success {
  display: block;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.form-feedback-error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.btn.btn-loading {
  opacity: 0.8;
  cursor: not-allowed;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: form-spin .7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes form-spin {
  to { transform: rotate(360deg); }
}

/* order process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px 20px 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    border-color: var(--blue);
  }
}
.process-num {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.process-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.35;
}

/* related news subheading */
.service-subtitle {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin: 48px 0 20px;
}

/* service responsive */
@media (max-width: 1024px) {
  .service-split { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .service-section + .service-section { margin-top: 64px; }
  .service-form { padding: 24px; }
  .process-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Contact page — offices, advantages, recruitment
   ============================================================ */
.office-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}
.office-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color .2s, box-shadow .2s;
}
@media (hover: hover) and (pointer: fine) {
  .office-card:hover { border-color: var(--blue); box-shadow: 0 12px 32px rgba(0,0,0,.06); }
}
.office-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.office-card h3 { font-size: 18px; font-weight: 700; color: var(--black); margin-bottom: 16px; }
.office-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.office-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mid);
}
.office-list .ico { flex: 0 0 auto; width: 17px; height: 17px; color: var(--blue); margin-top: 2px; }
.office-list .ico svg { width: 100%; height: 100%; }
.office-list a { color: var(--text-mid); }
@media (hover: hover) and (pointer: fine) {
  .office-list a:hover { color: var(--blue); }
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.advantage-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
@media (hover: hover) and (pointer: fine) {
  .advantage-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.06); }
}
.advantage-card h4 { font-size: 16px; font-weight: 700; color: var(--black); margin-bottom: 8px; }
.advantage-card p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* ============================================================
   About page — honor gallery (portrait) + timeline
   ============================================================ */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.honor-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .honor-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); border-color: var(--blue); }
}
.honor-card img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; display: block; cursor: zoom-in; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(15, 23, 42, .88);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
@media (hover: hover) and (pointer: fine) {
  .lightbox-close:hover { background: rgba(255, 255, 255, .28); }
}

.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 156px;
  top: 6px;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.timeline-item:last-child::before { display: none; }
.timeline-year {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue);
  text-align: right;
  line-height: 1;
}
.timeline-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
}
.timeline-card h3 { font-size: 18px; font-weight: 700; color: var(--black); margin-bottom: 10px; }
.timeline-card p { font-size: 14px; line-height: 1.7; color: var(--text-mid); }
.timeline-card img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  margin-top: 16px;
  max-height: 340px;
  object-fit: contain;
  background: #f6f7f9;
}

@media (max-width: 1024px) {
  .office-grid { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .honor-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-item::before { display: none; }
  .timeline-year { text-align: left; }
}
@media (max-width: 640px) {
  .advantage-grid { grid-template-columns: 1fr; }
  .honor-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Datasheet Download Button & Modal Dialog
   ============================================================ */
.datasheet-btn-wrap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--gray-200);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.btn-download-datasheet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  gap: 8px;
  padding: 13px 28px;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  width: fit-content;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
@media (hover: hover) and (pointer: fine) {
  .btn-download-datasheet:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #fff;
  }
}
.btn-download-datasheet:active {
  transform: scale(0.98);
}

/* Enforce small icons on both the page button and modal dialog buttons */
.btn-download-datasheet svg,
.datasheet-modal-actions .btn svg,
#dm-submit-btn svg,
#dm-download-link svg,
.datasheet-download-again svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Native Modal Dialog */
dialog.datasheet-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: calc(100% - 32px);
  max-width: 580px;
  max-height: calc(100vh - 40px);
  border: none;
  border-radius: 16px;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  color: var(--text-dark);
  z-index: 9999;
}
dialog.datasheet-modal::backdrop {
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
dialog.datasheet-modal[open] {
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.datasheet-modal-inner {
  padding: 32px;
  overflow-y: auto;
  max-height: calc(100vh - 40px);
}
.datasheet-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.datasheet-modal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: rgba(18, 53, 91, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.datasheet-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}
.datasheet-modal-subtitle {
  font-size: 14px;
  color: var(--text-mid);
  margin-top: 4px;
}
.datasheet-modal-close {
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: color .2s, background-color .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.datasheet-modal-close:hover {
  color: var(--black);
  background-color: var(--gray-100);
}
.datasheet-modal-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.datasheet-modal-form .form-field.full {
  grid-column: 1 / -1;
}
.datasheet-modal-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.datasheet-modal-form label .req {
  color: #ef4444;
}
.datasheet-modal-form input,
.datasheet-modal-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: #ffffff;
  transition: border-color .2s, box-shadow .2s;
}
.datasheet-modal-form input:focus,
.datasheet-modal-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(18, 53, 91, 0.12);
}
.datasheet-modal-form textarea {
  resize: vertical;
  min-height: 68px;
}
.datasheet-modal-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.datasheet-modal-actions .btn {
  width: 100%;
  gap: 8px;
}
.datasheet-modal-note {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin: 0;
}
.datasheet-success-box {
  display: none;
  text-align: center;
  padding: 24px 16px;
}
.datasheet-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
}
.datasheet-success-icon svg {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  display: block !important;
}
.datasheet-success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
.datasheet-success-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 20px;
}
.datasheet-download-again {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
@media (hover: hover) and (pointer: fine) {
  .datasheet-download-again:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #fff;
  }
}
.datasheet-download-again:active {
  transform: scale(0.98);
}
@media (max-width: 640px) {
  .datasheet-modal-form .form-grid {
    grid-template-columns: 1fr;
  }
  .datasheet-modal-inner {
    padding: 24px 18px;
  }
}

/* ============ Blog Pagination ============ */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 48px auto 0;
  padding: 0;
}
.blog-pagination .pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.blog-pagination .pagination-btn:hover:not(:disabled):not(.active) {
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--black);
}
.blog-pagination .pagination-btn.active {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: var(--white) !important;
  cursor: default;
}
.blog-pagination .pagination-btn:disabled,
.blog-pagination .pagination-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.blog-pagination .pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 42px;
  color: var(--gray-500);
  font-size: 15px;
  font-weight: 600;
}



