/**
 * common.css - 公共基础样式（供 home.css / style.css 等复用）
 */

/* ==================== 基础重置与变量 ==================== */
:root {
  --primary-color: #014E99;
  --active-color: #1C66AE;
  --gradient-red: linear-gradient(270deg, #207FDA 0%, #014E99 100%);
  --text-main: #333;
  --text-title: #111111;
  --text-sub: #666;
  --text-mute: #999;
  --border-line: #ddd;
  --border-soft: #f5f5f5;
  --bg-page: #F2F2F2;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:“微软雅黑”, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 1500px 断点：屏幕 ≤ 1500px 时容器缩小为 1200px */
@media screen and (max-width: 1500px) {
  .container {
    max-width: 1200px;
  }
}

/* ==================== 顶部导航 ==================== */
.lgs-top {
  position: relative;
  z-index: 50;
  height: 210px;
}

.lgs-top-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* 顶部导航容器 */
.lgs-nav {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 60;
}

/* .lgs-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-red);
  z-index: 2;
} */

/* 顶部区域：Logo 左对齐 */
.lgs-nav-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
  height: 150px;
  position: relative;
  z-index: 60;
}

.lgs-logo {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-shrink: 0;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  /* margin-top: 40px; */
}

.lgs-logo img {
  height: 5vw;
}



.lgs-logo:hover {
  color: #fff;
  text-decoration: none;
}

.lgs-logo span:first-child {
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 4px;
}

.lgs-logo span:last-child {
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 2px;
  opacity: 0.92;
}

/* 底部红色导航条 */
.lgs-nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: var(--primary-color);
}
.lgs-nav-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--primary-color);
  z-index: 2;
}

.lgs-nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.lgs-nav-menu {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1;
}

.lgs-nav-menu .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 100%;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  border-right: none;
  transition: background-color 0.25s ease;
}

.lgs-nav-menu .nav-item:last-child {
  border-right: none;
}

.lgs-nav-menu .nav-item.nav-item-home {
  padding: 0 20px;
  background-color: var(--primary-color);
  font-size: 16px;
  flex: 0 0 auto;
}

.lgs-nav-menu .nav-item:hover,
.lgs-nav-menu .nav-item.active {
  background-color: #207FDA;
  color: #fff;
}

.lgs-nav-search {
  display: flex;
  align-items: center;
  height: 32px;
  margin-left: 20px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.lgs-nav-search .nav-search-input {
  width: 180px;
  height: 100%;
  padding: 0 12px;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text-title);
  background: transparent;
}

.lgs-nav-search .nav-search-input::placeholder {
  color: #999;
}

.lgs-nav-search .nav-search-btn {
  width: 36px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #fff;
  color: var(--primary-color);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lgs-nav-search .nav-search-btn:hover {
  background: #f5f5f5;
}

/* 移动端汉堡按钮（叠在顶部） */
.lgs-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lgs-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 移动端展开菜单 */
.lgs-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--primary-color);
  padding: 70px 0 20px;
  overflow-y: auto;
  z-index: 70;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.lgs-mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.lgs-mobile-menu .nav-item {
  display: block;
  padding: 14px 24px;
  color: #fff;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.lgs-mobile-menu .nav-item.active {
  color: #207FDA;
}

.lgs-mobile-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 32px;
  height: 32px;
  color: #fff;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 32px;
}

.lgs-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 65;
}

.lgs-mask.open {
  display: block;
}

/* ==================== 主体容器 ==================== */
.lgs-main {
  padding: 36px 0 10px;
}

/* ==================== 区块标题（通用） ==================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary-color);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-title);
  margin: 0;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--primary-color);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-header .more-link {
  font-size: 14px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.section-header .more-link:hover {
  text-decoration: underline;
}

/* ==================== 区块标题 (policy-header) ==================== */
.policy-header {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.policy-title {
  position: relative;
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: var(--text-title);
  padding-left: 12px;
  flex-shrink: 0;
}

.policy-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  bottom: 0;
  width: 4px;
  height: 50%;
  background-color: var(--primary-color);
}

.policy-title::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 50%;
  width: 4px;
  height: 50%;
  background-color: var(--active-color);
}

.policy-divider {
  flex: 1;
  height: 1px;
  background-color: var(--border-line);
  margin: 0 15px;
  position: relative;
}

.policy-divider::after {
  content: '';
  position: absolute;
  left: 5%;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  box-sizing: border-box;
}

.policy-more {
  padding: 5px 15px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.policy-more:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* ==================== 页脚 ==================== */
.lgs-footer {
  background-color: var(--primary-color);
  border-top: 6px solid var(--active-color);
  color: #fff;
  margin-top: 20px;
}

.lgs-footer-content {
  padding: 36px 0 20px;
}

.lgs-footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer-contact h5 {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 16px;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin: 6px 0;
  line-height: 1.7;
}

.footer-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.qrcode-box {
  width: 110px;
  height: 110px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 6px;
}

.qrcode-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qrcode-text {
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.footer-links h5 {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 16px;
}

.footer-links .link-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
}

.footer-links .link-list a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 5px 0;
  transition: color 0.25s ease;
}

.footer-links .link-list a:hover {
  color: var(--active-color);
}

.footer-copyright {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
}

.footer-copyright p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  margin: 0;
}

/* ==================== 返回顶部 ==================== */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 44px;
  height: 44px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  text-align: center;
  line-height: 44px;
  font-size: 20px;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #b00913;
  transform: translateY(-3px);
}

/* ==================== 响应式（公共部分） ==================== */
@media screen and (min-width: 1201px) {
  .lgs-menu-toggle {
    display: none !important;
  }

  .lgs-logo {
    color: var(--primary-color);
  }

  .lgs-logo:hover {
    color: var(--primary-color);
  }

  .lgs-logo span:first-child {
    font-size: 42px;
    letter-spacing: 6px;
  }

  .lgs-logo span:last-child {
    font-size: 24px;
    letter-spacing: 3px;
    opacity: 1;
  }
}

@media screen and (max-width: 1200px) {
  .lgs-main {
    padding: 10px 0;
  }
  .lgs-top-bg {
    display: none;
  }
  .lgs-top {
    height: auto;
    min-height: 60px;
    background: var(--primary-color);
  }

  .lgs-nav-top {
    padding-top: 0;
    justify-content: flex-start;
    height: 60px;
    padding-left: 15px;
    position: relative;
  }

  .lgs-logo img {
    max-height: 48px;
  }

  .lgs-nav-bar {
    display: none;
  }

  .lgs-menu-toggle {
    display: flex;
  }

  .lgs-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 0;
  }

  .lgs-logo span:first-child {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .lgs-logo span:last-child {
    font-size: 13px;
    letter-spacing: 1px;
  }
}

@media screen and (max-width: 768px) {
  .lgs-nav-top {
    height: 60px;
    padding-left: 12px;
  }
  .lgs-logo img {
    min-height: 35px;
  }
  .lgs-footer-row {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-qrcode {
    align-items: center;
  }
  .footer-links .link-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .back-to-top {
    bottom: 24px;
    right: 16px;
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
}
