@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --panel: #ffffff;
  --soft: #f8fafc;
  --brand: #1e40af;
  --brand-strong: #1e3a8a;
  --brand-light: #eff6ff;
  --accent: #0d9488;
  --gold: #d97706;
  --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f1f5f9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .brand, .slide-content h1, .section-title h2, .cases-title h2 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: -0.022em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 72px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 86px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.03);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 190px;
  white-space: nowrap;
}

.brand img {
  width: 188px;
  max-height: 52px;
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nav a,
.primary-link,
button {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav a {
  border-color: transparent;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav a:hover {
  color: var(--brand);
  background-color: var(--brand-light);
}

.nav a.active,
.primary-link,
button {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.nav a.active {
  background: var(--brand);
  color: #ffffff;
}

.nav a.active:hover {
  background: var(--brand-strong);
  color: #ffffff;
}

main {
  min-height: calc(100vh - 142px);
}


.home-slider {
  position: relative;
  overflow: hidden;
  max-width: 1240px;
  margin: 24px auto 0;
  border-radius: var(--radius-lg);
  background: #0f172a;
  box-shadow: var(--shadow-lg);
}

.home-slides {
  position: relative;
  min-height: clamp(320px, 34vw, 420px);
}

.home-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 6vw, 80px);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .8s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-content {
  max-width: 580px;
  color: #ffffff;
}

.slide-logo {
  width: 140px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.slide-kicker {
  display: inline-flex;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(30, 64, 175, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.slide-content h1 {
  margin: 0 0 14px 0;
  color: #ffffff;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.3);
}

.slide-content p {
  margin: 0 0 24px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
}

.slide-actions,
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.ghost-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s ease;
}

.ghost-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-1px);
}

.ghost-link.light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.ghost-link.light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 24px;
  line-height: 44px;
  padding: 0;
  text-align: center;
  transform: translateY(-50%);
  transition: all 0.2s ease;
}

.slider-btn:hover {
  background: rgba(15, 23, 42, 0.85);
  transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 4;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255,255,255,.48);
}

.slider-dots button.active {
  background: #ffffff;
}

.home-section {
  padding: clamp(48px, 6vw, 82px) clamp(18px, 5vw, 96px);
  background: #ffffff;
}

.section-title {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 32px;
  text-align: center;
}

.section-title span,
.cases-title span {
  width: 54px;
  height: 14px;
  background:
    radial-gradient(circle at 7px 7px, var(--brand) 0 4px, transparent 5px),
    radial-gradient(circle at 27px 7px, var(--brand) 0 4px, transparent 5px),
    radial-gradient(circle at 47px 7px, var(--brand) 0 4px, transparent 5px);
}

.section-title h2,
.cases-title h2 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.15;
}

.section-title.light h2,
.section-title.light span {
  color: #ffffff;
}

.premium-products,
.advantage-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
}

.premium-product-card,
.advantage-grid article,
.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.premium-product-card:hover,
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 64, 175, 0.2);
}

.premium-product-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
}

.premium-product-image img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.premium-product-card:hover .premium-product-image img {
  transform: scale(1.05);
}

.premium-product-image b {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.premium-product-card p {
  display: -webkit-box;
  min-height: 52px;
  margin: 0;
  padding: 16px 16px 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-cta {
  display: flex;
  justify-content: center;
  margin: 8px 16px 16px;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.mini-cta:hover {
  background: var(--brand-strong);
}

.home-about {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 440px;
  padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 96px);
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)),
    url("/photo/cd214638911-shaanxi_nuoying_automation_instrument_co_ltd.jpg") center / cover;
}

.home-about > p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.hot-products {
  position: relative;
  top: 72px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  width: min(1080px, 100%);
  border-radius: var(--radius);
  padding: 24px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.hot-products strong {
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--brand-light);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  text-align: center;
  border: 1px dashed rgba(30, 64, 175, 0.3);
}

.hot-products div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 22px;
}

.hot-products a {
  overflow: hidden;
  color: #445066;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advantage-grid {
  margin-top: 72px;
}

