/* 联系客服 / 预约演示弹窗（配色统一复用全站主题色变量） */

.cs-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cs-dialog.is-open {
  display: flex;
}

.cs-dialog__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 94, 0.45);
  backdrop-filter: blur(2px);
}

.cs-dialog__panel {
  position: relative;
  width: 540px;
  max-width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 28px 32px;
  animation: csIn 0.22s ease-out;
}

@keyframes csIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* 标题与关闭按钮同行居中 */
.cs-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cs-dialog__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.cs-dialog__close svg {
  width: 18px;
  height: 18px;
}

.cs-dialog__close:hover {
  background: var(--primary-50);
  color: var(--primary);
}

.cs-dialog__title {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

/* 顶部提示条 */
.cs-dialog__tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  font-size: 14px;
  line-height: 1.7;
  color: var(--primary-dark);
}

.cs-dialog__tip-icon {
  display: flex;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

.cs-dialog__tip-icon svg {
  width: 18px;
  height: 18px;
}

/* 主体：微信 + 电话 并排 */
.cs-dialog__body {
  display: flex;
  align-items: stretch;
}

.cs-block {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cs-divider {
  flex: 0 0 1px;
  width: 1px;
  margin: 0 20px;
  background: var(--border);
}

.cs-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  margin-bottom: 14px;
}

.cs-head-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #FFFFFF;
}

.cs-head-icon svg {
  width: 16px;
  height: 16px;
}

/* 微信沿用品牌绿，电话图标使用全站主题色 */
.cs-head-icon--wechat {
  background: #22C55E;
}

.cs-head-icon--tel {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cs-head-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.cs-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 128px;
  margin-bottom: 12px;
}

.cs-qr {
  width: 128px;
  height: 128px;
  padding: 4px;
  border-radius: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.cs-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.cs-tel {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.cs-tel:hover {
  color: var(--primary);
}

.cs-tip-sm {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-light);
  text-align: center;
}

/* 让 button 元素复用 .btn 系列样式时视觉一致 */
button.btn {
  font-family: inherit;
  line-height: 1;
}

@media (max-width: 640px) {
  .cs-dialog__body {
    flex-direction: column;
    gap: 20px;
  }

  .cs-divider {
    width: 100%;
    height: 1px;
    flex: 0 0 1px;
    margin: 0;
  }
}
