/* 页脚样式 */
.k8-footer {
  background-color: var(--k8-footer-bg);
  color: var(--k8-white);
  padding: var(--k8-space-7) 0 var(--k8-space-4) 0;
  margin-top: auto;
}

.k8-footer-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 100px; /* 默认桌面端边距 */
}

.k8-footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--k8-space-6);
  margin-bottom: var(--k8-space-6);
}

/* 页脚品牌区域 */
.k8-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--k8-space-3);
}

.k8-footer-logo {
  display: flex;
  align-items: center;
  gap: var(--k8-space-2);
  margin-bottom: var(--k8-space-2);
}

.k8-footer-logo img {
  height: 40px;
  width: auto;
}

.k8-footer-logo h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--k8-white);
  margin: 0;
}

.k8-footer-description {
  color: var(--k8-text-muted);
  line-height: 1.6;
  margin-bottom: var(--k8-space-3);
}

/* 页脚链接区域 */
.k8-footer-section h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--k8-white);
  margin: 0 0 var(--k8-space-3) 0;
}

.k8-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--k8-space-2);
}

.k8-footer-link {
  color: var(--k8-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--k8-space-1);
}

.k8-footer-link:hover {
  color: var(--k8-primary);
}

.k8-footer-link i {
  font-size: 16px;
}

/* 联系信息 */
.k8-footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--k8-space-2);
}

.k8-footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--k8-space-2);
  color: var(--k8-text-muted);
}

.k8-footer-contact-item i {
  font-size: 18px;
  color: var(--k8-primary);
  width: 20px;
  flex-shrink: 0;
}

/* 新的联系我们区域样式 */
.k8-footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--k8-space-2);
}

.k8-footer-contact-info .k8-footer-contact-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: var(--k8-space-2);
}

.k8-contact-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--k8-white);
  flex-shrink: 0;
}

.k8-contact-content {
  font-size: 14px;
  color: var(--k8-text-muted);
  line-height: 1.4;
}

/* 二维码区域样式 */
.k8-footer-qrcode-section {
  display: flex;
  gap: var(--k8-space-3);
  margin-top: var(--k8-space-4);
  justify-content: flex-start;
}

.k8-footer-qrcode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--k8-space-1);
  flex-shrink: 0; /* 防止收缩 */
}

.k8-footer-qrcode-item:nth-child(n+4) {
  display: none; /* 隐藏第4个及以后的二维码 */
}

.k8-qrcode-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.k8-qrcode-label {
  font-size: 12px;
  color: var(--k8-text-muted);
  text-align: center;
  font-weight: 500;
}

/* 社交媒体 */
.k8-footer-social {
  display: flex;
  gap: var(--k8-space-2);
  margin-top: var(--k8-space-3);
}

.k8-footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--k8-text-muted);
  text-decoration: none;
  border-radius: var(--k8-radius);
  transition: all 0.3s ease;
}

.k8-footer-social-link:hover {
  background-color: var(--k8-primary);
  color: var(--k8-white);
  transform: translateY(-2px);
}

.k8-footer-social-link i {
  font-size: 20px;
}

/* 页脚底部 */
.k8-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--k8-space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--k8-space-3);
}

.k8-footer-copyright {
  color: var(--k8-text-muted);
  font-size: 12px;
}

.k8-footer-copyright p {
  color: var(--k8-text-muted);
  font-size: 12px;
  margin: 0;
}

.k8-footer-links-bottom {
  display: flex;
  gap: var(--k8-space-4);
  flex-wrap: wrap;
}

.k8-footer-links-bottom a {
  color: var(--k8-text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s ease;
}

.k8-footer-links-bottom a:hover {
  color: var(--k8-primary);
}

/* ICP备案图标样式 */
.k8-icp-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: text-top;
}

/* 响应式设计 */

