/* 联系我们 */
.contact-page {
  background: #fff;
}

.contact-hero {
  background: linear-gradient(135deg, #f4faf1 0%, #fff 45%, #f8f8f8 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 16px 56px;
}

.contact-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.contact-hero-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.contact-hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

.contact-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 16px 80px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

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

.contact-card:hover {
  border-color: #c8e6b8;
  box-shadow: 0 12px 32px rgba(50, 157, 21, 0.08);
}

.contact-card-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  background: #ebf5e8;
  color: var(--primary);
  border-radius: 50%;
  font-size: 22px;
  margin-bottom: 16px;
}

.contact-card h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-card-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.contact-card-value a {
  color: var(--primary);
}

.contact-card-value a:hover {
  text-decoration: underline;
}

.contact-card-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.contact-form-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
}

.panel-title {
  font-size: 20px;
  font-weight: 700;
  padding-left: 14px;
  position: relative;
  margin-bottom: 8px;
}

.panel-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--primary);
  border-radius: 1px;
}

.panel-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-left: 14px;
}

.contact-form-tip {
  margin: 0 0 16px 14px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 6px;
}

.contact-form-tip.is-success {
  color: #2d6a1e;
  background: #ebf5e8;
  border: 1px solid #c8e6b8;
}

.contact-form-tip.is-error {
  color: #a33;
  background: #fff5f5;
  border: 1px solid #f0c8c8;
}

.btn-contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.contact-form label {
  display: block;
  margin-bottom: 18px;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

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

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-contact-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
  transition: background 0.2s;
}

.btn-contact-submit:hover {
  background: var(--primary-hover);
}

.contact-aside .aside-block {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 20px;
  margin-bottom: 16px;
}

.contact-aside .aside-block:last-child {
  margin-bottom: 0;
}

.contact-aside h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.service-list li {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}

.service-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-list li:first-child {
  padding-top: 0;
}

.service-list strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

.service-list span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.map-placeholder {
  height: 140px;
  border-radius: 6px;
  background: linear-gradient(145deg, #e8f5e3, #d4e8cc);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.map-placeholder span {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.08em;
}

.aside-map p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.aside-qa details {
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}

.aside-qa details:last-child {
  border-bottom: none;
}

.aside-qa summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  list-style: none;
}

.aside-qa summary::-webkit-details-marker {
  display: none;
}

.aside-qa summary::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-weight: 400;
}

.aside-qa details[open] summary::after {
  content: "−";
}

.aside-qa details p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 10px;
  padding-right: 8px;
}

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

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

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .contact-hero h1 {
    font-size: 28px;
  }
}
