/* ==========================================================================
   入口导航页（/）—— 目录式排版：序号 + 中心名 + 说明 + 箭头
   不放图标块，靠字号与留白建立层级
   ========================================================================== */

html,
body {
  min-height: 100%;
  margin: 0;
}

.ep-page,
.ep-page *,
.ep-page *::before,
.ep-page *::after {
  box-sizing: border-box;
}

.ep-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f8fafd;
  background-image:
    radial-gradient(900px 560px at 12% -8%, rgba(44, 107, 237, 0.07), transparent 60%),
    radial-gradient(820px 520px at 92% 104%, rgba(68, 76, 105, 0.06), transparent 60%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #16233d;
}

/* ---------- 顶栏 ---------- */
.ep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 44px 0;
}

.ep-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.ep-logo img {
  display: block;
  width: auto;
  height: 40px;
  border-radius: 8px;
}

.ep-logo-txt {
  position: relative;
  padding-left: 17px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #6a7791;
}

.ep-logo-txt::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 18px;
  background: #dde3ee;
  transform: translateY(-50%);
}

.ep-head-tip {
  margin: 0;
  font-size: 12.5px;
  color: #9aa5b8;
}

/* ---------- 主体 ---------- */
.ep-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 48px 24px;
}

.ep-inner {
  width: 100%;
  max-width: 880px;
  margin: auto 0;
  align-self: center;
}

.ep-title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.5px;
  color: #14203a;
}

.ep-sub {
  margin: 12px 0 0;
  font-size: 14px;
  color: #6d7b93;
}

/* ---------- 目录列表 ---------- */
.ep-list {
  margin-top: 34px;
  border-top: 1px solid #e9eef7;
}

.ec {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 18px 22px 2px;
  border-bottom: 1px solid #e9eef7;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.ec::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -1px;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: var(--c);
  transform: translateY(-50%);
  transition: height 0.24s ease;
}

.ec:hover {
  background-color: var(--c-tint);
}

.ec:hover::before {
  height: 46%;
}

.ec:focus-visible {
  outline: none;
  background-color: var(--c-tint);
  box-shadow: inset 0 0 0 1px var(--c-line);
}

.ec-idx {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  color: #b7c1d0;
  transition: color 0.2s ease;
}

.ec-name {
  display: block;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.5px;
  color: #16233d;
  transition: color 0.2s ease;
}

.ec-desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #7d8aa0;
}

.ec-arrow {
  width: 20px;
  height: 20px;
  color: #c6cedb;
  transition: transform 0.22s ease, color 0.22s ease;
}

.ec:hover .ec-idx,
.ec:hover .ec-name {
  color: var(--c);
}

.ec:hover .ec-arrow {
  color: var(--c);
  transform: translateX(5px);
}

/* ---------- 页脚 ---------- */
.ep-foot {
  padding: 0 24px 26px;
  font-size: 12.5px;
  color: #a3aec0;
  text-align: center;
}

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .ep-head {
    padding: 24px 20px 0;
  }

  .ep-head-tip {
    display: none;
  }

  .ep-main {
    padding: 34px 20px;
  }

  .ep-title {
    font-size: 26px;
  }

  .ep-sub {
    font-size: 13px;
  }

  .ep-list {
    margin-top: 24px;
  }

  .ec {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 18px 12px 18px 2px;
  }

  .ec-name {
    font-size: 20px;
  }

  .ec-desc {
    font-size: 12.5px;
  }

  .ec-arrow {
    width: 18px;
    height: 18px;
  }
}
