/* ========================================
   联系我们 - 页面样式
   主色: #BD0C0C  辅色: #8B0000
   间距体系: 8px 倍数
   ======================================== */

/* --- 页面容器 --- */
.contact-page {
  width: 100%;
  margin-top: 98px;
  background: linear-gradient(180deg, #f8f5f0 0%, #ffffff 100%);
  padding-bottom: 80px;
}

.contact-container {
  width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* --- 面包屑（与新闻页统一） --- */
.contact-page .breadcrumb {
  padding: 32px 0 24px;
  font-size: 14px;
  color: #999;
}

.contact-page .breadcrumb a {
  color: #666;
  transition: color 0.2s;
}

.contact-page .breadcrumb a:hover {
  color: #BD0C0C;
}

.contact-page .breadcrumb .breadcrumb-sep {
  margin: 0 8px;
  color: #ccc;
}

.contact-page .breadcrumb .breadcrumb-current {
  color: #BD0C0C;
  font-weight: 500;
}

/* --- 栏目标题（与新闻页统一） --- */
.contact-page .section-title {
  text-align: center;
  padding: 24px 0 48px;
}

.contact-page .section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.contact-page .section-title-en {
  font-size: 14px;
  color: #bbb;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.contact-page .section-title-line {
  width: 60px;
  height: 3px;
  background: #BD0C0C;
  margin: 0 auto;
  border-radius: 2px;
}

/* --- 联系信息卡片 --- */
.contact-cards {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #BD0C0C;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card-wide {
  flex: 2;
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: #fff5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card-icon svg {
  width: 28px;
  height: 28px;
  color: #BD0C0C;
}

.contact-card-label {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.contact-card-value {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}

.contact-card-sub {
  font-size: 13px;
  color: #999;
}

/* --- 地图 --- */
.contact-map {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 56px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.contact-map img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* --- 在线留言 --- */
.contact-form-section {
  background: #fff;
  border-radius: 12px;
  padding: 48px 56px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.contact-form-header {
  margin-bottom: 36px;
}

.contact-form-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}

.contact-form-header h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: #BD0C0C;
  border-radius: 2px;
}

.contact-form-header p {
  font-size: 14px;
  color: #999;
  padding-left: 16px;
}

/* --- 表单 --- */
.contact-form .form-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.contact-form .form-group {
  flex: 1;
}

.contact-form .form-group-full {
  margin-bottom: 32px;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  line-height: 1.5;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bbb;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #BD0C0C;
  box-shadow: 0 0 0 3px rgba(189, 12, 12, 0.08);
  background: #fff;
}

.contact-form input {
  height: 48px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- 提交按钮 --- */
.form-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 48px;
  padding: 0 32px;
  background: #BD0C0C;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-submit:hover {
  background: #a00a0a;
  box-shadow: 0 4px 16px rgba(189, 12, 12, 0.3);
}

.btn-submit:active {
  transform: scale(0.97);
}

/* === 入场动效 === */
@keyframes contactFadeInUp { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
.contact-page .section-title { opacity: 0; animation: contactFadeInUp 0.6s ease-out 0.1s forwards; }
.contact-page .contact-cards { opacity: 0; animation: contactFadeInUp 0.6s ease-out 0.3s forwards; }
.contact-page .contact-map { opacity: 0; animation: contactFadeInUp 0.6s ease-out 0.5s forwards; }
.contact-page .contact-form-section { opacity: 0; animation: contactFadeInUp 0.7s ease-out 0.6s forwards; }
@media (prefers-reduced-motion: reduce) {
  .contact-page .section-title, .contact-page .contact-cards,
  .contact-page .contact-map, .contact-page .contact-form-section { animation: none; opacity: 1; }
}
