/* ====== Contact 弹出表单 ====== */
#winpop {
  width: 320px;
  max-height: 48px;
  font-family: "Microsoft Yahei", "Source Sans Pro", Arial, sans-serif;
  position: fixed;
  right: 4%;
  bottom: 0;
  background: #ffffff;
  border-radius: 8px 8px 0 0;
  z-index: 9999;
  box-shadow:
    0 -6px 24px rgba(0, 0, 0, 0.12),
    0 -2px 8px rgba(0, 0, 0, 0.06);
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s;
  overflow: hidden;
}

#winpop.open {
  max-height: calc(100vh - 20px);
}

#winpop .title {
  height: 48px;
  color: #fff;
  line-height: 48px;
  background: linear-gradient(135deg, #e60012 0%, #fe883e 100%);
  font-weight: 600;
  text-align: left;
  font-size: 15px;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  letter-spacing: 0.5px;
}

#winpop .title .titxt {
  display: inline-flex;
  align-items: center;
}

#winpop .title .titxt::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'><path d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/></svg>") no-repeat center / contain;
}

#winpop .title .close {
  font-size: 24px;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  transition: background 0.2s;
}

#winpop .title .close:hover {
  background: rgba(255, 255, 255, 0.2);
}

#winpop .bd {
  padding: 20px 18px 22px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

#winpop .item {
  margin-bottom: 14px;
}

#winpop .lbl {
  display: block;
  font-size: 13px;
  color: #333;
  font-weight: 600;
  margin-bottom: 6px;
}

#winpop .lbl em {
  color: #e60012;
  font-style: normal;
  margin-left: 2px;
}

#winpop .ipt {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  background: #fafafa;
  font-family: inherit;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  outline: none;
}

#winpop .ipt:hover {
  border-color: #c8c8c8;
}

#winpop .ipt:focus {
  border-color: #e60012;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.08);
}

#winpop .ipt::placeholder {
  color: #b0b0b0;
}

#winpop .txta {
  resize: vertical;
  min-height: 80px;
  max-height: 200px;
  line-height: 1.6;
}

#winpop .filebox {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
}

#winpop .filetext {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
  cursor: default;
}

#winpop .filebtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: #fff;
  color: #e60012;
  border: 1px solid #e0e0e0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

#winpop .filebtn:hover {
  background: #e60012;
  color: #fff;
  border-color: #e60012;
}

#winpop .filereal {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
}

#winpop .button {
  display: block;
  width: 100%;
  border: none;
  height: 42px;
  line-height: 42px;
  padding: 0;
  background: linear-gradient(135deg, #e60012 0%, #fe883e 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(230, 0, 18, 0.25);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    opacity 0.2s;
  font-family: inherit;
}

#winpop .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(230, 0, 18, 0.35);
  opacity: 0.95;
}

#winpop .button:active {
  transform: translateY(0);
}

/* ====== 滚动条 ====== */
#winpop .bd::-webkit-scrollbar {
  width: 4px;
}

#winpop .bd::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

#winpop .bd::-webkit-scrollbar-track {
  background: transparent;
}

/* ====== 响应式 ====== */
@media screen and (max-width: 767px) {
  #winpop {
    display: none;
  }
}
