:root {
    --page-bg: #000000;
    --page-ink: #f7f7f2;
    --muted: #a7a7a0;
    --line: rgba(255, 255, 255, 0.16);
    --blue: #9cc9ff;
    --mint: #9bd8c2;
    --peach: #ffb58a;
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--page-ink);
    background: var(--page-bg);
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 34px;
    min-height: 72px;
    padding: 0 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    flex: 0 0 166px;
    align-items: baseline;
    gap: 2px;
    width: 166px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.brand-mark {
    display: inline-flex;
    flex: 0 0 58px;
    width: 58px;
    min-width: 58px;
    overflow: hidden;
    color: #a2a2a2;
}

.brand-mark::after {
    content: ".";
    display: inline-block;
    animation: brandDots 4.5s infinite;
}

.main-nav {
    display: flex;
    align-items: stretch;
    gap: 28px;
    min-height: 72px;
}

.nav-menu-group {
    display: flex;
    align-items: center;
    min-height: 72px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 72px;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.76);
    border: 0;
    background: transparent;
    appearance: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.nav-menu-group:focus-within .nav-link,
.nav-menu-group.is-open .nav-link,
.nav-link[aria-current="page"] {
    color: #ffffff;
}

.nav-link:focus-visible,
.nav-mega-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.78);
    outline-offset: 6px;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-height: 248px;
    padding: 34px 44px 46px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #000000;
    box-shadow: 0 34px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    clip-path: inset(0 0 100% 0);
    transition: opacity 220ms ease, transform 260ms ease, clip-path 280ms ease, visibility 0s linear 280ms;
}

.nav-menu-group:focus-within .nav-dropdown,
.nav-menu-group.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    clip-path: inset(0);
    transition-delay: 0s;
}

.nav-dropdown-inner {
    width: min(100%, 1280px);
    margin: 0;
}

.nav-dropdown-label {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
}

.nav-mega-list {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
}

.nav-mega-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    margin-left: -10px;
    padding: 7px 10px 8px;
    border: 0;
    border-radius: 6px;
    color: #f7f7f2;
    background: transparent;
    font-family: inherit;
    font-size: 26px;
    font-weight: 750;
    line-height: 1.14;
    overflow-wrap: anywhere;
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.nav-mega-link {
    cursor: pointer;
}

span.nav-mega-link {
    cursor: default;
}

a.nav-mega-link:hover,
span.nav-mega-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.nav-mega-link i {
    flex: 0 0 auto;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.nav-blog-menu .nav-mega-link {
    font-size: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.ghost-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 750;
    white-space: nowrap;
}

.ghost-button {
    padding: 0 24px;
    color: #ffffff;
    background: #202020;
}

.primary-button {
    gap: 8px;
    padding: 0 24px;
    color: #000000;
    background: #ffffff;
}

.primary-button svg {
    width: 18px;
    height: 18px;
}

.primary-button path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.blog-hero {
    padding: 0;
}

.blog-hero-panel {
    position: relative;
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    gap: 48px;
    min-height: 620px;
    padding: 56px;
    overflow: hidden;
    border-radius: 8px;
    background:
        repeating-linear-gradient(90deg, rgba(16, 20, 64, 0.16) 0 1px, transparent 1px 112px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 96px),
        linear-gradient(90deg, rgba(71, 86, 245, 0.68) 0%, rgba(71, 86, 245, 0.68) 33%, rgba(159, 132, 255, 0.74) 33%, rgba(159, 132, 255, 0.74) 100%),
        #cbc8ff;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

.blog-hero-copy {
    align-self: center;
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 28px;
    color: rgba(247, 247, 242, 0.66);
    font-size: 15px;
    font-weight: 760;
}

.blog-hero-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(64px, 8vw, 116px);
    font-weight: 740;
    line-height: 0.96;
}

.blog-hero-copy p:last-child {
    max-width: 560px;
    margin: 36px 0 0;
    color: rgba(247, 247, 242, 0.82);
    font-size: 23px;
    line-height: 1.38;
}

.blog-hero-art {
    position: relative;
    align-self: center;
    min-height: 470px;
}

.report-sheet {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 34px;
    border-radius: 8px;
    background:
        repeating-linear-gradient(0deg, rgba(17, 17, 17, 0.035) 0 1px, transparent 1px 58px),
        #fbfaf7;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
}

.report-sheet span,
.report-sheet i {
    display: block;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.12);
}

