/* =================================================================
   Rapilink Optical Transceiver Website — Eoptolink 1:1 visual clone
   Content: Rapilink real data / Layout: Eoptolink reference
   ================================================================= */

:root {
  --navy: #013166;          /* footer / dark sections */
  --blue: #0345bf;          /* primary brand */
  --blue-d: #044cd0;        /* hover */
  --cyan: #00a8e6;          /* gradient right / accents */
  --ink: #252525;           /* headings */
  --body: #4b5563;          /* body text */
  --muted: #6b7785;
  --line: #e7eaef;
  --soft: #f5f7fa;
  --white: #fff;
  --radius: 8px;
  --radius-pill: 30px;
  --shadow: 0 2px 12px rgba(16, 32, 48, .07);
  --shadow-lg: 0 12px 36px rgba(16, 32, 48, .14);
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color .18s; }
a:hover { color: var(--cyan); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 600; line-height: 1.35; margin: 0 0 14px; }
h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 20px; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header ---------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 74px;
}
.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo img { max-height: 40px; width: auto; }
.logo-mark {
  width: 13px; height: 13px; border-radius: 3px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: inline-block; margin-right: 10px;
}
.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 26px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.main-nav > ul > li:hover > a,
.main-nav > ul > li.current > a { color: var(--blue); }
.main-nav > ul > li.current > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  height: 2px;
  background: var(--cyan);
}
.main-nav > ul > li.has-child > a::after {
  content: "";
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .7;
}

/* Dropdown */
.main-nav .has-child .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 620px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s;
}
.main-nav .has-child:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.dropdown-col { display: flex; flex-direction: column; gap: 7px; }
.dropdown-col a { font-size: 13.5px; color: var(--body); }
.dropdown-col a:hover { color: var(--blue); }
.dropdown-title {
  font-weight: 600 !important;
  color: var(--navy) !important;
  font-size: 14.5px !important;
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

/* Nav tools: search + language */
.nav-tools { display: flex; align-items: center; gap: 18px; }
.nav-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  height: 36px;
  background: #fff;
  padding: 0 4px 0 14px;
}
.nav-search input {
  border: 0;
  background: transparent;
  padding: 0 8px;
  width: 120px;
  font-size: 13.5px;
  outline: none;
  color: var(--ink);
}
.nav-search input::placeholder { color: #9aa5b1; }
.nav-search button {
  border: 0;
  background: transparent;
  padding: 0 8px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.nav-search button:hover { color: var(--blue); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
}
.lang-switch a:hover { color: var(--blue); }
.lang-switch a.active { background: var(--soft); color: var(--blue); }
.lang-switch .sep { opacity: .5; color: var(--muted); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
  padding: 9px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); color: #fff; }
.btn-accent { background: var(--blue); color: #fff; }
.btn-accent:hover { background: var(--blue-d); color: #fff; }
.btn-outline { background: transparent; border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--blue); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #024; color: #fff; }

/* ---------------- Hero (homepage) ---------------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-home { padding: 86px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  color: #fff;
  font-size: 42px;
  line-height: 1.18;
  margin-bottom: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.hero p {
  font-size: 16px;
  color: rgba(255,255,255,.9);
  margin-bottom: 28px;
}
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.hero-bullets li {
  font-size: 15.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.hero-bullets li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, .35));
}

/* ---------------- Rate strip (homepage) ---------------- */
.rate-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.rate-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 36px;
}
.rate-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: 96px;
}
.rate-ico {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
  background: #fff;
  transition: all .2s;
}
.rate-badge:hover .rate-ico {
  background: var(--blue);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.rate-label {
  font-size: 13px;
  color: var(--body);
  text-align: center;
  line-height: 1.3;
}

/* ---------------- Section ---------------- */
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2 { font-size: 30px; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 15.5px; margin: 0; }
.section-head .eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---------------- Homepage product cards (Eoptolink style) ---------------- */
.home-products { background: var(--white); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .22s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: #C9D6E2;
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.product-card .thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--soft);
  overflow: hidden;
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform .3s;
}
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .body {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.product-card h3 {
  font-size: 14px;
  margin: 0;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 600;
}
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { color: var(--blue); }

/* Promo cards (colored banner cards like Eoptolink) */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 22px;
}
.promo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #0F2A47, #16456F);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #fff;
}
.promo-card h3 {
  color: #fff;
  font-size: 18px;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
}
.promo-card p {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,.85);
}

/* ---------------- News cards ---------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .22s;
  display: flex;
  flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.news-card .thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--soft);
}
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-card .meta {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.news-tag {
  background: #E8F3FB;
  color: var(--blue);
  padding: 2px 9px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}
.news-card h3 { font-size: 17px; margin-bottom: 8px; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--blue); }
.news-card p { font-size: 14px; color: var(--muted); margin-bottom: 0; }

/* ---------------- About split + stats ---------------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-split .visual {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft);
  aspect-ratio: 4/3;
}
.about-split .visual img { width: 100%; height: 100%; object-fit: cover; }
.about-split h2 {
  font-size: 26px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.stat-item { text-align: center; }
.stat-item .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  color: var(--ink);
}
.stat-item .label { font-size: 14px; color: var(--muted); }

/* ---------------- Certifications ---------------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
}
.cert-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  filter: grayscale(1);
  opacity: .75;
  transition: all .2s;
}
.cert-item:hover { filter: none; opacity: 1; }
.cert-item img { max-height: 100%; width: auto; object-fit: contain; }
.cert-empty {
  grid-column: 1/-1;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------------- Visit Us ---------------- */