/* 移动端 (320px - 767px) */
@media (max-width: 767px) {
  .k8-footer {
    padding: var(--k8-space-3) 0;
  }
  
  .k8-footer-container {
    padding: 0 16px;
  }
  
  .k8-footer-content {
    display: none;
  }
  
  .k8-footer-logo h3 {
    font-size: 20px;
  }
  
  .k8-footer-section h4 {
    font-size: 16px;
  }
  
  .k8-footer-contact-info .k8-footer-contact-item {
    margin-bottom: var(--k8-space-1);
  }
  
  .k8-contact-label {
    font-size: 13px;
  }
  
  .k8-contact-content {
    font-size: 13px;
    flex: 1;
  }
  
  .k8-footer-qrcode-section {
    margin-top: var(--k8-space-3);
    gap: var(--k8-space-2);
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .k8-footer-qrcode-item {
    flex-shrink: 0;
  }
  
  .k8-qrcode-image {
    width: 70px;
    height: 70px;
  }
  
  .k8-qrcode-label {
    font-size: 11px;
  }
  
  .k8-footer-bottom {
    border-top: none;
    padding-top: 0;
    flex-direction: column;
    text-align: center;
    gap: var(--k8-space-2);
  }
  
  .k8-footer-copyright {
    font-size: 12px;
  }
  
  .k8-footer-copyright p {
    font-size: 12px;
  }
  
  .k8-footer-links-bottom {
    justify-content: center;
    gap: var(--k8-space-3);
  }
  
  .k8-footer-links-bottom a {
    font-size: 12px;
  }
  
  .k8-footer-social {
    justify-content: center;
  }
}

/* 平板端 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .k8-footer-container {
    padding: 0 50px;
  }
  
  .k8-footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--k8-space-4);
  }
  
  .k8-footer-qrcode-section {
    gap: var(--k8-space-2);
  }
  
  .k8-footer-qrcode-item {
    flex-shrink: 0;
  }
  
  .k8-qrcode-image {
    width: 75px;
    height: 75px;
  }
  
  .k8-qrcode-label {
    font-size: 11px;
  }
}

/* 桌面端 (1024px+) */
@media (min-width: 1024px) {
  .k8-footer-container {
    padding: 0 100px;
  }
  
  .k8-footer-content {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--k8-space-5);
  }
}

/* 特殊效果 */
.k8-footer-brand:hover .k8-footer-logo h3 {
  color: var(--k8-primary);
  transition: color 0.3s ease;
}

/* 渐变分隔线 */
.k8-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--k8-primary), transparent);
}

.k8-footer {
  position: relative;
}

/* 弹窗公告样式 */
.k8-notification-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  font-family: inherit;
}

/* 小图标触发器 */
.k8-notification-trigger {
  position: relative;
  width: 56px;
  height: 56px;
  background: var(--k8-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(27, 92, 230, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse 2s infinite;
}

.k8-notification-trigger:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 30px rgba(27, 92, 230, 0.5);
}

.k8-notification-trigger:active {
  transform: scale(0.95) translateY(0px);
  transition: all 0.1s ease;
}

.k8-notification-trigger i {
  font-size: 24px;
  color: white;
}

/* 小红点徽章 */
.k8-notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  background: var(--k8-danger);
  color: white;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 4px;
  border: 2px solid white;
}

/* 脉冲动画 */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(27, 92, 230, 0.3), 0 0 0 0 rgba(27, 92, 230, 0.7);
  }
  70% {
    box-shadow: 0 4px 20px rgba(27, 92, 230, 0.3), 0 0 0 10px rgba(27, 92, 230, 0);
  }
  100% {
    box-shadow: 0 4px 20px rgba(27, 92, 230, 0.3), 0 0 0 0 rgba(27, 92, 230, 0);
  }
}

/* 弹窗模态框 */
.k8-notification-modal {
  position: absolute;
  bottom: 70px;
  left: 0;
  width: 360px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) translateX(-20px) scale(0.8) rotateX(-15deg);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom left;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.k8-notification-popup.k8-notification-open .k8-notification-modal {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateX(0) scale(1) rotateX(0deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* 弹窗头部 */
.k8-notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--k8-gradient-primary);
  color: white;
  border-radius: 12px 12px 0 0;
}

.k8-notification-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.k8-notification-title i {
  font-size: 18px;
}

.k8-notification-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.k8-notification-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.k8-notification-toggle i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

/* 收缩状态 - 完全隐藏弹窗，只显示触发器 */
.k8-notification-popup.k8-notification-collapsed .k8-notification-modal {
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px) translateX(-30px) scale(0.7) rotateX(-20deg);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.k8-notification-popup.k8-notification-collapsed .k8-notification-toggle i {
  transform: rotate(180deg);
}

/* 弹窗内容 */
.k8-notification-content {
  padding: 20px;
  max-height: 300px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.2s;
  overflow-y: auto;
}

.k8-notification-popup.k8-notification-open .k8-notification-content {
  opacity: 1;
  transform: translateY(0);
}

.k8-notification-message h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--k8-dark);
  line-height: 1.4;
}

.k8-notification-message p {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--k8-text-muted);
}



/* 按钮区域 */
.k8-notification-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--k8-light);
  border-radius: 0 0 12px 12px;
  max-height: 200px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease 0.3s;
}

