/* ==========================================================================
   智慧西林 · 党建AI平台 —— 业务模块样式
   智慧农业 / 民生办事 / 反馈工单 / 管理员后台
   ========================================================================== */

/* ------------------------------------------------------------------ 通用 */
.green {
  --mod: #1f7a4d;
  --mod-2: #14603b;
}

.sec-tight {
  padding: 16px 16px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.6;
  font-weight: 500;
  white-space: nowrap;
}

.pill.red {
  color: #b0231f;
  background: #fdeeee;
}

.pill.amber {
  color: #96631c;
  background: #fdf4e4;
}

.pill.green {
  color: #1c7a5e;
  background: #eaf6f1;
}

.pill.blue {
  color: #1f5fa8;
  background: #edf3fc;
}

.pill.gray {
  color: #6b7178;
  background: #f2f2ef;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--red);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* 子页面头部 */
.sub-head {
  flex: none;
  padding-top: var(--safe-t);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 12;
}

.sub-head-row {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}

.sub-title {
  font-size: 15.5px;
  font-weight: 600;
  flex: 1;
  text-align: center;
  padding-right: 32px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-action {
  flex: none;
  font-size: 12px;
  color: var(--ink-2);
  border: 0;
  background: transparent;
  font-family: inherit;
  padding: 6px 8px;
  cursor: pointer;
}

/* ------------------------------------------------------------------ 首页快捷入口 */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 16px 0;
}

.quick-item {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.4;
}

.quick-item i {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 700;
  font-family: "Songti SC", "STSong", serif;
  font-style: normal;
  transition: transform .15s ease;
}

.quick-item:active i {
  transform: scale(.94);
}

.quick-item small {
  font-size: 11px;
  color: var(--ink-2);
}

/* 农业推荐大卡 */
.agri-card {
  margin: 16px;
  border-radius: 20px;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(90% 120% at 96% 4%, rgba(255, 232, 175, .30), transparent 58%),
    linear-gradient(135deg, #8ad6b3 0%, #77caa5 55%, #68bd97 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 30px -18px rgba(88, 168, 129, .45);
}

.agri-card::before {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 18px solid rgba(255, 255, 255, .06);
}

/* 西林特色水果装饰：沙糖桔 + 芒果 */
.ac-fruits {
  position: absolute;
  right: 14px;
  top: 10px;
  display: flex;
  align-items: flex-end;
  gap: 0;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .18));
}

.ac-fruits i {
  font-style: normal;
  font-size: 30px;
  line-height: 1;
}

.ac-fruits i:nth-child(1) { transform: rotate(-14deg) translateY(4px); }
.ac-fruits i:nth-child(2) { font-size: 36px; transform: rotate(6deg); z-index: 1; }
.ac-fruits i:nth-child(3) { transform: rotate(16deg) translateY(3px); }

.agri-card .ac-kicker {
  font-size: 10.5px;
  letter-spacing: .16em;
  color: rgba(14, 74, 52, .64);
  position: relative;
  z-index: 1;
}

.agri-card h3 {
  margin: 8px 0 6px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #0f4f36;
  position: relative;
  z-index: 1;
}

.agri-card p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(13, 66, 47, .80);
  max-width: 84%;
  position: relative;
  z-index: 1;
}

.agri-tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.agri-tags span {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(255, 255, 255, .8);
  color: #17573f;
}

.agri-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #17784f;
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .16);
}

.agri-cta svg {
  width: 14px;
  height: 14px;
}

/* 公告条 */
.notice-strip {
  margin: 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-2);
  cursor: pointer;
}

.notice-strip .ns-tag {
  flex: none;
  font-size: 9.5px;
  color: #96631c;
  background: #fdf4e4;
  padding: 2px 6px;
  border-radius: 5px;
}

.notice-strip .ns-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ 智慧农业首页 */
.agri-hero {
  flex: none;
  padding: calc(14px + var(--safe-t)) 18px 46px;
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(255, 214, 130, .3), transparent 58%),
    linear-gradient(140deg, #24835a 0%, #14603b 58%, #0d442a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.agri-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 16px);
}

.agri-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
}

.agri-hero p {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .8);
  max-width: 290px;
}

.agri-stat {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  margin-top: 16px;
}

.agri-stat b {
  font-size: 19px;
  font-family: Georgia, serif;
  font-weight: 700;
}

.agri-stat span {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, .68);
  margin-top: 2px;
}

/* 拍一张卡片 */
.scan-card {
  margin: -30px 16px 0;
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 12px 28px -14px rgba(20, 70, 46, .4);
  position: relative;
  z-index: 2;
}

