/* ============ Design Tokens ============ */
:root {
  /* ---- industrial / high-tech theme ----
     石墨基底 + 仪表青 + 工业橙。所有色值集中在此，便于整体调色。 */
  --navy: #070a0d;
  --navy-2: #0b1218;
  --blue: #2fd6ff;        /* 仪表青蓝：链接、描边、数据 */
  --cyan: #35f0e0;        /* 薄荷青：次强调、状态灯 */
  --accent: #ff6a1a;      /* 工业橙：CTA、警示条 */
  --ink: #bccbd6;
  --slate: #7e8f9c;
  --slate-light: #61707c;
  --bg: #070a0d;
  --bg-alt: #0a0f13;
  --card: #0e141a;
  --card-hi: #131c23;
  --heading: #e9f3f8;
  --blue-ink: #7fe3ff;
  --light: #16212a;
  --photo-bg: #eef2f6;
  --nav: rgba(7, 10, 13, 0.9);
  --border: #1e2b34;
  --line: #16212a;
  --radius: 3px;
  --radius-lg: 4px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(47, 214, 255, 0.09), 0 0 34px rgba(47, 214, 255, 0.07);
  --container: 1200px;
  --font: "Inter", "Noto Sans Arabic", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #08131d; box-shadow: 0 6px 18px rgba(59,154,225,.35); }
.btn-primary:hover { background: #1976d2; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--heading); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; border: 1.5px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #08131d; }
.btn-outline .dl-ext { font-size: 0.72rem; opacity: .8; margin-left: 6px; padding: 1px 6px; border: 1px solid currentColor; border-radius: 4px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { color: var(--blue); display: flex; }
.brand-text { font-size: 1.25rem; letter-spacing: -0.02em; color: var(--heading); }
.brand-text span { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-weight: 500; color: var(--heading); font-size: 0.95rem; position: relative; transition: color .2s; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--blue); transition: width .25s; }
.nav-link:hover { color: var(--blue); }
.nav-link:hover::after { width: 100%; }
.nav-cta { color: #08131d !important; }
.nav-cta::after { display: none; }

.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
.lang-btn {
  border: none; background: transparent; cursor: pointer;
  font-size: 0.78rem; font-weight: 600; color: var(--slate);
  padding: 5px 9px; border-radius: 7px; transition: all .2s;
}
.lang-btn:hover { color: var(--heading); }
.lang-btn.is-active { background: var(--card); color: var(--blue); box-shadow: var(--shadow); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--heading); border-radius: 2px; transition: .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; padding: 70px 0 80px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 12%, rgba(59,154,225,.20), transparent 62%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(0,188,212,.10), transparent 60%),
    linear-gradient(180deg, #0d1a24 0%, var(--bg) 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.badge {
  display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--blue);
  background: rgba(59,154,225,.16); border: 1px solid rgba(59,154,225,.34);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.025em; color: var(--heading); font-weight: 800; }
.hero-sub { margin-top: 20px; font-size: 1.1rem; color: var(--slate); max-width: 52ch; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { margin-top: 44px; display: flex; gap: 40px; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; }
.hstat-num { font-size: 1.9rem; font-weight: 800; color: var(--heading); letter-spacing: -0.02em; }
.hstat-label { font-size: 0.85rem; color: var(--slate); margin-top: 2px; }

.hero-visual { display: flex; justify-content: center; }
.hd-svg { width: 100%; max-width: 420px; filter: drop-shadow(0 20px 40px rgba(59,154,225,.15)); }
.rotate-cw { transform-origin: 200px 200px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Trust Bar ============ */
.trust-bar { border-block: 1px solid var(--border); background: var(--bg-alt); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px; padding: 18px 20px; }
.trust-item span { font-size: 0.88rem; font-weight: 600; color: var(--slate); display: flex; align-items: center; gap: 8px; }
.trust-item span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

/* ============ Sections ============ */
section[id] { scroll-margin-top: 80px; }
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-ink); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--heading); margin-top: 12px; letter-spacing: -0.02em; font-weight: 800; }
.section-sub { margin-top: 14px; color: var(--slate); font-size: 1.05rem; }

