/* ==========================================================================
   LL 图鉴 · 公开介绍页 / 404 页样式 v1（assets/landing.css）
   与门户（styles.css v3）同一设计语言：暖奶油米白底 + 超粗黑体标题 +
   高饱和撞色 + 粗黑描边（3px）+ 硬偏移阴影（0 模糊）。
   本文件独立于 styles.css（介绍页与 404 只加载本文件），
   顶栏 / 按钮 / 页脚 / 光谱条按门户同一视觉复刻。
   移动优先；无 JS 依赖；prefers-reduced-motion 下不做任何动画。
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  /* 底与墨 */
  --cream: #fff9ef;
  --paper: #fffdf8;
  --ink: #16172b;
  --ink-soft: #62647a;
  --line: #e8e1d7;

  /* 撞色（品牌四色 + 延伸） */
  --purple: #6557e8;
  --purple-dark: #463bb1;
  --rose: #e94368;
  --rose-deep: #c41f4c;
  --yellow: #ffcf4a;
  --mint: #b8f1df;
  --coral: #e95f74;

  /* 版式 */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;

  --fs-lh1: clamp(34px, 5vw, 62px);   /* 介绍页标题：比门户小一档，容纳较长图鉴名 */
  --fs-h2: clamp(23px, 2.8vw, 32px);

  --page-max: 1200px;
  --gutter: clamp(16px, 3.4vw, 36px);

  --r-card: 22px;
  --r-pill: 999px;

  /* 描边与硬偏移（0 模糊阴影） */
  --edge: 3px;
  --push-sm: 4px;
  --push-sm-hover: 6px;

  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, li, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 8px;
}

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

/* 统一页宽容器 */
.topbar-inner,
.lt-hero,
.lt-section,
.footer-inner {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 10px;
  z-index: 40;
  transform: translate(-50%, -180%);
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-weight: 800;
  transition: transform .2s var(--ease-soft);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- 3. 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: var(--edge) solid var(--ink);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--paper);
  border: var(--edge) solid var(--ink);
  border-radius: 13px;
  box-shadow: var(--push-sm) var(--push-sm) 0 var(--ink);
}
.brand-mark svg { width: 26px; height: 26px; display: block; }
.brand-mark--lg { width: 54px; height: 54px; border-radius: 15px; }
.brand-mark--lg svg { width: 32px; height: 32px; }

.brand-copy { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-copy strong { font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.brand-copy span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

.topnav { display: flex; align-items: center; gap: 10px; }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: var(--edge) solid var(--ink);
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 800;
  box-shadow: var(--push-sm) var(--push-sm) 0 var(--ink);
  transition: transform .18s var(--ease-soft), box-shadow .18s var(--ease-soft);
}
.btn-ic {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--ghost { background: var(--paper); color: var(--ink); }
.btn--pop { background: var(--purple); color: #fff; }

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--push-sm-hover) var(--push-sm-hover) 0 var(--ink);
}
.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* 主 CTA：介绍页唯一的行动按钮语言 */
.lt-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  background: var(--purple);
  color: #fff;
  border: var(--edge) solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink);
  font-size: 17px;
  font-weight: 800;
  transition: transform .18s var(--ease-soft), box-shadow .18s var(--ease-soft);
}
.lt-cta svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lt-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}
.lt-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}
.lt-cta--light { background: var(--paper); color: var(--ink); }

/* ---------- 5. Hero ---------- */
.lt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 46px);
  padding-block: clamp(30px, 4.6vw, 66px) clamp(8px, 1.6vw, 18px);
}

.eyebrow {
  display: inline-block;
  background: var(--paper);
  border: var(--edge) solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
}

.lt-hero h1 {
  margin-top: 16px;
  font-size: var(--fs-lh1);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.032em;
}

/* 一处高饱和强调：图鉴名后的暖黄撞色块 */
.mark {
  display: inline-block;
  margin-left: .12em;
  padding: .02em .16em .07em;
  background: var(--yellow);
  color: var(--ink);
  border: var(--edge) solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  line-height: 1.1;
}

.lt-lead {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 16.5px;
  color: var(--ink-soft);
}

.lt-cta-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.lt-cta-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

