/* contact.css — 联系我们页面专属样式 */

/* ===== 双栏布局 ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  padding: 48px 0 64px;
  align-items: start;
}

/* ===== 左侧表单区 ===== */
.contact-form-section {
  min-width: 0;
}

.section-title {
  font-size: var(--text-card-title);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* -- 表单卡片 -- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.required {
  color: var(--danger);
  font-weight: 400;
}

.input-field {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--text-body-sm);
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-field:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-field::placeholder {
  color: var(--text-muted);
}

/* Select 下拉专用 */
.input-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.input-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Textarea */
.input-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* 字符计数 */
.input-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 4px;
  text-align: right;
}

/* 表单验证错误 */
.input-error {
  display: none;
  font-size: var(--text-xs);
  color: var(--danger);
  margin-top: 4px;
}

.input-field.error {
  border-color: var(--danger);
}

.input-field.error + .input-error {
  display: block;
}

/* -- 提交按钮（使用统一设计令牌） -- */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: var(--gradient-accent);
  color: #fff;
  font-size: var(--text-body);
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: all var(--transition);
}
.btn-submit:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: var(--btn-shadow-hover);
}
.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* 隐私提示 */
.privacy-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

.privacy-note a {
  color: var(--accent-light);
}

/* ===== 成功/错误状态卡片（与 notify_me 一致） ===== */
.success-card,
.error-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.success-icon,
.error-icon {
  margin-bottom: 16px;
}

.success-title {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--success);
  margin-bottom: 10px;
}

.success-desc {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.success-ref {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-bottom: 24px;
}

.error-title {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--danger);
  margin-bottom: 10px;
}

.error-desc {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.btn-retry {
  /* = btn-ghost */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--btn-radius-sm);
  color: var(--text-secondary);
  font-size: var(--text-body-sm);
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-retry:hover { border-color: var(--accent); color: var(--accent-light); }

.btn-spinner.hidden,
.hidden {
  display: none !important;
}

/* ===== 右侧信息卡 ===== */
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.info-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-body);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: 14px;
}

/* 邮箱展示 + 复制 */
.email-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.email-text {
  font-size: var(--text-body-sm);
  color: var(--accent-light);
  word-break: break-all;
  flex: 1;
}

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
}

.copy-btn.copied {
  border-color: var(--success);
  color: var(--success);
  background: var(--success-bg);
}

.copy-feedback {
  font-size: var(--text-xs);
  color: var(--success);
  white-space: nowrap;
}

/* 信息列表 */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  font-size: var(--text-small);
  color: var(--text-secondary);
  padding: 6px 0;
  line-height: 1.6;
}

.info-list li::before {
  content: '';
  display: none;
}

.info-list li a {
  color: var(--accent-light);
}

.info-list li a:hover {
  text-decoration: underline;
}

/* 公司信息 */
.info-company .company-name {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.info-company .company-info {
  font-size: var(--text-small);
  color: var(--text-muted);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 48px;
  }

  .form-card {
    padding: 24px;
  }

  .section-title {
    font-size: 18px;
  }

  .contact-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .info-card {
    padding: 16px;
  }

  .info-card-title {
    font-size: var(--text-small);
  }

  .info-list li {
    font-size: var(--text-xs);
  }
}

@media (max-width: 480px) {
  .contact-info-section {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 20px;
  }
}
