/* 灵点AI · AI 资讯栏目（列表页、详情页、首页“今日 AI 动态”）
   全部颜色取自站点设计变量，深色模式自动适配。 */

.ln-main { --ln-accent: #2638fa; --ln-accent-ink: #ffffff; }
.ln-wrap { max-width: 880px; margin: 0 auto; padding: 56px 24px 104px; }

/* ---------- 通用元素 ---------- */
.ln-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-family: var(--w-mono); font-size: 12px; letter-spacing: .08em; color: var(--w-primary); text-transform: uppercase; }
.ln-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--w-life-deep, #00e9aa); box-shadow: 0 0 0 4px color-mix(in srgb, var(--w-life-deep, #00e9aa) 22%, transparent); }
.ln-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; background: #2638fa; color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 10px 24px -12px rgb(38 56 250 / 70%); }
.ln-button:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgb(38 56 250 / 80%); }
.ln-button:focus-visible, .ln-chip:focus-visible, .ln-item-title a:focus-visible, .ln-home-list a:focus-visible { outline: 2px solid var(--w-primary); outline-offset: 3px; }

.ln-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ln-pill-model    { background: var(--w-tint-blue);   color: var(--w-accent-blue); }
.ln-pill-product  { background: var(--w-tint-violet); color: var(--w-accent-violet); }
.ln-pill-open     { background: var(--w-tint-mint);   color: var(--w-accent-mint); }
.ln-pill-research { background: var(--w-tint-sky);    color: var(--w-accent-sky); }
.ln-pill-policy   { background: #fff0e6; color: #b23c00; }
.ln-pill-industry { background: var(--w-soft);        color: var(--w-ink2); }
[data-theme=dark] .ln-pill-policy { background: #3a2216; color: #ffb48a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .ln-pill-policy { background: #3a2216; color: #ffb48a; } }

/* ---------- 列表页 ---------- */
.ln-hero { padding-bottom: 36px; border-bottom: 1px solid var(--w-line); }
.ln-title { margin: 0 0 18px; color: var(--w-ink); font-size: clamp(36px, 5.4vw, 60px); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.ln-title mark, .ln-home-intro h2 mark { color: inherit; background: linear-gradient(transparent 62%, var(--w-mark) 62%); padding: 0 2px; }
.ln-lead { max-width: 620px; margin: 0 0 26px; color: var(--w-ink2); font-size: 17px; line-height: 1.8; }
.ln-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-family: var(--w-mono); font-size: 13px; color: var(--w-ink3); }
.ln-stats b { color: var(--w-ink); font-weight: 600; }
.ln-rss { color: var(--w-primary); text-decoration: none; margin-left: auto; }
.ln-rss:hover { text-decoration: underline; }

.ln-chips { position: sticky; top: 76px; z-index: 5; display: flex; gap: 8px; padding: 18px 0; margin-bottom: 6px; overflow-x: auto; scrollbar-width: none; background: linear-gradient(var(--w-bg) 82%, transparent); }
.ln-chips::-webkit-scrollbar { display: none; }
.ln-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--w-line); border-radius: 999px; background: var(--w-bg-elv); color: var(--w-ink2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.ln-chip span { font-family: var(--w-mono); font-size: 12px; opacity: .65; font-weight: 400; }
.ln-chip:hover { border-color: var(--w-line3); color: var(--w-ink); }
.ln-chip[aria-pressed=true] { background: #2638fa; border-color: #2638fa; color: #fff; }

.ln-day { padding-top: 26px; }
.ln-day-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; padding-bottom: 10px; border-bottom: 1px dashed var(--w-line); font-family: var(--w-mono); font-size: 13px; font-weight: 500; color: var(--w-ink3); letter-spacing: .04em; }
.ln-day-head time { color: var(--w-ink); font-weight: 600; }

.ln-item { position: relative; padding: 22px 0 24px; border-bottom: 1px solid var(--w-line); }
.ln-item:last-child { border-bottom: 0; }
.ln-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--w-ink3); }
.ln-source::before { content: "来源 · "; opacity: .7; }
.ln-item-title { margin: 12px 0 8px; font-size: 21px; line-height: 1.45; font-weight: 700; }
.ln-item-title a { color: var(--w-ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease, color .2s; }
.ln-item-title a:hover { color: var(--w-primary); background-size: 100% 1px; }
.ln-item p { margin: 0 0 12px; color: var(--w-ink2); font-size: 15.5px; line-height: 1.8; }
.ln-item-more { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-family: var(--w-mono); font-size: 13px; color: var(--w-primary); text-decoration: none; }
.ln-item-more:hover span { transform: translateX(3px); }
.ln-item-more span { transition: transform .2s; }
.ln-empty { padding: 64px 0; text-align: center; color: var(--w-ink3); }
.ln-empty strong { display: block; color: var(--w-ink); font-size: 18px; margin-bottom: 6px; }
.ln-note { margin-top: 40px; padding: 16px 20px; border-radius: 14px; background: var(--w-soft); color: var(--w-ink3); font-size: 13.5px; line-height: 1.7; }
.ln-note a { color: var(--w-primary); }

/* ---------- 详情页 ---------- */
.ln-detail { max-width: 760px; }
.ln-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 14px; color: var(--w-ink3); }
.ln-crumb a { color: var(--w-ink3); text-decoration: none; }
.ln-crumb a:hover { color: var(--w-primary); }
.ln-crumb span:last-child { color: var(--w-primary); }
.ln-detail-head { padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--w-line); }
.ln-detail-head time { font-family: var(--w-mono); font-size: 13px; }
.ln-detail-title { margin: 16px 0 18px; color: var(--w-ink); font-size: clamp(28px, 4.2vw, 42px); line-height: 1.3; font-weight: 800; }
.ln-detail-lead { margin: 0 0 20px; padding-left: 16px; border-left: 3px solid var(--w-life-deep, #00e9aa); color: var(--w-ink2); font-size: 18px; line-height: 1.8; }
.ln-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--w-ink3); font-size: 14px; }
.ln-body { font-size: 17px; line-height: 1.9; }
.ln-body h2 { margin-top: 2em; font-size: 22px; }
.ln-body a { color: var(--w-primary); }
.ln-source-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 8px; padding: 20px 22px; border: 1px solid var(--w-line); border-radius: 18px; background: var(--w-bg-elv); }
.ln-source-box small { display: block; font-family: var(--w-mono); font-size: 12px; color: var(--w-ink3); letter-spacing: .06em; }
.ln-source-box strong { display: block; margin-top: 4px; color: var(--w-ink); font-size: 17px; }
.ln-related { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--w-line); }
.ln-related h2 { margin: 0 0 12px; font-size: 18px; color: var(--w-ink); }
.ln-related ul { list-style: none; margin: 0 0 20px; padding: 0; }
.ln-related li a { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--w-line); color: var(--w-ink); text-decoration: none; line-height: 1.5; }
.ln-related li a:hover span { color: var(--w-primary); }
.ln-related time { flex: none; width: 96px; font-family: var(--w-mono); font-size: 12.5px; color: var(--w-ink3); }
.ln-back { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; color: var(--w-primary); text-decoration: none; font-weight: 600; }

