:root {
  --page-bg: #ededed;
  --panel-bg: #ffffff;
  --text-main: #14171a;
  --text-muted: #8a8f99;
  --line: #e9e9e9;
  --accent: #576b95;
  --wechat-green: #07c160;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--page-bg);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
textarea {
  font: inherit;
}

.phone-page {
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page-bg);
  overflow: hidden;
}

.screen {
  min-height: 100vh;
}

.screen[hidden] {
  display: none;
}

.page-title {
  margin: 48px 0 24px;
  padding: 0 32px;
  color: #7f8389;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.reason-list.weui-cells {
  width: 100%;
  margin-top: 0;
  background: var(--panel-bg);
}

.reason-list.weui-cells::before,
.reason-list.weui-cells::after {
  display: none;
}

.reason-item.weui-cell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 18px;
  color: var(--text-main);
  text-decoration: none;
}

.reason-item.weui-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 0;
  height: 1px;
  background: var(--line);
  transform: scaleY(0.5);
  transform-origin: 0 0;
}

.reason-item.weui-cell:first-child::before {
  display: none;
}

.reason-item .weui-cell__bd {
  flex: 1;
  min-width: 0;
  padding-right: 20px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.24;
  white-space: normal;
}

.reason-item .weui-cell__ft::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 21px;
  width: 13px;
  height: 13px;
  margin-top: -7px;
  border-style: solid;
  border-width: 2px 2px 0 0;
  border-color: #c6c6c6;
  transform: rotate(45deg);
}

.notice-link {
  display: block;
  width: 100%;
  height: 88px;
  margin: 0;
  border: 0;
  background: var(--page-bg);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.category-screen .page-title {
  margin-bottom: 10px;
}

.block-help-link {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  background: var(--page-bg);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 50px;
  text-align: left;
}

.guide-link {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  background: var(--page-bg);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 56px;
  text-align: left;
}

.notice-link--category {
  height: 72px;
}

.form-content {
  min-height: 100vh;
  padding: 0;
  background: var(--page-bg);
}

.evidence-panel {
  min-height: 194px;
  padding: 20px 17px 18px;
  border-top: 1px solid #dcdcdc;
  border-bottom: 1px solid var(--line);
  background: var(--panel-bg);
}

.evidence-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.evidence-title-row h1 {
  margin: 0;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.evidence-title-row span {
  color: #a7a9ad;
  font-size: 18px;
  font-weight: 700;
}

.evidence-title-row b {
  font-weight: inherit;
}

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

.upload-placeholder {
  position: relative;
  width: 112px;
  height: 112px;
  border: 0;
  background: #f1f1f1;
}

.upload-placeholder::before,
.upload-placeholder::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #9c9c9c;
  transform: translate(-50%, -50%);
}

.upload-placeholder::before {
  width: 42px;
  height: 2px;
}

.upload-placeholder::after {
  width: 2px;
  height: 42px;
}

.image-input {
  display: none;
}

.image-preview {
  position: relative;
  width: 112px;
  height: 112px;
  overflow: hidden;
  background: #f1f1f1;
}

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

.image-preview__remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border: 0;
  background: rgba(0, 0, 0, 0.48);
}

.image-preview__remove::before,
.image-preview__remove::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 6px;
  width: 12px;
  height: 2px;
  background: #ffffff;
}

.image-preview__remove::before {
  transform: rotate(45deg);
}

.image-preview__remove::after {
  transform: rotate(-45deg);
}

.complaint-panel {
  position: relative;
  min-height: 142px;
  padding: 24px 17px 34px;
  background: var(--panel-bg);
}

.complaint-counter {
  position: absolute;
  right: 17px;
  bottom: 20px;
}

.weui-textarea {
  display: block;
  width: 100%;
  min-height: 124px;
  padding: 0;
  border: 0;
  outline: none;
  color: var(--text-main);
  background: transparent;
  font-size: 16px;
  line-height: 1.6;
  resize: none;
}

.complaint-textarea {
  min-height: 76px;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.complaint-textarea::placeholder {
  color: #b7bbc0;
  opacity: 1;
}

.weui-textarea-counter {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 700;
  text-align: right;
}

.submit-panel {
  min-height: calc(100vh - 336px);
  padding-top: 54px;
  background: var(--page-bg);
}

.submit-button {
  display: block;
  width: 212px;
  height: 44px;
  margin: 0 auto;
  border: 1px solid #f5f5f5;
  border-radius: 4px;
  background: #ffffff;
  color: #bfc2c6;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.submit-button--active {
  border-color: var(--wechat-green);
  background: var(--wechat-green);
  color: #ffffff;
}

.notice-page {
  background: #ffffff;
}

.notice-article {
  min-height: 100vh;
  padding: 64px 18px 48px;
  background: #ffffff;
}

.notice-article h1 {
  margin: 0 0 68px;
  color: var(--text-main);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.notice-article p {
  margin: 0 0 36px;
  color: var(--text-main);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.78;
  text-align: left;
}

.success-page {
  position: relative;
  min-height: 100vh;
  background: var(--page-bg);
}

.success-content {
  padding: 68px 30px 0;
  text-align: center;
}

.success-icon {
  position: relative;
  width: 62px;
  height: 62px;
  margin: 0 auto 54px;
  border-radius: 50%;
  background: var(--wechat-green);
}

.success-icon::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 17px;
  width: 28px;
  height: 15px;
  border: solid #ffffff;
  border-width: 0 0 5px 5px;
  transform: rotate(-45deg);
}

.success-content h1 {
  margin: 0 0 26px;
  color: var(--text-main);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
}

.success-content p {
  max-width: 330px;
  margin: 0 auto;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.68;
}

.success-close-button {
  position: absolute;
  left: 50%;
  bottom: 56px;
  width: 214px;
  height: 45px;
  border: 0;
  border-radius: 4px;
  background: var(--wechat-green);
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  transform: translateX(-50%);
}

@media (max-width: 360px) {
  .reason-item .weui-cell__bd {
    font-size: 16px;
  }

  .notice-article p {
    font-size: 18px;
  }
}
