/* ── 快速报价弹窗 ── */

/* 遮罩 */
.qq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.qq-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* 弹窗容器 */
.qq-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 9501;
  width: 420px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.qq-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* 头部 */
.qq-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qq-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #e0e0e0;
}
.qq-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #333;
  color: #999;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.qq-close:hover { background: #333; color: #fff; }

/* 表单 */
.qq-body { padding: 1.5rem; }
.qq-form-group { margin-bottom: 1rem; }
.qq-form-group label {
  display: block;
  font-size: 0.85rem;
  color: #b0b0b0;
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.qq-form-group label .qq-required {
  color: #f44336;
  margin-left: 2px;
}
.qq-form-group select,
.qq-form-group input,
.qq-form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  border: 1px solid #333;
  border-radius: 8px;
  background: #0a0a0a;
  color: #e0e0e0;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}
.qq-form-group select:focus,
.qq-form-group input:focus,
.qq-form-group textarea:focus {
  border-color: #c8a45c;
}
.qq-form-group select { cursor: pointer; }
.qq-form-group textarea { resize: vertical; min-height: 60px; }
.qq-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

/* 提交按钮 */
.qq-submit {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #c8a45c, #a88a42);
  color: #000;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}
.qq-submit:hover {
  background: linear-gradient(135deg, #d4b876, #c8a45c);
  transform: translateY(-1px);
}
.qq-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* 提示 */
.qq-hint {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.8rem;
}
.qq-hint a {
  color: #c8a45c;
  text-decoration: none;
}

/* 成功状态 */
.qq-success {
  text-align: center;
  padding: 2rem 1rem;
}
.qq-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.qq-success h4 {
  color: #e0e0e0;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.qq-success p {
  color: #b0b0b0;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.qq-success .qq-response-time {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.5rem 1rem;
  background: rgba(200,164,92,0.1);
  border: 1px solid rgba(200,164,92,0.2);
  border-radius: 8px;
  color: #c8a45c;
  font-size: 0.9rem;
  font-weight: 500;
}

/* 错误提示 */
.qq-error {
  background: rgba(244,67,54,0.1);
  border: 1px solid rgba(244,67,54,0.2);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  color: #f44336;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  display: none;
}
.qq-error.show { display: block; }

/* ── 移动端适配 ── */
@media (max-width: 768px) {
  .qq-modal {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    border-radius: 12px;
  }
  .qq-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .qq-body { padding: 1rem; }
}
