@charset "utf-8";
/* ==========================================================================
   HONZ V4.0 — 在线留言与报修表单样式 (ty_msg.css)
   保留 search_policy_msg 作用域及全部表单字段/ID，优化文本域高度与科技交互感
   ========================================================================== */

.ty_msg_section.search_policy_msg,
.search_policy_msg .ty_msg_section {
  display: block;
  width: 100%;
  margin-bottom: 88px;
}

.ty_msg_section.search_policy_msg:last-child,
.search_policy_msg .ty_msg_section:last-child {
  margin-bottom: 0;
}

.search_policy_msg .ty_msg_container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.search_policy_msg .ty_msg_card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
  padding: 40px;
  border: 1px solid #e2e8f0;
}

.search_policy_msg .ty_msg_title {
  display: none;
}

.search_policy_msg .ty_msg_subtitle {
  font-size: 0.9375rem;
  color: #64748b;
  margin-bottom: 28px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
}

.search_policy_msg .ty_msg_form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.search_policy_msg .ty_msg_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.search_policy_msg .ty_msg_group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search_policy_msg .ty_msg_label_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.search_policy_msg .ty_msg_label_icon_text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  color: #1e293b;
}

.search_policy_msg .ty_msg_label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  color: #1e293b;
  margin: 0;
}

.search_policy_msg .ty_msg_required {
  color: #ef4444;
  font-size: 1rem;
  line-height: 1;
  margin-left: 2px;
}

.search_policy_msg .ty_msg_char_stats {
  font-size: 0.75rem;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 9999px;
  font-variant-numeric: tabular-nums;
}

.search_policy_msg .ty_msg_char_stats span {
  font-weight: 700;
  color: #0454dc;
}

.search_policy_msg .ty_msg_input-wrapper {
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.search_policy_msg .ty_msg_input-wrapper:focus-within {
  background-color: #ffffff;
  border-color: #0454dc;
  box-shadow: 0 0 0 4px rgba(4, 84, 220, 0.1);
}

.search_policy_msg .ty_msg_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 16px;
  padding-right: 12px;
  color: #64748b;
}

.search_policy_msg .ty_msg_icon i {
  font-size: 1.15rem;
}

.search_policy_msg .ty_msg_input-wrapper:focus-within .ty_msg_icon {
  color: #0454dc;
}

.search_policy_msg .ty_msg_input,
.search_policy_msg .ty_msg_textarea,
.search_policy_msg .ty_msg_select {
  width: 100%;
  padding: 13px 16px 13px 4px;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  color: #0f172a;
  outline: none;
}

/* 优化：将原版夸张的 500px 高度优化为符合人体工学的 160px */
.search_policy_msg .ty_msg_textarea {
  resize: vertical;
  min-height: 160px !important;
  line-height: 1.65;
  padding: 14px 16px;
}

.search_policy_msg .textarea-wrapper .ty_msg_icon {
  display: none;
}

.search_policy_msg .ty_msg_action-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding-top: 8px;
}

.search_policy_msg .ty_msg_captcha-group {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.search_policy_msg .ty_msg_captcha-wrapper {
  width: 200px;
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.search_policy_msg .ty_msg_captcha-wrapper:focus-within {
  background-color: #ffffff;
  border-color: #0454dc;
  box-shadow: 0 0 0 4px rgba(4, 84, 220, 0.1);
}

.search_policy_msg .ty_msg_captcha-input {
  width: 100%;
  padding: 12px 12px 12px 4px;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  outline: none;
}

.search_policy_msg .ty_msg_captcha-display {
  height: 48px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.search_policy_msg .ty_msg_refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 18px;
  height: 48px;
  font-weight: 600;
  font-size: 0.875rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search_policy_msg .ty_msg_refresh-btn:hover {
  border-color: #0454dc;
  color: #0454dc;
  background: #f0f6ff;
}

.search_policy_msg .ty_msg_submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0454dc 0%, #0ea5e9 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 8px 20px rgba(4, 84, 220, 0.25);
  transition: all 0.25s ease;
  cursor: pointer;
}

.search_policy_msg .ty_msg_submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(4, 84, 220, 0.35);
}

.search_policy_msg .formMessage_hidden {
  display: none;
}

.search_policy_msg .formMessage_active {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.9375rem;
  border: 1px solid rgba(4, 84, 220, 0.2);
  background-color: #f0f6ff;
  color: #0454dc;
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .search_policy_msg .ty_msg_card {
    padding: 24px 16px;
  }
  .search_policy_msg .ty_msg_row,
  .search_policy_msg .ty_msg_action-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .search_policy_msg .ty_msg_submit-btn {
    width: 100%;
  }
}
