/* 博客列表页(/posts/、/category/<slug>/):1:1 复刻 neutemu.com/blog 的暗色版。
   只用于 site_page() 外框,不加载原版 style.min.css。数值照搬参考站(Tailwind 暗色 + site-* 变量)。 */

/* Inter 字体(SIL OFL 1.1,github.com/rsms/inter),自托管,中文走系统字体 */
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(/fonts/inter-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                   U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter Fallback";
    src: local(Arial);
    ascent-override: 90.44%;
    descent-override: 22.52%;
    line-gap-override: 0%;
    size-adjust: 107.12%;
}

:root {
    --site-page: #07111f;
    --site-surface: #0e2138b8;
    --site-border: #bed8ff24;
    --site-border-hover: #8fbaff61;
    --site-heading: #f3f8ff;
    --site-muted: #91a3ba;
    --site-accent: #8fbaff;
    --site-accent-strong: #b9d4ff;
    --site-accent-soft: #8fbaff1c;
    --site-accent-rgb: 143, 186, 255;
    --site-highlight: #ffffff26;
    --site-shadow: 0 24px 70px #01081452;
    --site-shadow-hover: 0 30px 84px #01081475;
    --site-nav-bg: #07111ff7;
    --site-nav-border: #bed8ff1f;
    --site-radius-md: 18px;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-800: #1e40af;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
}

*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 10% -8%, #4e8bdd21, transparent 32rem), var(--site-page);
    background-color: var(--site-page);
    color: var(--site-heading);
    font-family: Inter, "Inter Fallback";      /* 同参考站:中文交给浏览器默认字体 */
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }

