@charset "utf-8";

/* ============================================
   现代极简科技客服弹窗
   Modern Tech Service Modal
   ============================================ */

#service-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  padding: 20px;
}

#service-modal.active { display: flex; }

/* 遮罩层 */
.service-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9998;
}

/* 弹窗容器 - 玻璃态 */
.service-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
  z-index: 9999;
  animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 头部 */
.service-header {
  position: relative;
  padding: 32px 40px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.service-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
}

.service-header .subtitle {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 18px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1a1a2e;
  transform: rotate(90deg);
}

/* 主体 */
.service-body {
  display: flex;
  gap: 24px;
  padding: 32px 40px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 卡片 */
.service-card {
  flex: 1;
  min-width: 220px;
  max-width: 260px;
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

/* 视觉图标 */
.card-visual {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 28px;
  transition: transform 0.3s ease;
}

.card-visual.wechat {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #22c55e;
}

.card-visual.qq {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #3b82f6;
}

.card-visual.phone {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: #8b5cf6;
}

.service-card:hover .card-visual {
  transform: scale(1.1);
}

/* 卡片信息 */
.card-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 4px;
}

.card-info .desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 20px;
}

/* 二维码 - 确保显示完整 */
.qrcode-box {
  width: 160px;
  height: 160px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* 联系方式行 */
.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-radius: 10px;
  width: 100%;
}

.contact-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.contact-value {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  font-family: 'SF Mono', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 13px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.icon-btn:hover {
  background: #3b82f6;
  color: #fff;
}

/* 电话卡片特殊样式 */
.phone-card .phone-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border-radius: 16px;
  width: 100%;
  margin-bottom: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.phone-display:hover {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  transform: scale(1.02);
}

.phone-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b5cf6;
  font-size: 24px;
}

.phone-number {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  font-family: 'SF Mono', monospace;
  letter-spacing: 1px;
}

.action-btn {
  width: 100%;
  padding: 14px 24px;
  border: none;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
}

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

/* 底部 */
.service-footer {
  padding: 20px 40px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafafa;
}

.service-footer p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Toast提示 */
.toast-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(26, 26, 46, 0.95);
  color: #fff;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 100002;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast-message.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 响应式 */
@media (max-width: 768px) {
  .service-body {
    padding: 24px;
    flex-direction: column;
    align-items: center;
  }
  .service-card {
    min-width: 100%;
    max-width: 320px;
  }
  .service-header h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  #service-modal {
    padding: 0;
    align-items: flex-end;
  }
  .service-container {
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
    animation: modalUpMobile 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes modalUpMobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .service-header {
    padding: 24px 24px 20px;
  }
  .service-body {
    padding: 20px;
  }
  .qrcode-box {
    width: 140px;
    height: 140px;
  }
  .phone-number {
    font-size: 20px;
  }
}