/* ============ Products ============ */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(59,154,225,.3); }
.pc-icon { width: 52px; height: 52px; color: var(--blue); background: rgba(59,154,225,.08); border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.pc-icon svg { width: 28px; height: 28px; }
.pc-photo { width: 100%; height: 150px; border-radius: 13px; overflow: hidden; margin-bottom: 18px; background: var(--photo-bg); display: flex; align-items: center; justify-content: center; }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; }
.pc-badge { display: inline-block; align-self: flex-start; margin-bottom: 12px; padding: 4px 12px; font-size: 0.78rem; font-weight: 600; letter-spacing: .02em; color: var(--blue); background: rgba(59,154,225,.1); border: 1px solid rgba(59,154,225,.22); border-radius: 999px; }
.product-card h3 { font-size: 1.2rem; color: var(--heading); margin-bottom: 10px; }
.product-card p { color: var(--slate); font-size: 0.95rem; }

/* ============ Factory ============ */
.factory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.factory-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.factory-photo svg { width: 100%; }
.factory-content h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--heading); margin: 12px 0 18px; letter-spacing: -0.02em; font-weight: 800; }
.factory-desc { color: var(--slate); font-size: 1.02rem; }
.factory-list { margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.factory-list li { color: var(--ink); padding-inline-start: 30px; position: relative; font-size: 0.97rem; }
.factory-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 18px; height: 18px;
  background: var(--blue); border-radius: 50%; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.factory-stats { display: flex; gap: 36px; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--border); }
.factory-stats > div { display: flex; flex-direction: column; }
.fstat-num { font-size: 1.7rem; font-weight: 800; color: var(--blue); }
.fstat-label { font-size: 0.82rem; color: var(--slate); }

/* ============ Applications ============ */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.app-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; transition: border-color .25s, transform .25s; }
.app-card:hover { border-color: rgba(59,154,225,.3); transform: translateY(-4px); }
.app-icon { width: 46px; height: 46px; color: var(--blue); background: rgba(59,154,225,.08); border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.app-icon svg { width: 26px; height: 26px; }
.app-card h3 { font-size: 1.08rem; color: var(--heading); margin-bottom: 8px; }
.app-card p { font-size: 0.9rem; color: var(--slate); }

/* ============ News / 新闻资讯 ============ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.news-card:hover { border-color: rgba(59,154,225,.3); transform: translateY(-4px); box-shadow: var(--shadow); }
.news-date { font-size: 0.8rem; font-weight: 600; color: var(--blue); letter-spacing: .03em; }
.news-card h3 { font-size: 1.08rem; color: var(--heading); margin: 12px 0 10px; line-height: 1.4; }
.news-card p { color: var(--slate); font-size: 0.92rem; flex: 1; }
.news-more { margin-top: 14px; font-size: 0.88rem; font-weight: 600; color: var(--blue); }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

/* ============ Downloads / 下载中心 ============ */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.download-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.download-card:hover { border-color: rgba(59,154,225,.3); transform: translateY(-4px); box-shadow: var(--shadow); }
.dl-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--light); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.dl-icon svg { width: 24px; height: 24px; }
.dl-meta { flex: 1; }
.dl-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--blue); background: rgba(59,154,225,.1); padding: 2px 10px; border-radius: 20px; margin-bottom: 8px; }
.dl-meta h3 { font-size: 1.04rem; color: var(--heading); margin-bottom: 6px; line-height: 1.35; }
.dl-meta p { color: var(--slate); font-size: 0.88rem; margin-bottom: 16px; }
.empty-note { color: var(--slate); text-align: center; padding: 40px 0; }
@media (max-width: 900px) { .download-grid { grid-template-columns: 1fr; } }

/* ============ Model chips on product detail ============ */
.model-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 4px; }
.model-chips-label { font-size: 0.85rem; font-weight: 600; color: var(--slate); margin-right: 4px; }
.model-chip { font-size: 0.78rem; font-family: 'Inter', monospace; background: var(--light); color: var(--heading); border: 1px solid var(--border); padding: 3px 9px; border-radius: 6px; }
.pd-modelnote { font-size: 0.92rem; color: var(--slate); margin: 14px 0 6px; }
.pd-modelnote strong { color: var(--heading); }
.pd-modelnote a { color: var(--blue); font-weight: 600; }

