/* ==============================================
   v4 全站公共样式 · 顶部 / 导航 / 页脚
   首页 + 所有内页共用
   ============================================== */

:root {
  --soe-blue: #004098;
  --soe-red: #d32011;
  --bg-gray: #f9f9f9;
  --border-color: #e5e5e5;
}

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

body {
  font-family: "Microsoft YaHei", "微软雅黑", SimSun, sans-serif;
  font-size: 16px;
  color: #333;
  background: var(--bg-gray);
  min-width: 1200px;
  line-height: 1.7;
}

a { color: #333; text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--soe-red); }
ul { list-style: none; }
img { max-width: 100%; }
.clear { clear: both; height: 0; overflow: hidden; }

.container { width: 1200px; margin: 0 auto; position: relative; }

/* ===== 顶部条 ===== */
.top-bar {
  height: 40px;
  line-height: 40px;
  background: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 15px;
  color: #555;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar .welcome { font-size: 15px; color: #555; }
.top-bar-links { font-size: 15px; }
.top-bar-links a { margin-left: 12px; color: #555; }
.top-bar-links a:hover { color: var(--soe-red); }

/* ===== 头部 Logo & 搜索 ===== */
.header { height: 120px; background: #fff; }
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.logo { display: flex; align-items: center; }
.logo img { height: 56px; width: auto; margin-right: 15px; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; }
.search-area { display: flex; margin-bottom: 6px; }
.header-phone { font-size: 15px; color: #666; line-height: 1.4; }
.header-phone strong { color: var(--soe-blue); font-size: 18px; font-family: Arial, sans-serif; letter-spacing: 0.5px; }
.search-input {
  width: 280px;
  height: 38px;
  border: 2px solid var(--soe-blue);
  padding: 0 12px;
  outline: none;
  font-size: 16px;
}
.search-btn {
  width: 80px;
  height: 38px;
  background: var(--soe-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 4px;
}
.hot-words { font-size: 14px; color: #999; }
.hot-words a { color: #999; margin-left: 10px; }
.hot-words a:hover { color: var(--soe-red); }

/* ===== 全宽主导航 ===== */
.nav-wrap {
  width: 100%;
  background: var(--soe-blue);
  box-shadow: 0 4px 6px rgba(0,64,152,0.2);
  position: relative;
  z-index: 100;
}
.nav { display: flex; width: 100%; }
.nav > li { flex: 1; text-align: center; position: relative; }
.nav > li > a {
  display: block;
  height: 54px;
  line-height: 54px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding: 0 4px;
}
.nav > li > a:hover,
.nav > li.active > a {
  background: #002d6b;
  text-decoration: none;
  color: #fff;
}

/* 下拉子菜单 */
.nav-sub {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 160px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-top: 3px solid var(--soe-red);
  text-align: left;
  z-index: 200;
}
.nav > li.has-sub:hover > .nav-sub { display: block; }
.nav-sub li { border-bottom: 1px solid #f0f0f0; }
.nav-sub li:last-child { border-bottom: none; }
.nav-sub a {
  display: block;
  padding: 0 18px;
  height: 42px;
  line-height: 42px;
  font-size: 15px;
  font-weight: normal;
  color: #333;
  white-space: nowrap;
}
.nav-sub a:hover {
  background: #f0f5fa;
  color: var(--soe-blue);
  text-decoration: none;
}

/* ===== 页脚 ===== */
.footer {
  background: linear-gradient(180deg, #1f2832 0%, #161d24 100%);
  color: #9aa3ae;
  padding: 55px 0 0;
  border-top: 4px solid var(--soe-blue);
  margin-top: 0;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 60px;
  padding-bottom: 40px;
}
.footer-col { display: flex; flex-direction: column; }
.footer-brand { flex: 2; min-width: 320px; }
.footer-contact { flex: 1.2; min-width: 280px; }
.footer-qr { flex: 0 0 auto; align-items: flex-start; }

/* 通用副标题 */
.ft-subtitle {
  font-size: 16px; color: #fff; font-weight: 600; letter-spacing: 2px;
  margin: 0 0 20px; padding-bottom: 12px; position: relative;
}
.ft-subtitle::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 36px; height: 2px; background: var(--soe-blue);
}

/* 品牌 */
.ft-title {
  font-size: 22px; color: #fff; margin: 0 0 8px;
  letter-spacing: 1.5px; font-weight: 600; line-height: 1.3;
}
.ft-slogan {
  font-size: 12px; color: #5d6772; letter-spacing: 2px;
  margin: 0 0 22px; font-family: "Arial", sans-serif; text-transform: uppercase;
  padding-bottom: 16px; border-bottom: 1px solid #2a323c;
}
.ft-intro {
  font-size: 14px; line-height: 1.95; color: #88929e;
  margin: 0; max-width: 460px;
}

/* 联系方式列表 */
.ft-contact { list-style: none; padding: 0; margin: 0; }
.ft-contact li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: 1.7; color: #aab3bd;
  padding: 6px 0;
  transition: color 0.25s;
}
.ft-contact li:hover { color: #fff; }
.ft-ic {
  display: inline-block; width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px;
  background-repeat: no-repeat; background-position: center; background-size: contain;
  opacity: 0.85;
}
.ft-ic-addr { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0c4ff'><path d='M12 2C7.6 2 4 5.6 4 10c0 5.5 7.3 11.5 7.6 11.8.2.2.6.2.8 0C12.7 21.5 20 15.5 20 10c0-4.4-3.6-8-8-8zm0 11a3 3 0 110-6 3 3 0 010 6z'/></svg>"); }
.ft-ic-tel { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0c4ff'><path d='M20 15.5c-1.2 0-2.5-.2-3.6-.6-.4-.1-.8 0-1 .2l-2.2 2.2c-2.8-1.4-5.1-3.8-6.6-6.6L8.8 8.4c.3-.3.3-.7.2-1C8.6 6.2 8.4 5 8.4 3.8c0-.5-.4-1-1-1H4c-.5 0-1 .5-1 1C3 13.3 10.7 21 20.2 21c.5 0 1-.4 1-1v-3.5c0-.5-.4-1-1.2-1z'/></svg>"); }
.ft-ic-fax { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0c4ff'><path d='M19 8h-1V3H6v5H5a3 3 0 00-3 3v6h4v3h12v-3h4v-6a3 3 0 00-3-3zM8 5h8v3H8V5zm8 14H8v-4h8v4zm4-6h-2v-2H6v2H4v-2a1 1 0 011-1h14a1 1 0 011 1v2z'/></svg>"); }
.ft-ic-mail { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0c4ff'><path d='M20 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V6a2 2 0 00-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/></svg>"); }

/* 二维码 */
.footer-qr .qr-img {
  width: 130px;
  height: 130px;
  background: #fff;
  padding: 6px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 4px 12px rgba(0,0,0,0.3);
}
.footer-qr .qr-img img { width: 100%; height: 100%; display: block; object-fit: cover; }
.footer-qr .qr-cap {
  font-size: 13px; color: #aab3bd; margin: 14px 0 0; letter-spacing: 1px;
  text-align: center; width: 130px;
}

/* 版权 */
.footer-bottom {
  text-align: center; line-height: 2; font-size: 13px; color: #6b7480;
  border-top: 1px solid #2a323c; padding: 18px 0; letter-spacing: 0.5px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #88929e; transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 1240px) {
  body { min-width: 0; }
  .container { width: 96%; }
}

/* ===== 汉堡按钮（默认隐藏，仅手机端显示） ===== */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  position: absolute;
  top: 18px;
  right: 15px;
  z-index: 1000;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--soe-blue);
  transition: 0.3s;
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.sub-arrow { font-size: 12px; margin-left: 4px; display: inline-block; }

/* ===== 移动端自适应 (Max Width 992px) ===== */
@media (max-width: 992px) {
  body { min-width: 0; font-size: 14px; }
  .container { width: 100%; padding: 0 15px; box-sizing: border-box; }

  /* 顶部条 */
  .top-bar { font-size: 13px; padding: 6px 0; height: auto; line-height: 1.6; }
  .top-bar .welcome { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-bar-links { display: none; }

  /* 头部 */
  .header { height: auto; padding: 12px 0; position: relative; }
  .header .container { display: block; }
  .logo { display: inline-block; }
  .logo img { height: 40px; width: auto !important; }
  .header-right { display: none; }

  /* 汉堡按钮显示 */
  .nav-toggle { display: flex; }

  /* 导航 → 抽屉 */
  .nav-wrap {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -3px 0 15px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    padding-top: 60px;
  }
  .nav-wrap.mobile-open { right: 0; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: ""; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 998;
  }
  .nav-wrap .container { width: 100%; padding: 0; }
  .nav { flex-direction: column; width: 100%; }
  .nav > li {
    flex: none; width: 100%; text-align: left;
    border-bottom: 1px solid #eee;
  }
  .nav > li > a {
    color: #333; height: auto; line-height: 1; padding: 16px 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 16px;
  }
  .nav > li.active > a,
  .nav > li > a:hover { background: #f0f5fa; color: var(--soe-blue); }
  .nav-sub {
    display: none !important; position: static; box-shadow: none;
    border-top: none; background: #fafafa; padding: 6px 0;
  }
  .nav > li.has-sub.open > .nav-sub { display: block !important; }
  .nav-sub li { border-bottom: 1px dashed #eee; }
  .nav-sub a { padding: 10px 40px; font-size: 14px; }
  .has-sub > a .sub-arrow { transition: 0.3s; }
  .has-sub.open > a .sub-arrow { transform: rotate(180deg); }

  /* 页脚 */
  .footer { padding: 30px 0 0; }
  .footer-top { flex-direction: column; align-items: center; gap: 28px; text-align: center; padding-bottom: 25px; }
  .footer-col { align-items: center; }
  .footer-brand, .footer-contact { min-width: 0; width: 100%; max-width: 380px; }
  .ft-title { font-size: 18px; }
  .ft-slogan { font-size: 11px; padding-bottom: 14px; margin-bottom: 18px; }
  .ft-intro { font-size: 13px; text-align: center; }
  .ft-subtitle { font-size: 15px; margin-bottom: 16px; padding-bottom: 10px; }
  .ft-subtitle::after { left: 50%; transform: translateX(-50%); }
  .ft-contact { display: inline-block; text-align: left; }
  .ft-contact li { font-size: 13px; }
  .footer-qr { align-items: center; }
  .footer-qr .qr-img { width: 110px; height: 110px; }
  .footer-qr .qr-cap { width: 110px; font-size: 12px; }
  .footer-bottom { font-size: 12px; padding: 16px 10px; }
}