.scan-title {
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scan-title .st-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35b37e;
  box-shadow: 0 0 0 3px rgba(53, 179, 126, .16);
}

.scan-sub {
  font-size: 11.5px;
  color: var(--ink-3);
  margin: 6px 0 12px;
  line-height: 1.6;
}

.scan-actions {
  display: flex;
  gap: 9px;
}

.scan-btn {
  flex: 1;
  height: 44px;
  border-radius: 13px;
  border: 1px solid #e2efe8;
  background: #f2faf6;
  color: #14603b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}

.scan-btn svg {
  width: 17px;
  height: 17px;
}

.scan-btn.primary {
  background: linear-gradient(135deg, #24835a, #12603c);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(18, 96, 60, .9);
}

.scan-btn:active {
  transform: scale(.985);
}

.scan-tip {
  margin-top: 10px;
  font-size: 10.5px;
  color: #a3a8ae;
  line-height: 1.6;
}

/* 诊断流程页 */
.up-grid {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.up-thumb {
  width: 82px;
  height: 82px;
  border-radius: 13px;
  position: relative;
  overflow: hidden;
  background: #f1f1ed;
  border: 1px solid var(--line);
}

.up-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.up-thumb .del {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.up-thumb .del svg {
  width: 11px;
  height: 11px;
}

.up-add {
  width: 82px;
  height: 82px;
  border-radius: 13px;
  border: 1.5px dashed #cfd8d2;
  background: #fafcfb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #6d8a7c;
  font-size: 10.5px;
  cursor: pointer;
  font-family: inherit;
}

.up-add svg {
  width: 20px;
  height: 20px;
}

.upload-zone {
  border: 1.5px dashed #cfd8d2;
  border-radius: 15px;
  background: #fafcfb;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
}

.upload-zone .uz-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: #eaf6f0;
  color: #1f7a4d;
  display: grid;
  place-items: center;
}

.upload-zone .uz-icon svg {
  width: 23px;
  height: 23px;
}

.upload-zone b {
  font-size: 13.5px;
  display: block;
}

.upload-zone span {
  font-size: 11px;
  color: var(--ink-3);
  display: block;
  margin-top: 5px;
  line-height: 1.6;
}

.form-label {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
  margin: 18px 0 9px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-label i {
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 400;
}

.chip-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-select .chip.on {
  background: #eaf6f0;
  border-color: #a9d6c0;
  color: #14603b;
  font-weight: 600;
}

/* 语音输入 */
.voice-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.voice-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #d9e7df;
  background: #f2faf6;
  color: #1f7a4d;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  position: relative;
}

.voice-btn svg {
  width: 18px;
  height: 18px;
}

.voice-btn.rec {
  background: #fdeceb;
  border-color: #f3c8c5;
  color: var(--red);
}

.voice-btn.rec::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(193, 39, 45, .35);
  animation: pulse 1.3s ease-out infinite;
}

@keyframes pulse {
  from {
    transform: scale(.9);
    opacity: .9;
  }

  to {
    transform: scale(1.35);
    opacity: 0;
  }
}

.voice-hint {
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* 诊断结果 */
.diag-hero {
  margin: 14px 16px 0;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.diag-cover {
  display: flex;
  gap: 12px;
  padding: 13px;
  align-items: center;
}

.diag-cover img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  background: #f1f1ed;
}

.diag-cover .dc-meta {
  flex: 1;
  min-width: 0;
}

.diag-cover .dc-crop {
  font-size: 12px;
  color: var(--ink-3);
}

.diag-cover .dc-name {
  font-size: 17px;
  font-weight: 700;
  margin-top: 4px;
  line-height: 1.3;
}

.diag-cover .dc-tags {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.diag-body {
  border-top: 1px solid #f3f2ee;
  padding: 14px 15px 16px;
}

.diag-sec {
  margin-bottom: 14px;
}

.diag-sec:last-child {
  margin-bottom: 0;
}

.diag-sec h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

.diag-sec h4::before {
  content: "";
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: #1f7a4d;
}

.diag-sec p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}

.advice-card {
  border: 1px solid #eef1ee;
  background: #fbfdfc;
  border-radius: 12px;
  padding: 10px 11px;
  margin-bottom: 8px;
}

.advice-card .ac-tag {
  display: inline-block;
  font-size: 9.5px;
  padding: 1px 7px;
  border-radius: 5px;
  background: #eaf6f0;
  color: #14603b;
  margin-bottom: 5px;
  font-weight: 600;
}

.advice-card p {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.conf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.conf-bar {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #eef0ee;
  overflow: hidden;
}

.conf-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #35b37e, #1f7a4d);
}

.conf-num {
  font-size: 10.5px;
  color: var(--ink-3);
  flex: none;
}

.ai-answer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 12px 16px 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}

.ai-answer .ai-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.ai-answer .ai-head b {
  color: var(--ink);
  font-size: 12.5px;
}

.ai-answer h4 {
  margin: .8em 0 .4em;
  font-size: 13.5px;
  color: #14603b;
}

.ai-answer p {
  margin: 0 0 .6em;
}

.ai-answer ul,
.ai-answer ol {
  margin: .3em 0 .7em;
  padding-left: 1.2em;
}

.ai-answer table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: .5em 0;
}

.ai-answer th,
.ai-answer td {
  border: 1px solid #ecece8;
  padding: 5px 7px;
}

.bottom-actions {
  display: flex;
  gap: 9px;
  padding: 16px;
}

.bottom-actions .btn {
  height: 44px;
  font-size: 13.5px;
}

.btn.green {
  background: linear-gradient(135deg, #24835a, #12603c);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px -10px rgba(18, 96, 60, .9);
}

.btn.ghost {
  background: #fff;
  color: var(--ink-2);
}

/* 农技员 */
.expert-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  margin-bottom: 10px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.exp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #14603b;
  background: #eaf6f0;
  font-family: "Songti SC", serif;
  position: relative;
}

.exp-avatar .on {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #35b37e;
  border: 2px solid #fff;
}

.exp-info {
  flex: 1;
  min-width: 0;
}

.exp-name {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exp-org {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 3px;
}

.exp-skills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.exp-skills span {
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #f4f7f5;
  color: #5c6b63;
}

.exp-side {
  flex: none;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.call-btn {
  border: 0;
  background: linear-gradient(135deg, #24835a, #12603c);
  color: #fff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.call-btn svg {
  width: 12px;
  height: 12px;
}

.exp-time {
  font-size: 9.5px;
  color: #a8adb4;
  line-height: 1.4;
}

/* 记录行 */
.rec-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
  cursor: pointer;
}

.rec-row img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  background: #f2f2ee;
}

.rec-main {
  flex: 1;
  min-width: 0;
}

.rec-main h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-main p {
  margin: 4px 0 0;
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------------ 办事 */
.svc-hero {
  flex: none;
  padding: calc(14px + var(--safe-t)) 18px 44px;
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(227, 183, 120, .28), transparent 58%),
    linear-gradient(140deg, #b81e24 0%, #9c1418 58%, #7d0f13 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.svc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 15px);
}

.svc-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 22px;
  letter-spacing: .03em;
}

.svc-hero p {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .8);
  max-width: 300px;
}

.svc-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 11px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.svc-card:active {
  transform: scale(.99);
}

.svc-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  font-family: "Songti SC", serif;
  flex: none;
}

