﻿/* 客服界面样式 - 可放置在公共CSS文件中 */
.customer-service-container {
  position: fixed;
  z-index: 9999;
  font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  transition: transform 0.3s ease-out;
}

/* PC端样式 - 右侧上部三分之一处 */
@media (min-width: 768px) {
  .customer-service-container {
    right: 20px;
    top: 33vh;
    width: 300px;
  }
  
  .cs-wrapper {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }
  
  .cs-wrapper:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
  }
  
  .cs-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .cs-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 100%);
    transform: translateX(-100%);
  }
  
  .cs-item:hover:before {
    animation: shimmer 1.5s infinite;
  }
  
  @keyframes shimmer {
    100% {
      transform: translateX(100%);
    }
  }
  
  /* 微信区域 - 天然蓝 */
  .wechat-item {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 30%, #039be5 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  /* 电话区域 - 酒红色 */
  .phone-item {
    background: linear-gradient(135deg, #d32f2f 0%, #c2185b 30%, #ad1457 100%);
  }
  
  .cs-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .cs-item:hover .cs-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
  
  .wechat-icon {
    color: rgba(255, 255, 255, 0.95);
  }
  
  .phone-icon {
    color: rgba(255, 255, 255, 0.95);
  }
  
  .cs-content {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
  }
  
  .cs-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  }
  
  .cs-value {
    font-size: 20px;
    font-weight: 700;
    padding: 10px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto;
    width: fit-content;
    min-width: 200px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
  }
  
  .cs-item:hover .cs-value {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .cs-tip {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    opacity: 0.9;
    transition: all 0.3s ease;
  }
  
  .cs-item:hover .cs-tip {
    opacity: 1;
    transform: translateY(2px);
    color: white;
  }
}

/* 移动端样式 - 底部 */
@media (max-width: 767px) {
  .customer-service-container {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
  }
  
  .cs-wrapper {
    display: flex;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
  }
  
  .cs-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .cs-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 100%);
    transform: translateX(-100%);
  }
  
  .cs-item:hover:before {
    animation: shimmer 1.5s infinite;
  }
  
  /* 微信区域 - 天然蓝 */
  .wechat-item {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 30%, #039be5 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  /* 电话区域 - 酒红色 */
  .phone-item {
    background: linear-gradient(135deg, #d32f2f 0%, #c2185b 30%, #ad1457 100%);
  }
  
  .cs-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .cs-item:hover .cs-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  }
  
  .wechat-icon {
    color: rgba(255, 255, 255, 0.95);
  }
  
  .phone-icon {
    color: rgba(255, 255, 255, 0.95);
  }
  
  .cs-content {
    text-align: center;
    margin-bottom: 8px;
    width: 100%;
  }
  
  .cs-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  }
  
  .cs-value {
    font-size: 16px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto;
    width: fit-content;
    min-width: 150px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
  }
  
  .cs-item:hover .cs-value {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .cs-tip {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    opacity: 0.9;
    transition: all 0.3s ease;
  }
  
  .cs-item:hover .cs-tip {
    opacity: 1;
    transform: translateY(2px);
    color: white;
  }
}

/* 成功提示样式 */
.cs-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  z-index: 10000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: fadeInOut 3s ease forwards;
  display: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-20px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}

/* 响应式调整 */
@media (max-width: 480px) {
  .cs-value {
    font-size: 14px;
    min-width: 130px;
    padding: 6px 10px;
  }
  
  .cs-title {
    font-size: 12px;
  }
  
  .cs-tip {
    font-size: 10px;
  }
}