.k8-notification-popup.k8-notification-open .k8-notification-actions {
  opacity: 1;
  transform: translateY(0);
}

.k8-notification-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}



.k8-notification-btn i {
  font-size: 16px;
}

.k8-notification-btn-close {
  background: var(--k8-muted);
  color: white;
}

.k8-notification-btn-confirm {
  background: var(--k8-primary);
  color: white;
}

.k8-notification-btn-confirm:hover {
  color: var(--k8-white);
}

/* 响应式设计 */
@media (max-width: 767px) {
  .k8-notification-popup {
    bottom: 16px;
    left: 16px;
  }
  
  .k8-notification-trigger {
    width: 50px;
    height: 50px;
  }
  
  .k8-notification-trigger i {
    font-size: 22px;
  }
  
  .k8-notification-modal {
    width: calc(100vw - 80px);
    max-width: 320px;
    bottom: 60px;
  }
  
  .k8-notification-header {
    padding: 14px 16px;
  }
  
  .k8-notification-title {
    font-size: 14px;
  }
  
  .k8-notification-content {
    padding: 16px;
  }
  
  .k8-notification-message h4 {
    font-size: 15px;
  }
  
  .k8-notification-message p {
    font-size: 13px;
  }
  
  .k8-notification-actions {
    padding: 12px 16px;
    flex-direction: row;
    gap: 8px;
  }
  
  .k8-notification-btn {
    flex: 1;
  }
}

/* 隐藏状态 */
.k8-notification-popup.k8-notification-hidden {
  display: none;
}

/* 右侧浮动菜单 */
.k8-sidebar-menu {
  position: fixed;
  right: 20px;
  top: 75%;
  transform: translateY(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.k8-sidebar-item {
  position: relative;
  width: 55px;
  height: 55px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}


.k8-sidebar-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.k8-sidebar-icon i {
  font-size: 24px;
  color: var(--k8-text-muted);
  transition: color 0.3s ease;
}

/* 悬停提示文字（目前未使用，但保留以备将来使用） */
.k8-sidebar-text {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.k8-sidebar-text::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.8);
}

/* 客服按钮 - 椭圆形带文字 */
.k8-sidebar-service {
  width: 55px;
  height: 80px;
  border-radius: 40px;
  background: var(--k8-primary);
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  transition: box-shadow 0.3s ease;
  position: relative;
  overflow: visible; /* 允许卡片显示在外部 */
}

.k8-sidebar-service:hover {
  box-shadow: 0 4px 20px rgba(27, 92, 230, 0.4);
}

.k8-sidebar-service .k8-sidebar-icon {
  margin-top: 2px;
}

.k8-sidebar-service .k8-sidebar-icon i {
  color: white;
  font-size: 24px;
}

.k8-sidebar-service .k8-sidebar-text {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: none;
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 0;
  border-radius: 0;
  pointer-events: auto;
  margin-top: -2px;
}

.k8-sidebar-service .k8-sidebar-text::after {
  display: none;
}

/* 客服悬停卡片 */
.k8-sidebar-service-card {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 20px;
  width: 255px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  border: 1px solid rgba(0, 0, 0, 0.08);
}



.k8-sidebar-service:hover .k8-sidebar-service-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-8px);
}

.k8-service-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--k8-dark);
  line-height: 1.3;
  margin-bottom: 4px;
}

.k8-service-card-desc {
  font-size: 12px;
  color: var(--k8-text-muted);
  line-height: 1.4;
}


/* 咨询和评价合并容器 */
.k8-sidebar-combined {
  height: 162px;
  border-radius: 81px;
  flex-direction: column;
  padding: 0;
  overflow: visible; /* 允许卡片显示 */
}

.k8-sidebar-combined-item {
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  gap: 2px;
  padding: 4px 0;
  position: relative;
}


.k8-sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #ccc, transparent);
  margin: 0 8px;
  flex-shrink: 0;
  position: relative;
}

.k8-sidebar-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 1px;
  background: #cacaca;
}

/* 咨询按钮样式 */
.k8-sidebar-contact .k8-sidebar-icon i {
  color: var(--k8-darker);
  font-size: 24px;
}

.k8-sidebar-contact:hover .k8-sidebar-icon i {
  color: var(--k8-primary);
}

/* 评价按钮样式 */
.k8-sidebar-review .k8-sidebar-icon i {
  color: var(--k8-darker);
  font-size: 24px;
}

.k8-sidebar-review:hover .k8-sidebar-icon i {
  color: var(--k8-primary);
}