.svc-main {
  flex: 1;
  min-width: 0;
}

.svc-name {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}

.svc-sub {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 4px;
}

.svc-meta {
  font-size: 10px;
  color: #a8adb4;
  margin-top: 6px;
  display: flex;
  gap: 10px;
}

.myapp-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px;
  margin-bottom: 10px;
  cursor: pointer;
}

.myapp-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.myapp-no {
  font-size: 10.5px;
  color: var(--ink-3);
  font-family: "SFMono-Regular", Consolas, monospace;
  margin-left: auto;
}

.myapp-name {
  font-size: 13.5px;
  font-weight: 600;
}

.myapp-progress {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: var(--ink-3);
}

.mini-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #f0f0ec;
  overflow: hidden;
}

.mini-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #e3b778, #c1272d);
  border-radius: 2px;
}

/* 事项详情 */
.svc-detail-head {
  background: #fff;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.svc-detail-head h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.svc-detail-head .sd-sub {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 6px;
}

.sd-grid {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.sd-item {
  flex: 1;
  background: #faf9f6;
  border-radius: 10px;
  padding: 8px 9px;
}

.sd-item span {
  font-size: 9.5px;
  color: var(--ink-3);
  display: block;
}

.sd-item b {
  font-size: 11.5px;
  font-weight: 600;
  display: block;
  margin-top: 3px;
  line-height: 1.5;
}

.block {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin: 12px 16px 0;
  padding: 14px 15px;
}

.block h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}

.block h3 em {
  font-style: normal;
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 400;
}

.cond-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cond-list li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 5px;
}

.cond-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d9c9b4;
}

.mat-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mat;
}

