/* Chapter 04 Appendix · Phase 4D · 附录总入口（移动端优先，390px 无横向滚动）
   直接复用 Phase 4A/4B/4C 的既有视觉语言：浅底、白卡、蓝点缀、圆角。 */

.appendix-home {
  margin: 0;
  background: #f4f6fb;
  color: #21304a;
}

.ahx-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 16px 56px;
  box-sizing: border-box;
}

.ahx-kicker {
  margin: 4px 0 2px;
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 700;
  color: #7b8aa6;
}

.ahx-title {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.2;
  color: #1d2b45;
}

.ahx-intro {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #566582;
}

/* ---------- 卡片 ---------- */

.ahx-card {
  display: block;
  margin: 0 0 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1.5px solid #dbe3f2;
  border-radius: 18px;
  box-sizing: border-box;
}

.ahx-card-title {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
  color: #1d2b45;
}

/* ---------- 搜索快捷入口（只做跳转，不承载搜索逻辑） ---------- */

.ahx-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ahx-field {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.ahx-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  font-size: 17px;
  color: #1d2b45;
  background: #fff;
  border: 1.5px solid #cdd7ea;
  border-radius: 16px;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.ahx-input:focus {
  border-color: #4f6ef7;
  box-shadow: 0 0 0 4px rgba(79, 110, 247, .14);
}

.ahx-button {
  flex: 0 0 auto;
  height: 54px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #4f6ef7;
  border: none;
  border-radius: 16px;
  cursor: pointer;
}

.ahx-button:active {
  background: #3d59d6;
}

.ahx-hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #8794ad;
}

/* ---------- 工具入口 ---------- */

.ahx-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .12s ease, background .12s ease;
}

.ahx-entry:active {
  background: #f7f9ff;
  border-color: #c3d3f5;
}

.ahx-entry:focus-visible {
  outline: 3px solid rgba(49, 90, 205, .25);
  outline-offset: 2px;
}

.ahx-entry-body { min-width: 0; }

.ahx-entry-title {
  display: block;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
  color: #1d2b45;
}

.ahx-entry-desc {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.55;
  color: #566582;
}

.ahx-arrow {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  color: #8993a8;
}

@media (max-width: 390px) {
  .ahx-wrap { padding: 18px 12px 48px; }
  .ahx-title { font-size: 23px; }
  .ahx-input { height: 50px; font-size: 16px; padding: 0 12px; }
  .ahx-button { height: 50px; padding: 0 16px; }
  .ahx-card { padding: 14px 15px; border-radius: 16px; }
}