/* Hero 右侧：封面版画（粗黑描边 + 硬偏移 + 底部图鉴撞色条） */
.lt-cover { margin: 0; }
.lt-cover-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--paper);
  border: var(--edge) solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
}
.lt-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 42%);
}
.lt-cover-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: var(--a1, var(--purple));
  border-top: 2.5px solid var(--ink);
}
.lt-cover-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--rose);
  color: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 9px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}
.lt-cover figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

/* ---------- 6. 区块 ---------- */
.lt-section { margin-top: clamp(42px, 5.4vw, 80px); }

/* 四段硬色条（黄 / 薄荷 / 玫粉 / 紫），无渐变过渡 */
.spectrum {
  display: block;
  width: 200px;
  height: 12px;
  border: var(--edge) solid var(--ink);
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--ink);
  background: linear-gradient(90deg,
    var(--yellow) 0 25%,
    var(--mint) 25% 50%,
    var(--rose) 50% 75%,
    var(--purple) 75% 100%);
  transform-origin: left center;
}

.lt-section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
}
.lt-section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: -.028em;
}
.lt-section-hint { font-size: 14px; color: var(--ink-soft); }

.lt-note {
  margin-top: 18px;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-soft);
}
.lt-note + .lt-note { margin-top: 10px; }

/* ---------- 7. 统计条 ---------- */
.lt-stats {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lt-stats li {
  border: var(--edge) solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--paper);
}
/* 生成器的统计项是 <li><strong>数字</strong> 文字</li>：数字要比标签更重 */
.lt-stats li strong { font-weight: 900; }
.lt-stats li:nth-child(4n+1) { background: var(--mint); }
.lt-stats li:nth-child(4n+2) { background: var(--yellow); }
.lt-stats li:nth-child(4n+4) { background: var(--purple); color: #fff; }

/* ---------- 8. 角色名单（长名单：自动分栏，紧凑可扫读） ---------- */
.lt-names {
  margin-top: 20px;
  columns: 168px 5;
  column-gap: clamp(16px, 2vw, 30px);
}
.lt-names li {
  position: relative;
  break-inside: avoid;
  padding: 4px 0 4px 15px;
  font-size: 14.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.lt-names li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--rose);
}

/* ---------- 9. 资源构成表 ---------- */
.lt-table-wrap {
  margin-top: 22px;
  border: var(--edge) solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--paper);
  overflow-x: auto;
}
.lt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.lt-table th {
  text-align: left;
  white-space: nowrap;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 12px 16px;
}
.lt-table td {
  padding: 12px 16px;
  border-top: 1.5px solid var(--line);
  vertical-align: top;
}
.lt-table tbody tr:nth-child(even) { background: rgba(255, 207, 74, .13); }
.lt-table td:first-child { font-weight: 800; }
.lt-table td:last-child,
.lt-table th:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- 10. 进入完整图鉴 ---------- */
.lt-enter {
  position: relative;
  background: var(--purple);
  color: #fff;
  border: var(--edge) solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(26px, 4vw, 52px);
  overflow: hidden;
}
.lt-enter::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -86px;
  width: 200px;
  height: 200px;
  border: 3px solid rgba(255, 249, 239, .38);
  border-radius: 50%;
  pointer-events: none;
}
.lt-enter h2 {
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: -.028em;
}
.lt-enter p {
  margin-top: 12px;
  max-width: 54ch;
  color: rgba(255, 255, 255, .86);
}
.lt-enter-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.lt-enter-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .74);
}

/* ---------- 11. 页脚 ---------- */
.footer {
  margin-top: clamp(48px, 6vw, 92px);
  background: var(--ink);
  color: var(--cream);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding-block: clamp(30px, 4vw, 48px);
}
.footer-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.footer-brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand-copy strong { font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
.footer-brand-copy span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: rgba(255, 249, 239, .66);
}

