/* ===== 薄荷绿 · 科技风 · 响应式 ===== */
:root {
  --mint-50: #ecfdf5;
  --mint-100: #d1f7e7;
  --mint-200: #a8efd1;
  --mint-300: #7be3ba;
  --mint-400: #45d0a0;
  --mint-500: #1fc38b;
  --mint-600: #12a877;
  --mint-700: #0d8a62;
  --mint-800: #0e6e50;
  --mint-900: #0b4f3a;

  --ink: #0b3d2e;
  --ink-2: #2f6b57;
  --muted: #6fa394;

  --card-bg: rgba(255, 255, 255, 0.88);
  --line: rgba(18, 168, 119, 0.16);
  --shadow: 0 14px 40px rgba(13, 138, 98, 0.14);
  --shadow-sm: 0 6px 18px rgba(13, 138, 98, 0.10);
  --radius: 18px;
  --grad: linear-gradient(135deg, #1fc38b 0%, #0d8a62 100%);
  --grad-soft: linear-gradient(135deg, rgba(31, 195, 139, 0.12), rgba(13, 138, 98, 0.06));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(31, 195, 139, 0.18), transparent 60%),
    radial-gradient(800px 420px at 100% 0%, rgba(13, 138, 98, 0.14), transparent 55%),
    linear-gradient(180deg, #eefcf6 0%, #e3f9ef 45%, #dcf6ea 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* 科技网格底纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(18, 168, 119, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 168, 119, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35) 60%, transparent);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 顶部导航 ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(18, 168, 119, 0.35);
  flex: none;
}

.link-admin {
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-admin:hover {
  border-color: var(--mint-500);
  color: var(--mint-700);
  box-shadow: var(--shadow-sm);
}

/* ===== 主视觉 ===== */
.hero { text-align: center; padding: 46px 0 14px; }

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4.6vw, 42px);
  line-height: 1.25;
  font-weight: 900;
  background: linear-gradient(120deg, #0e6e50, #12a877 55%, #45d0a0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  margin: 0 auto 30px;
  max-width: 560px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
}

.hero .steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 34px;
}

.hero .steps span {
  font-size: 13px;
  color: var(--ink-2);
  background: var(--grad-soft);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
}

.hero .steps b { color: var(--mint-700); }

/* ===== 搜索框 ===== */
.search-box {
  position: relative;
  max-width: 560px;
  margin: 0 auto 40px;
}

.search-box input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 54px 0 22px;
  font-size: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: all 0.2s;
}

.search-box input:focus {
  border-color: var(--mint-500);
  box-shadow: 0 0 0 4px rgba(31, 195, 139, 0.16), var(--shadow-sm);
}

.search-box .s-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mint-600);
  pointer-events: none;
}

/* ===== 省市区联动下拉 ===== */
.region-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  max-width: 660px;
  margin: 0 auto 30px;
}

.rp-select {
  height: 44px;
  flex: 1 1 150px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.rp-select:focus {
  border-color: var(--mint-500);
  box-shadow: 0 0 0 3px rgba(31, 195, 139, 0.14);
}

.rp-select:disabled {
  background: #f4f7f6;
  color: var(--muted);
  cursor: not-allowed;
}

.rp-btn {
  height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 168, 119, 0.3);
  transition: all 0.2s;
}

.rp-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.rp-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ===== 卡片通用 ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  padding: 24px;
  margin-bottom: 26px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
}

.card-title .step-no {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(18, 168, 119, 0.35);
}

.card-sub { margin: 0 0 18px; font-size: 13px; color: var(--muted); }

/* ===== 搜索提示 ===== */
.no-match {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  padding: 14px;
  font-size: 14px;
  background: #fff7ec;
  border: 1px solid #f3d9a8;
  border-radius: 10px;
}

/* ===== 等级徽章（通用） ===== */
.level {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
}

.level.is-pending {
  background: #e9f0ed;
  color: var(--muted);
  border: 1px solid var(--line);
}

/* ===== 服务机构列表 ===== */
.org-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.org-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.org-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.2s;
}

.org-item:hover {
  border-color: var(--mint-500);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.org-item:hover::before {
  opacity: 1;
}

.org-idx {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--mint-700);
}

.org-body {
  flex: 1;
  min-width: 0;
}

.org-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.org-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.org-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.org-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
}

