/* ============================================================
   Retus — Zinc Oxide Resistors
   单一配色体系，全站共用。改色改这里即可。
   ============================================================ */

:root {
  --ink:       #14202b;   /* 正文 */
  --accent:    #14496e;   /* 主色，深蓝 */
  --accent-2:  #5fa3d0;   /* 辅助亮蓝，只在深色背景上用 */
  --muted:     #6b7280;   /* 次要文字 */
  --line:      #e3e7ea;   /* 分隔线 */
  --bg:        #ffffff;
  --bg-soft:   #f6f8f9;
  --radius:    3px;
  --max:       1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.brand:hover { text-decoration: none; }
.brand small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  font-size: 14px;
}
.nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active { color: var(--accent); font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, #0e3555 0%, #14496e 55%, #1b5a86 100%);
  color: #fff;
  padding: 96px 0 88px;
}

.hero .kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 780px;
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}
.btn-primary {
  background: #fff;
  color: var(--accent);
}
.btn-primary:hover { background: #eef4f9; text-decoration: none; }
.btn-ghost {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; text-decoration: none; }

/* ---------- 数据条 ---------- */

.stats {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.stat {
  background: var(--bg);
  padding: 30px 24px;
}
.stat .num {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat .num span { font-size: 15px; font-weight: 600; margin-left: 3px; }
.stat .label {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 7px;
  letter-spacing: 0.02em;
}

/* ---------- 区块 ---------- */

section.block { padding: 76px 0; }
section.block.soft { background: var(--bg-soft); }

.section-head { margin-bottom: 44px; max-width: 720px; }
.section-head .eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-head p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 产品卡 ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover {
  border-color: #c4d2dd;
  box-shadow: 0 6px 24px rgba(20,73,110,0.06);
}

.product-card .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid #cddce8;
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.product-card h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.product-card .sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

/* ---------- 参数表 ---------- */

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
table.spec th, table.spec td {
  text-align: left;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.spec th {
  font-weight: 400;
  color: var(--muted);
  width: 58%;
}
table.spec td {
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
table.spec tr:last-child th,
table.spec tr:last-child td { border-bottom: none; }

/* ---------- 认证区 ---------- */

.cert-box {
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  padding: 28px 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.cert-box h3 {
  font-size: 19px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.cert-box p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 8px;
}
.cert-box p:last-child { margin-bottom: 0; }

.cert-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.cert-meta .k {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.cert-meta .v { font-size: 14px; font-weight: 600; }

/* ---------- 流程 / 列表 ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 9px;
  letter-spacing: -0.005em;
}
.feature p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
}
.feature .idx {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

/* ---------- 联系 ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-list { list-style: none; }
.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .k {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

/* ---------- CTA ---------- */

.cta-band {
  background: var(--accent);
  color: #fff;
  padding: 60px 0;
}
.cta-band h2 {
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.cta-band p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  max-width: 620px;
  margin-bottom: 26px;
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: #0e1f2c;
  color: rgba(255,255,255,0.62);
  padding: 46px 0 34px;
  font-size: 13px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.62); }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom { font-size: 12px; line-height: 1.8; }

/* ---------- 大表格 ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 620px;
}
table.compare thead th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 12px 16px;
  border-bottom: 2px solid var(--accent);
  background: var(--bg-soft);
}
table.compare thead th:not(:first-child) { text-align: right; }
table.compare td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare td:first-child { color: var(--muted); }
table.compare td:not(:first-child) {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
table.compare tbody tr:nth-child(even) { background: #fbfcfd; }

/* ---------- 待填占位 ---------- */

.todo {
  background: #fff8e1;
  border-bottom: 1px dashed #d9a441;
  color: #8a6100;
  font-weight: 600;
  padding: 0 3px;
}

/* ---------- 响应式 ---------- */

/* ---------- 移动端导航开关 ---------- */
.nav-toggle-label { display: none; }
@media (max-width: 900px) {
  .nav-toggle-label {
    display: block; width: 26px; height: 18px; cursor: pointer;
    margin-left: auto; position: relative; flex: none;
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
  }
  .nav-toggle-label::after {
    content: ''; position: absolute; left: 0; right: 0; top: 6px;
    height: 2px; background: var(--accent);
  }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(20,32,43,.08);
  }
  .nav-links li { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-toggle-input:checked ~ nav .nav-links { display: flex; }
}
@media (max-width: 900px) {
  .hero { padding: 64px 0 60px; }
  .hero h1 { font-size: 34px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .grid-3, .grid-2, .contact-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  section.block { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
  .cert-meta { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 28px; }
  .stat .num { font-size: 25px; }
}

/* ---------- 厂区图集 ---------- */
.photo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:8px; }
.photo-grid figure { position:relative; overflow:hidden; background:#e9ecef; margin:0; }
.photo-grid img { width:100%; height:268px; object-fit:cover; display:block;
                  transition:transform .35s ease; }
.photo-grid figure:hover img { transform:scale(1.04); }
.photo-grid figcaption { position:absolute; left:0; bottom:0; background:rgba(18,73,110,.92);
                         color:#fff; font-size:12.4px; padding:7px 14px; letter-spacing:.02em; }
@media (max-width: 900px) { .photo-grid { grid-template-columns:1fr 1fr; } }
@media (max-width: 600px) { .photo-grid { grid-template-columns:1fr; } }

.process-photos { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:40px; }
.process-photos figure { position:relative; overflow:hidden; margin:0; background:#e9ecef; }
.process-photos img { width:100%; height:200px; object-fit:cover; display:block; }
.process-photos figcaption { position:absolute; left:0; bottom:0; background:rgba(18,73,110,.9);
                             color:#fff; font-size:11.8px; padding:6px 12px; }
@media (max-width: 900px) { .process-photos { grid-template-columns:1fr 1fr; } }

.process-section { max-width:1140px; margin:0 auto; padding:64px 24px 40px; }
.process-section .eyebrow { font-size:11.5px; letter-spacing:.14em; text-transform:uppercase;
                            color:#14496e; font-weight:700; margin-bottom:10px; }
.process-section h2 { color:#14202b; font-weight:700; letter-spacing:-.01em; margin-bottom:26px; }

/* ---------- 文档下载 ---------- */
.doc-list { border-top:2px solid #14496e; margin-top:8px; }
.doc-list a { display:grid; grid-template-columns:64px 1fr 260px; gap:22px; align-items:center;
              padding:22px 4px; border-bottom:1px solid #e3e7ea; text-decoration:none;
              transition:background .15s ease; }
.doc-list a:hover { background:#f6f8f9; text-decoration:none; }
.doc-type { font-size:10.5px; letter-spacing:.12em; color:#14496e; font-weight:700; }
.doc-name { font-size:15.5px; color:#14202b; font-weight:600; line-height:1.45; }
.doc-meta { font-size:12.5px; color:#6b7280; text-align:right; line-height:1.5; }
@media (max-width: 760px) {
  .doc-list a { grid-template-columns:1fr; gap:6px; }
  .doc-meta { text-align:left; }
}

/* ---------- 证书卡片 ---------- */
.cert-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:26px; margin-top:8px; }
.cert-card { display:block; border:1px solid #e3e7ea; background:#fff; text-decoration:none;
             transition:box-shadow .22s ease, transform .22s ease; }
.cert-card:hover { box-shadow:0 10px 30px rgba(20,73,110,.12); transform:translateY(-2px);
                   text-decoration:none; }
.cert-img { background:#f6f8f9; height:330px; display:flex; align-items:center;
            justify-content:center; padding:22px; overflow:hidden; }
.cert-img img { max-width:100%; max-height:286px; box-shadow:0 3px 14px rgba(0,0,0,.13); }
.cert-info { padding:16px 20px 18px; border-top:1px solid #e3e7ea; }
.cert-info .k { font-size:10.5px; letter-spacing:.13em; color:#14496e; font-weight:700;
                display:block; margin-bottom:8px; }
.cert-info h4 { font-size:15.5px; color:#14202b; font-weight:700; margin-bottom:7px;
                line-height:1.4; }
.cert-info p { font-size:12.4px; color:#6b7280; line-height:1.6; }
@media (max-width: 900px) {
  .cert-grid { grid-template-columns:1fr; }
  .cert-img { height:280px; }
}

/* ---------- 首页证书展示 ---------- */
.cert-showcase { display:grid; grid-template-columns:0.82fr 1.18fr; gap:52px; align-items:center; }
.cert-imgs { display:flex; gap:16px; }
.cert-imgs img { width:50%; box-shadow:0 8px 28px rgba(20,73,110,.16); display:block; }
/* ---------- 首页产品图 ---------- */
.prod-head { display:grid; grid-template-columns:1fr 320px; gap:50px; align-items:center;
             margin-bottom:44px; }
.prod-head img { width:100%; height:248px; object-fit:cover; display:block; }
@media (max-width: 900px) {
  .cert-showcase { grid-template-columns:1fr; gap:28px; }
  .prod-head { grid-template-columns:1fr; gap:22px; }
  .prod-head img { height:200px; }
}

/* ============================================================
   多语言支持：语言切换器 / RTL / 字体栈
   ============================================================ */

/* ---------- 各语种字体栈 ---------- */
html[lang^="ru"] body { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
html[lang^="th"] body { font-family: "Noto Sans Thai", "Segoe UI Thai", Tahoma, sans-serif; }
html[lang^="ar"] body { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
html[lang^="hi"] body { font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif; }
html[lang^="zh"] body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }

/* ---------- 阿拉伯语 RTL ---------- */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .nav { flex-direction: row-reverse; }
html[dir="rtl"] .footer-links,
html[dir="rtl"] .cert-box { border-left: none; border-right: 3px solid var(--accent); border-radius: var(--radius) 0 0 var(--radius); }
/* 导航区不加边框：row-reverse 下会把装饰线放到 logo/首页中间，视觉错位 */
html[dir="rtl"] .brand,
html[dir="rtl"] .nav-links { border-left: none; border-right: none; }
html[dir="rtl"] .section-head,
html[dir="rtl"] .hero,
html[dir="rtl"] .cta-band { text-align: right; }
html[dir="rtl"] .btn { text-align: center; }
html[dir="rtl"] table.spec th,
html[dir="rtl"] .cert-meta,
html[dir="rtl"] .doc-meta { text-align: right; }
html[dir="rtl"] table.spec td,
html[dir="rtl"] table.compare thead th:not(:first-child),
html[dir="rtl"] table.compare td:not(:first-child) { text-align: left; }
html[dir="rtl"] .contact-list .k,
html[dir="rtl"] .cert-info .k,
html[dir="rtl"] .cert-info h4,
html[dir="rtl"] .feature .idx { direction: rtl; }
@media (max-width: 900px) {
  html[dir="rtl"] .nav-toggle-label { margin-left: auto; margin-right: 0; }
}

/* ---------- 右上角语言下拉菜单（地球图标） ---------- */
.lang-menu {
  position: absolute; top: 18px; right: 24px; z-index: 300;
  width: max-content; max-width: calc(100% - 48px); font-size: 12px;
}
.lang-menu > summary {
  display: flex; align-items: center; gap: 7px; list-style: none;
  cursor: pointer; padding: 7px 11px; background: #fff;
  border: 1px solid #cdd9e2; border-radius: 3px;
  color: var(--ink); font-weight: 600; letter-spacing: .03em;
  line-height: 1; white-space: nowrap;
  transition: border-color .18s ease;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover { border-color: var(--accent); }
.lang-globe { width: 16px; height: 16px; color: var(--accent); flex: none; }
.lang-menu[open] > summary { border-color: var(--accent); background: var(--bg-soft); }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 172px; padding: 6px 0; background: #fff;
  border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 10px 28px rgba(20,32,43,.14);
}
.lang-dropdown a {
  display: block; padding: 9px 16px; color: var(--ink);
  text-decoration: none; font-size: 13px; line-height: 1.4;
  white-space: nowrap;
}
.lang-dropdown a:hover { background: var(--bg-soft); color: var(--accent); text-decoration: none; }
.lang-dropdown a.cur { color: var(--accent); font-weight: 700; background: var(--bg-soft); }

/* 阿拉伯语 RTL：语言菜单位置翻转 */
html[dir="rtl"] .lang-menu { right: auto; left: 24px; }
html[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
html[dir="rtl"] .lang-dropdown a { text-align: right; }

@media (max-width: 900px) {
  .lang-menu { top: 20px; right: 62px; }
  .lang-menu > summary { padding: 7px 9px; }
  html[dir="rtl"] .lang-menu { right: auto; left: 62px; }
}
@media (max-width: 420px) {
  .lang-menu > summary span { display: none; }
  .lang-menu > summary { padding: 8px; }
}

/* ---------- 专题指南按钮（浅色区块上可读） ---------- */
.btn-guide {
  background: #fff; color: var(--accent);
  border: 1px solid #cdd9e2; font-size: 13px; padding: 11px 18px;
}
.btn-guide:hover { border-color: var(--accent); background: var(--bg-soft); text-decoration: none; }

/* ---------- 询价表单（mailto） ---------- */
.inquiry-form { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.inquiry-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inquiry-form label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: .02em; }
.inquiry-form label .req { color: var(--accent); }
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit;
  color: var(--ink); background: #fff;
  border: 1px solid #cdd9e2; border-radius: 3px; outline: none;
  transition: border-color .18s ease;
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus { border-color: var(--accent); }
.inquiry-form textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.inquiry-form .field-full { grid-column: 1 / -1; }
.inquiry-form .form-actions { margin-top: 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.inquiry-form .form-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.inquiry-form .btn { cursor: pointer; border: none; }
@media (max-width: 700px) {
  .inquiry-form .form-grid { grid-template-columns: 1fr; }
}
