/* ====================================================
   .list-text 区域样式优化 + IE9+ 全兼容强化
   兼容范围：IE9 / IE10 / IE11，IE8及以下通过条件注释降级
   ==================================================== */

/* --- 容器整体 --- */
.list-text {
  padding: 28px 24px 36px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  /* IE9 阴影兼容 */
  -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color='#000000')";
  filter: progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color='#000000');
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  box-sizing: border-box;
}

/* --- 写信须知区域 --- */
.liuyan_xzbox {
  background: #f5e9eb;
  /* IE9 gradient fallback via filter handled by conditional comment */
  border-left: 4px solid #bd1a2d;
  border-radius: 0 6px 6px 0;
  padding: 18px 24px 20px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.liuyan_xxtit {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: #bd1a2d;
  padding: 0 0 12px;
  letter-spacing: 1px;
}

/* ::before → :before 兼容IE8/IE9 */
.liuyan_xxtit:before {
  content: "";
  display: inline-block;
  *display: inline;
  *zoom: 1;
  width: 4px;
  height: 16px;
  background: #bd1a2d;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 8px;
}

.liuyan_xzbox p {
  color: #555;
  font-size: 14px;
  line-height: 26px;
  text-indent: 0 !important;
  padding-left: 0;
  margin-bottom: 2px;
}

.liuyan_xiexin {
  display: inline-block;
  *display: inline;
  *zoom: 1;
  background: #bd1a2d;
  text-align: center;
  font-size: 14px;
  color: #fff;
  height: 34px;
  line-height: 34px;
  border-radius: 4px;
  text-indent: 0;
  padding: 0 18px;
  /* 全前缀过渡兼容 IE9+ */
  -webkit-transition: background 0.3s, box-shadow 0.3s;
  -ms-transition: background 0.3s, box-shadow 0.3s;
  transition: background 0.3s, box-shadow 0.3s;
  margin-top: 10px;
}

.liuyan_xiexin:hover {
  background: #bd1a2d;
  box-shadow: 0 3px 8px rgba(189,26,45,.25);
  color: #fff;
}

/* --- 留言表单整体 --- */
.message_form {
  padding: 8px 0 20px;
}

/* flex容器 - IE10/IE11 全套-ms-前缀，IE9 自动降级流式布局 */
.message_form ul {
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.message_form ul li {
  font-size: 14px;
  padding: 14px 0 0;
  overflow: visible;
  line-height: 36px;
  border-bottom: 0;
  background: none;
  height: auto;
  box-sizing: border-box;
  /* IE 清除浮动干扰 */
  *zoom: 1;
}

/* 半宽 - 用margin控制间距替代gap(IE兼容) */
.message_form .half {
  width: 48%;
  float: none;
  box-sizing: border-box;
}
/* 奇数项右侧留间距 */
.message_form .half:nth-child(odd) {
  margin-right: 4%;
}
.message_form .half:nth-child(even) {
  margin-right: 0;
}

/* 全宽 */
.message_form .full {
  clear: none;
  width: 100%;
  padding-right: 0;
}

/* 标签 */
.message_form .title {
  width: auto;
  float: none;
  text-align: left;
  padding: 0 0 5px;
  border-bottom: 0;
  font-size: 14px;
  color: #444;
  font-weight: 600;
  display: block;
  line-height: 1.4;
  margin: 0;
}

.message_form .red {
  color: #e74c3c;
  padding: 0 3px 0 0;
}

/* 输入框包装 */
.message_form .input {
  margin: 0;
  border: 1px solid #d9d9d9;
  height: 38px;
  line-height: 36px;
  border-radius: 4px;
  font-size: 0;
  /* 过渡全前缀 */
  -webkit-transition: border-color 0.25s, box-shadow 0.25s;
  -ms-transition: border-color 0.25s, box-shadow 0.25s;
  transition: border-color 0.25s, box-shadow 0.25s;
  background: #fff;
  *height: 38px;
}

/* :focus-within IE 不支持，仅保留 :focus 作为唯一有效规则 */
.message_form .input:focus {
  border-color: #bd1a2d;
  box-shadow: 0 0 0 3px rgba(189,26,45,.12);
}

.message_form .input input {
  border: 0 none;
  background: none;
  font-size: 14px;
  height: 36px;
  line-height: 36px;
  font-family: "微软雅黑", sans-serif;
  width: 96%;
  padding: 0 8px;
  outline: none;
  color: #333;
}

/* disabled 态 */
.message_form .disabled input {
  background: #f8f8f8;
  color: #888;
}

/* select */
.message_form .select {
  margin: 0;
  height: 38px;
  font-size: 0;
  line-height: 0;
  float: none;
  margin-right: 0;
  width: auto;
}

.message_form .select select {
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  width: 100%;
  vertical-align: middle;
  font-size: 14px;
  color: #444;
  height: 38px;
  line-height: 38px;
  font-family: "微软雅黑", sans-serif;
  background: #fff;
  -webkit-transition: border-color 0.25s, box-shadow 0.25s;
  -ms-transition: border-color 0.25s, box-shadow 0.25s;
  transition: border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
  -webkit-appearance: menulist-button;
  /* IE 下拉框原生样式保留，不做自定义箭头 */
  appearance: menulist-button;
}

.message_form .select select:focus {
  border-color: #bd1a2d;
  box-shadow: 0 0 0 3px rgba(189,26,45,.12);
  outline: none;
}

/* textarea */
.message_form .textarea {
  margin: 0;
  border: 1px solid #d9d9d9;
  padding: 8px;
  line-height: normal;
  font-size: 0;
  border-radius: 4px;
  min-height: 130px;
  height: auto;
  -webkit-transition: border-color 0.25s, box-shadow 0.25s;
  -ms-transition: border-color 0.25s, box-shadow 0.25s;
  transition: border-color 0.25s, box-shadow 0.25s;
  background: #fff;
  box-sizing: border-box;
}

/* 移除 :focus-within，IE 纯 :focus */
.message_form .textarea:focus {
  border-color: #bd1a2d;
  box-shadow: 0 0 0 3px rgba(189,26,45,.12);
}

.message_form .textarea textarea {
  background: none;
  border: 0 none;
  width: 100%;
  height: 100%;
  resize: vertical;
  font-size: 14px;
  line-height: 22px;
  font-family: "微软雅黑", sans-serif;
  padding: 0;
  outline: none;
  color: #333;
}

.message_form .textarea .tips {
  display: block;
  font-size: 12px;
  color: #aaa;
  line-height: 1.6;
  clear: both;
  padding: 6px 0 0;
  font-style: italic;
}

/* 公开/不公开 radio */
.message_form .ispublic {
  line-height: 32px;
  font-size: 14px;
  color: #555;
  width: 100%;
}

.message_form .ispublic input {
  margin-right: 5px;
  cursor: pointer;
  margin-top: -5px;
}

.message_form .ispublic label {
  margin-right: 16px;
  vertical-align: middle;
  font-weight: normal;
  cursor: pointer;
}

/* 验证码行 */
.message_form .yzm {
  width: 100%;
}

/* 验证码行 flex IE 全前缀 */
.message_form .code {
  margin: 0;
  font-size: 0;
  line-height: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -webkit-box-align: center;
  align-items: center;
}

.message_form .code input {
  width: 110px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  line-height: 36px;
  height: 38px;
  font-size: 14px;
  font-family: "微软雅黑", sans-serif;
  -webkit-transition: border-color 0.25s, box-shadow 0.25s;
  -ms-transition: border-color 0.25s, box-shadow 0.25s;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  margin-right: 10px; /* 替代 gap: 10px */
}

.message_form .code input:focus {
  border-color: #bd1a2d;
  box-shadow: 0 0 0 3px rgba(189,26,45,.12);
}

.message_form .code img {
  vertical-align: middle;
  margin: 0;
  border-radius: 3px;
  cursor: pointer;
  height: 38px;
  width: auto;
}

/* 提交按钮区域 */
.message_form .btnbox {
  text-align: center;
  padding: 28px 0 4px;
  height: auto;
  font-size: 0;
  line-height: 0;
  width: 100%;
}

.message_form .btnbox input {
  height: 42px;
  line-height: 42px;
  margin: 0 10px;
  width: 130px;
  text-align: center;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  background: #bd1a2d;
  border: 0 none;
  font-family: "微软雅黑", sans-serif;
  border-radius: 5px;
  /* 变形+过渡 IE 完整前缀 */
  -webkit-transition: background 0.3s, box-shadow 0.3s, -webkit-transform 0.15s;
  -ms-transition: background 0.3s, box-shadow 0.3s, -ms-transform 0.15s;
  transition: background 0.3s, box-shadow 0.3s, transform 0.15s;
  letter-spacing: 1px;
}

.message_form .btnbox input:hover {
  background: #bd1a2d;
  box-shadow: 0 4px 12px rgba(189,26,45,.30);
  -webkit-transform: translateY(-1px);
  -ms-transform: translateY(-1px);
  transform: translateY(-1px);
}

.message_form .btnbox input:active {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  box-shadow: none;
}

.message_form .btnbox .btn-search {
  background: #ececec;
  color: #505050;
}

.message_form .btnbox .btn-search:hover {
  background: #d8d8d8;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  color: #333;
}

/* ====================================================
   响应式 Breakpoints IE9+ 兼容
   ==================================================== */

/* 平板大屏 (992px ~ 1199px) */
@media (max-width: 1199px) {
  .list-text {
    padding: 24px 20px 30px;
  }
  .message_form .file .ke-input-text {
    width: 90%; /* 移除calc，IE9 彻底兼容 */
    *width: 90%;
  }
}

/* 平板竖屏 / 小屏 PC (768px ~ 991px) */
@media (max-width: 991px) {
  .list-text {
    padding: 20px 16px 28px;
    width: 100% !important;
  }
  .message_form {
    padding: 6px 0 14px;
  }
  .message_form .btnbox {
    padding-top: 22px;
  }
  .liuyan_xzbox {
    padding: 16px 18px 18px;
  }
}

/* 手机横屏 / 小平板 (576px ~ 767px) */
@media (max-width: 767px) {
  .list-text {
    padding: 16px 12px 24px;
    box-shadow: none;
    border-radius: 0;
  }
  .liuyan_xzbox {
    padding: 12px 14px 14px;
    margin: 0 0 16px;
  }
  .liuyan_xxtit {
    padding: 0 0 8px;
    font-size: 15px;
  }
  .liuyan_xzbox p {
    font-size: 14px;
    line-height: 23px;
  }
  /* 半宽全部变全宽 */
  .message_form .half,
  .message_form .half:nth-child(odd),
  .message_form .half:nth-child(even) {
    width: 100%;
    float: none;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .message_form ul li {
    padding: 10px 0 0;
  }
  .message_form .title {
    text-align: left;
    float: none;
    width: auto;
  }
  .message_form .input,
  .message_form .textarea,
  .message_form .select {
    margin: 0;
  }
  .message_form .select {
    margin-left: 0;
  }
  .message_form .full .input input,
  .message_form .half .input input {
    width: 96%;
    padding: 0 2%;
  }
  .message_form .file .ke-input-text {
    width: auto;
    margin-right: 8px;
  }
  .message_form .file .btn-upload {
    float: none;
  }
  .message_form .btnbox {
    padding-top: 20px;
  }
  .message_form .btnbox input {
    width: 115px;
    font-size: 14px;
  }
  .message_form .code input {
    margin-right: 10px;
  }
}

/* 手机竖屏 (max 480px) */
@media (max-width: 480px) {
  .list-text {
    padding: 12px 10px 20px;
  }
  .liuyan_xzbox {
    padding: 10px 12px 12px;
    border-left-width: 3px;
  }
  .liuyan_xzbox p {
    font-size: 12px;
    line-height: 22px;
  }
  .message_form .btnbox input {
    width: 100px;
    height: 38px;
    line-height: 38px;
    font-size: 14px;
    margin: 0 6px;
  }
  .message_form .code input {
    width: 90px;
    margin-right: 8px;
  }
  .message_form .code img {
    height: 32px;
  }
}

/* 超小屏 (max 360px) IE11 flex 列布局强化 */
@media (max-width: 360px) {
  .message_form .btnbox {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
  .message_form .btnbox input {
    width: 100%;
    max-width: 240px;
    margin: 0 0 10px 0;
  }
}