.lt-more-title {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255, 249, 239, .62);
}
.lt-more-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* 其他图鉴入口：与顶栏同语言的实底按钮；深底上硬偏移换成奶油色 */
.lt-more-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  background: var(--paper);
  color: var(--ink);
  border: var(--edge) solid var(--ink);
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--push-sm) var(--push-sm) 0 rgba(255, 249, 239, .85);
  transition: transform .18s var(--ease-soft), box-shadow .18s var(--ease-soft);
}
.lt-more-list a::after {
  content: "→";
  margin-left: 7px;
  font-weight: 900;
  opacity: .42;
}
.lt-more-list a:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--push-sm-hover) var(--push-sm-hover) 0 rgba(255, 249, 239, .85);
}
.lt-more-list a:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(255, 249, 239, .85);
}

.footer-note {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 249, 239, .18);
  font-size: 12.5px;
  color: rgba(255, 249, 239, .62);
}

/* ---------- 12. 404 ---------- */
.lt-oops {
  max-width: 680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(54px, 10vw, 132px);
  text-align: center;
}
.lt-oops-code {
  display: inline-block;
  background: var(--yellow);
  border: var(--edge) solid var(--ink);
  border-radius: 20px;
  box-shadow: 7px 7px 0 var(--ink);
  padding: .04em .18em .09em;
  font-size: clamp(46px, 9vw, 92px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.lt-oops h1 {
  margin-top: 30px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  letter-spacing: -.03em;
}
.lt-oops-text {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-soft);
}
.lt-oops .lt-cta { margin-top: 28px; }

/* ---------- 13. 图鉴配色（--a1 = 该图鉴主色，与门户卡片一致） ---------- */
[data-gallery="crosscore"] { --a1: #6557e8; }
[data-gallery="brown-dust"] { --a1: #ffc53d; }
[data-gallery="azur-lane"] { --a1: #3d6bff; }
[data-gallery="anchor-panic"] { --a1: #e94368; }
[data-gallery="ark-recode"] { --a1: #b943f0; }
[data-gallery="blue-archive"] { --a1: #2ba6ff; }
[data-gallery="tenkafuma"] { --a1: #1fc8a9; }
[data-gallery="star-desire"] { --a1: #ff4fa3; --pos: 50% 26%; }
[data-gallery="nikke"] { --a1: #ff8a3d; }
[data-gallery="girls-frontline"] { --a1: #8fd63c; }
[data-gallery="scarlet-echo"] { --a1: #e63946; }
[data-gallery="ember"] { --a1: #ffb020; }

/* 星欲姬绊封面为竖图（960×980）：换成 4/5 取景，避免 16/10 大幅裁切 */
.lt-cover[data-gallery="star-desire"] .lt-cover-frame { aspect-ratio: 4 / 5; }

/* ---------- 14. 首屏入场（纯 CSS，无 JS；只看一次，不循环） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .lt-hero-copy > *,
  .lt-cover { animation: lt-rise .6s var(--ease-soft) both; }
  .lt-hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .lt-hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .lt-hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .lt-cover { animation-delay: .1s; }
}

@keyframes lt-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 15. 响应式 ---------- */
@media (min-width: 941px) {
  .lt-hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .78fr);
    align-items: center;
  }
}

@media (max-width: 560px) {
  .topbar-inner { min-height: 68px; }
  .btn { padding: 0 13px; }
  .btn-label { display: none; }

  .lt-cover-frame { box-shadow: 7px 7px 0 var(--ink); }
  .lt-cover-badge { top: 10px; left: 10px; font-size: 11px; }
  .lt-cta { min-height: 52px; padding: 0 20px; font-size: 16px; }

  .lt-names { columns: 2 132px; column-gap: 18px; }
  .lt-names li { font-size: 14px; }

  .lt-table { font-size: 13.5px; }
  .lt-table th { padding: 10px 12px; }
  .lt-table td { padding: 10px 12px; }

  .lt-enter { box-shadow: 7px 7px 0 var(--ink); }
  .lt-enter::after { width: 150px; height: 150px; right: -40px; bottom: -64px; }
}

@media (max-width: 400px) {
  .brand-copy span { display: none; }
  .lt-names { columns: 2 120px; column-gap: 14px; }
  .lt-stats li { padding: 7px 13px; font-size: 13px; }
}

@media (max-width: 340px) {
  .lt-names { columns: 1; }
}

/* ---------- 16. 静态降级（prefers-reduced-motion） ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