.advantage-grid article {
  padding: 34px 24px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.advantage-grid i {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #ffffff;
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
}

.advantage-grid h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.advantage-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.cases-strip {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: clamp(60px, 8vw, 100px) clamp(18px, 5vw, 96px);
  background: #f8fafc;
}

.cases-title {
  display: grid;
  align-content: center;
  min-height: 330px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-left: calc(clamp(18px, 5vw, 96px) * -1);
  padding-left: clamp(18px, 5vw, 96px);
  padding-right: 48px;
  background: var(--brand);
  color: #ffffff;
}

.cases-title h2 {
  margin: 0 0 16px 0;
}

.cases-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.5;
}

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

.case-cards article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.case-cards article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.case-cards img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.case-cards p {
  margin: 0;
  padding: 20px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.news-section {
  position: relative;
  overflow: hidden;
}

.news-section::after {
  content: "";
  position: absolute;
  right: -90px;
  top: 120px;
  width: 420px;
  height: 720px;
  border-radius: 420px 0 0 420px;
  background: #f1f5f9;
  z-index: 0;
}

.news-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.news-card div {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card time {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.news-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

.news-card h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.news-card h3 a:hover {
  color: var(--brand);
}

.news-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.news-card a {
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.news-card a:hover {
  color: var(--brand-strong);
  transform: translateX(2px);
}

.hero,
.admin-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  align-items: end;
  gap: 28px;
  padding: 56px clamp(18px, 4vw, 56px) 36px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.category {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 12px;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.15;
  font-weight: 800;
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.search,
.admin-search {
  display: grid;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--ink);
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  padding: 36px clamp(18px, 4vw, 56px) 72px;
}

.filters {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.filters a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filters a span {
  background: var(--soft);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.filters a:hover {
  color: var(--brand);
  border-color: rgba(30, 64, 175, 0.3);
  background-color: var(--brand-light);
}

.filters a:hover span {
  background: rgba(30, 64, 175, 0.1);
  color: var(--brand);
}

.filters a.selected {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 600;
}

.filters a.selected span {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 64, 175, 0.2);
}

.image-link,
.placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.image-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform 0.4s ease;
}

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

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card h2 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.product-card h2 a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card h2 a:hover {
  color: var(--brand);
}

.product-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

dl {
  display: grid;
  gap: 8px;
  margin: auto 0 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 13px;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.product-page,
.details,
.request,
.admin-table,
.product-form,
.admin-search {
  padding: 48px clamp(18px, 4vw, 56px);
}

.product-page {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  gap: 48px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: contain;
  background: #ffffff;
  padding: 16px;
  box-shadow: var(--shadow);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.thumbs img {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumbs img:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.rich-text {
  white-space: pre-line;
}

.quick-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.quick-specs div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--soft);
}

.quick-specs span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
}

.details table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.details th,
.details td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.details tr:last-child th,
.details tr:last-child td {
  border-bottom: none;
}

.details th {
  width: 38%;
  background: var(--soft);
  color: var(--muted);
  font-weight: 600;
}

.request,
.empty,
.page-empty {
  background: #ffffff;
}

.content-hero,
.video-hero {
  padding: 48px clamp(18px, 4vw, 56px) 30px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.content-hero p,
.video-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px) 56px;
}

.content-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
}

.content-block h2 {
  font-size: 20px;
}

.content-block p {
  color: var(--muted);
}

.inner-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(46px, 7vw, 92px) clamp(18px, 5vw, 92px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 35, 72, .96), rgba(36, 79, 168, .88)),
    radial-gradient(circle at 88% 18%, rgba(10, 166, 181, .34), transparent 30%);
}

.inner-hero h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.15;
}

.inner-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.6;
}

.inner-hero .eyebrow {
  color: #86eef8;
}

.inner-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 26px 70px rgba(2, 10, 28, .35);
}

.inner-section {
  padding: clamp(42px, 6vw, 78px) clamp(18px, 5vw, 92px);
  background: #ffffff;
}

.inner-section.soft-band,
.timeline-section {
  background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
}

.section-kicker {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 28px;
  text-align: center;
}

