/* ========== 基础与变量 ========== */
:root {
  --navy: #17397d;
  --blue: #2e6bd8;
  --blue-d: #1c4fb4;
  --blue-bg: #e9f1fd;
  --ink: #33475f;
  --muted: #5f7189;
  --line: #d3e2f6;
  --green: #3aa26d;
  --green-bg: #e7f5ee;
  --orange: #ee8c17;
  --orange-bg: #fdf1e0;
  --purple: #7a59e8;
  --purple-bg: #f0ecfe;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -5%, #dcecfb 0%, rgba(220, 236, 251, 0) 60%),
    radial-gradient(900px 420px at 5% 100%, #e2eefa 0%, rgba(226, 238, 250, 0) 55%),
    linear-gradient(160deg, #fbfdff 0%, #eef5fd 55%, #e6f0fb 100%);
  min-height: 100vh;
}

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.page {
  max-width: 1660px;
  margin: 0 auto;
  padding: 16px 20px 28px;
  position: relative;
}

/* ========== 页眉 ========== */
.site-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 4px 14px;
}
.logo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(23, 57, 125, .2);
  flex-shrink: 0;
}
.logo-spacer { width: 78px; flex-shrink: 0; }
.title-wrap { flex: 1; text-align: center; }
.title-wrap h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 1px;
  text-shadow: 0 1px 0 #fff;
}
.subtitle {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-d);
  letter-spacing: 3px;
}
.subtitle .divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #9db9e2;
  margin: 0 16px;
  vertical-align: -2px;
}