/* ============ Model matrix (generated from the catalogue on product pages) ============ */
.mm-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.mm-table th, .mm-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
.mm-table th { background: var(--bg-alt); color: var(--heading); font-size: 0.78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.mm-table th:first-child, .mm-table td:first-child { text-align: left; }
.mm-table tbody tr:hover td { background: rgba(59, 154, 225, .07); }
.mm-code { font-weight: 600; color: var(--heading); font-variant-numeric: tabular-nums; }
.mm-frame { font-weight: 700; color: var(--heading); }
.mm-na { color: var(--slate-light); opacity: .55; }
.mm-hint { margin-top: 14px; }
.mm-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
@media (max-width: 640px) { .mm-table th, .mm-table td { padding: 8px 9px; font-size: 0.82rem; } }

/* ============ Catalogue strip (all WHS codes under the product grid) ============ */
.cat-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 34px; padding: 22px 26px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); }
.cat-strip h3 { font-size: 1.15rem; color: var(--heading); margin: 4px 0 5px; letter-spacing: -0.01em; }
.cat-strip p { margin: 0; color: var(--slate); font-size: 0.92rem; max-width: 62ch; }
.cat-strip .btn { white-space: nowrap; }
/* catalogue code count shown under each series card on the home page */
.pc-count { margin: -6px 0 12px; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--blue-ink); }
.pc-count strong { font-weight: 700; }
@media (max-width: 640px) { .cat-strip { padding: 18px; } }

/* ============ FAQ / 常见问题 ============ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .25s, box-shadow .25s;
}
.faq-item:hover { border-color: rgba(59,154,225,.3); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 22px; font-weight: 600; color: var(--heading); font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; font-size: 1.4rem; font-weight: 400; color: var(--blue); transition: transform .25s; line-height: 1; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item[open] { border-color: rgba(59,154,225,.4); box-shadow: var(--shadow); }
.faq-a { padding: 0 22px 20px; }
.faq-a p { margin: 0; color: var(--slate); font-size: 0.95rem; line-height: 1.7; }
[dir="rtl"] .faq-item summary { text-align: right; }

/* ============ Knowledge article / product tech ============ */
.article-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--heading); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 14px; }
.article-lede { font-size: 1.12rem; color: var(--slate); line-height: 1.7; margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-h { font-size: 1.3rem; color: var(--heading); margin: 28px 0 12px; letter-spacing: -0.01em; }
.article-p { color: var(--ink); font-size: 1.02rem; line-height: 1.8; margin: 0 0 8px; }
.article-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--border); }
.tech-sub { font-size: 1.15rem; color: var(--heading); margin: 26px 0 12px; letter-spacing: -0.01em; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0 0 8px; padding: 0; }
.feature-list li { position: relative; padding-inline-start: 26px; color: var(--ink); font-size: 0.96rem; line-height: 1.6; }
.feature-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 5px; width: 17px; height: 17px;
  background: var(--blue); border-radius: 50%; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat;
}
@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }

/* ============ Inquiry ============ */
.section-inquiry { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.inquiry-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.inquiry-intro .eyebrow { color: var(--cyan); }
.inquiry-intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 12px 0 16px; letter-spacing: -0.02em; }
.inquiry-sub { color: rgba(255,255,255,.75); font-size: 1.05rem; }
.inquiry-points { margin: 26px 0; display: flex; flex-direction: column; gap: 12px; }
.inquiry-points li { padding-inline-start: 28px; position: relative; color: rgba(255,255,255,.9); }
.inquiry-points li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--cyan); font-weight: 700; }
.inquiry-contact p { color: rgba(255,255,255,.8); font-size: 0.95rem; margin-top: 4px; }
.inquiry-contact span { color: var(--cyan); font-weight: 600; }

