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

:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --text-secondary: #666;
  --accent: #1a7fbf;
  --accent-light: #38b6e8;
  --border: #e5e5e5;
  --card-bg: #fff;
}

body {
  font-family: -apple-system, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo-text {
  font-size: 15px; font-weight: 700; letter-spacing: 1px;
  color: var(--text);
}
.nav-logo-text span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 14px; font-weight: 500;
  transition: color 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.nav-links a[data-nav-icon]::before {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  margin-right: 6px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.nav-links a[data-nav-icon="home"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}
.nav-links a[data-nav-icon="info"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}
.nav-links a[data-nav-icon="box"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E");
}
.nav-links a[data-nav-icon="folder"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}
.nav-links a[data-nav-icon="download"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}
.nav-links a[data-nav-icon="phone"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}
.nav-links a:hover::before,
.nav-links a.active::before {
  filter: brightness(0) saturate(100%) invert(45%) sepia(94%) saturate(1035%) hue-rotate(180deg) brightness(92%) contrast(90%);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* LANG SWITCHER */
.lang-switcher { position: relative; margin-left: 16px; }
.lang-current {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: var(--text);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s;
}
.lang-current:hover { border-color: var(--accent); }
.ni-globe { width: 15px; height: 15px; color: var(--text-secondary); flex-shrink: 0; }
.lang-caret { transition: transform 0.2s; }
.lang-switcher.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 132px; padding: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  display: none; z-index: 200;
}
.lang-switcher.open .lang-menu { display: block; }
.lang-menu .lang-btn {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; border: none; border-radius: 6px;
  background: transparent; color: var(--text-secondary);
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.lang-menu .lang-btn:hover { background: #f2f6f9; color: var(--text); }
.lang-menu .lang-btn.active { background: #eaf4fb; color: var(--accent); font-weight: 700; }

/* PAGE HERO (subpages) */
.page-hero {
  margin-top: 64px;
  background: linear-gradient(135deg, var(--accent), #1565a0);
  color: #fff;
  padding: 88px 48px 72px;
  text-align: center;
  min-height: clamp(340px, 46vh, 500px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.page-hero h1 {
  font-size: 40px; font-weight: 800; letter-spacing: 1px;
}
.page-hero p {
  margin-top: 16px;
  font-size: 15px; color: rgba(255,255,255,0.85);
}

/* SECTION */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 48px;
}
.section-title {
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-secondary); font-weight: 600;
}
.section-link {
  font-size: 14px; color: var(--accent); text-decoration: none; font-weight: 500;
}
.section-link:hover { text-decoration: underline; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
  border: none; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-outline {
  border: 1.5px solid var(--border); color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--text); }

/* PRODUCT CARDS (products page + home) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  display: block;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.product-image {
  width: 100%; height: 220px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-image img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 20px;
}
.product-info { padding: 28px 24px; }
.product-name {
  font-size: 18px; font-weight: 700; margin-bottom: 8px;
}
.product-desc {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 16px;
}
.product-link {
  font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 600;
}

/* PRODUCT DETAIL */
.detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.detail-image {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  display: flex; align-items: center; justify-content: center;
  min-height: 360px;
}
.detail-image img { max-width: 100%; max-height: 320px; object-fit: contain; }
.detail-name { font-size: 32px; font-weight: 800; margin-bottom: 20px; }
.detail-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 28px; }

/* CATALOG GALLERY */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.catalog-grid img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  display: block;
}
.catalog-note {
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 24px;
}

/* CASES */
.case-group-title {
  font-size: 20px; font-weight: 700;
  margin: 48px 0 24px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  display: flex; align-items: center; gap: 10px;
}
.case-group-title:first-child { margin-top: 0; }
.case-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: var(--accent);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.case-card img {
  width: 100%; height: 200px; object-fit: cover;
  display: block;
}
.case-card div {
  padding: 18px 20px;
  font-size: 14px; font-weight: 600;
}

/* ABOUT ADVANTAGES */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.advantage-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}
.advantage-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-6px);
  border-color: var(--accent-light);
}
.adv-icon {
  width: 56px; height: 56px;
  margin-bottom: 20px;
  color: var(--accent);
  stroke-width: 1.5;
}
.advantage-card h4 {
  font-size: 17px; font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: 0.5px;
}
.advantage-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .business-grid { grid-template-columns: 1fr; }
  .client-list { grid-template-columns: repeat(2, 1fr); }
}

/* DOWNLOADS */
.dl-list {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  overflow: hidden;
}
.dl-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.dl-item:last-child { border-bottom: none; }
.dl-item:hover { background: #f5faff; }
.dl-name { font-size: 15px; font-weight: 600; }
.dl-meta { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.dl-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-size: 13px; font-weight: 600;
}
.dl-pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 24px;
}
.dl-pagination button {
  width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: var(--text);
  font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.dl-pagination button:hover { border-color: var(--accent); color: var(--accent); }
.dl-pagination button.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.dl-pagination button:disabled {
  opacity: 0.4; cursor: default; pointer-events: none;
}

/* ABOUT */
.about-text {
  max-width: 900px;
}
.about-text p {
  font-size: 16px; line-height: 2.2;
  color: var(--text);
  margin-bottom: 24px;
  text-align: justify;
}
.about-tag {
  font-size: 20px; font-weight: 700;
  color: var(--accent);
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}

/* BUSINESS */
.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.business-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  overflow: hidden;
}
.business-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: var(--accent-light);
}
.business-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.business-card .business-icon,
.business-card h4,
.business-card p {
  padding: 0 40px;
}
.business-icon {
  width: 56px; height: 56px;
  color: var(--accent);
  margin-bottom: 20px;
  margin-top: 32px;
  stroke-width: 1.5;
}
.business-card h4 {
  font-size: 20px; font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: 0.5px;
}
.business-card p {
  font-size: 15px; line-height: 2;
  color: var(--text-secondary);
  text-align: justify;
  margin-bottom: 40px;
}

/* CLIENTS */
.client-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.client-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.client-item:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.partner-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.partner-wall div {
  background: #fff;
  padding: 32px 24px;
  display: flex; align-items: center; justify-content: center;
}
.partner-wall img { max-width: 100%; max-height: 64px; object-fit: contain; }
.cert-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}
.cert-box img { max-width: 560px; width: 100%; }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 8px;
}
.contact-icon {
  width: 32px; height: 32px;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact-label {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-secondary); font-weight: 600;
  margin-bottom: 12px;
}
.contact-value { font-size: 16px; font-weight: 600; line-height: 1.7; }
.contact-value a { color: var(--accent); text-decoration: none; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 48px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 300px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  flex-shrink: 0;
}
.footer-logo {
  height: 72px !important;
  max-height: 72px !important;
  width: auto !important;
  display: block;
}
.footer-copyright {
  font-size: 13px;
  color: #666;
  text-align: right;
}
.footer-icp {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}
.footer-icp a {
  color: #999;
  text-decoration: none;
}
.footer-icp a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 0 20px; position: relative; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 24px;
    font-size: 15px;
  }
  .nav-links a[data-nav-icon]::before {
    width: 18px; height: 18px;
  }
  .lang-switcher { margin-left: 0; padding: 8px 24px; }
  .lang-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 12px; }
  .page-hero { padding: 64px 20px 48px; }
  .page-hero h1 { font-size: 30px; }
  .section { padding: 48px 20px; }
  .products-grid { grid-template-columns: 1fr; }
  .detail-top { grid-template-columns: 1fr; gap: 32px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .partner-wall { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; padding: 32px 20px; }
}
