:root {
  /* Primitive tokens */
  --template-color-ink-950: #07111f;
  --template-color-ink-900: #101828;
  --template-color-ink-700: #344054;
  --template-color-ink-600: #475467;
  --template-color-ink-500: #667085;
  --template-color-ink-300: #d0d5dd;
  --template-color-ink-200: #eaecf0;
  --template-color-ink-100: #f2f4f7;
  --template-color-ink-50: #f8fafc;
  --template-color-white: #ffffff;
  --template-color-blue-700: #0046c7;
  --template-color-blue-600: #095bd8;
  --template-color-blue-500: #1677ff;
  --template-color-blue-100: #eaf2ff;
  --template-color-cyan-500: #06b6d4;
  --template-color-gold-500: #f59e0b;

  /* Semantic tokens */
  --template-bg: var(--template-color-ink-50);
  --template-surface: var(--template-color-white);
  --template-surface-soft: var(--template-color-ink-100);
  --template-text: var(--template-color-ink-900);
  --template-text-strong: var(--template-color-ink-950);
  --template-text-muted: var(--template-color-ink-600);
  --template-border: var(--template-color-ink-200);
  --template-border-strong: var(--template-color-ink-300);
  --template-primary: var(--template-color-blue-600);
  --template-primary-strong: var(--template-color-blue-700);
  --template-primary-soft: var(--template-color-blue-100);
  --template-accent: var(--template-color-cyan-500);
  --template-highlight: var(--template-color-gold-500);
  --template-footer-bg: #0b1220;
  --template-footer-text: #cbd5e1;

  /* Layout and component tokens */
  --template-container: 1200px;
  --template-container-wide: 1440px;
  --template-space-1: 4px;
  --template-space-2: 8px;
  --template-space-3: 12px;
  --template-space-4: 16px;
  --template-space-5: 20px;
  --template-space-6: 24px;
  --template-space-8: 32px;
  --template-space-10: 40px;
  --template-space-12: 48px;
  --template-space-16: 64px;
  --template-radius-sm: 10px;
  --template-radius: 16px;
  --template-radius-lg: 24px;
  --template-radius-xl: 32px;
  --template-shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.08);
  --template-shadow: 0 18px 45px rgba(16, 24, 40, 0.12);
  --template-shadow-hover: 0 24px 60px rgba(16, 24, 40, 0.16);
  --template-transition: 180ms ease;
  --template-font-sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--template-text);
  background:
    radial-gradient(circle at top left, rgba(22, 119, 255, 0.10), transparent 32rem),
    linear-gradient(180deg, var(--template-color-white) 0%, var(--template-bg) 42%, var(--template-color-white) 100%);
  font-family: var(--template-font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--template-transition), background var(--template-transition), border-color var(--template-transition), box-shadow var(--template-transition), transform var(--template-transition);
}

a:hover {
  color: var(--template-primary);
}

button,
input,
textarea,
select {
  font: inherit;
}

.template-site {
  min-height: 100vh;
  color: var(--template-text);
  background: transparent;
}

.template-container {
  width: min(100% - 32px, var(--template-container));
  margin-inline: auto;
}

.template-main {
  min-height: 52vh;
}

.template-page {
  padding: var(--template-space-12) 0 var(--template-space-16);
}

.template-section {
  padding: var(--template-space-16) 0;
}

.template-section + .template-section {
  padding-top: var(--template-space-8);
}

.template-narrow {
  max-width: 920px;
  margin-inline: auto;
}

.template-topbar {
  color: var(--template-text-muted);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--template-border);
  font-size: 14px;
  backdrop-filter: blur(16px);
}

.template-topbar-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--template-space-4);
}

.template-topbar-welcome {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-topbar-language {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--template-primary);
}

.template-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(208, 213, 221, 0.8);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
  backdrop-filter: blur(18px);
}

.template-nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--template-space-8);
}

.template-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--template-text-strong);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.template-logo img {
  width: auto;
  max-height: 46px;
}

.template-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--template-border);
  border-radius: 999px;
  color: var(--template-text);
  background: var(--template-surface);
  cursor: pointer;
}

.template-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--template-space-2);
  color: var(--template-text);
  font-weight: 700;
}

.template-nav a,
.template-nav > * {
  position: relative;
}

.template-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--template-space-4);
  border-radius: 999px;
}

.template-nav a:hover,
.template-nav a.active,
.template-nav .active > a {
  color: var(--template-primary);
  background: var(--template-primary-soft);
}

.template-mega {
  display: none;
}

.template-home-banners {
  overflow: hidden;
  background: var(--template-color-ink-950);
}

.template-home-banners img {
  width: 100%;
}

.template-category-nav,
.template-category-strip {
  color: var(--template-text-muted);
}

.template-category-nav a,
.template-category-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0 var(--template-space-2) var(--template-space-2) 0;
  padding: 0 var(--template-space-4);
  border: 1px solid var(--template-border);
  border-radius: 999px;
  background: var(--template-surface);
  color: var(--template-text-muted);
  font-weight: 700;
}

