/* ==================== 全局修复 ==================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  margin: 0;
  font-family: 'Mulish', Helvetica, Arial, "Microsoft YaHei", system-ui, sans-serif;
  color: #0f3d61;
  background: #fff;
  line-height: 1.6;
}

img { max-width: 100%; }

a { text-decoration: none; }

.company {
  color: #0f3d61;
  font-weight: bold;
  font-size: 20px;
  font-family: "Times New Roman", Times, serif;
}

/* ==================== 容器 ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ==================== 移动端菜单 ==================== */
.mobile-menu-btn {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: white;
  z-index: 10001;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-items { padding: 20px; }

.mobile-menu-items a {
  display: block;
  padding: 15px 0;
  color: #0f3d61;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  font-family: "Times New Roman", Times, serif;
  cursor: pointer;
}

.mobile-menu-items a:last-child { border-bottom: none; }

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
}

.mobile-menu-overlay.open { display: block; }

/* ==================== 头部样式 ==================== */
.header {
  width: 100%;
  background: #ffffff;
  z-index: 1000;
  position: sticky;
  top: 0;
  animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.header-logo {
  width: 100%;
  max-width: 1400px;
  height: auto;
  min-height: 80px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-img { height: 44px; width: auto; }

.navigation-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navigation-bar-one { display: flex; gap: 5px; flex-wrap: wrap; }

.navigation-bar-two {
  font-family: 'Mulish', Helvetica, Arial, system-ui, sans-serif;
  color: #0f3d61;
  text-decoration: none;
  padding: 10px 10px;
  font-size: 18px;
  font-weight: 400;
  box-sizing: border-box;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 25px;
  cursor: pointer;
  white-space: nowrap;
}

.navigation-bar-two.nav-active {
  color: #F78900;
  font-weight: 600;
}

.link-r {
  color: #0f3d61;
  text-decoration: none;
  font-family: "Times New Roman", Times, serif;
}

.navigation-bar-two:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.navigation-bar-two a {
  color: #0f3d61;
  text-decoration: none;
  font-family: "Times New Roman", Times, serif;
}

.header, .header-logo, .header-img, .lpck-logo {
  font-family: 'Mulish', Helvetica, Arial, "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

.lpck-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

/* ==================== 返回顶部按钮 ==================== */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #F78900, #FFA726);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 5px 25px rgba(247, 137, 0, 0.4);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 35px rgba(247, 137, 0, 0.6);
}

/* ==================== 页脚 ==================== */
.footer {
  background: #0f3d61;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  font-size: 13px;
}

.footer a { color: #fff; text-decoration: none; margin: 0 10px; }
.footer a:hover { color: #F78900; }
.footer .footer-row { margin: 6px 0; }

/* ==================== Toast 消息 ==================== */
.toast-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20000;
  padding: 12px 24px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast-message.show { opacity: 1; top: 30px; }
.toast-message.success { background: #67c23a; }
.toast-message.error { background: #f56c6c; }

/* ==================== 移动端适配 ==================== */
@media screen and (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
    position: fixed;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #F78900, #FFA726);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
  }

  .navigation-container { display: none !important; }

  .header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1001 !important;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
  }

  .header-logo {
    align-items: center !important;
    padding: 10px 15px !important;
    min-height: auto !important;
    width: 100% !important;
  }

  .header-img {
    height: 36px !important;
    margin-bottom: 10px !important;
    width: auto !important;
  }

  .company {
    font-size: 16px !important;
    text-align: center !important;
    margin-top: 5px !important;
  }

  .lpck-logo {
    text-align: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .lpck-logo > div:last-child { text-align: center !important; }
}

@media screen and (max-width: 480px) {
  .company { font-size: 14px !important; }
  .mobile-menu-btn { width: 40px !important; height: 40px !important; font-size: 20px !important; }
}

/* 平板优化 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .container { max-width: 95% !important; padding: 0 30px !important; }
  .navigation-bar-two { padding: 10px 12px !important; font-size: 13px !important; }
}
