/* H5 用户端样式 - 服务监督处理平台 */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC",
    "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #2c2c2c;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #ffffff;
  padding: 22px 18px 40px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 4px 0 16px;
  letter-spacing: 0.5px;
}

.card {
  background: #f5f7fa;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 20px 18px 24px;
}

.subtitle {
  color: #b5b8bd;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #1d1d1f;
  margin-bottom: 8px;
  font-weight: 600;
}

.required {
  color: #e54040;
  margin-right: 2px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px 12px;
  font-size: 14px;
  color: #2c2c2c;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23999' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.form-group select:invalid { color: #b5b8bd; }
.form-group select option { color: #2c2c2c; }

.form-group textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1f3a93;
}

.upload-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 4px;
  background: #e5e7ea;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.upload-wrap input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-wrap .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  color: #ffffff;
  z-index: 1;
}

.upload-wrap .preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 1;
}

.upload-wrap.has-image .icon { display: none; }
.upload-wrap.has-image .preview { display: block; }

.btn-submit {
  display: block;
  width: 100%;
  margin-top: 28px;
  background: #0d2c5e;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 4px;
  transition: background 0.15s;
}

.btn-submit:hover { background: #163a73; }
.btn-submit:active { background: #0a224a; }
.btn-submit:disabled { background: #6f7a8e; cursor: not-allowed; }

.error-tip {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #b3261e;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 13px;
}

/* 微信用户条 */
.wx-user-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f7fa;
  border: 1px solid #ececec;
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  margin-bottom: 14px;
}
.wx-user-bar .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #d6dae0;
  object-fit: cover;
  flex-shrink: 0;
}
.wx-user-bar .name {
  flex: 1;
  font-size: 14px;
  color: #2c2c2c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wx-user-bar .name small { color: #999; font-size: 12px; margin-left: 4px; }

/* 成功页 */
.success-box {
  text-align: center;
  padding: 60px 20px;
}
.success-box .check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #28a745;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 18px;
}
.success-box h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #1d1d1f;
}
.success-box p {
  color: #888;
  margin: 0 0 28px;
  font-size: 14px;
}
.success-box .back-link {
  display: inline-block;
  padding: 10px 28px;
  background: #0d2c5e;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}
