/* 深圳市鼎顺科技有限公司官网 - 样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #1a6fb0;
  --blue-light: #8bc8ea;
  --blue-soft: #eaf4fb;
  --text: #1a1b1c;
  --text-2: #5b6472;
  --bg-soft: #f4f7fa;
  --border: #e2e8f0;
  --wa: #25d366;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Roboto", "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 44px; width: auto; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--blue); letter-spacing: 1px; display: flex; flex-direction: column; line-height: 1.15; }
.logo-sub { font-size: 11px; font-weight: 400; color: var(--text-2); letter-spacing: 2px; }

.nav-link { font-size: 15px; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-link:hover { color: var(--blue); border-color: var(--blue); }
.nav-active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-wa {
  background: var(--wa); color: #fff !important; padding: 8px 18px !important;
  border-radius: 999px; font-weight: 600; border: none !important; font-size: 14px !important;
  transition: background .2s, transform .15s;
}
.nav-wa:hover { background: #1ebe5b; color: #fff !important; border-bottom: none !important; transform: translateY(-1px); }

.header-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { position: relative; }.lang-btn {
  background: var(--blue-soft); border: 1px solid var(--blue-light); color: var(--blue);
  padding: 7px 12px; border-radius: 8px; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.lang-menu {
  position: absolute; right: 0; top: 42px; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.08); min-width: 130px;
  list-style: none; display: none; overflow: hidden; z-index: 200;
}
.lang-menu.open { display: block; }
.lang-menu a { display: block; padding: 9px 16px; font-size: 14px; color: var(--text); }
.lang-menu a:hover { background: var(--blue-soft); color: var(--blue); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--blue); cursor: pointer; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 480px; display: flex; align-items: center; overflow: hidden; background: #bfe0f5; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(120,175,225,.28); }
.hero-content { position: relative; z-index: 2; padding: 60px 20px; color: #0b2c4a; }
.hero-tag {
  display: inline-block; background: rgba(255,255,255,.55); border: 1px solid rgba(11,44,74,.25);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 18px; letter-spacing: 1px;
  color: #0b2c4a; font-weight: 600;
}
.hero-title { font-size: 44px; font-weight: 700; line-height: 1.25; margin-bottom: 14px; color: #0b2c4a; }
.hero-sub { font-size: 16px; opacity: .9; margin-bottom: 26px; max-width: 640px; color: #143a5c; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: var(--blue); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-lg { padding: 15px 40px; font-size: 16px; }

/* ---------- 区块通用 ---------- */
.section { padding: 70px 0; }
.section-gray { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 30px; color: var(--blue); margin-bottom: 8px; }
.section-head p { color: var(--text-2); font-size: 15px; }

