/* ==========================================================================
   xLLM · public site  —  /info
   --------------------------------------------------------------------------
   A fourth design system, deliberately different from the three product
   interfaces: dark, editorial, serif headlines, monospace labels.
   No web fonts, no CDN, no framework, no images except three screenshots.

   命名：全部 .i- 前缀（info）。三端的 .c- / .m- / .r- 不会串到这里，
   这里的样式也不会漏到三端去 —— 这个文件只被 templates/info/base.html 引用。
   ========================================================================== */

:root {
  --ink:        #08090A;
  --ink-deep:   #050606;
  --card:       #0B0D0C;
  --card-2:     #0F1211;
  --line:       rgba(246, 243, 236, 0.13);
  --line-soft:  rgba(246, 243, 236, 0.07);
  --text:       #F5F2EA;
  --muted:      #9DA3A0;
  --dim:        #6E7672;
  --lime:       #C9F25B;
  --lime-ink:   #0B0D08;
  --rose:       #E46A8B;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
          "Liberation Mono", monospace;

  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html {
  scroll-behavior: smooth;
  /* 锚点跳转时给吸顶导航留出空间 */
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   基础
   -------------------------------------------------------------------------- */
.i-body {
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(201, 242, 91, .11), transparent 62%),
    radial-gradient(760px 460px at 4% 2%, rgba(228, 92, 134, .07), transparent 60%),
    var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 背景竖线：编辑风格的版心参考线，向下淡出 */
.i-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(246, 243, 236, .04) 0 1px,
    transparent 1px 120px
  );
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .25) 55%, transparent 88%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .25) 55%, transparent 88%);
}

.i-nav, main, .i-foot { position: relative; z-index: 1; }

::selection { background: var(--lime); color: var(--lime-ink); }

.i-body :focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.i-body code {
  font-family: var(--mono);
  font-size: .9em;
  color: var(--text);
  background: rgba(246, 243, 236, .08);
  padding: 2px 6px;
  border-radius: 5px;
}

.i-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.i-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 99;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 13px;
  font-weight: 600;
  transition: top .18s var(--ease);
}
.i-skip:focus { top: 12px; }

/* --------------------------------------------------------------------------
   导航
   -------------------------------------------------------------------------- */
.i-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 10, .74);
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
}

.i-nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.i-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
  color: var(--text);
}

.i-brand__mark {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 242, 91, .14);
  flex: none;
}

.i-brand__name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -.015em;
  line-height: 1;
}

.i-brand__sub {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--dim);
  padding-top: 3px;
}

.i-nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.i-nav__links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s var(--ease);
}
.i-nav__links a:hover { color: var(--text); }
.i-nav__links a[aria-current] { color: var(--lime); }

.i-nav__cta { height: 38px; padding: 0 16px; font-size: 12.5px; flex: none; }

.i-nav__toggle {
  display: none;
  width: 40px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex: none;
}
.i-nav__toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--text);
  transition: transform .2s var(--ease), opacity .2s;
}
.i-nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.i-nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.i-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text);
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}

.i-btn--primary {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: var(--lime);
}
.i-btn--primary:hover { background: #D8FB7C; border-color: #D8FB7C; transform: translateY(-1px); }
.i-btn--primary:active { transform: translateY(0); }

.i-btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(246, 243, 236, .02);
}
.i-btn--ghost:hover { border-color: rgba(246, 243, 236, .38); background: rgba(246, 243, 236, .06); }

.i-btn--tint {
  border-color: var(--tint);
  color: var(--tint);
  background: transparent;
  height: 42px;
  padding: 0 18px;
  font-size: 12.5px;
}
.i-btn--tint:hover { background: rgba(255, 255, 255, .06); transform: translateY(-1px); }

.i-arrow { transition: transform .18s var(--ease); }
.i-btn:hover .i-arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.i-foot {
  border-top: 1px solid var(--line);
  background: var(--ink-deep);
  padding: 52px 0 30px;
}

.i-foot__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}

.i-foot__brand { display: flex; align-items: center; gap: 10px; }
.i-foot__brand .i-brand__name { font-size: 19px; }

.i-foot__line { margin: 0; font-size: 12px; color: var(--dim); }

.i-foot__cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.45fr;
  gap: 30px;
  padding: 32px 0;
}

.i-foot__h {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--dim);
  margin: 0 0 13px;
}

.i-foot__cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12.5px;
  color: var(--muted);
}

.i-foot__cols a { color: inherit; text-decoration: none; transition: color .15s var(--ease); }
.i-foot__cols a:hover { color: var(--lime); }

.i-foot__note { margin: 0; font-size: 11.8px; line-height: 1.62; color: var(--dim); }

.i-foot__base {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: var(--dim);
}
.i-foot__mono { font-family: var(--mono); letter-spacing: .04em; }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .i-nav__links { display: none; }
  .i-nav__links.is-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 28px 18px;
    /* 完全不透明：半透明会把下面的超大标题透出来，看起来很脏 */
    background: #090B0A;
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
  }
  .i-nav__links.is-open a {
    width: 100%;
    padding: 11px 0;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid var(--line-soft);
  }
  .i-nav__links.is-open a:last-child { border-bottom: 0; }
  .i-nav__toggle { display: flex; }
  .i-nav__cta { margin-left: auto; }

  .i-foot__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 780px) {
  .i-wrap { padding: 0 20px; }
  .i-nav__inner { padding: 0 20px; height: 64px; gap: 16px; }
  .i-nav__links.is-open { top: 64px; padding-left: 20px; padding-right: 20px; }
  .i-nav__cta { display: none; }
  .i-foot { padding: 40px 0 26px; }
  .i-foot__base { flex-direction: column; gap: 6px; }
}

/* --------------------------------------------------------------------------
   错误页 —— 不属于三端的 404/500 用这个皮肤
   -------------------------------------------------------------------------- */
.i-body--error { display: flex; align-items: center; justify-content: center; }

.i-err {
  width: 100%;
  max-width: 620px;
  padding: 96px 28px;
  text-align: left;
}

.i-err__code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--lime);
  margin: 0;
}

.i-err__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 18px 0 0;
  text-wrap: balance;
}

.i-err__body {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 34em;
}

.i-err__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.i-err__foot {
  margin: 44px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}