/* ========== 卡片与通用元素 ========== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 16px;
  position: relative;
  box-shadow: 0 4px 14px rgba(31, 92, 192, .06);
}

.ribbon {
  display: inline-block;
  background: linear-gradient(180deg, #4187e2, #2a63c9);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(42, 99, 201, .3);
}
/* 骑跨卡片上边缘的居中标题条 */
.ribbon-float {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  margin-bottom: 0;
  z-index: 2;
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box svg { width: 28px; height: 28px; }
.c-blue   { background: var(--blue-bg);   color: var(--blue); }
.c-green  { background: var(--green-bg);  color: var(--green); }
.c-orange { background: var(--orange-bg); color: var(--orange); }
.c-purple { background: var(--purple-bg); color: var(--purple); }

/* ========== 主体三栏 ========== */
.grid {
  display: grid;
  grid-template-columns: 300px 330px 1fr;
  gap: 14px;
  align-items: stretch;
}
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.row { display: flex; gap: 12px; align-items: flex-start; }
.row p { font-size: 13.5px; line-height: 1.75; text-align: justify; }

/* 服务模式与收费 */
.model-title {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}
.model-boxes { display: flex; align-items: stretch; gap: 5px; }
.mbox { border-radius: 10px; padding: 10px 7px; color: #fff; text-align: center; }
.mbox b { display: block; font-size: 20px; margin-bottom: 4px; }
.mbox p { font-size: 11.5px; line-height: 1.55; }
.m1 { flex: .95; background: linear-gradient(160deg, #4187e2, #2a63c9); }
.m2 { flex: 1.55; background: linear-gradient(160deg, #55b887, #3a9c6d); }
.m3 { flex: 1.15; background: linear-gradient(160deg, #f6a83c, #ee8c17); }
.plus { align-self: center; font-size: 19px; font-weight: 800; color: var(--blue-d); }
.fee {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.fee svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }

/* 基本管理规定 */
.rules-card { flex: 1; }
.rules { list-style: none; }
.rules li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px dashed #e2ecfa;
}
.rules li:last-child { border-bottom: none; }
.rules .icon-box { width: 46px; height: 46px; }
.rules .icon-box svg { width: 25px; height: 25px; }
.rules b { font-size: 14.5px; color: var(--blue-d); }
.rules p { font-size: 12.5px; line-height: 1.65; margin-top: 3px; text-align: justify; }

.mascot { user-select: none; }
.col-mid { position: relative; }
.mascot-mid {
  position: absolute;
  right: 2px;
  bottom: -6px;
  width: 172px;
  z-index: 3;
  filter: drop-shadow(0 8px 12px rgba(23, 57, 125, .2));
}

/* ========== 五、各单项业务要点 ========== */
.biz-card { padding: 26px 14px 14px; }
.biz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  height: 100%;
}
.biz {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  position: relative;
  overflow: hidden;
  background: #fdfeff;
}
.biz header { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.biz header i {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: #fff;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.biz h4 { font-size: 13.5px; font-weight: 800; line-height: 1.3; }
.biz ul { list-style: none; position: relative; z-index: 1; }
.biz li {
  font-size: 11.8px;
  line-height: 1.5;
  color: #40536b;
  padding-left: 9px;
  position: relative;
  margin-bottom: 3px;
}
.biz li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7ea3dd;
}
.biz li b { color: inherit; }
.biz .deco {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 46px;
  height: 46px;
  opacity: .16;
  z-index: 0;
}

.b-blue   header i { background: var(--blue); }   .b-blue   h4 { color: var(--blue-d); }
.b-green  header i { background: var(--green); }  .b-green  h4 { color: #2c8a5c; }
.b-orange header i { background: var(--orange); } .b-orange h4 { color: #d97a0e; }
.b-purple header i { background: var(--purple); } .b-purple h4 { color: #6444d8; }
.b-blue .deco   { color: var(--blue); }
.b-green .deco  { color: var(--green); }
.b-orange .deco { color: var(--orange); }
.b-purple .deco { color: var(--purple); }

/* ========== 底部：流程 + 智能体 ========== */
.bottom {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin-top: 22px;
}
.mascot-bottom {
  width: 160px;
  margin-bottom: -16px;
  position: relative;
  z-index: 5;
  filter: drop-shadow(0 8px 12px rgba(23, 57, 125, .2));
}
.flow-card { flex: 1.75; padding-top: 26px; }
.flow { display: flex; align-items: center; gap: 3px; }
.step { flex: 1; text-align: center; min-width: 0; }
.step .icon-box { width: 46px; height: 46px; margin: 0 auto 7px; border-radius: 11px; }
.step .icon-box svg { width: 25px; height: 25px; }
.step b { font-size: 12px; margin-bottom: 3px; min-height: 34px; display: flex; align-items: center; justify-content: center; }
.step small { display: block; font-size: 10.5px; color: var(--muted); }
.arrow { width: 15px; height: 15px; flex-shrink: 0; color: #8fb3e6; }

.s-blue   .icon-box { background: var(--blue-bg);   color: var(--blue); }   .s-blue   b { color: var(--blue-d); }
.s-green  .icon-box { background: var(--green-bg);  color: var(--green); }  .s-green  b { color: #2c8a5c; }
.s-orange .icon-box { background: var(--orange-bg); color: var(--orange); } .s-orange b { color: #d97a0e; }
.s-purple .icon-box { background: var(--purple-bg); color: var(--purple); } .s-purple b { color: #6444d8; }

.x-card {
  flex: 1;
  border: 1.5px dashed #8fb3e6;
  border-radius: 14px;
  background: #f4f9ff;
  padding: 26px 14px 14px;
  position: relative;
}
.x-items { display: flex; gap: 6px; }
.x-item { flex: 1; text-align: center; min-width: 0; }
.x-item .icon-box { width: 44px; height: 44px; margin: 0 auto 7px; border-radius: 11px; background: #fff; border: 1px solid var(--line); }
.x-item .icon-box svg { width: 24px; height: 24px; }
.x-item b { display: block; font-size: 12px; color: var(--blue-d); margin-bottom: 3px; }
.x-item small { display: block; font-size: 10.5px; color: var(--muted); }
.x-tag {
  text-align: center;
  margin-top: 12px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--blue-d);
  letter-spacing: 2px;
}

/* ========== 页脚 ========== */
.site-footer {
  margin-top: 16px;
  background: linear-gradient(90deg, #1c4fb4 0%, #3f83e0 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 11px 150px 11px 22px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(28, 79, 180, .28);
}
.site-footer .badge {
  background: #123a8c;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  flex-shrink: 0;
}
.site-footer p { flex: 1; font-size: 14px; }
.values { display: flex; gap: 16px; list-style: none; flex-shrink: 0; }
.values li { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; }
.values svg { width: 16px; height: 16px; color: #cfe3ff; }

/* 魔方装饰 */
.cube {
  position: absolute;
  right: 16px;
  bottom: 26px;
  width: 122px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(23, 57, 125, .28);
  z-index: 3;
}

/* ========== 响应式 ========== */
@media (max-width: 1280px) {
  .title-wrap h1 { font-size: 26px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .biz-card { grid-column: 1 / -1; }
  .mascot-mid { margin-top: -20px; }
}
@media (max-width: 1080px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .bottom { flex-wrap: wrap; }
  .mascot-bottom { display: none; }
  .flow-card { flex: 1 1 100%; }
  .cube { display: none; }
}
@media (max-width: 720px) {
  .title-wrap h1 { font-size: 19px; }
  .subtitle { font-size: 12px; letter-spacing: 1px; }
  .logo, .logo-spacer { width: 52px; height: 52px; }
  .grid { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: 1fr; }
  .flow { flex-wrap: wrap; }
  .arrow { display: none; }
  .step { flex: 1 1 30%; margin-bottom: 10px; }
  .x-items { flex-wrap: wrap; }
  .x-item { flex: 1 1 40%; margin-bottom: 8px; }
  .mascot-mid { width: 140px; }
  .site-footer { flex-wrap: wrap; gap: 10px; }
  .values { flex-wrap: wrap; gap: 10px; }
}

/* ========== 可点击元素 ========== */
.clickable { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.card.clickable:hover,
.biz.clickable:hover {
  transform: translateY(-3px);
  border-color: #7ea3dd;
  box-shadow: 0 10px 22px rgba(31, 92, 192, .16);
}
.card.clickable:hover::after,
.biz.clickable:hover::after {
  content: "详情 ›";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #4187e2, #2a63c9);
  padding: 2px 9px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(42, 99, 201, .35);
}
.biz.clickable:hover::after { top: 8px; right: 8px; }
.rules li.clickable { border-radius: 10px; padding-left: 8px; padding-right: 8px; margin: 0 -8px; }
.rules li.clickable:hover { background: #f0f6fe; }
.step.clickable,
.x-item.clickable { border-radius: 10px; padding: 4px 2px; }
.step.clickable:hover,
.x-item.clickable:hover { background: #eaf2fd; }
.badge.clickable:hover { background: #2a63c9; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }

body.modal-open { overflow: hidden; }

/* ========== 详情模态框 ========== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(18, 42, 92, .48);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.modal-mask.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(880px, 93vw);
  max-height: 86vh;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(23, 57, 125, .35);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(.97);
  transition: transform .22s ease;
}
.modal-mask.open .modal { transform: none; }
.modal-head {
  padding: 16px 64px 13px 22px;
  border-bottom: 1px solid #e8f0fb;
  background: linear-gradient(180deg, #f8fbff, #f0f6fe);
  flex-shrink: 0;
}
.modal-head .ribbon { margin-bottom: 0; font-size: 16px; }
.modal-close {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--blue-bg);
  color: var(--blue-d);
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
  z-index: 2;
}
.modal-close:hover { background: var(--blue); color: #fff; transform: rotate(90deg); }
.modal-body {
  padding: 18px 26px 22px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #b9cfee #f0f6fe;
}
.modal-body h4 {
  color: var(--blue-d);
  font-size: 15.5px;
  margin: 18px 0 8px;
  padding-left: 10px;
  border-left: 4px solid var(--blue);
}
.modal-body h4:first-child { margin-top: 2px; }
.modal-body h5 { color: #2c5aa8; font-size: 13.8px; margin: 12px 0 5px; }
.modal-body h6 { color: var(--navy); font-size: 13.2px; margin: 10px 0 4px; }
.modal-body p {
  font-size: 13.5px;
  line-height: 1.85;
  margin: 6px 0;
  color: var(--ink);
  text-align: justify;
}
.modal-body p.item { padding-left: 1.4em; text-indent: -1.4em; }
.modal-body figure { margin: 14px 0 6px; text-align: center; }
.modal-body .flow-img {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: zoom-in;
  box-shadow: 0 4px 14px rgba(31, 92, 192, .12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.modal-body .flow-img:hover { transform: scale(1.01); box-shadow: 0 8px 22px rgba(31, 92, 192, .22); }
.modal-foot {
  position: relative;
  height: 62px;
  flex-shrink: 0;
  border-top: 1px solid #e8f0fb;
  background: linear-gradient(180deg, #f7fbff, #e9f2fc);
}
.modal-foot .mascot {
  position: absolute;
  left: 16px;
  bottom: 0;
  height: 92px;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(23, 57, 125, .25));
}
.modal-foot .foot-cube {
  position: absolute;
  right: 18px;
  bottom: 7px;
  width: 66px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(23, 57, 125, .2);
  pointer-events: none;
}

/* ========== 图片放大查看 ========== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 55, .88);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 94vw;
  max-height: 92vh;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