.mat-list li {
  counter-increment: mat;
  position: relative;
  padding-left: 26px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.mat-list li::before {
  content: counter(mat);
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

/* 流程时间轴 */
.flow {
  position: relative;
  padding-left: 22px;
}

.flow::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 12px;
  width: 1.5px;
  background: #ece9e3;
}

.flow-item {
  position: relative;
  padding-bottom: 15px;
}

.flow-item:last-child {
  padding-bottom: 0;
}

.flow-item .fi-dot {
  position: absolute;
  left: -22px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ddd7cd;
  display: grid;
  place-items: center;
  font-size: 8px;
  color: #fff;
}

.flow-item.done .fi-dot {
  background: #c1272d;
  border-color: #c1272d;
}

.flow-item.now .fi-dot {
  background: #fff;
  border-color: #c1272d;
  box-shadow: 0 0 0 4px rgba(193, 39, 45, .13);
}

.flow-item.now .fi-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c1272d;
}

.flow-item h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.flow-item p {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.6;
}

.flow-item .fi-who {
  font-size: 9.5px;
  color: #b0a89c;
  margin-top: 3px;
}

/* 状态标签 */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
}

.st-wait {
  background: #fdf4e4;
  color: #96631c;
}

.st-doing {
  background: #edf3fc;
  color: #1f5fa8;
}

.st-done {
  background: #eaf6f1;
  color: #1c7a5e;
}

.st-reject {
  background: #fdeeee;
  color: #b0231f;
}

/* 表单 */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 12px 16px 0;
  padding: 4px 15px 16px;
}

.form-row {
  padding: 12px 0 4px;
  border-bottom: 1px solid #f6f5f1;
}

.form-row:last-child {
  border-bottom: 0;
}

.form-row label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 7px;
}

.form-row label .req {
  color: var(--red);
  font-size: 12px;
}

.form-row input[type=text],
.form-row input[type=tel],
.form-row input[type=number],
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid #eae7e1;
  background: #faf9f7;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  outline: 0;
  transition: border-color .15s ease, background .15s ease;
  appearance: none;
}

.form-row textarea {
  min-height: 76px;
  resize: vertical;
  line-height: 1.6;
  font-size: 14px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #e8b3af;
  background: #fff;
}

.form-row .err {
  font-size: 10.5px;
  color: var(--red);
  margin-top: 4px;
  display: none;
}

.form-row.invalid input,
.form-row.invalid select,
.form-row.invalid textarea {
  border-color: #e79b96;
  background: #fffafa;
}

.form-row.invalid .err {
  display: block;
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px 16px 0;
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.65;
}

.check-row input {
  margin-top: 2px;
  accent-color: #c1272d;
  width: 15px;
  height: 15px;
  flex: none;
}

/* 反馈 */
.fb-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fb-reasons .chip.on {
  background: #fdeeee;
  border-color: #efbdba;
  color: #b0231f;
  font-weight: 600;
}

.rating-row {
  display: flex;
  gap: 9px;
}

.rating-opt {
  flex: 1;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #faf9f7;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.rating-opt.on {
  border-color: #e8b3af;
  background: #fdf3f2;
  color: var(--red);
  font-weight: 600;
}

.rating-opt.on.good {
  border-color: #a9d6c0;
  background: #eef8f3;
  color: #14603b;
}