.inquiry-form { background: var(--card); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  font-family: inherit; font-size: 0.95rem; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 10px; background: var(--bg-alt);
  color: var(--ink); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form-group textarea { resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,154,225,.15); background: var(--card);
}
.form-group.invalid input, .form-group.invalid select, .form-group.invalid textarea { border-color: #ff6b6b; }
.form-error { font-size: 0.8rem; color: #ff6b6b; margin-top: 5px; display: none; }
.form-group.invalid .form-error { display: block; }
.form-success {
  margin-top: 16px; padding: 14px 16px; background: rgba(0,188,212,.12);
  border: 1px solid rgba(53,200,224,.45); border-radius: 10px; color: #5eead4; font-size: 0.92rem; font-weight: 500;
}

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--border); background: #08121b; color: rgba(255,255,255,.7); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand-text { color: #fff; font-size: 1.3rem; }
.footer-brand .brand-text span { color: var(--cyan); }
.footer-brand p { margin-top: 14px; font-size: 0.92rem; max-width: 30ch; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 0.9rem; margin-bottom: 10px; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 0.85rem; }

/* ============ Reveal animation ============ */
/* 健壮性：默认可见；仅当 <html class="js"> 时（内联脚本极可靠）才先隐藏，
   再由 IntersectionObserver 加 .in 触发。若 main.js 加载失败，元素无 .reveal 类
   → 直接可见，绝不会再出现整页空白。 */
.reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .factory-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .inquiry-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset-inline-start: 0; inset-inline-end: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px; box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .3s ease; max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 12px; text-align: center; }
  .menu-toggle { display: flex; }
  .lang-switch { display: none; }
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-stats { gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .product-grid, .app-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .factory-stats { flex-wrap: wrap; gap: 22px; }
}

/* Mobile language switch shown in menu */
.mobile-lang { display: none; }
@media (max-width: 720px) {
  .mobile-lang {
    display: flex; gap: 8px; padding: 12px 0 4px; border-top: 1px solid var(--border); margin-top: 8px;
  }
  .mobile-lang .lang-btn { flex: 1; }
}

/* ============ RTL (Arabic) ============ */
[dir="rtl"] .nav-link::after { left: auto; right: 0; }
[dir="rtl"] .product-card, [dir="rtl"] .app-card, [dir="rtl"] .inquiry-form { text-align: right; }
[dir="rtl"] .hero-actions, [dir="rtl"] .hero-stats, [dir="rtl"] .factory-stats { direction: rtl; }
[dir="rtl"] .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(-45deg); }
[dir="rtl"] .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(45deg); }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rotate-cw { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Categories / 产品品类 ============ */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,.06); transition: transform .25s ease, box-shadow .25s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15,23,42,.12); }
.cat-photo { width: 100%; height: 180px; overflow: hidden; background: var(--bg-alt); }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-photo--empty { display: flex; align-items: center; justify-content: center; color: var(--slate); font-weight: 600; }
.category-card h3 { margin: 0; padding: 16px 18px; font-size: 1.05rem; color: var(--heading); }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .category-grid { grid-template-columns: 1fr; } }

