/* form.css - 表单+按钮+交互（联系页/留言页加载） */

/* ===== Form Styles ===== */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: #333333;
  font-weight: 500;
}

.form-label .required {
  color: #E17055;
  margin-left: 3px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #DCDDE1;
  border-radius: 4px;
  font-size: 1rem;
  color: #333333;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: #E17055;
  box-shadow: 0 0 0 3px rgba(225,112,85,0.15);
}

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

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

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.form-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

@media (max-width: 768px) {
  .form-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0;
  }
}

/* ===== Button Styles ===== */
.btn-submit {
  display: inline-block;
  padding: 14px 40px;
  background-color: #E17055;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background-color: #c75c3f;
  -webkit-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225,112,85,0.3);
}

.btn-reset {
  display: inline-block;
  padding: 14px 40px;
  background-color: transparent;
  color: #666666;
  border: 1px solid #DCDDE1;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 15px;
}

.btn-reset:hover {
  background-color: #F5F6FA;
  border-color: #999;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Form hint text */
.form-hint {
  font-size: 0.8125rem;
  color: #999;
  margin-top: 5px;
}

/* Form error state */
.form-input.error,
.form-textarea.error {
  border-color: #e74c3c;
}

.form-input.error:focus,
.form-textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(231,76,60,0.15);
}

.error-msg {
  font-size: 0.8125rem;
  color: #e74c3c;
  margin-top: 5px;
}

/* ===== Contact Page Specific ===== */
.contact-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 35%;
  -ms-flex: 1 1 35%;
  flex: 1 1 35%;
  min-width: 280px;
}

.contact-form-wrap {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 55%;
  -ms-flex: 1 1 55%;
  flex: 1 1 55%;
  min-width: 280px;
}

.contact-info-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: rgba(225,112,85,0.1);
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #E17055;
  font-size: 1.25rem;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 50px;
  -ms-flex: 0 0 50px;
  flex: 0 0 50px;
}

.contact-info-text h4 {
  font-size: 1rem;
  color: #2D3436;
  margin-bottom: 5px;
}

.contact-info-text p {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.6;
}

.contact-info-text a {
  color: #E17055;
}

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

/* Map container */
.map-container {
  margin: 30px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #DCDDE1;
  height: 350px;
  background: #F5F6FA;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #666;
}

/* FAQ */
.faq-item {
  margin-bottom: 15px;
  border: 1px solid #DCDDE1;
  border-radius: 6px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 20px;
  background: #F5F6FA;
  cursor: pointer;
  font-weight: 500;
  color: #2D3436;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #eef0f5;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: #E17055;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  margin-left: 10px;
}

.faq-item.active .faq-question::after {
  content: "-";
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 18px 20px;
  max-height: 500px;
}

.faq-answer p {
  color: #666666;
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Service time */
.service-time {
  background: #F5F6FA;
  padding: 25px;
  border-radius: 8px;
  margin-top: 25px;
}

.service-time h4 {
  font-size: 1rem;
  color: #2D3436;
  margin-bottom: 15px;
}

.service-time p {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.8;
}

.service-time .highlight {
  color: #E17055;
  font-weight: 600;
}

@media (max-width: 768px) {
  .contact-grid {
    gap: 30px;
  }
  .map-container {
    height: 250px;
  }
  .btn-submit,
  .btn-reset {
    padding: 12px 30px;
  }
}

/* ===== Search Box ===== */
.search-box {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 0;
  margin-bottom: 30px;
}

.search-input {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #DCDDE1;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
  border-right: none;
}

.search-input:focus {
  border-color: #E17055;
  outline: none;
}

.search-btn {
  padding: 12px 24px;
  background-color: #E17055;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background-color: #c75c3f;
}

.search-results-info {
  font-size: 0.9375rem;
  color: #666;
  margin-bottom: 20px;
}

.search-result-item {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.search-result-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.search-result-item h3 a {
  color: #2D3436;
}

.search-result-item h3 a:hover {
  color: #E17055;
}

.search-result-item p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
}

/* ===== 404 Page ===== */
.page-404 {
  text-align: center;
  padding: 80px 0;
}

.page-404-code {
  font-size: 8rem;
  font-weight: 700;
  color: #E17055;
  line-height: 1;
  margin-bottom: 20px;
}

.page-404 h1 {
  font-size: 2rem;
  color: #2D3436;
  margin-bottom: 15px;
}

.page-404 p {
  font-size: 1.0625rem;
  color: #666666;
  margin-bottom: 30px;
}

.page-404-recommend {
  margin-top: 50px;
  text-align: left;
}

.page-404-recommend h3 {
  text-align: center;
  font-size: 1.25rem;
  color: #2D3436;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .page-404 {
    padding: 50px 0;
  }
  .page-404-code {
    font-size: 5rem;
  }
  .page-404 h1 {
    font-size: 1.5rem;
  }
}
