/* ========================================
   好芯友科技官网 - 页脚样式
   ======================================== */

.footer {
  background: var(--bg-dark);
  color: white;
  margin-top: auto;
}

/* 主要内容 */
.footer-main {
  padding: 60px 0;
  background: linear-gradient(180deg, #243b55 0%, #1e293b 100%);
}

@media (max-width: 768px) {
  .footer-main {
    padding: 40px 0;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* 公司信息 */
.company-info {
  text-align: left;
}

.footer-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.footer-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

/* 导航链接 */
.nav-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .nav-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* PC端：一级菜单保持链接样式 */
.nav-title-btn {
  display: none;
}

.footer .arrow-icon {
  display: none;
}

/* PC端：一级菜单标题 */
@media (min-width: 481px) {
  .nav-column > .nav-title-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 0;
    margin-bottom: 0.75rem;
    cursor: default;
    text-align: left;
  }

  .nav-column > .nav-title-btn .arrow-icon {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-links {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .nav-column {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
  }

  .nav-title-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0;
    background: none;
    border: none;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
  }

  .footer .arrow-icon {
    display: block;
    transition: transform 0.3s ease;
  }

  .footer .arrow-icon.rotated {
    transform: rotate(180deg);
  }

  .nav-submenu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0 0.75rem 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-submenu.expanded {
    display: flex;
    max-height: 500px;
    padding: 0.5rem 0 0.75rem 0;
  }

  .nav-submenu .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0;
  }
}

.nav-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-submenu .nav-link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-submenu .nav-link:hover {
  color: white;
}

/* 联系方式 */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.contact-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.contact-value {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

a.contact-value:hover {
  color: var(--primary-color);
}

/* 合作伙伴 */
.partners-section {
  margin-bottom: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.partners-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.partner-link {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.partner-link:hover {
  background: var(--primary-color);
  color: white;
}

/* 分享按钮 */
.share-section {
  display: flex;
  gap: 1rem;
  padding-top: 20px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.share-btn img {
  width: 20px;
  height: 20px;
}

/* 底部版权 */
.footer-bottom {
  background: #151d2b;
  padding: 20px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.icp-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.icp-link:hover {
  color: white;
}

@media (max-width: 768px) {
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

/* 浮动客服 */
.floating-service {
  position: fixed;
  right: 30px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

@media (max-width: 768px) {
  .floating-service {
    right: 15px;
    bottom: 80px;
  }
}

.service-toggle {
  display: none;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.service-toggle svg {
  fill: white;
}

@media (max-width: 768px) {
  .service-toggle {
    display: flex;
  }
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (max-width: 768px) {
  .service-list {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    bottom: 60px;
    right: 0;
  }

  .service-list.expanded {
    display: flex;
  }
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  min-width: 120px;
}

.service-item:hover {
  transform: translateX(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .service-item {
    min-width: 100px;
    padding: 12px;
  }
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.service-text {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-value {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.back-to-top svg {
  fill: white;
}

@media (max-width: 768px) {
  .back-to-top {
    right: 15px;
    bottom: 15px;
    width: 45px;
    height: 45px;
  }
}

/* 淡入淡出动画 */
.fade-enter-active,
.fade-leave-active {
  transition: all 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
  transform: translateY(20px);
}
