/* ============================================================
   永泰机械 · 主样式表
   包含：布局 / 头部导航 / Banner / 产品 / 案例 / 优势 /
         新闻 / VR / 资质证书 / 页脚 / 移动端
   ============================================================ */

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; color: #333; background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { border: 0; max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.clear::after { content: ""; display: block; clear: both; height: 0; visibility: hidden; }
.fl { float: left; } .fr { float: right; }
.inner { width: 1200px; max-width: 92%; margin: 0 auto; }

/* ---------- 头部 ---------- */
.header {
  position: fixed; left: 0; top: 0; width: 100%; z-index: 100;
  background: #0c2b52; box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.header .inner { display: flex; align-items: center; height: 72px; }
.logo { display: flex; flex-direction: column; line-height: 1.1; color: #fff; }
.logo-cn { font-size: 22px; font-weight: 700; letter-spacing: 2px; color: #ff7a1a; }
.logo-en { font-size: 10px; letter-spacing: 1px; color: #c9d8ec; margin-top: 3px; }
.nav { flex: 1; }
.nav > ul { display: flex; justify-content: center; }
.nav > ul > li > a {
  display: block; padding: 0 16px; height: 72px; line-height: 72px;
  color: #e6eefa; font-size: 15px; transition: color .2s, background .2s;
}
.nav > ul > li > a:hover,
.nav > ul > li.cur > a { color: #fff; background: #16406f; }
.nav > ul > li.cur > a { color: #ff7a1a; }
.lang-switch { display: flex; align-items: center; margin: 0 18px; color: #9fb3d1; font-size: 13px; }
.lang-switch a { color: #9fb3d1; padding: 0 4px; }
.lang-switch a.active { color: #ff7a1a; font-weight: 700; }
.lang-switch span { color: #3a5a82; }
.call { color: #fff; text-align: right; line-height: 1.2; }
.call em { font-style: normal; font-size: 11px; color: #9fb3d1; }
.call h3 { font-size: 18px; color: #ff7a1a; margin-top: 2px; letter-spacing: 1px; }
.menu_btn { display: none; flex-direction: column; justify-content: center; width: 28px; height: 28px; cursor: pointer; }
.menu_btn span { display: block; height: 2px; background: #fff; margin: 3px 0; border-radius: 2px; }

/* ---------- 通用区块标题 ---------- */
.pub_title { text-align: center; padding: 50px 0 30px; }
.pub_title h4 { font-size: 26px; color: #0c2b52; font-weight: 700; }
.pub_title h4 span { color: #ff7a1a; }
.pub_title p { color: #888; margin-top: 10px; font-size: 14px; }

/* ---------- Banner ---------- */
.banner { margin-top: 72px; position: relative; }
.banner-swiper { width: 100%; height: 460px; }
.swiper-slide { position: relative; background-size: cover; background-position: center; }
.banner-txt { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  text-align: center; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.banner-txt h2 { font-size: 40px; font-weight: 700; letter-spacing: 2px; }
.banner-txt p { font-size: 16px; margin-top: 12px; letter-spacing: 1px; }
.banner-mask { position: absolute; inset: 0; background: rgba(12,43,82,.25); }

/* ---------- 产品分类 ---------- */
.pro-cate { padding: 40px 0 10px; }
.pro-cate .inner { display: flex; gap: 24px; }
.cate-item { flex: 1; position: relative; overflow: hidden; border-radius: 6px; }
.cate-item .img { height: 200px; background-size: cover; background-position: center; transition: transform .4s; }
.cate-item:hover .img { transform: scale(1.06); }
.cate-item h3 { position: absolute; left: 0; bottom: 0; width: 100%;
  background: rgba(12,43,82,.78); color: #fff; text-align: center;
  padding: 12px 0; font-size: 16px; }

/* ---------- 产品滚动 ---------- */
.pro-list { padding: 10px 0 20px; overflow: hidden; }
.pro-scroll ul { display: flex; gap: 20px; width: max-content; }
.pro-scroll li { width: 250px; }
.pro-scroll .img { height: 200px; background-size: cover; background-position: center; border-radius: 6px; }
.pro-scroll h3 { font-size: 14px; color: #0c2b52; margin: 10px 0 4px; line-height: 1.4; }
.pro-scroll p { color: #ff7a1a; font-size: 12px; }
.more-btn { display: block; width: 180px; margin: 20px auto 0; padding: 12px 0; text-align: center;
  background: #ff7a1a; color: #fff; border-radius: 4px; font-size: 15px; transition: background .2s; }
.more-btn:hover { background: #e5650a; }
.more-btn.dark { background: #0c2b52; }
.more-btn.dark:hover { background: #16406f; }

/* ---------- 关于我们 ---------- */
.about { background: #f6f8fb; padding: 40px 0; }
.about-data { background: #0c2b52; color: #fff; padding: 30px 0; }
.about-data ul { display: flex; }
.about-data li { flex: 1; text-align: center; }
.about-data h2 { font-size: 34px; color: #ff7a1a; }
.about-data p { color: #c9d8ec; margin-top: 6px; }
.about-main { padding: 40px 0; display: flex; gap: 40px; align-items: center; }
.about-pic { flex: 1; }
.about-pic .img { height: 320px; background-size: cover; background-position: center; border-radius: 6px; }
.about-txt { flex: 1; }
.about-txt h5 { color: #ff7a1a; letter-spacing: 2px; font-size: 13px; }
.about-txt h4 { font-size: 30px; color: #0c2b52; margin: 4px 0; }
.about-ti { border-left: 4px solid #ff7a1a; padding-left: 12px; margin: 12px 0; }
.about-ti em { font-style: normal; color: #ff7a1a; font-size: 13px; }
.about-txt h3 { font-size: 18px; color: #0c2b52; margin: 8px 0; }
.about-txt p { color: #666; line-height: 1.9; }
.about-more { display: inline-block; margin-top: 16px; padding: 10px 22px; background: #ff7a1a; color: #fff; border-radius: 4px; }

/* ---------- 工程案例 ---------- */
.case-swiper-wrap { padding: 0 0 30px; }
.case-swiper { height: 280px; }
.case-swiper .img { width: 100%; height: 280px; background-size: cover; background-position: center; border-radius: 6px; }
.call-row { display: flex; justify-content: center; align-items: center; gap: 30px; padding: 10px 0 40px; }
.call-num { font-size: 22px; color: #ff7a1a; font-weight: 700; }

/* ---------- 五大优势 ---------- */
.advantage { background: #f6f8fb; padding: 40px 0; }
.ysbox { display: flex; justify-content: space-between; margin-top: 30px; }
.ysbox dl { width: 19%; text-align: center; background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: transform .25s; }
.ysbox dl:hover { transform: translateY(-6px); }
.ysbox dt { height: 150px; background-size: cover; background-position: center; }
.ysbox dd { padding: 14px 0; }
.ysbox dd h4 { color: #0c2b52; font-size: 16px; }
.ysbox dd p { color: #888; font-size: 12px; margin-top: 6px; line-height: 1.6; }

/* ---------- 新闻 ---------- */
.news { padding: 40px 0; }
.news-main { display: flex; gap: 30px; margin-top: 20px; }
.news-big { width: 48%; }
.news-big .img { height: 280px; background-size: cover; background-position: center; border-radius: 6px; }
.big-ti { font-size: 17px; color: #0c2b52; margin-top: 12px; display: block; font-weight: 700; }
.news-list { width: 48%; }
.news-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #e5e5e5; }
.news-list .img { width: 150px; height: 95px; background-size: cover; background-position: center; border-radius: 4px; flex-shrink: 0; }
.news-list h3 { font-size: 15px; color: #0c2b52; margin-bottom: 6px; }
.news-list p { font-size: 12px; color: #999; line-height: 1.6; }

/* ---------- VR ---------- */
.vr { padding: 40px 0; background: #f6f8fb; }
.vr .inner { display: flex; gap: 30px; align-items: center; }
.vr-box { flex: 1.4; }
.vr-img { position: relative; height: 320px; background-size: cover; background-position: center; border-radius: 8px; overflow: hidden; cursor: pointer; }
.vr-mask { position: absolute; inset: 0; background: rgba(12,43,82,.3); transition: background .3s; }
.vr-img:hover .vr-mask { background: rgba(12,43,82,.1); }
.vr-txt { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); text-align: center; color: #fff; }
.vr-ico { font-size: 40px; }
.vr-txt h3 { font-size: 24px; margin: 8px 0; }
.vr-side { flex: 1; }
.vr-side h4 { font-size: 20px; color: #0c2b52; margin-bottom: 16px; }
.vr-side ul li { padding: 8px 0; color: #666; display: flex; align-items: flex-start; gap: 8px; }
.vr-side ul li i { font-style: normal; color: #ff7a1a; font-weight: 700; }
.vr-btn { display: inline-block; margin-top: 16px; padding: 12px 26px; background: #0c2b52; color: #fff; border-radius: 4px; }

/* ---------- 资质证书（纯图片） ---------- */
.license-page { padding: 50px 0; min-height: 70vh; }
.license-gallery { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.license-card { display: block; width: 100%; max-width: 480px; cursor: zoom-in;
  transition: transform .25s, box-shadow .25s; }
.license-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.license-card img { width: 100%; border-radius: 6px; border: 1px solid #ddd; background: #fff; }
.license-placeholder { display: flex; align-items: center; justify-content: center; height: 340px;
  background: #eee; color: #999; font-size: 14px; border-radius: 6px; border: 1px dashed #ccc; }

/* 首页证书横条 */
.licenses-strip { padding: 40px 0; background: #f6f8fb; text-align: center; }
.licenses-strip h4 { font-size: 22px; color: #0c2b52; }
.licenses-strip h4 span { color: #ff7a1a; }
.licenses-row { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 24px; }
.license-item { cursor: pointer; max-width: 240px; transition: transform .25s; }
.license-item:hover { transform: translateY(-4px); }
.license-item img { width: 100%; border-radius: 6px; border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,.06); }

/* ---------- 子页通用 ---------- */
.sub-page { padding: 40px 0; display: flex; gap: 30px; }
.side { width: 230px; flex-shrink: 0; }
.side-ti { background: #0c2b52; color: #fff; padding: 14px 0; text-align: center; font-size: 16px; border-radius: 4px 4px 0 0; }
.side ul li a { display: block; padding: 12px 16px; border-bottom: 1px solid #eee; color: #555; }
.side ul li.cur a, .side ul li a:hover { background: #ff7a1a; color: #fff; }
.side-contact { margin-top: 20px; background: #f6f8fb; padding: 18px; border-radius: 4px; }
.side-contact h4 { color: #0c2b52; margin-bottom: 10px; font-size: 16px; }
.side-contact p { color: #666; line-height: 2; font-size: 13px; }
.main { flex: 1; }
.main-crumb { color: #999; font-size: 13px; margin-bottom: 14px; }
.main-ti { border-left: 4px solid #ff7a1a; padding-left: 12px; font-size: 20px; color: #0c2b52; margin-bottom: 20px; }
.main-body p { line-height: 2; color: #555; margin-bottom: 14px; text-indent: 2em; }
.main-body img { max-width: 100%; border-radius: 4px; margin: 16px 0; }

/* 产品中心 */
.prod-cate-block { margin-bottom: 40px; }
.prod-cate-block h3 { font-size: 20px; color: #0c2b52; border-bottom: 2px solid #ff7a1a; padding-bottom: 8px; margin-bottom: 20px; }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod-card { border: 1px solid #eee; border-radius: 6px; overflow: hidden; transition: box-shadow .25s; }
.prod-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.prod-card .img { height: 200px; background-size: cover; background-position: center; }
.prod-card h4 { padding: 12px; font-size: 15px; color: #0c2b52; text-align: center; }

/* 新闻列表 */
.news-list-page .news-item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid #eee; }
.news-list-page .news-item .img { width: 200px; height: 130px; background-size: cover; background-position: center; border-radius: 4px; flex-shrink: 0; }
.news-list-page .news-item h4 { font-size: 17px; color: #0c2b52; margin-bottom: 8px; }
.news-list-page .news-item .date { color: #999; font-size: 12px; margin-bottom: 8px; }
.news-list-page .news-item p { color: #777; line-height: 1.8; }

/* 联系我们 */
.contact-wrap { display: flex; gap: 30px; }
.contact-form { flex: 1; }
.contact-form .row { margin-bottom: 16px; }
.contact-form label { display: block; margin-bottom: 6px; color: #0c2b52; font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; font-family: inherit;
}
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form button { padding: 12px 30px; background: #ff7a1a; color: #fff; border: 0; border-radius: 4px; cursor: pointer; font-size: 15px; }
.contact-info { width: 320px; flex-shrink: 0; background: #f6f8fb; padding: 24px; border-radius: 6px; }
.contact-info h4 { color: #0c2b52; margin-bottom: 16px; font-size: 18px; }
.contact-info p { line-height: 2.2; color: #555; }
.contact-info .big-call { font-size: 22px; color: #ff7a1a; font-weight: 700; }

/* ---------- 页脚 ---------- */
.footer { background: #0c1f3a; color: #9fb3d1; padding: 44px 0 0; margin-top: 40px; }
.footer .inner { display: flex; gap: 40px; }
.f-col { flex: 1; }
.f-col h3 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.f-col a { display: block; color: #9fb3d1; padding: 4px 0; }
.f-col a:hover { color: #ff7a1a; }
.f-col p { line-height: 2.1; font-size: 13px; }
.qr { width: 120px; height: 120px; background-size: cover; background-position: center; background-color: #fff; border-radius: 4px; }
.copyright { text-align: center; padding: 20px 0; margin-top: 30px; border-top: 1px solid #1a3358; color: #6f8db5; font-size: 12px; }

/* ---------- 移动端底部导航 ---------- */
.m-nav { display: none; position: fixed; left: 0; bottom: 0; width: 100%; z-index: 90;
  background: #0c2b52; border-top: 1px solid #16406f; }
.m-nav a { flex: 1; text-align: center; color: #c9d8ec; padding: 10px 0; font-size: 13px; }
.m-nav a:active { color: #ff7a1a; }
.go-top { display: none; position: fixed; right: 16px; bottom: 80px; z-index: 90;
  width: 42px; height: 42px; line-height: 42px; text-align: center; background: #0c2b52;
  color: #fff; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* ---------- VR 弹层 ---------- */
.vr-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 100000; flex-direction: column; }
.vr-modal-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: #000; color: #fff; }
.vr-modal-bar a { color: #7fd0ff; margin-right: 20px; font-size: 14px; }
.vr-modal-close { cursor: pointer; font-size: 28px; line-height: 1; }
.vr-modal iframe { flex: 1; border: 0; width: 100%; }

/* ---------- 淡入动画 ---------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.show { opacity: 1; transform: none; }

/* ---------- 语言切换动画 ---------- */
body { transition: opacity .15s ease-out; }
body.lang-fading { opacity: .35; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .nav, .call { display: none; }
  .menu_btn { display: flex; }
  .banner-swiper { height: 240px; }
  .banner-txt h2 { font-size: 22px; }
  .banner-txt p { font-size: 13px; }
  .about-data ul { flex-wrap: wrap; }
  .about-data li { width: 50%; margin-bottom: 16px; }
  .about-main, .vr .inner { flex-direction: column; }
  .news-main, .contact-wrap { flex-direction: column; }
  .news-big, .news-list { width: 100%; }
  .sub-page { flex-direction: column; }
  .side { width: 100%; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .ysbox { flex-wrap: wrap; }
  .ysbox dl { width: 48%; margin-bottom: 16px; }
  .footer .inner { flex-direction: column; gap: 24px; }
  .m-nav { display: flex; }
  body { padding-bottom: 52px; }
  .go-top { display: block; }
  .license-gallery, .licenses-row { flex-direction: column; align-items: center; }
  .license-card, .license-item { max-width: 90%; }
}
@media (max-width: 560px) {
  .pub_title h4 { font-size: 20px; }
  .prod-grid { grid-template-columns: 1fr; }
  .ysbox dl { width: 100%; }
  .news-list li { flex-direction: column; }
  .news-list .img { width: 100%; height: 160px; }
}

/* —— 产品详情页参数表 —— */
.prod-desc { font-size: 15px; line-height: 1.9; color: #333; margin: 16px 0; }
.prod-desc-en { font-size: 14px; color: #888; line-height: 1.7; margin: 0 0 20px; }
table.prod-params { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 14px; }
table.prod-params td { padding: 10px 14px; border: 1px solid #e5e5e5; }
table.prod-params td:first-child { background: #f5f7fa; color: #333; width: 40%; font-weight: 600; }
table.prod-params td:last-child { color: #555; }
.prod-tip { font-size: 13px; color: #999; border-left: 3px solid #f90; padding-left: 10px; }
@media (max-width: 600px) {
  table.prod-params td { padding: 8px 10px; font-size: 13px; }
  table.prod-params td:first-child { width: 45%; }
}