.section-kicker span {
  width: 54px;
  height: 14px;
  background:
    radial-gradient(circle at 7px 7px, var(--brand) 0 4px, transparent 5px),
    radial-gradient(circle at 27px 7px, var(--brand) 0 4px, transparent 5px),
    radial-gradient(circle at 47px 7px, var(--brand) 0 4px, transparent 5px);
}

.section-kicker b {
  font-size: clamp(20px, 2.5vw, 28px);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.metric-grid article,
.document-grid article,
.contact-panel,
.premium-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.metric-grid article:hover,
.document-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 64, 175, 0.2);
}

.metric-grid article {
  padding: 24px;
}

.metric-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-grid strong {
  color: var(--ink);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.25;
  font-weight: 800;
}

.content-grid.premium {
  max-width: 1180px;
  padding: 0;
}

.content-grid.premium .content-block {
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.media-grid,
.feature-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.media-grid img,
.feature-image-grid img {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-grid img:hover,
.feature-image-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.feature-image-grid img:nth-child(2) {
  transform: translateY(28px);
}

.feature-image-grid img:nth-child(2):hover {
  transform: translateY(28px) scale(1.02);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.timeline article {
  position: relative;
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.timeline time {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 64, 175, 0.2);
}

.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.article-card div {
  padding: 24px;
}

.article-card time {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.article-card h2,
.document-grid h2,
.contact-panel h2,
.premium-form h2 {
  margin: 0 0 12px 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

.article-card p,
.document-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.article-card a,
.document-grid a {
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-card a:hover,
.document-grid a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.document-grid article {
  padding: 28px;
}

.document-grid i {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #ffffff;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 32px;
}

.contact-panel,
.premium-form {
  padding: clamp(28px, 5vw, 42px);
}

.contact-panel dl div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-panel dl div:last-of-type {
  border-bottom: none;
}

.contact-panel dt {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}

.contact-panel dd {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.wechat-card {
  display: inline-grid;
  gap: 12px;
  margin-top: 24px;
  border-radius: var(--radius-sm);
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  max-width: 200px;
}

.wechat-card img {
  width: 100%;
  border-radius: 4px;
}

.wechat-card span {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
}

.premium-form {
  display: grid;
  gap: 12px;
}

.premium-form button {
  justify-content: center;
  min-height: 48px;
}

.video-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 24px;
  align-items: end;
}

.featured-video,
.video-page {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(0, 1fr);
  gap: 28px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.featured-media,
.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
}

.featured-media {
  aspect-ratio: 16 / 9;
}

.featured-media img,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-media span,
.video-thumb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
}

.video-thumb span::before {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.video-thumb span::after {
  content: "";
  position: absolute;
  border-left: 13px solid var(--brand);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transform: translateX(2px);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px) 56px;
}

.video-grid.compact {
  padding: 0;
}

.video-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.video-card > div,
.video-card > h2 {
  padding: 14px;
}

.video-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.video-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.video-player-wrap {
  min-width: 0;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  object-fit: cover;
  background: #111827;
}

.video-info p {
  color: var(--muted);
  font-size: 17px;
}

.related-videos {
  padding: 28px clamp(18px, 4vw, 56px) 56px;
}

.admin-head {
  grid-template-columns: 1fr auto;
}

.admin-table {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.admin-row:hover {
  border-color: rgba(30, 64, 175, 0.25);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.admin-row img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--soft);
  border: 1px solid var(--line);
}

.admin-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.danger {
  background: #dc2626;
  border-color: #dc2626;
}

.danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.product-form {
  display: grid;
  gap: 16px;
  max-width: 980px;
}

.product-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.footer {
  display: block;
  color: #d7deea;
  background: #0f1a2d;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 0;
  padding: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(160px, .7fr) minmax(240px, 1fr) minmax(240px, 1fr);
  gap: 34px;
  padding: 54px clamp(18px, 5vw, 96px);
}

.footer-logo {
  width: 190px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #ffffff;
}

.footer h3 {
  margin: 0 0 16px;
  color: #ffffff;
}

.footer p,
.footer a,
.footer-bottom {
  color: #aeb9ca;
  line-height: 1.7;
}

.footer a {
  display: block;
  margin: 6px 0;
}

.footer-form {
  display: grid;
  gap: 10px;
}

.footer-form input,
.footer-form textarea {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: #ffffff;
}

.footer-form button {
  justify-self: start;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px clamp(18px, 5vw, 96px);
  font-size: 12px;
}

@media (max-width: 860px) {
  .topbar {
    display: grid;
    align-items: start;
    gap: 12px;
    min-height: 0;
    padding: 14px 18px 12px;
  }

  .brand {
    min-width: 150px;
  }

  .brand img {
    width: 150px;
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 7px 8px;
    font-size: 12px;
  }

  .hero,
  .layout,
  .product-page,
  .details,
  .admin-head,
  .inner-hero,
  .video-hero,
  .featured-video,
  .video-page,
  .cases-strip,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .inner-hero {
    padding-top: 34px;
  }

  .inner-hero img {
    aspect-ratio: 16 / 10;
  }

  .home-slides {
    min-height: 320px;
  }

  .home-slide {
    align-items: center;
    padding: 22px 16px 46px;
  }

  .slide-logo {
    width: 116px;
    margin-bottom: 10px;
  }

  .slide-kicker {
    font-size: 12px;
  }

  .slide-content h1 {
    font-size: 22px;
  }

  .slide-content p {
    font-size: 13px;
  }

  .slide-actions {
    margin-top: 12px;
  }

  .slider-btn {
    width: 30px;
    height: 40px;
    font-size: 28px;
  }

  .slider-btn.prev {
    left: 10px;
  }

  .slider-btn.next {
    right: 10px;
  }

  .premium-products,
  .advantage-grid,
  .news-grid,
  .case-cards,
  .footer-grid,
  .metric-grid,
  .media-grid,
  .feature-image-grid,
  .timeline,
  .article-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .media-grid img,
  .feature-image-grid img,
  .article-card img {
    height: 220px;
  }

  .feature-image-grid img:nth-child(2) {
    transform: none;
  }

  .contact-panel dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hot-products {
    top: 54px;
    grid-template-columns: 1fr;
  }

  .hot-products div {
    grid-template-columns: 1fr;
  }

  .cases-title {
    min-height: 240px;
    margin-left: 0;
    border-radius: 18px;
    padding: 32px;
  }

  .news-section::after {
    display: none;
  }

  .footer-bottom {
    display: grid;
  }

  .filters {
    position: static;
  }

  .form-grid,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-row img {
    width: 100%;
  }
}

.catalog-main {
  display: flex;
  flex-direction: column;
}

/* Pagination Styling */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.page-link:hover {
  background: var(--brand-light);
  color: var(--brand);
  border-color: rgba(30, 64, 175, 0.3);
}

.page-link.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  box-shadow: 0 0 12px rgba(30, 64, 175, 0.15);
}

.page-link.prev, .page-link.next {
  font-weight: 700;
}

/* Article page styles */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.article-back:hover {
  background: var(--brand-light);
  border-color: rgba(30, 64, 175, 0.3);
  transform: translateX(-2px);
}

.article-body {
  margin-bottom: 36px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}

.article-body h3 {
  margin: 28px 0 12px;
  font-size: 22px;
  color: var(--brand-strong);
}

.article-body p {
  margin-bottom: 16px;
}

.article-body strong {
  color: var(--brand-strong);
}

.article-list-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-bottom: 40px;
}

.article-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.article-list-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--brand);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.article-cta {
  margin-top: 56px;
  padding: 40px;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 35, 72, .96), rgba(36, 79, 168, .88));
}

.article-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--brand-strong);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 28px rgba(0,0,0,.15);
}

.article-cta-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}

/* WhatsApp floating widget */
.whatsapp-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45), 0 8px 30px rgba(37, 211, 102, 0.2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background-color 0.3s ease;
}

.whatsapp-widget:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #20ba59;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6), 0 10px 40px rgba(37, 211, 102, 0.3);
}

.whatsapp-widget svg {
  width: 30px;
  height: 30px;
}
