/* ========== 基础样式 ========== */
.footerBox {
  width: 100%;
}

.footerMain {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ========== 上部分：白色背景 ========== */
.footerTop {
  background: #ffffff;
  padding: 40px 0;
  border-top: 1px solid #f0f0f0;
}

.footerContent {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 50px;
}

@media (max-width: 992px) {
  .footerContent {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* 左侧样式 */
.footerLeft {
  padding-right: 30px;
  border-right: 1px solid #f0f0f0;
}

@media (max-width: 992px) {
  .footerLeft {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 30px;
  }
}

.logoArea {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.logoArea svg {
  width: 40px;
  height: 40px;
  background: #f0f7ff;
  border-radius: 8px;
  padding: 8px;
}

.logoText h3 {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin: 0 0 5px 0;
}

.logoText p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.contactInfo {
  margin-bottom: 25px;
}

.contactItem {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.contactLabel {
  color: #666;
  min-width: 80px;
}

.contactValue {
  color: #222;
  font-weight: 500;
}

.contactItem:first-child .contactValue {
  color: #1890ff;
  font-weight: 600;
  font-size: 16px;
}

/* 右侧样式 */
.footerRight {
  overflow: hidden;
}

.navGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .navGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .navGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .navGrid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.navColumn {
  min-width: 0;
}

.navTitle {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.navLinks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.navLinks a {
  color: #666;
  font-size: 13px;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navLinks a:hover {
  color: #1890ff;
}

/* ========== 下部分：深蓝色背景 ========== */
.footerBottom {
  background: linear-gradient(135deg, #1a2b4c 0%, #0d1a33 100%);
  color: #fff;
  padding: 15px 0;
}

/* 友情链接 */
.friendLinks {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .friendLinks {
    flex-direction: column;
    gap: 8px;
  }
}

.linksTitle {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

.linksContainer {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.linksContainer::-webkit-scrollbar {
  height: 4px;
}

.linksContainer::-webkit-scrollbar-track {
  background: transparent;
}

.linksContainer::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.linksList {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  min-width: max-content;
}

.linkItem {
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
  padding: 2px 0;
}

.linkItem:hover {
  color: #fff;
}

/* 版权信息 */
.copyrightInfo {
  text-align: center;
}

.copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

.copyright a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s;
}

.copyright a:hover {
  color: #fff;
  text-decoration: underline;
}

.separator {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.4);
}

/* ========== 简化版浮动客服栏 ========== */
.simple-fixed-sidebar {
  position: fixed;
  right: 20px;
  bottom: 120px;
  z-index: 10000;
}

/* 最小化按钮 - 圆形图标 */
.simple-mini-btn {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(24, 144, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.simple-mini-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(24, 144, 255, 0.5);
}

.simple-mini-btn:active {
  transform: scale(0.95);
}

/* 呼吸灯效果 */
.simple-mini-btn:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1890ff;
  animation: simplePulse 2s infinite;
  z-index: -1;
}

@keyframes simplePulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

.simple-mini-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 3px;
}

.simple-mini-text {
  font-size: 12px;
  color: white;
  font-weight: 500;
  line-height: 1;
}

/* 侧边栏面板 */
.simple-sidebar-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 200px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10001;
}

.simple-fixed-sidebar.active .simple-sidebar-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 箭头指向按钮 */
.simple-sidebar-panel:before {
  content: '';
  position: absolute;
  right: 20px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.05);
}

/* 头部 */
.simple-sidebar-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.simple-header-icon {
  width: 28px;
  height: 28px;
  background: #f0f7ff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.simple-header-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  flex: 1;
}

.simple-close-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
  border-radius: 4px;
}

.simple-close-btn:hover {
  opacity: 1;
  background: #f5f5f5;
}

/* 内容区域 */
.simple-sidebar-content {
  padding: 12px 0;
}

.simple-sidebar-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
}

.simple-sidebar-item:hover {
  background-color: #fafafa;
}

.simple-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.simple-item-content {
  flex: 1;
  min-width: 0;
}

.simple-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
  line-height: 1.4;
}

.simple-item-desc {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}

/* 二维码悬浮效果 */
.qr-item:hover .simple-qr-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-105%) translateY(-50%);
}

.simple-qr-popup {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateX(-100%) translateY(-50%);
  background: white;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10002;
  width: 140px;
  pointer-events: none;
}

.simple-qr-popup:before {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid white;
}

.simple-qr-box {
  text-align: center;
}

.simple-qr-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.simple-qr-image {
  width: 100px;
  height: 100px;
  margin: 0 auto 6px;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.simple-qr-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.simple-qr-tip {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .simple-fixed-sidebar {
    right: 15px;
    bottom: 100px;
  }
  
  .simple-mini-btn {
    width: 55px;
    height: 55px;
  }
  
  .simple-mini-icon {
    width: 22px;
    height: 22px;
  }
  
  .simple-mini-text {
    font-size: 11px;
  }
  
  .simple-sidebar-panel {
    width: 180px;
    bottom: 65px;
  }
  
  .simple-sidebar-item {
    padding: 10px 14px;
  }
  
  .simple-item-icon {
    width: 32px;
    height: 32px;
  }
  
  .simple-qr-popup {
    width: 120px;
    padding: 10px;
  }
  
  .simple-qr-image {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .simple-fixed-sidebar {
    right: 10px;
    bottom: 80px;
  }
  
  .simple-mini-btn {
    width: 50px;
    height: 50px;
  }
  
  .simple-mini-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
  }
  
  .simple-mini-text {
    font-size: 10px;
  }
  
  .simple-sidebar-panel {
    width: 160px;
  }
}

/* ========== 页脚深色背景样式 ========== */
.footerTop-dark {
  background: linear-gradient(135deg, #1a2b4c 0%, #0d1a33 100%) !important;
  color: #fff;
  border-top: none !important;
}

.footerTop-dark .footerLeft {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
  .footerTop-dark .footerLeft {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.footerTop-dark .logoArea svg {
  background: rgba(24, 144, 255, 0.2);
}

.footerTop-dark .logoText h3 {
  color: #fff;
}

.footerTop-dark .logoText p {
  color: rgba(255, 255, 255, 0.8);
}

.footerTop-dark .contactLabel {
  color: rgba(255, 255, 255, 0.7);
}

.footerTop-dark .contactValue {
  color: #fff;
}

.footerTop-dark .navTitle {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footerTop-dark .navLinks a {
  color: rgba(255, 255, 255, 0.7);
}

.footerTop-dark .navLinks a:hover {
  color: #1890ff;
}

/* ========== 调试样式（可选）========== */
.debug-mode .footerTop {
  outline: 2px dashed red !important;
}