﻿/* ============================================
   深圳腾骏达科技 - 全站通用样式
   版本：3.2
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* 布局 */
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section { padding: 4.5rem 0; }
.section-sm { padding: 2.5rem 0; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.7rem 2rem; border-radius: 8px; font-weight: 500; cursor: pointer; transition: all 0.25s; border: none; background-color: #0055a5; color: white; font-size: 0.95rem; }
.btn-orange { background-color: #FF6600; }
.btn-orange:hover { background-color: #e55c00; }
.btn-white { background-color: white; color: #003D7A; border: 2px solid white; }
.btn-white:hover { background-color: transparent; color: white; }
.btn:hover { background-color: #003d7a; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,85,165,0.25); }

/* 标题 */
.section-title { font-size: 2.3rem; font-weight: 700; text-align: center; margin-bottom: 0.8rem; color: #003D7A; position: relative; padding-bottom: 1rem; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 70px; height: 4px; background: linear-gradient(90deg, #FF6600, #003D7A); border-radius: 2px; }
.section-subtitle { text-align: center; color: #4b5563; margin-bottom: 3rem; font-size: 1.1rem; }

/* 顶部通栏 */
.top-bar { background: #003D7A; color: #e0e7ff; font-size: 0.85rem; padding: 0.5rem 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.top-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top-right > a { color: #e0e7ff; transition: color 0.2s; font-size: 0.8rem; }
.top-right > a:hover { color: #FF6600; }
.top-hotline { color: #FF6600; font-size: 0.85rem; }
.top-hotline strong { font-weight: 700; }
.btn-top-consult { background: #FF6600; border: none; color: white; padding: 0.25rem 0.7rem; border-radius: 4px; cursor: pointer; font-size: 0.78rem; transition: background 0.2s; }
.btn-top-consult:hover { background: #e55c00; }

/* 语言切换 */
.lang-switch {
  position: relative;
}
.lang-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  white-space: nowrap;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.25);
}
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  min-width: 140px;
  display: none;
  z-index: 999;
  padding: 0.4rem 0;
}
.lang-dropdown.show {
  display: block;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  color: #374151;
  font-size: 0.82rem;
  transition: all 0.15s;
  white-space: nowrap;
  cursor: pointer;
}
.lang-option:hover {
  background: #f0f4ff;
  color: #003D7A;
}
.lang-option.active {
  background: #eef5ff;
  color: #003D7A;
  font-weight: 600;
}
.lang-option.active::after {
  content: ' ✓';
  color: #FF6600;
}
.lang-flag {
  font-size: 0.9rem;
}

/* Header */
.header { background: white; padding: 1rem 0; box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
.header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.header-left { display: flex; align-items: center; gap: 1rem; }
.logo { height: 52px; background: #003D7A; width: 130px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 1.3rem; }
.brand-info h1 { font-size: 1.5rem; font-weight: 700; color: #003D7A; line-height: 1.3; }
.brand-info p { font-size: 0.85rem; color: #4b5563; }
.header-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.badge { background: #f0f4ff; color: #003D7A; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.header-right { display: flex; align-items: center; gap: 1.5rem; }
.hotline-box { text-align: right; }
.hotline-label { font-size: 0.75rem; color: #6b7280; }
.hotline-number { font-size: 1.8rem; font-weight: 700; color: #FF6600; letter-spacing: 0.5px; }
.btn-wechat { background: #003D7A; border: none; color: white; padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; font-size: 0.85rem; transition: background 0.2s; }
.btn-wechat:hover { background: #002A5C; }

/* 导航 */
.nav-bar { background: #003D7A; position: sticky; top: 0; z-index: 50; }
.nav-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.nav-item { position: relative; flex: 1; text-align: center; }
.nav-item > a { display: block; padding: 1rem 0.4rem; color: white; font-weight: 500; font-size: 0.9rem; transition: 0.2s; white-space: nowrap; }
.nav-item:hover > a { background: #002A5C; }
.nav-item > a.nav-active { background: #002A5C; font-weight: 700; }

/* 下拉菜单 */
.dropdown { position: absolute; top: 100%; left: 0; background: white; min-width: 200px; box-shadow: 0 12px 28px rgba(0,0,0,0.12); border-radius: 0 0 12px 12px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: 0.2s; z-index: 30; padding: 0.6rem 0; text-align: left; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 0.55rem 1.4rem; color: #1f2937; font-size: 0.9rem; transition: 0.15s; }
.dropdown a:hover { background: #eef5ff; color: #003D7A; }

/* 产品大面板 */
.product-mega-panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); background: white; width: 1100px; max-width: 95vw; box-shadow: 0 20px 40px rgba(0,0,0,0.15); border-radius: 0 0 16px 16px; opacity: 0; visibility: hidden; transition: 0.25s; z-index: 40; padding: 2rem 1.5rem; display: flex; gap: 2rem; justify-content: space-between; }
.nav-item.product-menu:hover .product-mega-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-col { flex: 1; min-width: 140px; }
.mega-col h4 { font-size: 1rem; font-weight: 700; color: #003D7A; margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 2px solid #FF6600; display: inline-block; }
.mega-col a { display: block; padding: 0.35rem 0; color: #374151; font-size: 0.88rem; transition: 0.15s; }
.mega-col a:hover { color: #003D7A; padding-left: 6px; background: none; }

/* 卡片 */
.card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.04); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 30px rgba(0,0,0,0.1); }
.card-img { width: 100%; height: 180px; background-color: #d1d5db; transition: transform 0.4s; object-fit: cover; }
.card:hover .card-img { transform: scale(1.05); }
.card-info { padding: 1.2rem 1rem; }
.card-info h4 { font-size: 1.1rem; font-weight: 700; color: #003D7A; margin-bottom: 0.5rem; }
.card-info p { font-size: 0.85rem; color: #4b5563; line-height: 1.5; }

/* 底部 */
.footer { background: #0a1929; color: #cbd5e1; padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr 1.8fr; gap: 2.5rem; }
.footer h4 { color: white; font-size: 1.1rem; margin-bottom: 1.2rem; position: relative; padding-bottom: 0.6rem; }
.footer h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: #FF6600; border-radius: 2px; }
.footer-company p { margin-bottom: 0.6rem; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-links a { display: block; color: #cbd5e1; padding: 0.3rem 0; font-size: 0.9rem; transition: 0.2s; }
.footer-links a:hover { color: #FF6600; padding-left: 6px; }
.footer-products a { display: inline-block; background: rgba(255,255,255,0.08); color: #cbd5e1; padding: 0.3rem 0.8rem; border-radius: 4px; margin: 0 0.4rem 0.5rem 0; font-size: 0.85rem; transition: 0.2s; }
.footer-products a:hover { background: #FF6600; color: white; }
.qr-section { display: flex; gap: 1.2rem; margin-top: 1rem; align-items: center; justify-content: center; }
.qr-box { background: white; padding: 0.5rem; border-radius: 10px; text-align: center; width: 100px; }
.qr-box img { width: 80px; height: 80px; background: #e5e7eb; border-radius: 6px; }
.qr-box span { display: block; font-size: 0.7rem; color: #333; margin-top: 0.3rem; }
.footer-contact-btn { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.copyright { border-top: 1px solid #1e3b5a; margin-top: 2.5rem; padding-top: 1.5rem; text-align: center; font-size: 0.85rem; color: #94a3b8; }

/* 面包屑 */
.breadcrumb { background: #f9fafb; padding: 1rem 0; font-size: 0.9rem; color: #6b7280; border-bottom: 1px solid #e5e7eb; }
.breadcrumb a { color: #003D7A; transition: color 0.2s; }
.breadcrumb a:hover { color: #FF6600; }
.breadcrumb span { margin: 0 0.5rem; }

/* 页面 Banner */
.page-banner { background: linear-gradient(135deg, #003D7A 0%, #0055a5 100%); color: white; padding: 2.5rem 0; text-align: center; }
.page-banner h1 { font-size: 2rem; font-weight: 700; }
.page-banner p { opacity: 0.9; margin-top: 0.5rem; }

/* ============================================
   微信咨询弹窗样式（新增）
   ============================================ */
.wechat-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.wechat-modal-overlay.show {
  display: flex;
}

.wechat-modal-box {
  background: white;
  border-radius: 20px;
  padding: 2rem 2.5rem;
  max-width: 420px;
  width: 92%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: wechatSlideUp 0.35s ease;
}

@keyframes wechatSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wechat-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.2s;
  line-height: 1;
  padding: 0 4px;
}
.wechat-modal-close:hover {
  color: #FF6600;
}

.wechat-modal-content {
  text-align: center;
}

.wechat-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #003D7A;
  margin: 0 0 0.2rem 0;
}

.wechat-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0 0 0.8rem 0;
}

.wechat-qr-wrapper {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
}

.wechat-qr-img {
  width: 170px;
  height: 170px;
  border-radius: 12px;
  border: 3px solid #e5e7eb;
  object-fit: cover;
  background: #f3f4f6;
}

.wechat-qr-placeholder {
  width: 170px;
  height: 170px;
  border-radius: 12px;
  border: 3px dashed #d1d5db;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  color: #9ca3af;
}

.wechat-desc {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0.5rem 0 0.8rem 0;
}

.wechat-copy-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: #f0f4ff;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  margin: 0.3rem 0;
  flex-wrap: wrap;
}

.wechat-number-label {
  font-size: 0.9rem;
  color: #4b5563;
}

.wechat-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: #003D7A;
  letter-spacing: 0.5px;
}

.btn-copy-wechat {
  background: #003D7A;
  color: white;
  border: none;
  padding: 0.25rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.btn-copy-wechat:hover {
  background: #002A5C;
}
.btn-copy-wechat.copied {
  background: #10b981;
}

.wechat-tip {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0.5rem 0 0 0;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-mega-panel { width: 100%; flex-wrap: wrap; left: 0; transform: translateX(0) translateY(8px); }
  .nav-item.product-menu:hover .product-mega-panel { transform: translateX(0) translateY(0); }
  .header .container { flex-direction: column; align-items: flex-start; }
  .header-right { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .hotline-box { text-align: left; }
}

@media (max-width: 640px) {
  .section-title { font-size: 1.8rem; }
  .nav-list { flex-direction: column; }
  .nav-item { text-align: left; flex: none; }
  .nav-item > a { padding: 0.8rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wechat-modal-box {
    padding: 1.5rem 1.2rem;
  }
  .wechat-qr-img {
    width: 130px;
    height: 130px;
  }
  .wechat-qr-placeholder {
    width: 130px;
    height: 130px;
  }
  .wechat-modal-close {
    top: 8px;
    right: 12px;
    font-size: 1.5rem;
  }
}