/* ========== 合规举报页面样式 ========== */
/* 使用高优先级选择器覆盖网站全局样式 */

/* 修复nav覆盖表单的问题 */
.nav {
  height: auto !important;
  z-index: 1000;
  position: relative;
}

.pageHeader {
  position: relative;
  z-index: 1001;
}

/* 确保表单可交互 */
.report-page-wrapper {
  position: relative;
  z-index: 1;
}

/* 页面容器 */
.report-page-wrapper {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

/* 卡片容器 */
.report-card {
  display: flex;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  min-height: 700px;
}

/* ========== 左侧区域 ========== */
.report-left {
  width: 27%;
  flex-shrink: 0;
  overflow: hidden;
}

.report-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px 0 0 14px;
}

/* ========== 右侧表单区域 ========== */
.report-right {
  flex: 1;
  padding: 40px 48px 36px 40px;
}

/* 标题 */
.report-right .report-title {
  font-size: 21px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.4;
  margin: 0 0 16px 0;
}

/* 说明文字 */
.report-right .report-desc {
  font-size: 13.5px;
  color: #888888;
  line-height: 1.9;
  margin: 0 0 30px 0;
  font-weight: 400;
}

.report-right .report-desc strong {
  color: #666666;
  font-weight: 600;
}

/* ========== 表单行 ========== */
.report-right .form-row {
  display: flex;
  gap: 22px;
  margin-bottom: 20px;
}

.report-right .form-row .form-group {
  flex: 1;
}

/* ========== 表单组 ========== */
.report-right .form-group {
  margin-bottom: 20px;
}

.report-right .form-group-full {
  width: 100%;
}

.report-right .form-group label {
  display: block;
  font-size: 14px;
  color: #333333;
  font-weight: 500;
  margin-bottom: 8px;
}

.report-right .required {
  color: #E53935;
  margin-right: 4px;
}

/* 强制覆盖全局输入框样式 */
.report-right .form-group input[type="text"],
.report-right .form-group textarea {
  width: 100%;
  height: 42px !important;
  border: 1px solid #D9D9D9 !important;
  border-radius: 5px !important;
  background: #FFFFFF !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  color: #333333 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  outline: none !important;
  font-family: inherit !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  float: none !important;
  line-height: normal !important;
}

.report-right .form-group textarea {
  height: 150px !important;
  padding: 12px 14px !important;
  resize: vertical;
  line-height: 1.6 !important;
}

.report-right .form-group input[type="text"]:focus,
.report-right .form-group textarea:focus {
  border-color: #1890FF !important;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1) !important;
}

.report-right .form-group input::placeholder,
.report-right .form-group textarea::placeholder {
  color: #BFBFBF !important;
}

/* ========== 错误状态 ========== */
.report-right .input-error {
  border-color: #E53935 !important;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.1) !important;
}

.report-right .error-msg {
  display: block;
  font-size: 12px;
  color: #E53935;
  margin-top: 4px;
}

/* ========== 上传区域 ========== */
.report-right .upload-area {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 4px;
}

.report-right .upload-btn {
  width: 90px;
  height: 90px;
  border: 2px dashed #D9D9D9;
  border-radius: 6px;
  background: #FAFAFA;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.report-right .upload-btn:hover {
  border-color: #1890FF;
}

.report-right .upload-btn:hover .upload-icon {
  color: #1890FF;
}

.report-right .upload-icon {
  font-size: 30px;
  color: #BFBFBF;
  line-height: 1;
  user-select: none;
  transition: color 0.2s ease;
}

.report-right .upload-info {
  padding-top: 8px;
}

.report-right .upload-info p {
  font-size: 13px;
  color: #999999;
  margin: 0;
  line-height: 1.8;
}

.report-right .file-list {
  margin-top: 10px;
}

.report-right .file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #F9F9F9;
  border: 1px solid #E8E8E8;
  border-radius: 4px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #555;
}

.report-right .file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 10px;
}