/* ---------- 顶部导航(fixed h-16 毛玻璃) ---------- */
.sn {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 64px;
    border-bottom: 1px solid var(--site-nav-border);
    background: var(--site-nav-bg);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    box-shadow: 0 10px 32px #0108143d;
}
.sn-inner {
    max-width: 1360px;
    height: 100%;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sn-logo {
    flex-shrink: 0;
    font-size: 24px;
    line-height: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #0668e1 0%, #0082fb 50%, #1877f2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sn-links { display: none; align-items: center; gap: 24px; }
.sn-link {
    position: relative;
    padding: 8px 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #d1d5db;
    white-space: nowrap;
    transition: color .3s cubic-bezier(.4, 0, .2, 1);
}
.sn-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width .3s cubic-bezier(.4, 0, .2, 1);
}
.sn-link:hover { color: #fff; }
.sn-link:hover::after { width: 100%; }
.sn-link.on { color: var(--site-accent); }
.sn-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sn-btn {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 9999px;
    border: 1px solid var(--blue-600);
    background: var(--blue-600);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .025em;
    white-space: nowrap;
    transition: background-color .2s, border-color .2s;
}
.sn-btn:hover { background: #1d4ed8; border-color: var(--blue-500); }
.sn-toggle { display: inline-flex; padding: 8px; color: #fff; }
.sn-panel {
    display: none;
    flex-direction: column;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--site-nav-border);
    background: var(--site-nav-bg);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
}
.sn-panel .sn-link { padding: 12px 0; font-size: 15px; }
.sn-panel .sn-link::after { display: none; }
.sn.open .sn-panel { display: flex; }

/* ---------- 页面主体(pt-28 pb-24,容器 1240) ---------- */
.bl { flex: 1; padding: 112px 0 96px; }
.bl-inner { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

.bl-hero { max-width: 896px; margin-bottom: 40px; }
.bl-chip {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(var(--site-accent-rgb), .2);
    background: var(--site-accent-soft);
    color: var(--site-accent-strong);
    font-size: 12px;
    line-height: 16px;
    font-weight: 900;
    letter-spacing: .25em;
    text-transform: uppercase;
}
.bl-hero h1 {
    font-size: 36px;
    line-height: 40px;
    font-weight: 900;
    letter-spacing: -.025em;
    color: #fff;
}
.bl-hero p {
    max-width: 768px;
    margin-top: 20px;
    font-size: 18px;
    line-height: 32px;
    color: var(--slate-300);
}

/* 分类卡片 */
.bl-tabs { display: grid; gap: 12px; margin-bottom: 40px; }
.bl-tab {
    display: block;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--slate-800);
    background: var(--slate-900);
    color: var(--slate-200);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.bl-tab:hover {
    transform: translateY(-2px);
    border-color: var(--blue-800);
    box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
}
.bl-tab-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bl-tab-head span { min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 20px; font-weight: 900; }
.bl-tab-head em {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 9999px;
    background: var(--slate-800);
    color: var(--slate-400);
    font-size: 12px;
    line-height: 16px;
    font-style: normal;
    font-weight: 700;
}
.bl-tab p {
    margin-top: 8px;
    font-size: 12px;
    line-height: 20px;
    color: var(--slate-400);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.bl-tab.on {
    border-color: var(--blue-500);
    background: var(--blue-600);
    color: #fff;
    box-shadow: 0 10px 15px -3px #2563eb33, 0 4px 6px -4px #2563eb33;
}
.bl-tab.on em { background: #fff3; color: #fff; }
.bl-tab.on p { color: #eff6ff; }

/* 文章卡片(site-surface site-surface-interactive) */
.bl-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.bl-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-md);
    background: linear-gradient(145deg, var(--site-highlight), transparent 42%), var(--site-surface);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);
    box-shadow: inset 0 1px 0 var(--site-highlight), var(--site-shadow);
    transition: transform .22s, border-color .22s, box-shadow .22s;
}
.bl-card:hover {
    transform: translateY(-3px);
    border-color: var(--site-border-hover);
    box-shadow: inset 0 1px 0 var(--site-highlight), var(--site-shadow-hover);
}
.bl-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(to bottom right, var(--slate-800), var(--slate-900));
}
.bl-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.bl-card:hover .bl-cover img { transform: scale(1.05); }
.bl-cover-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    text-align: center;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: var(--slate-400);
}
.bl-body { padding: 24px; }
.bl-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    color: var(--blue-300);
}
.bl-meta .sep { color: var(--slate-300); }
.bl-card h2 {
    font-size: 20px;
    line-height: 1.375;
    font-weight: 900;
    color: #fff;
    transition: color .15s cubic-bezier(.4, 0, .2, 1);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.bl-card:hover h2 { color: var(--blue-300); }
.bl-card p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 24px;
    color: var(--slate-400);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.bl-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.bl-tags span {
    overflow-wrap: anywhere;
    padding: 4px 12px;
    border-radius: 9999px;
    background: var(--slate-800);
    color: var(--slate-300);
    font-size: 11px;
    font-weight: 700;
}
.bl-empty { padding: 80px 0; text-align: center; font-size: 14px; color: var(--slate-400); }

/* 分页(site-surface-flat) */
.bl-pager {
    margin-top: 48px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-md);
    background: linear-gradient(145deg, var(--site-highlight), transparent 42%), var(--site-surface);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);
}
.bl-step {
    padding: 12px 20px;
    border-radius: 9999px;
    background: #fff;
    color: var(--slate-950);
    font-size: 14px;
    line-height: 20px;
    font-weight: 900;
    transition: background-color .15s, color .15s;
}
.bl-step:hover { background: var(--blue-200); }
.bl-step.off { background: var(--slate-800); color: var(--slate-600); pointer-events: none; }
.bl-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bl-num { display: flex; align-items: center; gap: 8px; }
.bl-num a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: var(--slate-800);
    color: var(--slate-300);
    font-size: 14px;
    font-weight: 900;
    transition: background-color .15s, color .15s;
}
.bl-num a:hover { background: var(--slate-700); }
.bl-num a.on { background: var(--blue-600); color: #fff; }
.bl-num .dots { padding: 0 4px; font-size: 14px; font-weight: 700; color: var(--slate-400); }

/* 页脚(参考站此处无页脚;保留 asorn-open 署名) */
.sf {
    padding: 28px 16px 36px;
    border-top: 1px solid var(--site-nav-border);
    text-align: center;
    font-size: 13px;
    line-height: 20px;
    color: var(--site-muted);
}
.sf span { margin: 0 10px; opacity: .5; }
.sf a { color: var(--site-muted); transition: color .15s; }
.sf a:hover { color: var(--site-accent); }

/* ---------- 断点(同 Tailwind:sm 640 / md 768 / lg 1024 / xl 1280) ---------- */
@media (min-width: 640px) {
    .sn-inner { padding: 0 24px; }
    .bl-tabs { grid-template-columns: repeat(2, 1fr); }
    .bl-pager { flex-direction: row; }
}
@media (min-width: 768px) {
    .bl-inner { padding: 0 32px; }
    .bl-hero h1 { font-size: 60px; line-height: 1; }
    .bl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .sn-inner { padding: 0 32px; }
    .sn-links { display: flex; }
    .sn-toggle, .sn.open .sn-panel { display: none; }
    .bl-tabs { grid-template-columns: repeat(3, 1fr); }
    .bl-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
    .bl-tabs { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1536px) {
    .sn-links { gap: 32px; }
}