.visit-us { background: var(--white); }
.expo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.expo-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--navy);
  font-size: 16px;
  transition: all .2s;
}
.expo-item:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow); }

/* ---------------- CTA bar ---------------- */
.cta-bar {
  background: linear-gradient(100deg, var(--blue) 0%, var(--cyan) 100%);
  color: #fff;
  padding: 46px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-inner h3 { color: #fff; margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.9); font-size: 14.5px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy);
  color: #9ab2d0;
  padding: 56px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 44px;
}
.site-footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: .5px;
}
.footer-about { color: #9ab2d0; line-height: 1.7; margin-bottom: 18px; }
.connect-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7A8B9A;
  margin-bottom: 10px;
}
.connect-lines { display: flex; flex-direction: column; gap: 6px; }
.connect-lines a.email-btn {
  display: inline-flex;
  align-self: flex-start;
  background: var(--blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
}
.connect-lines a.email-btn:hover { background: var(--blue-d); color: #fff; }
.follow-us { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.follow-us span { font-size: 13.5px; color: #9ab2d0; }
.follow-us a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #C8D6E5;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.follow-us a:hover { background: var(--cyan); color: var(--navy); }

/* Footer contact form */
.footer-form .field { margin-bottom: 12px; }
.footer-form input,
.footer-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 5px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}
.footer-form input::placeholder,
.footer-form textarea::placeholder { color: #7A8B9A; }
.footer-form textarea { min-height: 80px; resize: vertical; }
.footer-form button {
  border: 0;
  background: var(--blue);
  color: #fff;
  padding: 9px 22px;
  border-radius: 5px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.footer-form button:hover { background: var(--blue-d); }

/* Newsletter */
.news-text { color: #9ab2d0; font-size: 13.5px; margin-bottom: 14px; line-height: 1.6; }
.news-form { display: flex; margin-bottom: 18px; }
.news-form input {
  flex: 1; min-width: 0;
  border: 1px solid rgba(255,255,255,.15);
  border-right: 0;
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 10px 12px;
  font-size: 13.5px;
  border-radius: 5px 0 0 5px;
  outline: none;
}
.news-form input::placeholder { color: #7A8B9A; }
.news-form button {
  border: 0; background: var(--blue); color: #fff;
  padding: 0 18px; border-radius: 0 5px 5px 0;
  cursor: pointer; font-size: 13.5px; font-weight: 600;
}
.news-form button:hover { background: var(--blue-d); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #7A8B9A;
}
.to-top { color: #7A8B9A; font-size: 18px; line-height: 1; }
.to-top:hover { color: var(--cyan); }

/* ---------------- Inner page header ---------------- */
.page-banner {
  background: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 100%);
  color: #fff;
  padding: 46px 0;
}
.page-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.page-banner h1 { color: #fff; margin: 0; font-size: 30px; font-weight: 600; }
.breadcrumb {
  font-size: 13.5px;
  color: rgba(255,255,255,.85);
  margin: 0;
}
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; opacity: .6; }

/* Inner hero (used on about page) */
.inner-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(1, 49, 102, .68);
}
.inner-hero-content { position: relative; z-index: 2; }
.inner-hero h2 {
  color: #fff;
  font-size: 28px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.inner-hero p { color: rgba(255,255,255,.9); margin: 0; font-size: 18px; }

/* ---------------- Product listing (product-solutions page) ---------------- */
.solutions-head { text-align: center; padding: 50px 0 10px; }
.solutions-head h2 { font-size: 26px; font-weight: 500; color: var(--ink); }
.cat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 36px 0 72px;
}
.cat-horiz {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  transition: all .22s;
}
.cat-horiz:hover { box-shadow: var(--shadow-lg); border-color: #C9D6E2; }
.cat-horiz .visual {
  width: 180px;
  min-height: 160px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  flex-shrink: 0;
}
.cat-horiz .visual img { max-width: 100%; max-height: 120px; object-fit: contain; }
.cat-horiz .body { flex: 1; padding: 0; display: flex; flex-direction: column; }
.cat-horiz .cat-title {
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
  font-size: 18px;
  font-weight: 700;
}
.cat-horiz .desc {
  padding: 16px 18px;
  font-size: 14px;
  color: var(--body);
  line-height: 1.7;
  flex: 1;
}

/* ---------------- Product listing with sidebar ---------------- */
.listing {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  padding: 48px 0 72px;
}
.sidebar h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.side-nav { list-style: none; padding: 0; margin: 0 0 30px; }
.side-nav li { margin-bottom: 2px; }
.side-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14.5px;
  color: var(--body);
}
.side-nav a:hover { background: var(--soft); color: var(--blue); }
.side-nav a.active { background: #EAF3FB; color: var(--blue); font-weight: 500; }
.side-nav ul { list-style: none; padding: 0; margin: 2px 0 6px; }
.side-nav ul a { padding-left: 26px; font-size: 14px; color: var(--muted); }
.side-contact {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 14px;
}
.side-contact h4 { margin-bottom: 10px; }
.listing-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.listing-head h1 { font-size: 26px; margin: 0; }
.listing-count { color: var(--muted); font-size: 14px; }

/* ---------------- Product detail ---------------- */
.detail {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 48px;
  padding: 44px 0 72px;
}
.detail-gallery .main-img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
}
.detail-gallery .main-img img { max-height: 100%; width: auto; object-fit: contain; padding: 20px; }
.thumb-row { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb-row button {
  width: 72px;
  height: 60px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
  padding: 5px;
  overflow: hidden;
}
.thumb-row button.active { border-color: var(--blue); }
.thumb-row img { width: 100%; height: 100%; object-fit: contain; }
.detail h1 { font-size: 27px; margin-bottom: 10px; }
.detail .pn {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--soft);
  display: inline-block;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 13.5px;
  color: var(--navy);
  margin-bottom: 18px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}
.spec-table th, .spec-table td {
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
}
.spec-table th {
  background: var(--soft);
  width: 38%;
  font-weight: 500;
  color: var(--ink);
}
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; }
.feature-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
  font-size: 14.5px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
}
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.detail-body { margin-top: 26px; }
.detail-body h2, .detail-body h3 { margin-top: 28px; }

/* ---------------- Article ---------------- */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 48px 24px 72px; }
.article-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.article-body { font-size: 16px; line-height: 1.85; }
.article-body img { border-radius: var(--radius); margin: 20px 0; }
.article-body h2 { margin-top: 34px; }
.article-hero {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 30px;
}

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  padding: 50px 0 72px;
}
.contact-info h3 { margin-bottom: 16px; }
.contact-info dl { margin: 0; }
.contact-info dt {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 18px;
}
.contact-info dd { margin: 4px 0 0; font-size: 15px; color: var(--ink); }
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.field label .req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14.5px;
  margin-bottom: 20px;
}
.alert-success { background: #EAF6EF; border: 1px solid #B7DFC6; color: #1E6B3A; }
.alert-error { background: #FDECEC; border: 1px solid #F5C2C2; color: #A32D2D; }

/* ---------------- Static page ---------------- */
.static-page { padding: 50px 0 72px; }
.static-page .container { max-width: 860px; }
.static-page h2 { margin-top: 34px; }

/* ---------------- Pagination ---------------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.page-num {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  color: var(--body);
  background: #fff;
}
.page-num:hover { border-color: var(--blue); color: var(--blue); }
.page-num.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-num.disabled { opacity: .4; pointer-events: none; }
.page-dots { padding: 0 4px; color: var(--muted); }

/* ---------------- Empty state ---------------- */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed #D6DDE5;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
}
.empty-state h3 { color: var(--ink); margin-bottom: 8px; }
.empty-state p { margin: 0 auto; max-width: 460px; font-size: 14.5px; }

/* ---------------- Sample / demo notice ---------------- */
.sample-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0 8px;
  padding: 14px 18px;
  border: 1px solid #cfe0f4;
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  background: #f3f8ff;
}
.sample-notice .sample-badge {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.5;
  white-space: nowrap;
}
.sample-notice p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #1f4e8a;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .product-grid, .promo-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-list { grid-template-columns: 1fr; }
  .dropdown-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(4, 1fr); }
  .detail { grid-template-columns: 1fr; gap: 30px; }
  .detail-gallery { max-width: 460px; }
  .listing { grid-template-columns: 200px 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 20px;
    gap: 0;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav > ul > li > a { padding: 12px 0; }
  .main-nav > ul > li.current > a::after { display: none; }
  .main-nav .has-child .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 8px;
    min-width: 0;
    display: none;
  }
  .main-nav .has-child.open .dropdown { display: block; }
  .dropdown-grid { grid-template-columns: 1fr; gap: 10px; }
  .nav-tools { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 10px; }
  .nav-search { width: 100%; }
  .nav-search input { flex: 1; width: auto; }

  .hero-home { padding: 60px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { order: -1; }
  .hero-visual img { max-height: 280px; }
  .hero h1 { font-size: 30px; }

  .product-grid, .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 30px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .listing { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 25px; }
  .form-row { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .page-banner .wrap { flex-direction: column; align-items: flex-start; }
  .expo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .product-grid, .promo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cat-horiz { flex-direction: column; }
  .cat-horiz .visual { width: 100%; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 25px; }
  .page-banner h1 { font-size: 24px; }
  .rate-inner { justify-content: flex-start; gap: 12px 18px; }
  .rate-badge { width: 70px; }
  .rate-ico { width: 60px; height: 60px; font-size: 13px; }
  .rate-label { font-size: 11px; }
}