/* 合并容器内的文字样式 */
.k8-sidebar-combined-text {
  font-size: 10px;
  font-weight: 500;
  color: var(--k8-darker);
  text-align: center;
  line-height: 1;
  transition: color 0.3s ease;
}

.k8-sidebar-contact:hover .k8-sidebar-combined-text,
.k8-sidebar-review:hover .k8-sidebar-combined-text {
  color: var(--k8-primary);
}

/* 评价悬停卡片 */
.k8-sidebar-review-card {
  position: absolute;
  right: 46px;
  top: 0%;
  transform: translateY(-50%);
  background: var(--k8-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 20px;
  width: 370px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.k8-sidebar-review:hover .k8-sidebar-review-card,
.k8-sidebar-review.k8-review-active .k8-sidebar-review-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-8px);
}

.k8-review-card-header {
  margin-bottom: 16px;
}

.k8-review-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--k8-dark);
  line-height: 1.4;
  text-align: center;
}

.k8-review-rating-container {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.k8-review-rating-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.k8-review-rating-item:hover {
  transform: translateY(-2px);
}

.k8-rating-emoji {
  font-size: 24px;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.k8-review-rating-item:hover .k8-rating-emoji {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.k8-rating-label {
  font-size: 10px;
  color: var(--k8-text-muted);
  text-align: center;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.k8-review-rating-item:hover .k8-rating-label {
  color: var(--k8-primary);
}

/* 选中状态样式 */
.k8-review-rating-item.selected .k8-rating-emoji {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.k8-review-rating-item.selected .k8-rating-label {
  color: var(--k8-primary);
  font-weight: 600;
}

/* 评价输入区域 */
.k8-review-input-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.k8-review-input-title {
  font-size: 13px;
  color: var(--k8-dark);
  margin-bottom: 10px;
  font-weight: 500;
}

.k8-review-input {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border: 1px solid #e9ecef;
  font-size: 12px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
  line-height: 1.4;
}

.k8-review-input:focus {
  outline: none;
}

.k8-review-submit-container {
  margin-top: 12px;
  text-align: center;
}

.k8-review-submit-btn {
  background: var(--k8-primary);
  color: white;
  border: none;
  padding: 8px 20px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.k8-review-submit-btn:hover {
  background: rgba(27, 92, 230, 0.8);
}

/* 咨询悬停卡片 */
.k8-sidebar-contact-card {
  position: absolute;
  right: 46px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--k8-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 20px;
  width: 390px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
}

.k8-sidebar-contact:hover .k8-sidebar-contact-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-8px);
}


.k8-contact-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--k8-dark);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

/* 前两个区域设置相对定位以便箭头绝对定位 */
.k8-contact-card-section:nth-child(1),
.k8-contact-card-section:nth-child(2) {
  position: relative;
}

.k8-contact-card-arrow {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--k8-text-muted);
  transition: all 0.3s ease;
}

.k8-contact-card-title i {
  font-size: 16px;
  color: var(--k8-dark);
  transition: color 0.3s ease;
}

.k8-contact-card-desc {
  font-size: 12px;
  color: var(--k8-text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

/* 客服人员列表样式 */
.k8-contact-staff-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.k8-contact-staff-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.k8-staff-avatar {
  width: 32px;
  height: 32px;
  background: var(--k8-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.k8-staff-avatar i {
  font-size: 16px;
  color: white;
}

.k8-staff-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.k8-staff-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--k8-dark);
  line-height: 1.2;
}

.k8-staff-position {
  font-size: 11px;
  color: var(--k8-text-muted);
  line-height: 1.2;
}

/* 联系我们和技术支持区域悬停效果 */
.k8-contact-card-section:nth-child(1):hover,
.k8-contact-card-section:nth-child(2):hover {
  background-color: rgba(27, 92, 230, 0.05);
  padding: 8px;
  margin: -8px;
}

.k8-contact-card-section:nth-child(1):hover .k8-contact-card-title,
.k8-contact-card-section:nth-child(2):hover .k8-contact-card-title {
  color: var(--k8-primary);
}

.k8-contact-card-section:nth-child(1):hover .k8-contact-card-title i,
.k8-contact-card-section:nth-child(2):hover .k8-contact-card-title i {
  color: var(--k8-primary);
}

.k8-contact-card-section:nth-child(1):hover .k8-contact-card-arrow,
.k8-contact-card-section:nth-child(2):hover .k8-contact-card-arrow {
  color: var(--k8-primary);
  transform: translateY(-50%) translateX(4px);
}



/* 返回顶部按钮显示/隐藏控制 */
.k8-sidebar-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.k8-sidebar-top.k8-sidebar-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 移动端Drawer样式 */
.k8-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.k8-mobile-drawer.k8-drawer-open {
  opacity: 1;
  visibility: visible;
}

.k8-drawer-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px 40px 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  max-height: 80vh;
  overflow-y: auto;
}

.k8-mobile-drawer.k8-drawer-open .k8-drawer-content {
  transform: translateY(0);
}

.k8-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.k8-drawer-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--k8-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.k8-drawer-close {
  width: 32px;
  height: 32px;
  background: var(--k8-light);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.k8-drawer-close:hover {
  background: var(--k8-muted);
}

.k8-drawer-close i {
  font-size: 16px;
  color: var(--k8-text-muted);
}

/* Drawer内容样式 */
.k8-drawer-service-content,
.k8-drawer-contact-content,
.k8-drawer-review-content {
  padding: 0;
}

.k8-service-info {
  text-align: center;
  padding: 20px 0;
}

.k8-service-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--k8-dark);
  margin-bottom: 8px;
}

.k8-service-desc {
  font-size: 14px;
  color: var(--k8-text-muted);
}

.k8-contact-section {
  margin-bottom: 24px;
}

.k8-contact-section:last-child {
  margin-bottom: 0;
}

.k8-contact-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--k8-dark);
  margin: 0 0 12px 0;
}

