/* 公共样式 - 使用纯CSS，配合Lessjs组件库 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0 solid;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #333;
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.chat-btn {
  --chat-btn-bg-color: #4d74ed;
}
.chat-btn.chat-btn-color-dangerous {
  --chat-btn-bg-color: #ff7784;
}
/* 按钮样式 */
.chat-btn {
  display: flex;
  padding: 14px 20px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  background: var(--chat-btn-bg-color, #4d74ed);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}

.chat-btn.chat-btn-primary {
  background: #1890ff;
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* 表单样式 */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: #1890ff;
}

/* 隐藏类 - 使用CSS实现，不依赖JS */
.hidden {
  display: none !important;
}

/* 弹窗遮罩层 - 使用:target伪类控制显示，纯CSS实现，无需JS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay:target {
  display: flex;
}

/* PC端弹窗 */
.modal-dialog {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* 关闭按钮 */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.modal-close:hover {
  color: #333;
}

/* 响应式布局 - 断点定义 */
/* 移动端：< 768px */
/* PC端：>= 768px */

/* PC端特定样式 */
@media (min-width: 960px) {
  .mobile-only {
    display: none !important;
  }

  .mobile-modal {
    display: none !important;
  }

  .hide-desktop {
    display: none !important;
  }
}

/* 移动端特定样式 */
@media (max-width: 959px) {
  .pc-only {
    display: none !important;
  }

  .hide-mobile {
    display: none !important;
  }

  /* 移动端表单输入框样式优化 */
  .form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 16px; /* 防止iOS自动缩放 */
  }

  /* 移动端按钮样式优化 */
  .btn {
    padding: 14px 20px;
    font-size: 16px;
    min-height: 44px; /* 触摸友好的最小高度 */
  }
}