.report-sheet span {
    width: 92px;
    height: 10px;
}

.report-sheet strong {
    margin-top: 18px;
    color: rgba(17, 17, 17, 0.86);
    font-size: 42px;
    font-weight: 820;
}

.report-sheet i {
    height: 10px;
    margin-top: 28px;
}

.report-sheet i:nth-of-type(1) {
    width: 82%;
}

.report-sheet i:nth-of-type(2) {
    width: 64%;
}

.report-sheet i:nth-of-type(3) {
    width: 74%;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 24px;
    align-items: stretch;
    padding: 30px 44px 108px;
}

.featured-post,
.post-list article {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        #141414;
}

.post-cover {
    min-height: 360px;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.28)),
        url("/static/img/cover/gen_8396e6b6.png");
    background-position: center;
    background-size: cover;
}

.post-body {
    padding: 34px;
}

.post-meta {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.post-body h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 760;
    line-height: 1.04;
}

.post-body p:last-child {
    max-width: 760px;
    margin: 24px 0 0;
    color: rgba(247, 247, 242, 0.72);
    font-size: 18px;
    line-height: 1.62;
}

.post-list {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-content: stretch;
}

.post-list article {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
    padding: 24px;
}

.post-list article::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--post-image);
    background-position: center;
    background-size: cover;
    opacity: 1;
}

.post-list span,
.post-list strong {
    position: relative;
    z-index: 1;
}

.post-list span {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 28px;
    padding: 0 11px;
    color: rgba(17, 17, 17, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(10px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.post-list strong {
    display: block;
    margin-top: 14px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 780;
    line-height: 1.25;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.site-footer {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 92px;
    padding: 0 44px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.site-footer span {
    margin-right: auto;
    color: #ffffff;
    font-weight: 800;
}

@keyframes brandDots {
    0% { content: "."; opacity: 1; }
    5% { content: "."; opacity: 0; }
    10% { content: "."; opacity: 1; }
    15% { content: "."; opacity: 0; }
    20% { content: "."; opacity: 1; }
    33% { content: ".."; opacity: 1; }
    44% { content: "..."; opacity: 1; }
    55% { content: "...?"; opacity: 1; }
    77% { content: "...?"; opacity: 1; }
    82% { content: ".."; opacity: 1; }
    100% { content: "."; opacity: 1; }
}

@media (max-width: 900px) {
    .site-header {
        grid-template-areas:
            "brand nav";
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        min-height: 64px;
        padding: 0 22px;
    }

    .brand {
        grid-area: brand;
        min-height: 64px;
    }

    .main-nav {
        grid-area: nav;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        width: 100%;
        min-height: 64px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-menu-group {
        min-height: 64px;
    }

    .nav-link {
        min-height: 64px;
        padding: 0 10px;
    }

    .header-actions {
        display: none;
    }

    .ghost-button {
        display: none;
    }

    .blog-hero,
    .blog-layout {
        padding-right: 22px;
        padding-left: 22px;
    }

    .blog-hero-panel,
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-hero-panel {
        padding: 34px;
    }

    .blog-hero-copy h1 {
        font-size: 64px;
    }

    .site-footer {
        flex-wrap: wrap;
        padding: 24px 22px;
    }
}

@media (max-width: 560px) {
    .site-header {
        min-height: 60px;
        gap: 8px;
        padding: 0 14px;
    }

    .main-nav {
        gap: 2px;
        min-height: 60px;
    }

    .nav-link {
        min-height: 60px;
        padding: 0 6px;
        font-size: 13px;
    }

    .brand {
        flex-basis: 118px;
        width: 118px;
        min-height: 60px;
        font-size: 22px;
    }

    .brand-mark {
        flex-basis: 32px;
        width: 32px;
        min-width: 32px;
    }

    .primary-button {
        padding: 0 18px;
        font-size: 14px;
    }

    .blog-hero-copy h1 {
        font-size: 48px;
    }

    .blog-hero-copy p:last-child {
        font-size: 18px;
    }
}