/* ------------------------------------------------------------------ 管理员 */
.admin-head {
  flex: none;
  padding: calc(14px + var(--safe-t)) 18px 16px;
  background: linear-gradient(140deg, #2c333a, #1b2126);
  color: #fff;
}

.admin-head h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.admin-head p {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.6;
}

.admin-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab {
  flex: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  color: var(--ink-2);
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.admin-tab.on {
  background: #1b2126;
  border-color: #1b2126;
  color: #fff;
  font-weight: 600;
}

.admin-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  margin-bottom: 9px;
}

.admin-row .ar-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-row .ar-name {
  font-size: 13.5px;
  font-weight: 600;
}

.admin-row .ar-meta {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 5px;
  line-height: 1.6;
}

.admin-row .ar-body {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 8px;
  line-height: 1.7;
  background: #faf9f6;
  border-radius: 9px;
  padding: 8px 10px;
}

.ar-actions {
  display: flex;
  gap: 7px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.mini-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.mini-btn.dark {
  background: #1b2126;
  border-color: #1b2126;
  color: #fff;
}

.mini-btn.red {
  color: var(--red);
  border-color: #f0d3d1;
}

.admin-fab {
  position: sticky;
  bottom: 12px;
  margin: 14px 16px 8px;
  width: calc(100% - 32px);
  height: 46px;
  border-radius: 13px;
  border: 0;
  background: linear-gradient(135deg, #c1272d, #96131a);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 10px 22px -12px rgba(150, 19, 26, .9);
  cursor: pointer;
}

.admin-fab svg {
  width: 16px;
  height: 16px;
}

.pin-box {
  margin: 40px 24px;
  text-align: center;
}

.pin-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: #1b2126;
  color: #e8c07a;
  display: grid;
  place-items: center;
}

.pin-icon svg {
  width: 28px;
  height: 28px;
}

.pin-box h2 {
  margin: 0;
  font-size: 17px;
}

.pin-box p {
  margin: 8px 0 18px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.7;
}

.pin-input {
  width: 100%;
  height: 50px;
  text-align: center;
  font-size: 22px;
  letter-spacing: .5em;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  outline: 0;
  padding-left: .5em;
}

.pin-input:focus {
  border-color: #e8b3af;
}

.empty-mini {
  text-align: center;
  padding: 40px 24px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.8;
}

.empty-mini b {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 6px;
}

/* 底部服务条 */
.svc-bar {
  flex: none;
  display: flex;
  gap: 9px;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.svc-bar .btn {
  height: 44px;
  font-size: 13.5px;
}

/* ------------------------------------------------------------------ 加载遮罩 */
.loading {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 16, 14, .38);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
}

.loading[hidden] {
  display: none;
}

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .28);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .92);
  letter-spacing: .02em;
}

/* 诊断中的扫描动效 */
.scanning {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.scanning::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7be0ad, transparent);
  animation: scanmove 1.6s ease-in-out infinite;
}

@keyframes scanmove {
  0% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

/* 无图占位 */
.rec-row-ph,
.diag-ph {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  background: #eaf6f0;
  color: #14603b;
  font-size: 15px;
  font-weight: 700;
  font-family: "Songti SC", serif;
}

.diag-ph {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  font-size: 20px;
}

/* 首页 hero 无横幅重叠时收紧底部 */
.hero-home {
  padding-bottom: 24px;
}

/* 管理员返回 */
.admin-head .back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .62);
  background: transparent;
  border: 0;
  font-family: inherit;
  padding: 0;
  margin-bottom: 10px;
  cursor: pointer;
}

.admin-head .back svg {
  width: 13px;
  height: 13px;
}

/* ================================================================ 后台 · 党费收缴 */
.fee-month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #2b3040;
  color: #fff;
  margin-bottom: 12px;
}

.fee-month-bar b {
  font-size: 15px;
  letter-spacing: .04em;
}

.fee-month-bar .mini-btn {
  min-width: 64px;
  justify-content: center;
}

.fee-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.fee-stats > div {
  background: #fff;
  border: 1px solid #ececf2;
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}

.fee-stats b {
  display: block;
  font-size: 13.5px;
  color: #c1272d;
  white-space: nowrap;
}

.fee-stats > div:nth-child(2) b {
  color: #14603b;
}

.fee-stats > div:nth-child(3) b {
  color: #96631c;
}

.fee-stats > div:nth-child(4) b {
  color: #2b3040;
}

.fee-stats span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #8a8f99;
}

.fee-bar {
  height: 8px;
  border-radius: 6px;
  background: #ececf2;
  overflow: hidden;
}

.fee-bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #c1272d, #e0563c);
  transition: width .4s ease;
}

.fee-note {
  margin-top: 6px;
  font-size: 11px;
  color: #8a8f99;
}

.fee-sec {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 8px;
  font-size: 13.5px;
  color: #2b3040;
}

.fee-sec span {
  font-size: 10.5px;
  font-weight: 400;
  color: #9aa0ab;
}

.fee-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fee-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #ececf2;
  border-radius: 12px;
  padding: 10px 12px;
}

.fee-row.paid {
  background: #f4faf6;
  border-color: #d9ecdf;
}

.fee-ava {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  background: #fdf1f0;
  color: #c1272d;
  font-size: 14px;
  font-weight: 700;
  font-family: "Songti SC", serif;
}

.fee-ava.gray {
  background: #f1f2f5;
  color: #6b7280;
}

.fee-main {
  min-width: 0;
  flex: 1;
}

.fee-main b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: #2b3040;
}

.fee-main small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: #8a8f99;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fee-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.fee-right > b {
  font-size: 13px;
  color: #c1272d;
  min-width: 56px;
  text-align: right;
}

.fee-logs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fee-log {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: #6b7280;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid #ececf2;
  border-radius: 10px;
}

.fee-log time {
  color: #9aa0ab;
  flex: none;
}