.chip-lab {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: var(--mint-700);
  letter-spacing: 1px;
}

.org-note {
  color: #7a6a4a;
  background: #fdf6ea;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
}

/* ===== 结果卡片 ===== */
.result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.result-title {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-title .loc {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--mint-600);
}

.op-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.op-cell {
  background: var(--grad-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.op-cell .k {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.op-cell .v {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  word-break: break-all;
}

.op-cell .v.level {
  display: inline-flex;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.op-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.result-empty {
  margin: 0;
  padding: 18px;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.8;
}

.result-empty b { color: var(--mint-700); }

/* ===== 状态徽章 ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.st-done    { background: linear-gradient(135deg, #19c58c, #0da372); color: #fff; }
.st-deposit { background: linear-gradient(135deg, #ffb45c, #f28c1e); color: #fff; }
.st-negot   { background: linear-gradient(135deg, #53b7f0, #2f8fe0); color: #fff; }
.st-none    { background: #e9f1ee; color: #7d9b90; }

/* ===== 区县列表 ===== */
.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.district-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.district-card:hover {
  transform: translateY(-3px);
  border-color: var(--mint-400);
  box-shadow: var(--shadow-sm);
}

.district-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.district-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.district-name .badge {
  padding: 3px 10px;
  font-size: 12px;
}

.result-badges {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.rb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rb-item em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-ok { background: var(--grad-soft); color: var(--mint-700); border: 1px solid rgba(31, 195, 139, 0.35); }
.tag-no { background: #eef2f0; color: #9aaba4; }

.district-meta {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  min-height: 20px;
}

.district-meta.muted { color: var(--muted); }

.district-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* ===== 按钮 ===== */
.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(18, 168, 119, 0.32);
  transition: all 0.2s;
  flex: 1;
  border: none;
  cursor: pointer;
}

.btn-call:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  border-color: var(--mint-500);
  color: var(--mint-700);
}

.btn-call.big { flex: none; padding: 11px 24px; font-size: 15px; }

.btn-call.small { flex: none; padding: 7px 14px; font-size: 13px; }

/* ===== 申请表单弹窗 ===== */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 61, 46, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-mask.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(11, 61, 46, 0.35);
  padding: 26px 26px 24px;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-mask.show .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--mint-700);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--mint-100);
}

.modal-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
}

.modal-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}

.modal-sub b { color: var(--mint-700); }

.modal-field {
  margin-bottom: 14px;
}

.modal-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.modal-field input,
.modal-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink);
  background: #fbfefc;
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
  resize: vertical;
}

.modal-field input:focus,
.modal-field textarea:focus {
  border-color: var(--mint-500);
  box-shadow: 0 0 0 4px rgba(31, 195, 139, 0.14);
  background: #fff;
}

.modal-err {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdecec;
  color: #d64545;
  font-size: 13px;
  line-height: 1.5;
}

.modal-submit {
  width: 100%;
  flex: none;
  margin-top: 4px;
}

.modal-ok {
  text-align: center;
  padding: 10px 0 4px;
}

.modal-ok .ok-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(18, 168, 119, 0.35);
  animation: popIn 0.4s ease both;
}

.modal-ok h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}

.modal-ok p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.banner-section { margin-top: 8px; }
.banner-section img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(11, 61, 46, 0.12);
}

/* ===== 页脚 ===== */
.footer {
  text-align: center;
  padding: 34px 0 46px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.footer a { color: var(--mint-600); text-decoration: none; }

/* ===== 动画 ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card, .hero { animation: fadeUp 0.45s ease both; }

/* ===== 响应式 ===== */
@media (max-width: 720px) {
  .wrap { padding: 0 14px; }
  .hero { padding-top: 32px; }
  .hero p { font-size: 14px; }
  .card { padding: 18px; }
  .op-info { grid-template-columns: 1fr; }
  .district-grid { grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); }
  .brand span.txt { font-size: 16px; }
  .link-admin span { display: none; }
  .result-head { align-items: flex-start; }
}

@media (max-width: 400px) {
  .brand span.txt { font-size: 15px; }
  .hero h1 { font-size: 24px; }
}

/* ===== 申请类型选择 ===== */
.apply-type-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.apply-type-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}

.apply-type-opt input { margin-top: 3px; }
