@import url("iconfont.css");

.footer {
  background: #5a5a5a;
  color: rgba(255, 255, 255, 0.75);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__logo img {
  height: 70px;
  width: auto;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-item {
  position: relative;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--color-text-white);
  transition: background var(--transition), border-color var(--transition);
}

.footer__social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-text-white);
}

.footer__social-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 232px;
  padding: 16px;
  background: var(--color-bg);
  border-radius: 6px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 20;
}

.footer__social-item:hover .footer__social-popup {
  opacity: 1;
  visibility: visible;
}

.footer__social-popup img {
  width: 200px;
  height: 200px;
  max-width: none;
  max-height: none;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.footer__social-popup p {
  width: 100%;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: var(--color-text);
  white-space: normal;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 30px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__col-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-white);
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.footer__links a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-text-white);
}

/* 旧版页脚兼容（内页） */
.footer__main {
  padding: 60px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

.footer__contact-icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  color: var(--color-accent);
}

.footer__qrcode {
  text-align: center;
}

.footer__qrcode img {
  width: 100px;
  height: 100px;
  margin: 0 auto 8px;
  border-radius: 4px;
}

.footer__qrcode p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* 右侧悬浮栏 */
.float-bar {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-bar__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-text-white);
  color: #555;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  border: none;
  padding: 0;
}

.float-bar__item:hover {
  background: #f0f0f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.float-bar__item--top {
  background: var(--color-primary);
  color: var(--color-text-white);
}

.float-bar__item--top:hover {
  background: var(--color-primary-dark);
}

.float-bar__popup {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-bg);
  padding: 16px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  color: var(--color-text);
  font-size: 14px;
}

.float-bar__item:hover .float-bar__popup {
  opacity: 1;
  visibility: visible;
}

.float-bar__popup img {
  width: 120px;
  height: 120px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.float-bar__popup-text {
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
}

.footicon{width:22px;height:auto;}
.lasticon{height:10px !important;width:auto !important;}