.k8-contact-section p {
  font-size: 14px;
  color: var(--k8-text-muted);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

/* Drawer内的客服列表 */
.k8-drawer-contact-content .k8-contact-staff-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.k8-drawer-contact-content .k8-contact-staff-item {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: all 0.3s ease;
}

.k8-drawer-contact-content .k8-contact-staff-item:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

/* 确保移动端Drawer中的头像正确显示 */
.k8-drawer-contact-content .k8-staff-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.k8-drawer-contact-content .k8-staff-info {
  flex: 1;
}

.k8-drawer-contact-content .k8-staff-name {
  font-size: 14px;
  font-weight: 600;
}

.k8-drawer-contact-content .k8-staff-position {
  font-size: 12px;
  color: var(--k8-text-muted);
}

/* 评价内容样式 */
.k8-review-question h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--k8-dark);
  text-align: center;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.k8-drawer-review-content .k8-review-rating-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.k8-drawer-review-content .k8-review-rating-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.k8-drawer-review-content .k8-review-input-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* 移动端适配 */
@media (max-width: 767px) {
  .k8-sidebar-menu {
    right: 16px;
    top: auto;
    bottom: 100px;
    transform: none;
    gap: 12px;
  }
  
  .k8-sidebar-item {
    width: 55px;
    height: 55px;
  }
  
  .k8-sidebar-icon i {
    font-size: 24px;
  }
  
  .k8-sidebar-text {
    display: none;
  }
  
  /* 移动端客服按钮 */
  .k8-sidebar-service {
    width: 55px;
    height: 80px;
    border-radius: 40px;
    padding: 6px 0;
  }
  
  .k8-sidebar-service .k8-sidebar-icon i {
    font-size: 24px;
  }
  
  .k8-sidebar-service .k8-sidebar-text {
    display: block;
    font-size: 11px;
  }
  
  /* 移动端合并容器 */
  .k8-sidebar-combined {
    height: 162px;
    border-radius: 81px;
  }
  
  /* 移动端隐藏悬停卡片 */
  .k8-sidebar-service-card,
  .k8-sidebar-contact-card,
  .k8-sidebar-review-card {
    display: none;
  }
}

/* === 客服头像专用样式 === */

/* 微信头像 - 绿色主题 */
.k8-staff-avatar-wechat {
  background: #07c160 !important;
}

.k8-staff-avatar-wechat i {
  color: white !important;
}

/* QQ头像样式 */
.k8-staff-avatar-qq {
  background: #12B7F5 !important;
  position: relative;
}

.k8-qq-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.k8-qq-fallback {
  color: white !important;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Telegram头像 - 蓝色主题 */
.k8-staff-avatar-telegram {
  background: #0088cc !important;
}

.k8-staff-avatar-telegram i {
  color: white !important;
}

/* === 客服项交互样式 === */

/* 客服项基础样式更新 */
.k8-contact-staff-item {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.k8-contact-staff-item:hover {
  background: rgba(0, 0, 0, 0.05);
}



/* === 卡片内复制提示样式 === */
.k8-staff-copy-toast {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: 10;
}

.k8-staff-copy-toast.k8-staff-copy-toast-show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.k8-staff-copy-toast i {
  font-size: 14px;
  flex-shrink: 0;
}

.k8-copy-message {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
