:root {
    --bg: #080b0b;
    --panel: rgba(255, 255, 255, .07);
    --line: rgba(255, 255, 255, .12);
    --text: #f5fbfa;
    --muted: #a8b7b5;
    --brand: #0df283;
    --brand-2: #79ffff;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 0%, rgba(13, 242, 131, .16), transparent 32%),
        linear-gradient(180deg, #0c1111 0%, var(--bg) 46%, #050606 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(5, 8, 8, .78);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: 160px; height: 46px; object-fit: contain; }
.home-link {
    color: #06100d;
    background: var(--brand);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
}

.page { padding: 62px 0 90px; }
.page-hero { max-width: 760px; margin-bottom: 32px; }
.kicker { color: var(--brand); font-weight: 900; font-size: 13px; margin: 0 0 10px; }
h1 { margin: 0; font-size: clamp(36px, 6vw, 64px); line-height: 1.08; }
.page-hero p { color: var(--muted); font-size: 18px; line-height: 1.8; }
.search-form { display: flex; gap: 10px; margin-top: 24px; }
.search-form input {
    width: min(520px, 100%);
    min-height: 48px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255,255,255,.08);
    padding: 0 14px;
    font-size: 15px;
}
.search-form button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    padding: 0 22px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #06100d;
    font-weight: 900;
    cursor: pointer;
}

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-card {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 8px;
    overflow: hidden;
}
.article-cover { aspect-ratio: 16 / 9; overflow: hidden; background: rgba(255,255,255,.06); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.article-card:hover img { transform: scale(1.04); }
.article-body { padding: 18px; }
.article-meta, .detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}
.article-body h2 {
    margin: 12px 0 0;
    font-size: 20px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-body p {
    color: var(--muted);
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination-wrap { margin-top: 36px; color: var(--muted); }
.pagination-wrap nav { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination-wrap a, .pagination-wrap span {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 10px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    padding: 52px 0 92px;
}
.article-detail, .article-aside {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.065);
    border-radius: 8px;
}
.article-detail { padding: clamp(24px, 4vw, 46px); }
.breadcrumb { display: flex; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.detail-meta { margin-top: 18px; }
.detail-cover { width: 100%; border-radius: 8px; margin: 28px 0; }
.lead {
    border-left: 4px solid var(--brand);
    padding-left: 16px;
    color: rgba(255,255,255,.82);
    font-size: 18px;
    line-height: 1.8;
}
.article-content {
    color: rgba(255,255,255,.88);
    font-size: 17px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}
.article-content h2, .article-content h3 { line-height: 1.35; margin-top: 32px; }
.article-content p { margin: 16px 0; }
.article-content img { height: auto; border-radius: 8px; margin: 20px auto; }
.article-content a { color: var(--brand-2); text-decoration: underline; }

.article-aside { height: fit-content; padding: 20px; position: sticky; top: 92px; }
.article-aside h2 { margin: 0 0 14px; font-size: 20px; }
.aside-link { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
.aside-link span { display: block; line-height: 1.55; }
.aside-link time { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.empty {
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    padding: 28px;
    background: var(--panel);
}

@media (max-width: 900px) {
    .article-grid, .article-layout { grid-template-columns: 1fr; }
    .article-aside { position: static; }
    .search-form { flex-direction: column; }
}