/* ============ Product card "learn more" link ============ */
.pc-more {
  display: inline-block; margin-top: 14px; font-size: 0.9rem; font-weight: 600;
  color: var(--blue, #1E88E5); text-decoration: none;
}
.pc-more:hover { text-decoration: underline; }

/* ============ About Us ============ */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about-desc { color: var(--slate); font-size: 1.05rem; line-height: 1.8; margin: 16px 0 28px; }
.about-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.abox { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 12px; text-align: center; }
.anum { display: block; font-size: 1.5rem; font-weight: 800; color: var(--heading); letter-spacing: -0.02em; }
.alabel { display: block; font-size: 0.78rem; color: var(--slate); margin-top: 6px; }
.about-visual { display: flex; align-items: center; justify-content: center; }
.about-badge {
  width: 240px; height: 240px; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: linear-gradient(160deg, rgba(59,154,225,.1), rgba(0,188,212,.08));
  border: 2px solid rgba(59,154,225,.25); color: var(--blue, #1E88E5);
}
.about-badge svg { width: 64px; height: 64px; }
.about-badge span { font-weight: 700; color: var(--heading); padding: 0 20px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-stats { grid-template-columns: repeat(2, 1fr); } .about-visual { order: -1; } }
@media (max-width: 480px) { .about-stats { grid-template-columns: 1fr 1fr; } }

/* ============ Certifications ============ */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px;
  display: flex; gap: 16px; align-items: flex-start; box-shadow: 0 1px 3px rgba(15,23,42,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15,23,42,.12); }
.cert-tag {
  flex: none; font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; color: #08131d;
  background: var(--blue, #1E88E5); padding: 6px 10px; border-radius: 8px;
}
.cert-card p { margin: 0; font-weight: 600; color: var(--heading); }
.patent-list { margin-top: 36px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 16px; padding: 28px 32px; }
.patent-list h3 { margin: 0 0 14px; color: var(--heading); }
.patent-list ul { margin: 0; padding-left: 20px; color: var(--slate); line-height: 2; }
@media (max-width: 900px) { .cert-grid { grid-template-columns: 1fr; } }

/* ============ Product Detail ============ */
.pd-crumb { padding: 28px 20px 0; font-size: 0.9rem; color: var(--slate); }
.pd-crumb a { color: var(--blue, #1E88E5); text-decoration: none; }
.pd-crumb span { margin: 0 8px; }
.pd-hero { padding: 28px 0 40px; }
.pd-hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.pd-media { background: var(--photo-bg); border: 1px solid var(--border); border-radius: 18px; padding: 24px; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.pd-media img { max-width: 100%; max-height: 360px; object-fit: contain; }
.pd-icon { color: var(--blue, #1E88E5); }
.pd-info h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 14px 0; letter-spacing: -0.02em; color: var(--heading); }
.pd-desc { color: var(--slate); font-size: 1.08rem; line-height: 1.8; margin: 0 0 20px; }
.pd-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.spec-table th { width: 40%; background: var(--bg-alt); color: var(--heading); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table thead th { background: var(--bg-alt); color: var(--heading); font-weight: 700; width: auto; }
.spec-table td.row-key { background: var(--bg-alt); color: var(--heading); font-weight: 600; }
.spec-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-note { color: var(--slate); font-size: 0.85rem; margin: 0 0 14px; font-style: italic; }
[dir="rtl"] .spec-table th, [dir="rtl"] .spec-table td { text-align: right; }
@media (max-width: 900px) { .pd-hero-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   INDUSTRIAL / HIGH-TECH LAYER
   工业设备 + 仪表盘语汇：锐角、工程网格、等宽技术标签、
   状态指示灯、扫描线高光。仅样式层，不改动任何文案与结构。
   ============================================================ */

::selection { background: var(--accent); color: #080b0e; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #06090c; }
::-webkit-scrollbar-thumb { background: #1e2b34; border: 2px solid #06090c; }
::-webkit-scrollbar-thumb:hover { background: #2c3f4c; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 22%, var(--blue) 52%, var(--accent) 82%, transparent 100%);
  opacity: .8;
}
.nav-link {
  font-family: var(--mono);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.nav-link::after { height: 1px; }
.lang-switch { border-radius: 3px; background: #0a1015; }
.lang-btn { border-radius: 2px; font-family: var(--mono); letter-spacing: .04em; }
.brand-mark { filter: drop-shadow(0 0 10px rgba(47, 214, 255, .45)); }
.brand-text { letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  background:
    radial-gradient(ellipse 62% 52% at 78% 4%, rgba(47, 214, 255, .17), transparent 62%),
    radial-gradient(ellipse 58% 46% at 4% 98%, rgba(255, 106, 26, .10), transparent 64%),
    linear-gradient(to right, rgba(47, 214, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47, 214, 255, .05) 1px, transparent 1px),
    linear-gradient(180deg, #08111a 0%, var(--bg) 100%);
  background-size: auto, auto, 68px 68px, 68px 68px, auto;
  -webkit-mask-image: linear-gradient(180deg, #000 48%, rgba(0, 0, 0, .25) 100%);
  mask-image: linear-gradient(180deg, #000 48%, rgba(0, 0, 0, .25) 100%);
}
/* 水平基准线：设备图的“零位” */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 214, 255, .55), transparent);
  pointer-events: none;
}
.hero-title { font-weight: 900; letter-spacing: -0.035em; }
.hero-title strong, .hero-title em { color: var(--cyan); font-style: normal; }
.hero-sub { color: #93a6b4; }
.hero-visual .hd-svg { filter: drop-shadow(0 24px 46px rgba(47, 214, 255, .16)); }

/* 状态灯式徽标 */
.badge {
  font-family: var(--mono);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
  background: rgba(53, 240, 224, .06);
  border: 1px solid rgba(53, 240, 224, .3);
  border-radius: 2px;
  padding: 7px 13px;
}
.badge::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-inline-end: 9px;
  vertical-align: 1px;
  background: var(--accent);
  box-shadow: 0 0 9px var(--accent);
  animation: ledPulse 2.6s ease-in-out infinite;
}
@keyframes ledPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* 关键数据：仪表读数 */
.hstat {
  padding-inline-start: 15px;
  border-inline-start: 2px solid rgba(47, 214, 255, .3);
}
.hstat-num {
  font-family: var(--mono);
  font-size: 1.85rem;
  letter-spacing: -.03em;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}
.hstat-label {
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--slate);
  margin-top: 5px;
}

/* ---------- Trust bar ---------- */
.trust-bar { border-block: 1px solid var(--line); background: #06090c; }
.trust-item span {
  font-family: var(--mono);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: #8a9caa;
}
.trust-item span::before {
  width: 5px; height: 5px; border-radius: 0;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* ---------- Section chrome ---------- */
.section-alt {
  background-color: var(--bg-alt);
  background-image:
    linear-gradient(to right, rgba(47, 214, 255, .028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47, 214, 255, .028) 1px, transparent 1px);
  background-size: 76px 76px;
  border-block: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: .71rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 26px; height: 1px;
  background: currentColor; opacity: .5;
}
.section-head h2 { font-weight: 800; letter-spacing: -.025em; }
.section-head h2::after {
  content: "";
  display: block;
  width: 56px; height: 2px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
}
.section-sub { color: #93a6b4; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 3px;
  font-size: .79rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 12px 22px;
}
.btn-lg { padding: 15px 30px; font-size: .84rem; }
.btn-primary {
  background: var(--accent);
  color: #080b0e;
  box-shadow: 0 8px 22px rgba(255, 106, 26, .22);
}
.btn-primary:hover { background: #ff8339; box-shadow: 0 10px 30px rgba(255, 106, 26, .34); }
.btn-ghost { border-color: #26363f; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: rgba(47, 214, 255, .05); }
.btn-outline { border-color: rgba(47, 214, 255, .48); }
.btn-outline:hover { background: var(--blue); color: #05121a; }
.btn-outline .dl-ext { font-family: var(--mono); letter-spacing: .02em; }

/* ---------- Cards: 扫描线 + 硬边 ---------- */
.product-card, .app-card, .news-card, .download-card,
.cert-card, .category-card, .faq-item {
  position: relative;
  border-radius: 4px;
  border-color: var(--line);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .022), transparent 58%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.product-card::after, .app-card::after, .news-card::after,
.download-card::after, .cert-card::after, .category-card::after {
  content: "";
  position: absolute; inset-inline-start: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 58%, transparent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s cubic-bezier(.22, .8, .3, 1);
  pointer-events: none;
}
.product-card:hover::after, .app-card:hover::after, .news-card:hover::after,
.download-card:hover::after, .cert-card:hover::after, .category-card:hover::after {
  transform: scaleX(1);
}
.product-card:hover, .app-card:hover, .news-card:hover,
.download-card:hover, .cert-card:hover, .category-card:hover {
  border-color: rgba(47, 214, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), var(--shadow-lg), var(--glow);
}
.category-card { box-shadow: none; }
.pc-icon, .app-icon, .dl-icon { border-radius: 3px; }
.pc-photo { border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.pc-photo img { filter: saturate(1.02) contrast(1.02); }
.pc-badge {
  border-radius: 2px;
  font-family: var(--mono);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan);
  background: rgba(53, 240, 224, .07);
  border-color: rgba(53, 240, 224, .26);
}
.pc-count { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--blue-ink); }
.pc-more { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.news-date { font-family: var(--mono); letter-spacing: .09em; text-transform: uppercase; font-size: .72rem; }
.dl-tag { border-radius: 2px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; }
.faq-icon { font-family: var(--mono); font-weight: 300; }
.faq-item[open] { border-color: rgba(47, 214, 255, .3); }

/* ---------- 型号 / 规格表：技术手册感 ---------- */
.mm-table { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mm-table th {
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .12em;
  color: #8fa2b0;
  border-bottom: 1px solid rgba(47, 214, 255, .22);
}
.mm-table td { border-bottom: 1px solid var(--line); }
.mm-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .012); }
.mm-table tbody tr:hover td { background: rgba(47, 214, 255, .06); }
.mm-code, .mm-frame { color: var(--heading); }
.model-chip {
  border-radius: 2px;
  font-family: var(--mono);
  letter-spacing: .02em;
  background: var(--light);
  border-color: var(--line);
}
.spec-table { border-radius: 3px; border-color: var(--line); }
.spec-table th, .spec-table thead th {
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: #93a6b4;
  background: #0a1015;
}
.spec-table td { border-bottom: 1px solid var(--line); }
.spec-note { font-style: normal; font-family: var(--mono); font-size: .78rem; }

/* ---------- Inquiry ---------- */
.section-inquiry {
  background:
    radial-gradient(ellipse 58% 62% at 88% 0%, rgba(47, 214, 255, .10), transparent 62%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(255, 106, 26, .07), transparent 62%),
    linear-gradient(160deg, #08121b 0%, #060a0e 100%);
  border-block: 1px solid var(--line);
}
.inquiry-form {
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #0c1319;
  box-shadow: var(--shadow-lg);
}
.form-group label {
  font-family: var(--mono);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #8fa2b0;
}
.form-group input, .form-group select, .form-group textarea {
  border-radius: 2px;
  border: 1px solid #1f2d37;
  background: #080d11;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 0 24px rgba(47, 214, 255, .15);
  background: #0a1117;
}
.form-success {
  border-radius: 2px;
  background: rgba(53, 240, 224, .07);
  border-color: rgba(53, 240, 224, .4);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: #05080b;
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute; top: -1px; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 30%, var(--accent) 72%, transparent);
  opacity: .5;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #7e8f9c;
}
.footer-bottom { font-family: var(--mono); font-size: .76rem; letter-spacing: .03em; }

/* ---------- Misc industrial accents ---------- */
.cat-strip { border-radius: 3px; border-inline-start: 3px solid var(--accent); }
.cert-tag { border-radius: 2px; font-family: var(--mono); letter-spacing: .08em; }
.patent-list { border-radius: 3px; border-inline-start: 3px solid var(--blue); }
.abox { border-radius: 3px; }
.anum { font-family: var(--mono); color: var(--heading); letter-spacing: -.02em; }
.alabel { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.about-badge {
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(47, 214, 255, .1), transparent 72%);
  border: 1px solid rgba(47, 214, 255, .3);
  box-shadow: inset 0 0 0 12px rgba(47, 214, 255, .03), 0 0 46px rgba(47, 214, 255, .09);
}
.pd-crumb { font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; }
.pd-media {
  border-radius: 4px;
  border-color: var(--line);
  background-color: var(--photo-bg);
  background-image:
    linear-gradient(to right, rgba(15, 40, 60, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 40, 60, .07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.dl-icon { border: 1px solid var(--line); }
.article-lede { border-bottom-color: var(--line); }
.article-cta { border-top-color: var(--line); }
.mobile-lang { border-top-color: var(--line); }

[dir="rtl"] .hstat { border-inline-start: 2px solid rgba(47, 214, 255, .3); padding-inline-start: 15px; padding-inline-end: 0; }
[dir="rtl"] .cat-strip { border-inline-start: 3px solid var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .badge::before { animation: none; }
}
