/* =========================================================
   联系我们页专用样式
   （页面 Banner / 面包屑 已在 common.css 通用定义）
   ========================================================= */

/* ---------- 联系卡片（电话/邮箱/地址/时间） ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 61, 0.35);
  box-shadow: var(--shadow-hover);
}

.contact-card-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #FF7A3D, #FFB04D);
  color: #fff;
  font-size: 20px;
}

.contact-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.contact-card a {
  color: var(--blue-500);
  font-weight: 600;
  transition: color 0.25s ease;
}

.contact-card a:hover {
  color: var(--cyan-400);
}

/* ---------- 联系主体：左表单 + 右信息 ---------- */
.contact-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

/* 左侧表单卡 */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: 0 4px 14px rgba(30, 25, 20, 0.05);
}

.form-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 8px;
}

.form-card .form-sub {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 26px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 8px;
}

.form-group label .required {
  color: #F53F3F;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-body);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(255, 122, 61, 0.12);
}

.form-control.has-error {
  border-color: #F53F3F;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* 字段错误提示 */
.form-error {
  display: none;
  font-size: 12px;
  color: #F53F3F;
  margin-top: 6px;
}

.form-error.show {
  display: block;
}

/* 提交后引导提示：中性样式，承担实际联系引导而非“提交成功”的虚假反馈 */
.form-success {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 8px;
  background: #FFF8F0;
  border: 1px solid #FFD9A8;
  color: #B35A00;
  font-size: 14px;
  line-height: 1.7;
}

.form-success a {
  color: var(--blue-500);
  font-weight: 600;
  text-decoration: underline;
}

.form-success.show {
  display: block;
}

/* 右侧信息侧栏 */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.info-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}

.info-card h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #FF7A3D, #FFB04D);
}

.info-list {
  list-style: none;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 14px;
}

.info-list li:last-child {
  margin-bottom: 0;
}

.info-list .info-label {
  flex-shrink: 0;
  color: var(--blue-500);
  font-weight: 600;
}

/* 微信二维码卡 */
.wechat-card {
  text-align: center;
}

.wechat-qr {
  width: 140px;
  height: 140px;
  margin: 14px auto;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

.wechat-card p {
  font-size: 13px;
  color: var(--text-sub);
}

/* 响应承诺卡 */
.promise-tip {
  background: var(--bg-gray);
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.8;
}

.promise-tip .tip-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 8px;
}

/* ---------- 常见问题 ---------- */
.faq {
  background: var(--bg-gray);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-title);
  transition: color 0.25s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--blue-500);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--blue-500);
}

.faq-answer {
  padding: 0 24px 18px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }

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