/* 投诉建议页面样式 - 响应式 */

/* 基础变量 */
:root {
  --primary-color: #1a3a7a;
  --primary-light: #2d5aa0;
  --text-color: #000000;
  --text-light: #666;
  --border-color: #e0e0e0;
  --bg-gray: #f5f5f5;
  --required-color: #ff4d4f;
}

/* 容器 */
.complaint-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  min-height: calc(100vh - 200px);
}

/* PC端头部 */
.pc-header {
  text-align: center;
  padding: 100px 0 60px 0;
  display: block;
}

.page-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 18px;
  color: #ccc;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.title-underline {
  width: 60px;
  height: 3px;
  background: var(--required-color);
  margin: 0 auto;
}

/* H5端头部 */
.h5-header {
  display: none;
  position: relative;
  text-align: center;
  padding: 15px;
  background-color: #fff;
}

.back-btn {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--text-color);
  cursor: pointer;
}

.h5-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* 内容区域 */
.complaint-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 区块 */
.section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 15px;
}

.required {
  color: var(--required-color);
  margin-right: 4px;
}

/* 电话区域 */
.phone-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-icon-wapper{
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a3a7a;
  border-radius: 50%;
}
.phone-icon {
  width: 16px;
  height: 16px;
}

.phone-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.phone-number:hover {
  color: var(--primary-light);
}

.phone-ext {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
}

/* 投诉类型 - 下拉选择框 */
.type-select-wrapper {
  position: relative;
}

.type-select {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-color);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  outline: none;
}

.type-select:focus {
  border-color: #283c72;
}

.type-select option:checked,
.type-select option:hover {
  background-color: #283c72;
  color: #fff;
}

.type-select-wrapper::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-light);
  pointer-events: none;
}

/* 表单 */
.form-group {
  margin-bottom: 15px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

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

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

.textarea-group {
  position: relative;
}

.char-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 12px;
  color: var(--text-light);
}

/* 上传区域 */
.upload-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.upload-btn {
  width: 120px;
  height: 120px;
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s;
}

.upload-btn:hover {
  border-color: var(--primary-color);
}

.plus-icon {
  font-size: 30px;
  color: var(--text-light);
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-item {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.preview-item .loading {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray);
  font-size: 12px;
  color: var(--text-light);
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.delete-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

/* 提交按钮 */
.submit-section {
  margin-top: 40px;
  text-align: center;
}

.submit-btn {
  width: 100%;
  max-width: 300px;
  padding: 14px 40px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

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

/* 弹窗 */
.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  min-width: 280px;
  max-width: 90%;
  text-align: center;
}

.modal-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
}

.modal-msg {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.modal-btn {
  padding: 10px 30px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* H5响应式 */
@media screen and (max-width: 768px) {
  .complaint-container {
    padding: 0;
  }

  .pc-header {
    display: none;
  }

  .h5-header {
    display: block;
  }

  .complaint-content {
    padding: 20px 15px;
  }

  .section-title {
    font-size: 15px;
  }

  /* H5下拉选择框样式优化 */
  .type-select {
    padding: 15px 40px 15px 15px;
    font-size: 15px;
  }

  /* H5电话 */
  .phone-box {
    padding: 10px 0;
  }

  .phone-number {
    font-size: 16px;
  }

  /* H5提交按钮 */
  .submit-section {
    padding: 20px 0;
  }

  .submit-btn {
    max-width: 100%;
    border-radius: 25px;
  }
}

/* 小屏幕优化 */
@media screen and (max-width: 375px) {
  .upload-btn,
  .preview-item {
    width: 70px;
    height: 70px;
  }
}