.report-right .file-status {
  font-size: 12px;
  margin-right: 10px;
}

.report-right .file-status.success {
  color: #52C41A;
}

.report-right .file-status.error {
  color: #E53935;
}

.report-right .file-status.uploading {
  color: #1890FF;
}

.report-right .file-remove {
  cursor: pointer;
  color: #E53935;
  font-size: 16px;
  padding: 0 4px;
}

.report-right .file-remove:hover {
  color: #C62828;
}

/* ========== 举报人信息 ========== */
.report-right .reporter-section {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid #F0F0F0;
}

.report-right .reporter-note {
  font-size: 13px;
  color: #999999;
  line-height: 1.8;
  margin: 0 0 16px 0;
}

/* ========== 提交按钮 ========== */
.report-right .submit-btn {
  display: block;
  width: 160px;
  height: 42px;
  margin: 30px auto 0;
  background: #1890FF;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  letter-spacing: 2px;
}

.report-right .submit-btn:hover {
  background: #096DD9;
}

.report-right .submit-btn:active {
  background: #0050B3;
}

.report-right .submit-btn:disabled {
  background: #A0CFFF;
  cursor: not-allowed;
}

/* ========== 提交成功提示 ========== */
.report-right .report-success {
  text-align: center;
  padding: 60px 20px;
}

.report-right .report-success .success-icon {
  font-size: 64px;
  color: #52C41A;
  margin-bottom: 20px;
}

.report-right .report-success h3 {
  font-size: 20px;
  color: #1A1A1A;
  margin: 0 0 12px 0;
}

.report-right .report-success p {
  font-size: 14px;
  color: #888888;
  margin: 0 0 30px 0;
}

.report-right .report-success .back-btn {
  display: inline-block;
  padding: 10px 30px;
  background: #1890FF;
  color: #FFFFFF;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.report-right .report-success .back-btn:hover {
  background: #096DD9;
}

/* ========== 响应式适配 ========== */

/* 平板适配 */
@media (max-width: 1023px) {
  .report-card {
    flex-direction: column;
    min-height: auto;
  }
  .report-left {
    width: 100%;
    height: 200px;
  }
  .report-left img {
    border-radius: 14px 14px 0 0;
  }
  .report-right {
    padding: 30px 24px;
  }
}

/* 手机端适配 */
@media (max-width: 767px) {
  /* 强制覆盖全局 min-width */
  html, body, .wrap {
    min-width: 0 !important;
    width: auto !important;
  }
  html {
    overflow-x: visible !important;
  }

  /* 隐藏 header、导航、栏目Banner、footer、装饰图 */
  .pageHeader,
  .nav,
  .xc_banner,
  .report-left,
  footer,
  footer.foot,
  footer.foot.shown,
  .foot,
  .foot.shown,
  .foot_center,
  .foot_bottom {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* 重置 body 和页面容器 */
  body {
    overflow-x: hidden !important;
  }
  .report-page-wrapper {
    max-width: 100%;
    margin: 0 auto 20px;
    padding: 0 12px;
  }
  .report-card {
    border-radius: 0;
    box-shadow: none;
    min-height: auto;
  }

  /* 表单区域 */
  .report-right {
    padding: 16px 12px;
  }
  .report-right .report-title {
    font-size: 18px;
  }
  .report-right .report-desc {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  /* 表单单列布局 */
  .report-right .form-row {
    flex-direction: column;
    gap: 0;
  }

  /* 输入框适配 */
  .report-right .form-group input[type="text"],
  .report-right .form-group textarea {
    height: 40px !important;
    font-size: 16px !important;
  }
  .report-right .form-group textarea {
    height: 120px !important;
  }

  /* 上传区域 */
  .report-right .upload-area {
    flex-direction: column;
    align-items: stretch;
  }
  .report-right .upload-btn {
    width: 100%;
    height: 60px;
  }

  /* 提交按钮全宽 */
  .report-right .submit-btn {
    width: 100%;
    height: 44px;
    font-size: 16px;
  }
}
