@font-face {
    font-family: "AlimamaShuHeiTi";
    src: url("./assets/fonts/AlimamaShuHeiTi-Bold.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* { box-sizing: border-box; margin: 0; }

body {
    font-family: "AlimamaShuHeiTi", ui-sans-serif, system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #111;
    background: #fff;
    opacity: 0;
    animation: fadeIn .6s ease forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding-inline: 32px;
}

.header-bar {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand { display: flex; align-items: center; }
.brand-logo { display: block; }

.nav-links { display: flex; gap: 24px; }

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #697383;
    transition: color 0.2s ease;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover { color: #0a0a0a; }
.nav-link.active { color: #1F76E0; }

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #1F76E0;
}

/* Intro */
.intro {
    max-width: 1400px;
    margin: 0 auto;
    padding: 180px 32px 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.intro h1 {
    font-size: 72px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
    color: #111;
}

.intro p {
    margin-top: 16px;
    font-size: 16px;
    color: #999;
    letter-spacing: .02em;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* List */
.list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 120px;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.item {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 0.8s ease forwards;
}

.item:nth-child(1) { animation-delay: 0.4s; }
.item:nth-child(2) { animation-delay: 0.6s; }
.item:nth-child(3) { animation-delay: 0.8s; }
.item:nth-child(4) { animation-delay: 1s; }

.item.reverse {
    grid-template-columns: 1fr 1.4fr;
}

.item.reverse .item-img {
    order: 2;
}

.item.reverse .item-meta {
    order: 1;
    text-align: right;
}

.item.reverse .item-meta .item-tag {
    margin-left: auto;
}

/* Image */
.item-img {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
    aspect-ratio: 16 / 10;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.16,1,.3,1);
}

.item:hover .item-img img {
    transform: scale(1.03);
}

/* Meta */
.item-no {
    display: block;
    font-size: 13px;
    color: #ccc;
    letter-spacing: .1em;
    margin-bottom: 16px;
    font-weight: 400;
}

.item-meta h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.item-meta h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: #1F76E0;
    transition: width 0.4s cubic-bezier(.16,1,.3,1);
}

.item:hover .item-meta h2::after {
    width: 100%;
}

.item-meta p {
    margin-top: 12px;
    font-size: 15px;
    color: #999;
    line-height: 1.6;
}

.item-tag {
    display: inline-block;
    margin-top: 20px;
    font-size: 12px;
    color: #bbb;
    letter-spacing: .05em;
    padding: 6px 0;
    border-top: 1px solid #eee;
}

.site-footer {
    padding: 20px 0;
}

.footer-beian {
    font-size: 12px;
    line-height: 1.7;
    color: #b0b8c4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px 10px;
    flex-wrap: wrap;
}

.footer-beian .dot { opacity: .4; }

.footer-beian .beian-link {
    color: inherit;
    text-decoration: none;
    opacity: .8;
    transition: color .2s ease, opacity .2s ease;
}

.footer-beian .beian-link:hover {
    opacity: 1;
    color: #8a94a6;
}

.record-icon { vertical-align: middle; }

/* Mobile */
@media (max-width: 768px) {
    .container { padding-inline: 18px; }

    .header-bar { height: 64px; }

    .nav-links { gap: 16px; }
    .nav-link { font-size: 0.9rem; }

    .intro {
        padding: 120px 18px 48px;
    }

    .intro h1 { font-size: 40px; }
    .intro p { font-size: 14px; }

    .list {
        padding: 0 18px 80px;
        gap: 64px;
    }

    .item,
    .item.reverse {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .item.reverse .item-img,
    .item.reverse .item-meta {
        order: unset;
    }

    .item.reverse .item-meta {
        text-align: left;
    }

    .item.reverse .item-meta .item-tag {
        margin-left: 0;
    }

    .item-meta h2 { font-size: 24px; }
    .item-meta p { font-size: 14px; }

    .footer-beian {
        font-size: 10px;
    }

    .record-icon { height: 14px !important; }
}
