/* ============================================================
   JUNLU METAL - 军路金属外贸独立站
   框架结构 1:1 复刻 特盾紧固件 (tedunzg.com)
   配色：深蓝 #0a1f44 + 金色 #C8A24B（特盾同款色系）
   ============================================================ */
:root {
  --navy: #0a1f44;
  --navy-2: #122a56;
  --gold: #C8A24B;
  --gold-light: #e0c07a;
  --bg-light: #f5f6f8;
  --text: #333;
  --text-gray: #777;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Alibaba PuHuiTi", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: 88%; max-width: 1200px; margin: 0 auto; }

/* ---------- 顶部信息栏（特盾同款） ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar .slogan { letter-spacing: 1px; opacity: .9; }
.topbar .top-right { display: flex; align-items: center; gap: 16px; }
.topbar .top-right a { opacity: .85; transition: .2s; }
.topbar .top-right a:hover { opacity: 1; color: var(--gold-light); }
.topbar .hotline { color: var(--gold-light); font-weight: bold; }

/* ---------- 导航栏 ---------- */
.header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .logo-mark {
  width: 46px; height: 46px; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 20px; border-radius: 6px; letter-spacing: 1px;
}
.logo .logo-text .cn { font-size: 22px; font-weight: bold; color: var(--navy); letter-spacing: 2px; }
.logo .logo-text .en { font-size: 11px; color: var(--text-gray); letter-spacing: 2px; }
.nav { display: flex; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 26px 22px; font-size: 16px; font-weight: 500;
  color: var(--navy); transition: .2s; border-bottom: 3px solid transparent;
}
.nav > li > a:hover, .nav > li.active > a { color: var(--gold); border-bottom-color: var(--gold); }
.nav .dropdown {
  position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: .25s; z-index: 99;
}
.nav > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .dropdown a { display: block; padding: 12px 20px; font-size: 14px; color: var(--text); border-bottom: 1px solid #f0f0f0; }
.nav .dropdown a:hover { background: var(--bg-light); color: var(--gold); padding-left: 26px; }

/* ---------- Banner 轮播 ---------- */
.banner { position: relative; height: 560px; overflow: hidden; }
.banner .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.banner .slide.on { opacity: 1; }
.banner .slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,31,68,.85) 0%, rgba(10,31,68,.35) 65%, transparent 100%); }
.banner .slide-inner { position: relative; color: #fff; max-width: 640px; margin-left: 6%; }
.banner .slide-inner h2 { font-size: 44px; line-height: 1.25; letter-spacing: 2px; margin-bottom: 14px; }
.banner .slide-inner h2 em { color: var(--gold-light); font-style: normal; }
.banner .slide-inner .en-sub { font-size: 16px; opacity: .85; margin-bottom: 30px; }
.btn-more {
  display: inline-block; padding: 12px 34px; border: 1px solid var(--gold);
  color: var(--gold-light); font-size: 15px; letter-spacing: 2px; transition: .25s;
}
.btn-more:hover { background: var(--gold); color: #fff; }
.banner .dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.banner .dots span { width: 34px; height: 4px; background: rgba(255,255,255,.4); cursor: pointer; transition: .3s; }
.banner .dots span.on { background: var(--gold); }

/* ---------- 通用板块标题 ---------- */
.section { padding: 72px 0; }
.section.gray { background: var(--bg-light); }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head .no { font-size: 15px; color: var(--gold); letter-spacing: 4px; font-weight: bold; }
.sec-head h2 { font-size: 32px; color: var(--navy); letter-spacing: 3px; margin: 6px 0; }
.sec-head h2 b { color: var(--gold); }
.sec-head .line { width: 56px; height: 3px; background: var(--gold); margin: 14px auto 0; }
.sec-head p { color: var(--text-gray); font-size: 14px; margin-top: 12px; }

/* ---------- 数据条 ---------- */
.stats { background: var(--navy); color: #fff; padding: 44px 0; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats .num { font-size: 40px; font-weight: bold; color: var(--gold-light); font-family: Georgia, serif; }
.stats .label { font-size: 14px; opacity: .85; margin-top: 6px; }

/* ---------- 产品卡片 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- 资质证书（整页竖版展示，不裁剪） ---------- */
.cert-card { display: block; background: #fff; border: 1px solid #e5e7eb; transition: .25s; }
.cert-card:hover { box-shadow: 0 10px 26px rgba(10,31,68,.13); transform: translateY(-3px); }
.cert-card .cimg { padding: 14px 14px 0; background: #fff; }
.cert-card .cimg img { width: 100%; height: auto; display: block; }
.cert-card .ctxt { padding: 13px 14px 15px; text-align: center; }
.cert-card .ctxt h3 { font-size: 15px; color: #0a1f44; line-height: 1.5; }
.cert-card .ctxt p { font-size: 12px; color: #8a94a6; margin-top: 4px; }
.prod-card {
  background: #fff; border: 1px solid #eee; overflow: hidden; transition: .3s;
  display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(10,31,68,.14); border-color: var(--gold); }
.prod-card .imgbox { height: 210px; overflow: hidden; background: #f0f0f0; }
.prod-card .imgbox img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.prod-card:hover .imgbox img { transform: scale(1.06); }
.prod-card .txt { padding: 18px; flex: 1; }
.prod-card .txt h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.prod-card .txt h3 span { display: block; font-size: 13px; color: var(--gold); font-weight: normal; margin-top: 2px; }
.prod-card .txt p { font-size: 13px; color: var(--text-gray); }
.center-btn { text-align: center; margin-top: 40px; }
.btn-solid { display: inline-block; padding: 13px 42px; background: var(--navy); color: #fff; letter-spacing: 2px; font-size: 15px; transition: .25s; }
.btn-solid:hover { background: var(--gold); }

/* ---------- 关于板块 ---------- */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-wrap .imgbox img { width: 100%; border-radius: 4px; box-shadow: 12px 12px 0 var(--gold); }
.about-wrap h3 { font-size: 26px; color: var(--navy); letter-spacing: 2px; margin-bottom: 18px; }
.about-wrap p { color: var(--text-gray); font-size: 15px; margin-bottom: 12px; }
.about-wrap ul li { padding: 6px 0 6px 24px; position: relative; color: var(--text); font-size: 14px; }
.about-wrap ul li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: bold; }

/* ---------- 案例 ---------- */
.case-card { position: relative; height: 300px; overflow: hidden; background: #eef0f3; }
.case-card .imgbox { position: absolute; inset: 0; }
.case-card .imgbox.noimg { background: #e9ecf0 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 24 24' fill='%23b9c0cb'><path d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 13.5l2.5 3 3.5-4.5 4.5 6H5l3.5-4.5z'/></svg>") center/64px no-repeat; }
.case-card .imgbox.noimg img { display: none; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.case-card:hover img { transform: scale(1.07); }
.case-card .mask {
  position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(10,31,68,.92));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff;
}
.case-card .mask h3 { font-size: 18px; letter-spacing: 1px; }
.case-card .mask span { color: var(--gold-light); font-size: 13px; margin-top: 6px; }

/* ---------- 新闻 ---------- */
.news-card { background: #fff; border: 1px solid #eee; transition: .3s; }
.news-card:hover { box-shadow: 0 12px 26px rgba(0,0,0,.1); border-color: var(--gold); }
.news-card .imgbox { height: 190px; overflow: hidden; }
.news-card .imgbox img { width: 100%; height: 100%; object-fit: cover; }
.news-card .txt { padding: 20px; }
.news-card .date { font-size: 12px; color: var(--gold); letter-spacing: 1px; }
.news-card h3 { font-size: 16px; color: var(--navy); margin: 8px 0; line-height: 1.5; }
.news-card p { font-size: 13px; color: var(--text-gray); }

/* ---------- 页脚（特盾同款结构） ---------- */
.footer { background: var(--navy); color: #cbd3e0; padding: 60px 0 0; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 44px; }
.footer h4 { color: #fff; font-size: 16px; letter-spacing: 2px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: inline-block; }
.footer li { margin-bottom: 10px; }
.footer li a:hover { color: var(--gold-light); }
.footer .f-about p { opacity: .8; margin-bottom: 12px; line-height: 1.8; }
.footer .contact-list li { display: flex; gap: 10px; opacity: .85; }
.footer .contact-list .ico { color: var(--gold-light); }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: .25s;
}
.social-row a:hover { background: var(--gold); transform: translateY(-3px); }
.social-row svg { width: 20px; height: 20px; fill: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: 13px; opacity: .6; }

/* ---------- 悬浮社交栏 ---------- */
.float-social {
  position: fixed; right: 18px; bottom: 120px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px;
}
.float-social a {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.22); transition: .25s;
}
.float-social a:hover { transform: scale(1.12); }
.float-social svg { width: 26px; height: 26px; fill: #fff; }
.fs-wa { background: #25d366; }
.fs-fb { background: #1877f2; }
.fs-li { background: #0a66c2; }
.fs-tk { background: #111; }
.fs-mail { background: var(--gold); }

/* ---------- 内页 banner ---------- */
.page-banner { height: 260px; background: var(--navy) url("../images/banner-1.jpg") center/cover no-repeat; position: relative; display: flex; align-items: center; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(10,31,68,.78); }
.page-banner .container { position: relative; color: #fff; }
.page-banner h1 { font-size: 34px; letter-spacing: 3px; }
.page-banner .crumb { font-size: 13px; opacity: .75; margin-top: 8px; }
.page-banner .crumb a:hover { color: var(--gold-light); }

/* ---------- 产品分类侧栏 + 列表 ---------- */
.prod-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.side-box { border: 1px solid #eee; background: #fff; margin-bottom: 24px; }
.side-box .side-title { background: var(--navy); color: #fff; padding: 14px 20px; font-size: 16px; letter-spacing: 2px; }
.side-box li a { display: flex; justify-content: space-between; padding: 13px 20px; font-size: 14px; border-bottom: 1px solid #f2f2f2; transition: .2s; }
.side-box li a:hover, .side-box li a.on { color: var(--gold); padding-left: 26px; background: var(--bg-light); }

/* ---------- 询盘表单 ---------- */
.inquiry { background: var(--bg-light); }
.inquiry-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; }
.inquiry-info h3 { font-size: 24px; color: var(--navy); margin-bottom: 18px; }
.inquiry-info li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 14px; color: var(--text-gray); }
.inquiry-info .ico { color: var(--gold); font-size: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; padding: 13px 14px; border: 1px solid #ddd; font-size: 14px;
  font-family: inherit; background: #fff; transition: .2s;
}
.form-grid input:focus, .form-grid textarea:focus { outline: none; border-color: var(--gold); }
.form-grid textarea { min-height: 120px; resize: vertical; }
.btn-gold { display: inline-block; padding: 14px 48px; background: var(--gold); color: #fff; border: none; font-size: 15px; letter-spacing: 2px; cursor: pointer; transition: .25s; }
.btn-gold:hover { background: var(--navy); }

/* ---------- 首页类目分组 ---------- */
.cat-block { margin-bottom: 46px; }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 2px solid #eee; padding-bottom: 12px; margin-bottom: 24px; }
.cat-head h3 { font-size: 21px; color: var(--navy); letter-spacing: 1px; }
.cat-head h3 span { font-size: 13px; color: var(--text-gray); font-weight: normal; margin-left: 12px; }
.cat-head > a { font-size: 13px; color: var(--gold); }
.cat-head > a:hover { text-decoration: underline; }

/* ---------- 图片未上传占位 ---------- */
.prod-card .imgbox.noimg { background: #f4f5f7 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 24 24' fill='%23c9ced6'><path d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 13.5l2.5 3 3.5-4.5 4.5 6H5l3.5-4.5z'/></svg>") center/48px no-repeat; }
.prod-card .imgbox.noimg img { display: none; }

/* ---------- 生产视频 ---------- */
.video-card { background: #fff; border: 1px solid #eee; overflow: hidden; transition: .3s; }
.video-card:hover { box-shadow: 0 12px 26px rgba(10,31,68,.14); border-color: var(--gold); }
.video-card video { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #000; display: block; }
.video-card .vcap { padding: 12px; font-size: 14px; color: var(--navy); text-align: center; letter-spacing: 1px; }

/* ============================================================
   产品详情页（参数表 / 特点 / 应用 / 内嵌询盘）
   ============================================================ */
.pd-top { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; margin-bottom: 8px; }
.pd-img { border: 1px solid #eee; background: #fff; }
.pd-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pd-img.noimg { background: #f4f5f7 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 24 24' fill='%23c9ced6'><path d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 13.5l2.5 3 3.5-4.5 4.5 6H5l3.5-4.5z'/></svg>") center/80px no-repeat; }
.pd-img.noimg img { display: none; }
/* 缩略图条（.pd-thumbs）已废弃：2026-10-03 起附图改用下方「产品实拍图」通栏大图 .pd-gallery */
.pd-gallery { display: flex; flex-direction: column; gap: 18px; margin-bottom: 34px; }
.pd-gallery .pd-gitem { display: block; border: 1px solid #eee; background: #fff; line-height: 0; transition: .2s; }
.pd-gallery .pd-gitem:hover { border-color: var(--gold-light); box-shadow: 0 6px 20px rgba(15, 35, 70, .08); }
.pd-gallery img { width: 100%; height: auto; display: block; }   /* 原比例，不裁切 */
.pd-tag { display: inline-block; background: #fffaf0; color: var(--gold); border: 1px solid #f0e2c0; font-size: 12px; padding: 3px 12px; letter-spacing: 1px; margin-bottom: 12px; }
.pd-info h2 { font-size: 26px; color: var(--navy); margin-bottom: 12px; line-height: 1.35; }
.pd-desc { font-size: 15px; color: var(--text-gray); margin-bottom: 18px; line-height: 1.9; }
.pd-key { border-top: 1px dashed #e5e5e5; padding-top: 14px; margin-bottom: 22px; }
.pd-key li { font-size: 14px; color: var(--text); padding-left: 22px; position: relative; margin-bottom: 9px; }
.pd-key li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: bold; }
.pd-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-watip { font-size: 12px; color: var(--text-gray); margin-top: 12px; }

/* 详情页 WhatsApp 询价按钮：品牌绿 + 图标，与联系页一致 */
.btn-wa-lg {
  display: inline-flex; align-items: center; gap: 9px;
  background: #25d366; color: #fff; padding: 13px 30px; border-radius: 3px;
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background .2s;
}
.btn-wa-lg:hover { background: #1da851; }
.btn-wa-lg svg { width: 19px; height: 19px; fill: #fff; flex-shrink: 0; }
@media (max-width: 640px) {
  .pd-btns { flex-direction: column; }
  .pd-btns a { width: 100%; justify-content: center; }
}
.pd-h3 { font-size: 20px; color: var(--navy); margin: 42px 0 18px; padding-left: 13px; border-left: 4px solid var(--gold); letter-spacing: 1px; }

/* 参数表 */
.pt-wrap { overflow-x: auto; border: 1px solid #e8eaee; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.ptable th { background: var(--navy); color: #fff; text-align: left; padding: 13px 18px; font-weight: normal; letter-spacing: 1px; }
.ptable th:first-child { width: 200px; }
.ptable td { padding: 12px 18px; border-bottom: 1px solid #f0f1f3; color: var(--text); vertical-align: top; line-height: 1.75; }
.ptable td:first-child { color: var(--navy); font-weight: 600; background: #f7f8fa; }
.ptable tbody tr:nth-child(even) td { background: #fcfcfd; }
.ptable tbody tr:nth-child(even) td:first-child { background: #f2f4f7; }
.ptable tbody tr:hover td { background: #fffdf6; }
.pd-spec-in li { position: relative; padding-left: 15px; margin-bottom: 3px; color: var(--text-gray); }
.pd-spec-in li::before { content: "·"; position: absolute; left: 3px; color: var(--gold); font-weight: bold; }

/* 产品特点 */
.pd-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.pd-feat li { position: relative; padding-left: 26px; font-size: 14px; color: var(--text); line-height: 1.8; }
.pd-feat li::before { content: "✔"; position: absolute; left: 0; top: 2px; color: var(--gold); font-size: 13px; }

/* 应用场景 */
.pd-apps { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-apps span { background: var(--bg-light); border: 1px solid #e6e8ec; color: var(--navy); font-size: 13px; padding: 7px 18px; transition: .2s; }
.pd-apps span:hover { border-color: var(--gold); color: var(--gold); background: #fffaf0; }

/* 内嵌询盘 */
.inq-box { background: var(--bg-light); border: 1px solid #eaecef; padding: 28px 30px 30px; margin-top: 46px; }
.inq-box .pd-h3 { margin-top: 0; }
.inq-sub { font-size: 13px; color: var(--text-gray); margin: -8px 0 18px; }
.inq-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inq-form textarea { grid-column: 1 / -1; }
.inq-form button { grid-column: 1 / -1; justify-self: start; }
.inq-form input, .inq-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #ddd; font-size: 14px; font-family: inherit; background: #fff; }
.inq-form input:focus, .inq-form textarea:focus { outline: none; border-color: var(--gold); }

/* 产品卡片上的类目标签 */
.prod-card .pcat { display: inline-block; font-size: 11px; color: var(--gold); border: 1px solid #f0e2c0; background: #fffaf0; padding: 2px 10px; margin-bottom: 8px; letter-spacing: 1px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-4, .grid-3, .stats .container, .form-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap, .inquiry-wrap, .prod-layout, .footer .cols, .pd-top, .pd-feat, .inq-form { grid-template-columns: 1fr; }
  .banner .slide-inner h2 { font-size: 30px; }
  .nav { display: none; }
  .logo .logo-text .cn { font-size: 18px; }
  .ptable th:first-child { width: 120px; }
}

/* ============================================================
   阿拉伯语（RTL）排版：整页从右往左
   —— flex 布局在 direction:rtl 下会自动镜像，这里只补表单/表格的文字对齐
   ============================================================ */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .ptable th,
html[dir="rtl"] .ptable td,
html[dir="rtl"] .pd-feat li,
html[dir="rtl"] .inq-form input,
html[dir="rtl"] .inq-form textarea,
html[dir="rtl"] .inq-form select { text-align: right; }
html[dir="rtl"] .side-cats a,
html[dir="rtl"] .pd-apps span,
html[dir="rtl"] .prod-card,
html[dir="rtl"] .case-card,
html[dir="rtl"] .news-card { text-align: right; }
html[dir="rtl"] .pd-gallery { direction: ltr; }   /* 实拍图按上传顺序，不镜像 */
html[dir="rtl"] .banner .slide-inner { margin-left: 0; margin-right: 6%; }  /* 阿语轮播文字与右缘留边（原贴边被裁） */