/* ---------- 产品网格 ---------- */
.product-grid { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.product-card {
  flex: 1 1 300px; max-width: 356px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: 0 12px 28px rgba(26,111,176,.12); transform: translateY(-4px); }
.product-media { height: 230px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media.is-fallback { display: flex; }
.product-icon { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.product-name { padding: 16px 18px 4px; font-size: 18px; font-weight: 600; color: var(--blue); }
.product-desc { padding: 0 18px 10px; font-size: 14px; color: var(--text-2); }
.product-params { padding: 8px 18px 18px; list-style: none; border-top: 1px dashed var(--border); }
.product-params li { font-size: 13px; color: var(--text-2); padding: 3px 0 3px 16px; position: relative; }
.product-params li::before { content: "•"; position: absolute; left: 2px; color: var(--blue); font-weight: 700; }

/* ---------- 优势 ---------- */
.feature-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.feature-item {
  flex: 1 1 300px; max-width: 356px; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; display: flex; align-items: center; gap: 12px; font-size: 15px;
}
.feature-check {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--blue);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px;
}

/* ---------- 关于 ---------- */
.about-block { max-width: 860px; margin: 0 auto; }
.about-text { font-size: 15px; color: var(--text-2); text-align: justify; margin-bottom: 28px; }
.about-img { width: 100%; max-width: 720px; margin: 0 auto 28px; border-radius: 14px; box-shadow: 0 10px 30px rgba(26,111,176,.14); display: block; }
.cert-block { margin-bottom: 28px; }
.cert-title { font-size: 18px; color: var(--blue); margin-bottom: 16px; text-align: center; }
.cert-grid { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cert-card { display: block; flex: 1 1 128px; max-width: 170px; min-width: 100px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px; text-align: center; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.cert-card:hover { box-shadow: 0 8px 20px rgba(26,111,176,.16); transform: translateY(-3px); }
.cert-card img { width: 100%; height: auto; border-radius: 6px; display: block; }
.cert-name { font-size: 11px; line-height: 1.35; color: var(--text); margin: 6px 0 3px; font-weight: 600; }
.cert-no { font-size: 10px; color: var(--text-2); }
.np-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto; }
.np-item { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 13px 18px; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.np-item:hover { box-shadow: 0 8px 20px rgba(26,111,176,.12); transform: translateY(-2px); }
.np-cat { flex: 0 0 auto; font-size: 12px; padding: 3px 12px; border-radius: 999px; color: #fff; }
.cat-blue { background: #1a6fb0; }
.cat-green { background: #2e9e5b; }
.cat-orange { background: #e8852a; }
.np-title { flex: 1; min-width: 0; font-size: 15px; color: var(--text); }
.np-date { flex: 0 0 auto; font-size: 12px; color: var(--text-2); }
.np-more-wrap { text-align: center; margin-top: 18px; }
.np-more { display: inline-block; font-size: 14px; color: var(--blue); text-decoration: none; border: 1px solid var(--blue-light); padding: 8px 26px; border-radius: 999px; transition: background .2s, color .2s; }
.np-more:hover { background: var(--blue); color: #fff; }
@media (max-width: 640px) {
  .np-item { flex-wrap: wrap; gap: 8px; }
  .np-title { flex: 1 1 100%; order: 2; }
  .np-date { order: 3; }
}
.about-address { display: flex; flex-wrap: wrap; gap: 16px; }
.address-card {
  flex: 1 1 300px; background: var(--blue-soft); border: 1px solid var(--blue-light); border-radius: 12px;
  padding: 18px; display: flex; gap: 14px; align-items: flex-start;
}
.address-icon { font-size: 26px; line-height: 1.2; }
.address-label { font-weight: 600; color: var(--blue); font-size: 14px; margin-bottom: 4px; }
.address-card div:last-child { font-size: 14px; color: var(--text); }

/* ---------- 场景 ---------- */
.scene-grid { display: flex; flex-wrap: nowrap; gap: 14px; justify-content: center; }
.scene-item {
  flex: 1 1 0; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 10px; text-align: center; font-size: 15px; color: var(--blue); font-weight: 600;
  white-space: nowrap; transition: background .2s, color .2s;
}
.scene-item:hover { background: var(--blue); color: #fff; }

/* ---------- 联系 ---------- */
.contact { background: linear-gradient(135deg, #0f4a78, #1a6fb0); color: #fff; }
.contact .section-head h2 { color: #fff; }
.contact .section-head p { color: rgba(255,255,255,.85); }
.contact-cards { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 30px; }
.contact-card {
  flex: 1 1 240px; max-width: 300px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px; padding: 22px; text-align: center; transition: background .2s;
}
.contact-card:hover { background: rgba(255,255,255,.2); }
.contact-icon { font-size: 30px; margin-bottom: 8px; }
.contact-name { font-size: 13px; opacity: .85; margin-bottom: 4px; }
.contact-value { font-size: 17px; font-weight: 600; word-break: break-all; }
.contact-cta { text-align: center; }

/* ---------- 底部 ---------- */
.footer { background: #0c2f4e; color: rgba(255,255,255,.7); padding: 30px 0; font-size: 13px; }
.footer-inner { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.footer a { color: var(--blue-light); }

/* ---------- 浮动 WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: 0 6px 18px rgba(37,211,102,.45);
}
.wa-float a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  .nav-link { display: none; }
  .nav-wa { display: none; }
  .mobile-menu {
    position: fixed; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 8px 20px; display: none; z-index: 99;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--text); }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu .mobile-wa { color: var(--wa); font-weight: 600; }
  .nav-toggle { display: block; }
  .hero-title { font-size: 30px; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 24px; }
  .product-card { flex: 1 1 100%; max-width: 100%; }
  .product-media { height: 210px; }
  .feature-item { flex: 1 1 100%; max-width: 100%; }
  .scene-grid { flex-wrap: wrap; }
  .scene-item { flex: 1 1 45%; max-width: none; }
}

/* ---------- 阿拉伯语 RTL ---------- */
html[dir="rtl"] .hero-overlay { background: rgba(120,175,225,.28); }
html[dir="rtl"] .address-card { text-align: right; }
html[dir="rtl"] .feature-item { text-align: right; }
html[dir="rtl"] .product-params li { padding-left: 0; padding-right: 16px; }
html[dir="rtl"] .product-params li::before { left: auto; right: 2px; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