.template-category-nav a:hover,
.template-category-strip a:hover,
.template-category-nav a.active,
.template-category-strip a.active {
  border-color: rgba(9, 91, 216, 0.24);
  color: var(--template-primary);
  background: var(--template-primary-soft);
  box-shadow: var(--template-shadow-sm);
}

.template-page-hero {
  margin-bottom: var(--template-space-10);
  padding: var(--template-space-12);
  border: 1px solid var(--template-border);
  border-radius: var(--template-radius-xl);
  background:
    linear-gradient(135deg, rgba(9, 91, 216, 0.10), rgba(6, 182, 212, 0.08)),
    var(--template-surface);
  box-shadow: var(--template-shadow-sm);
}

.template-page-hero h1,
.template-page-hero h2,
.template-section h1,
.template-section h2,
.template-article-detail h1,
.template-product-summary h1 {
  margin: 0 0 var(--template-space-4);
  color: var(--template-text-strong);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.template-eyebrow,
.template-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--template-space-2);
  margin: 0 0 var(--template-space-3);
  color: var(--template-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.template-eyebrow::before,
.template-card-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--template-primary), var(--template-accent));
}

.template-section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--template-space-6);
  margin-bottom: var(--template-space-8);
}

.template-list-section {
  padding-top: 0;
}

.template-product-grid,
.template-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--template-space-6);
}

.template-product-card,
.template-news-card,
.template-contact-card,
.template-article-detail,
.template-product-detail {
  border: 1px solid var(--template-border);
  border-radius: var(--template-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--template-shadow-sm);
}

.template-product-card,
.template-news-card {
  height: 100%;
  overflow: hidden;
  transition: transform var(--template-transition), box-shadow var(--template-transition), border-color var(--template-transition);
}

.template-product-card:hover,
.template-news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(9, 91, 216, 0.24);
  box-shadow: var(--template-shadow-hover);
}

.template-product-card-link,
.template-news-card-link {
  display: flex;
  height: 100%;
  min-height: 100%;
  flex-direction: column;
  color: inherit;
}

.template-product-card-image,
.template-news-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--template-surface-soft), var(--template-primary-soft));
}

.template-news-card-image {
  aspect-ratio: 16 / 10;
}

.template-product-card-image img,
.template-news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.template-product-card:hover img,
.template-news-card:hover img {
  transform: scale(1.04);
}

.template-product-card-body,
.template-news-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--template-space-3);
  padding: var(--template-space-6);
}

.template-product-card h2,
.template-product-card h3,
.template-news-card h2,
.template-news-card h3 {
  margin: 0;
  color: var(--template-text-strong);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.template-product-card p,
.template-news-card p {
  margin: 0;
  color: var(--template-text-muted);
}

.template-products-featured,
.template-brand-section {
  background: rgba(248, 250, 252, 0.72);
}

.template-promo-section {
  background: linear-gradient(135deg, rgba(9, 91, 216, 0.08), rgba(6, 182, 212, 0.06));
}

.template-news-section {
  background: var(--template-surface);
}

.template-product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: var(--template-space-10);
  padding: var(--template-space-8);
}

.template-product-gallery {
  min-width: 0;
}

.template-product-gallery img {
  width: 100%;
  border-radius: var(--template-radius);
  background: var(--template-surface-soft);
}

.template-product-summary {
  min-width: 0;
}

.template-product-summary p {
  color: var(--template-text-muted);
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--template-space-3);
  margin-top: var(--template-space-6);
}

.template-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: var(--template-space-2);
  padding: 0 var(--template-space-6);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
}

.template-btn-primary {
  color: var(--template-color-white);
  background: linear-gradient(135deg, var(--template-primary), var(--template-accent));
  box-shadow: 0 14px 28px rgba(9, 91, 216, 0.22);
}

.template-btn-primary:hover {
  color: var(--template-color-white);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(9, 91, 216, 0.28);
}

.template-btn-secondary {
  color: var(--template-primary);
  background: var(--template-primary-soft);
  border-color: rgba(9, 91, 216, 0.18);
}

.template-btn-secondary:hover {
  color: var(--template-primary-strong);
  border-color: rgba(9, 91, 216, 0.30);
  box-shadow: var(--template-shadow-sm);
}

.template-detail-section {
  margin-top: var(--template-space-8);
  padding: var(--template-space-8);
  border: 1px solid var(--template-border);
  border-radius: var(--template-radius-lg);
  background: var(--template-surface);
  box-shadow: var(--template-shadow-sm);
}

.template-params {
  overflow-x: auto;
}

.template-params table,
.template-rich-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--template-border);
  border-radius: var(--template-radius-sm);
  overflow: hidden;
}

.template-params th,
.template-params td,
.template-rich-content th,
.template-rich-content td {
  padding: var(--template-space-3) var(--template-space-4);
  border: 1px solid var(--template-border);
  text-align: left;
  vertical-align: top;
}