/* ---------- 首页 · 今日 AI 动态 ---------- */
.ln-home { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; margin: 96px auto 40px; }
.ln-home-intro h2 { margin: 0 0 16px; color: var(--w-ink); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.2; font-weight: 800; }
.ln-home-intro p { margin: 0 0 28px; color: var(--w-ink2); font-size: 16px; line-height: 1.8; max-width: 360px; }
.ln-home-list { list-style: none; margin: 0; padding: 6px 8px; border: 1px solid var(--w-line); border-radius: 22px; background: var(--w-bg-elv); box-shadow: var(--w-sh-2, 0 20px 40px -28px rgb(12 16 36 / 35%)); }
.ln-home-list li + li { border-top: 1px solid var(--w-line); }
.ln-home-list a { display: grid; grid-template-columns: 56px auto minmax(0, 1fr) 20px; gap: 14px; align-items: center; min-height: 64px; padding: 12px 14px; border-radius: 14px; color: var(--w-ink); text-decoration: none; transition: background .2s; }
.ln-home-list a:hover { background: var(--w-soft); }
.ln-home-list time { font-family: var(--w-mono); font-size: 13px; color: var(--w-ink3); }
.ln-home-title { font-size: 15.5px; font-weight: 600; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ln-home-arrow { color: var(--w-ink3); transition: transform .2s, color .2s; }
.ln-home-list a:hover .ln-home-arrow { transform: translateX(3px); color: var(--w-primary); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .ln-home { grid-template-columns: 1fr; gap: 28px; margin-top: 72px; }
  .ln-home-intro p { max-width: none; }
}
@media (max-width: 640px) {
  .ln-wrap { padding: 32px 16px 80px; }
  .ln-chips { top: 64px; margin: 0 -16px 6px; padding: 14px 16px; }
  .ln-rss { margin-left: 0; }
  .ln-item-title { font-size: 19px; }
  .ln-source-box { flex-direction: column; align-items: flex-start; }
  .ln-home-list { padding: 4px; border-radius: 18px; }
  .ln-home-list a { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "time pill" "title title"; gap: 8px 10px; padding: 14px 12px; }
  .ln-home-list time { grid-area: time; }
  .ln-home-list .ln-pill { grid-area: pill; justify-self: start; }
  .ln-home-title { grid-area: title; }
  .ln-home-arrow { display: none; }
  .ln-related li a { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .ln-button, .ln-item-title a, .ln-home-arrow, .ln-item-more span { transition: none; } }

/* 分页 */
.ln-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin: 36px 0 8px; }
.ln-pager[hidden] { display: none; }
.ln-page-nums { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ln-page { min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--w-line); background: var(--w-bg-elv, #fff); color: var(--w-ink); font: 600 15px/1 var(--w-font); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.ln-page:hover:not(:disabled):not([aria-current]) { border-color: var(--w-primary); color: var(--w-primary); }
.ln-page[aria-current="page"] { background: #2638FA; border-color: #2638FA; color: #fff; cursor: default; }
.ln-page:disabled { opacity: .4; cursor: not-allowed; }
.ln-page:focus-visible { outline: 3px solid #00E9AA; outline-offset: 2px; }
.ln-page-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; color: var(--w-ink3); }
.ln-page-info { width: 100%; text-align: center; font-size: 13px; color: var(--w-ink3); margin-top: 4px; }
@media (max-width: 560px) { .ln-page-step { flex: 1 1 40%; } .ln-page-nums { order: 3; width: 100%; justify-content: center; } .ln-page-info { order: 4; } }
