/* api.xyqwq.top 主页：一个纯接口清单。
   终端风（黑底荧光绿 / 零圆角 / 等宽正文 + 衬线标题），设计令牌在 /theme.css。 */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; transition: color var(--transition), opacity var(--transition); }
code { font-family: var(--font-mono); font-size: .94em; }

h1, h2 { margin: 0; }

::selection { background: var(--cyan); color: #04110a; }

:focus-visible { outline: 1px solid var(--cyan); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 10px; z-index: 100;
  padding: 12px 20px; background: var(--cyan); color: #04110a;
}
.skip-link:focus { left: 16px; }

.container { width: min(100%, 940px); margin-inline: auto; padding-inline: 28px; }

/* ---------- 页头：荧光绿状态条 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--cyan);
  border-bottom: 1px solid #04110a;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 62px;
}

.brand { display: flex; align-items: center; gap: 10px; color: #04110a; }
.brand-mark { width: 26px; height: 26px; color: #04110a; flex: 0 0 auto; }
.brand-text {
  display: flex; flex-direction: column;
  font: 700 16px var(--font-mono); letter-spacing: .01em; line-height: 1.15;
}
.brand-text small {
  font: 400 9px var(--font-mono); letter-spacing: .18em; opacity: .62; margin-top: 3px;
}

.header-nav { display: flex; align-items: stretch; font-size: 12.5px; }
.nav-group {
  display: flex; align-items: center; gap: 16px;
  padding-left: 16px; margin-left: 16px;
  border-left: 1px solid rgba(4, 17, 10, .28);
}
.nav-group:first-child { padding-left: 0; margin-left: 0; border-left: 0; }
.header-nav a {
  min-height: 40px; display: inline-flex; align-items: center;
  color: #04110a; opacity: .72;
}
.header-nav a:hover { opacity: 1; color: #04110a; }

/* ---------- 标题区 ---------- */
.intro { padding: 56px 0 30px; }

.intro::before {
  content: "api2@elauk:~$ curl -s /acban.json";
  display: block; margin-bottom: 18px;
  font: 400 12.5px var(--font-mono); color: var(--text3);
}

.intro h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 700; line-height: 1.1; letter-spacing: -.01em;
}

.lead {
  max-width: 640px; margin: 18px 0 0;
  font-size: 13px; line-height: 2; color: var(--text2);
}
.lead code { background: var(--soft); color: var(--text); border: 1px solid var(--line); padding: 1px 6px; }

/* ---------- 接口清单 ---------- */
.group { padding-bottom: 36px; }
.group-last { padding-bottom: 80px; }

.group-title {
  font: 400 11.5px var(--font-mono); letter-spacing: .18em;
  color: var(--cyan); margin: 0 0 14px;
}
.group-title::before { content: "// "; opacity: .55; }

.api-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.api-list a {
  display: grid;
  grid-template-columns: 66px minmax(0, 240px) minmax(0, 1fr);
  gap: 16px; align-items: baseline;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition);
}
.api-list a:hover { background: var(--soft); }

.method {
  justify-self: start;
  width: 48px; text-align: center;
  font: 600 10.5px var(--font-mono); letter-spacing: .08em;
  color: var(--cyan);
  border: 1px solid rgba(63, 240, 140, .35);
  padding: 2px 0; line-height: 1.5;
}
.method.page { color: var(--amber); border-color: rgba(255, 180, 84, .38); }

.path { color: var(--text); overflow-wrap: anywhere; }

.desc { font-size: 12.5px; color: var(--text2); }
.desc code { background: var(--soft); color: var(--text2); border: 1px solid var(--line); padding: 1px 5px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-top: 22px; padding-bottom: 40px; }
.footer-inner p { margin: 0; font: 400 11.5px var(--font-mono); letter-spacing: .06em; color: var(--text3); }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .intro { padding-top: 38px; }
  .api-list a { grid-template-columns: 60px minmax(0, 1fr); row-gap: 8px; }
  .desc { grid-column: 2; }
  .header-nav { display: none; }
  .group-last { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---- 接口详情 ---- */
.api-detail { margin-top: 26px; }
.api-detail h3 {
  font-size: 13px; font-weight: 600; color: var(--text2);
  margin: 22px 0 8px;
}
.api-detail h3 code { color: var(--cyan); font-size: 12px; font-weight: 400; }
.api-detail pre {
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 12px; line-height: 1.65;
  color: var(--text2);
  margin: 0;
}
.api-detail pre code { color: var(--text2); }
.api-fields {
  width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12px;
}
.api-fields th {
  text-align: left; padding: 7px 10px; color: var(--text3);
  font-weight: 400; border-bottom: 1px solid var(--line);
}
.api-fields td {
  padding: 7px 10px; color: var(--text2);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.api-fields td:first-child { width: 132px; }
.api-fields td:nth-child(2) { width: 46px; color: var(--text3); }
.api-fields code { color: var(--cyan); font-size: 11.5px; }
.api-note {
  margin-top: 14px; color: var(--text3); font-size: 11.5px; line-height: 1.75;
}