.template-params th,
.template-rich-content th {
  color: var(--template-text-strong);
  background: var(--template-surface-soft);
}

.template-article-detail {
  padding: var(--template-space-10);
}

.template-article-intro,
.template-article-meta {
  color: var(--template-text-muted);
  font-size: 18px;
}

.template-rich-content {
  color: var(--template-text);
}

.template-rich-content > *:first-child {
  margin-top: 0;
}

.template-rich-content > *:last-child {
  margin-bottom: 0;
}

.template-rich-content h1,
.template-rich-content h2,
.template-rich-content h3,
.template-rich-content h4 {
  color: var(--template-text-strong);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.template-rich-content h2,
.template-rich-content h3 {
  margin-top: var(--template-space-8);
}

.template-rich-content p,
.template-rich-content li {
  color: var(--template-text-muted);
}

.template-rich-content a {
  color: var(--template-primary);
  font-weight: 700;
}

.template-rich-content img {
  border-radius: var(--template-radius);
  box-shadow: var(--template-shadow-sm);
}

.template-contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: var(--template-space-8);
  align-items: start;
}

.template-contact-card {
  position: sticky;
  top: 112px;
  padding: var(--template-space-8);
}

.template-contact-list {
  display: grid;
  gap: var(--template-space-4);
  color: var(--template-text-muted);
}

.template-contact-list a {
  color: var(--template-primary);
  font-weight: 700;
}

.template-footer {
  color: var(--template-footer-text);
  background:
    radial-gradient(circle at top right, rgba(22, 119, 255, 0.18), transparent 28rem),
    var(--template-footer-bg);
  margin-top: var(--template-space-16);
}

.template-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--template-space-8);
  padding: var(--template-space-16) 0 var(--template-space-10);
}

.template-footer-block h2,
.template-footer-block h3,
.template-footer-block h4 {
  margin: 0 0 var(--template-space-4);
  color: var(--template-color-white);
  font-size: 18px;
}

.template-footer-block p {
  margin: 0;
  color: var(--template-footer-text);
}

.template-footer-links,
.template-social-links {
  display: grid;
  gap: var(--template-space-2);
}

.template-footer-links a,
.template-social-links a {
  color: var(--template-footer-text);
}

.template-footer-links a:hover,
.template-social-links a:hover {
  color: var(--template-color-white);
}

.template-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: var(--template-space-5) 0;
  color: rgba(203, 213, 225, 0.78);
  font-size: 14px;
}

.template-backtop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--template-color-white);
  background: var(--template-primary);
  box-shadow: var(--template-shadow);
  cursor: pointer;
  transition: transform var(--template-transition), background var(--template-transition), box-shadow var(--template-transition);
}

.template-backtop:hover {
  background: var(--template-primary-strong);
  transform: translateY(-3px);
  box-shadow: var(--template-shadow-hover);
}

.template-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--template-space-6);
}

.template-rows {
  display: grid;
  gap: var(--template-space-6);
}

@media (max-width: 1024px) {
  .template-product-grid,
  .template-news-grid,
  .template-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-product-detail,
  .template-contact-grid {
    grid-template-columns: 1fr;
  }

  .template-contact-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .template-container {
    width: min(100% - 24px, var(--template-container));
  }

  .template-topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .template-topbar-language {
    display: none;
  }

  .template-nav-wrap {
    min-height: 66px;
    gap: var(--template-space-4);
  }

  .template-logo img {
    max-height: 38px;
  }

  .template-menu-toggle {
    display: inline-flex;
  }

  .template-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: var(--template-space-3);
    border: 1px solid var(--template-border);
    border-radius: var(--template-radius);
    background: var(--template-surface);
    box-shadow: var(--template-shadow);
  }

  .template-header.is-open .template-nav,
  .template-header.template-nav-open .template-nav,
  .template-nav.is-open {
    display: flex;
  }

  .template-nav a {
    width: 100%;
    justify-content: center;
  }

  .template-page,
  .template-section {
    padding: var(--template-space-10) 0;
  }

  .template-page-hero,
  .template-article-detail,
  .template-detail-section,
  .template-product-detail,
  .template-contact-card {
    padding: var(--template-space-6);
    border-radius: var(--template-radius);
  }

  .template-section-heading-row,
  .template-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .template-product-grid,
  .template-news-grid,
  .template-footer-grid,
  .template-columns {
    grid-template-columns: 1fr;
  }

  .template-footer {
    margin-top: var(--template-space-10);
  }

  .template-footer-grid {
    padding: var(--template-space-10) 0 var(--template-space-8);
  }

  .template-backtop {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .template-page-hero h1,
  .template-page-hero h2,
  .template-section h1,
  .template-section h2,
  .template-article-detail h1,
  .template-product-summary h1 {
    font-size: 30px;
  }

  .template-product-card-body,
  .template-news-card-body,
  .template-page-hero,
  .template-article-detail,
  .template-detail-section,
  .template-product-detail,
  .template-contact-card {
    padding: var(--template-space-5);
  }
}
