@font-face {
    font-family: 'Anton';
    src: url('assets/fonts/Anton-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --neon-green: #39ff14;
    --bg-color: #0b0b0b;
    --text-main: #ffffff;
    --text-muted: #888;
    --font-head: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    cursor: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cursor-dot {
    width: 10px;
    height: 10px;
    background: var(--neon-green);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2147483647 !important;
    pointer-events: none;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--neon-green);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2147483647 !important;
    pointer-events: none;
    transition: transform 0.15s ease-out;
}

header.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(11, 11, 11, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.m-link {
    font-family: var(--font-head);
    font-size: 3rem;
    color: var(--bg-color);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: color 0.3s;
}

.m-link:hover {
    -webkit-text-stroke: 1px var(--bg-color);
    color: transparent;
}

.m-link .en {
    font-size: 1rem;
    font-family: var(--font-body);
    letter-spacing: 2px;
    display: block;
}

.mobile-footer {
    position: absolute;
    bottom: 40px;
    font-family: monospace;
    color: var(--bg-color);
    opacity: 0.6;
}

@media (max-width:768px) {
    .desktop-nav {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .nav-container {
        padding: 0 20px;
        height: 60px;
    }
}

.nav-menu a {
    margin-left: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.nav-menu a:hover {
    color: var(--neon-green);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.15) 0%, rgba(11, 11, 11, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    pointer-events: none;
}

.hero-text {
    text-align: center;
    text-transform: uppercase;
    font-family: var(--font-head);
    font-size: 10vw;
    line-height: 0.9;
    z-index: 2;
}

.hero-text span {
    display: block;
}

.outline {
    -webkit-text-stroke: 2px var(--text-main);
    color: transparent;
}

.filled {
    color: var(--neon-green);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 80px 0;
    /* 增加内边距以容纳倾斜的横幅 */
}

.marquee {
    background: var(--neon-green);
    color: var(--bg-color);
    padding: 15px 0;
    overflow: hidden;
    font-family: var(--font-head);
    font-size: 2rem;
    white-space: nowrap;
    margin: 0;
    /* 移除外边距，由容器 padding 控制 */
    opacity: 0;
    transform-origin: center;
    position: relative;
}

/* 第一条横幅：向右下倾斜 + 阴影 */
.marquee-1 {
    transform: rotate(-2deg) scale(1.05) translateX(-100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* 第二条横幅：向左下倾斜 + 更深的阴影（交叉效果） */
.marquee-2 {
    transform: rotate(2deg) scale(1.05) translateX(100%);
    margin-top: -30px;
    /* 让两条横幅更接近，增强交叉感 */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* 入场后的状态 */
.marquee.marquee-visible {
    opacity: 1;
}

.marquee-1.marquee-visible {
    transform: rotate(-2deg) scale(1.05) translateX(0);
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.marquee-2.marquee-visible {
    transform: rotate(2deg) scale(1.05) translateX(0);
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1) 0.2s, opacity 0.8s ease 0.2s;
}

/* 出场动画（向上回滚时） */
.marquee-1.marquee-exit {
    transform: rotate(-2deg) scale(1.05) translateX(-100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.6, 0, 0.8, 0.4), opacity 0.6s ease;
}

.marquee-2.marquee-exit {
    transform: rotate(2deg) scale(1.05) translateX(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.6, 0, 0.8, 0.4) 0.1s, opacity 0.6s ease 0.1s;
}

.marquee-content {
    display: inline-block;
}

/* =========================================
   3. 博客文章列表 (艺术瀑布流)
   ========================================= */
.container {
    max-width: 1400px;
    /* 加宽容器以容纳更多列 */
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.post-grid {
    column-count: 3;
    /* 默认3列 */
    column-gap: 40px;
    /* 列间距 */
    margin-bottom: 50px;
    /* 减少底部留白 */
    /* perspective: 1000px;  <-- 移除 3D 透视 */
}

/* 粒子边框样式 */
.border-particle {
    position: fixed;
    top: 0;
    left: 0;
    /* 使用 fixed 因为我们用 getBoundingClientRect 定位 */
    width: 3px;
    height: 3px;
    background: var(--neon-green);
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 5px var(--neon-green);
}

.post-card {
    display: inline-block;
    /* 关键：防止跨列断裂 */
    width: 100%;
    margin-bottom: 40px;
    /* 卡片垂直间距 */
    break-inside: avoid;
    /* 防止内容被切断 */

    background: #0f0f0f;
    border: 1px solid #333;
    position: relative;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;

    /* 艺术感：留白 */
    padding: 15px;
}

.post-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-5px);
    /* 轻微上浮 */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--neon-green);
}

/* 文章缩略图 (艺术画框风格) */
.post-thumb {
    width: 100%;
    /* 移除固定高度，让图片自适应高度，形成错落感 */
    /* height: 200px; */
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;

    /* 画框效果 */
    border: 1px solid #222;
    padding: 5px;
    /* 图片与边框的距离 */
    background: #050505;
}

.post-thumb img {
    width: 100%;
    height: auto;
    /* 自适应高度 */
    display: block;
    object-fit: cover;

    /* 默认黑白 + 噪点感 */
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    transition: filter 0.5s ease, transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 悬停时恢复彩色并放大 */
.post-card:hover .post-thumb img {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.03);
}

/* 内容包裹层 */
.post-content-wrapper {
    padding: 10px 5px;
    /* 减少内边距，更紧凑 */
}

.post-meta {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--neon-green);
    /* 强调元信息 */
    margin-bottom: 10px;
    display: inline-block;
    border: 1px solid var(--neon-green);
    padding: 2px 8px;
    border-radius: 20px;
    /* 胶囊样式 */
    opacity: 0.8;
}

.post-title {
    font-family: var(--font-head);
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.post-title a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
    background: linear-gradient(to right, var(--neon-green), var(--neon-green)) no-repeat left bottom;
    background-size: 0 2px;
    transition: background-size 0.3s, color 0.3s;
}

.post-card:hover .post-title a {
    background-size: 100% 2px;
    /* 下划线展开 */
}

.btn-read {
    display: inline-block;
    font-size: 0.9rem;
    color: #888;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    font-family: 'Courier New', monospace;
}

.post-card:hover .btn-read {
    color: #fff;
    transform: translateX(5px);
}

/* 响应式列数调整 */
@media (max-width: 1024px) {
    .post-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .post-grid {
        column-count: 1;
    }
}

.article-content {
    max-width: 800px;
    margin: 100px auto;
    font-size: 1.1rem;
}

.article-content h1,
h2,
h3 {
    font-family: var(--font-head);
    color: var(--neon-green);
    margin-top: 40px;
}

.article-content img {
    max-width: 100%;
    border: 1px solid #333;
    margin: 20px 0;
}

.article-header {
    text-align: center;
    padding: 150px 0 50px;
}

.article-title {
    font-family: var(--font-head);
    font-size: 4rem;
    line-height: 1;
}

@media (max-width:768px) {
    .hero-text {
        font-size: 15vw;
    }

    .article-title {
        font-size: 2.5rem;
    }
}

@keyframes acid-blink {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 10px var(--neon-green);
    }

    100% {
        opacity: 0.2;
    }
}

.loading-text {
    animation: acid-blink 1s infinite;
}

.logo-wrapper {
    display: block;
    border: none;
    padding: 0;
}

.site-logo {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
}

@media (max-width:768px) {
    .site-logo {
        height: 40px;
    }

    header.site-header {
        padding: 15px 20px;
    }
}

.back-btn-wrapper {
    margin-bottom: 30px;
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 30px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    background: rgba(0, 0, 0, 0.3);
}

.btn-back .icon {
    margin-right: 10px;
    font-size: 1.2em;
    transition: transform 0.3s;
}

.btn-back:hover {
    color: var(--bg-color);
    background: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
    transform: translateY(-2px);
}

.btn-back:hover .icon {
    transform: translateX(-5px);
}

@media (max-width:768px) {
    .btn-back {
        font-size: 1rem;
        padding: 8px 20px;
    }
}

#matrix-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.2);
}

#matrix-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-text {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: wait;
}

.loader-content {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.loading-counter {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 15vw;
    color: var(--neon-green);
    line-height: 1;
    margin-bottom: 20px;
    animation: glitch-text 0.3s infinite;
}

.loading-text {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: #333;
    position: relative;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--neon-green);
    position: absolute;
    left: 0;
    top: 0;
    box-shadow: 0 0 10px var(--neon-green);
}

@keyframes glitch-text {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

@media (max-width:768px) {
    .loading-counter {
        font-size: 25vw;
    }

    .loading-text {
        font-size: 0.9rem;
    }
}

#acid-footer {
    background: #000;
    border-top: 1px solid #333;
    padding: 80px 0 40px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 40px;
}

.eye-container {
    display: flex;
    gap: 20px;
}

.eye {
    width: 80px;
    height: 80px;
    background: var(--neon-green);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.pupil {
    width: 30px;
    height: 30px;
    background: #000;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
}

.eyelid-top,
.eyelid-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 0%;
    background: #0b0b0b;
    z-index: 5;
    transition: height 0.1s;
}

.eyelid-top {
    top: 0;
}

.eyelid-bottom {
    bottom: 0;
}

#acid-footer:hover .eyelid-top,
#acid-footer:hover .eyelid-bottom {
    height: 15%;
}

.footer-links {
    flex-grow: 1;
    text-align: center;
    /* 文字居中 */
}

.footer-title {
    font-family: var(--font-head);
    font-size: 3rem;
    color: #fff;
    margin: 0 0 15px;
    line-height: 1;
}

.social-row a {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 15px;
    text-transform: uppercase;
    position: relative;
}

.social-row a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

.social-row a::before {
    content: '>';
    opacity: 0;
    margin-right: 5px;
    transition: opacity 0.3s;
    color: var(--neon-green);
}

.social-row a:hover::before {
    opacity: 1;
}

.copyright {
    text-align: center;
    /* 版权信息居中 */
    font-size: 0.8rem;
    color: #555;
    font-family: monospace;
}

.copyright p {
    margin: 5px 0;
}

@media (max-width:768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .eye {
        width: 60px;
        height: 60px;
    }

    .copyright {
        text-align: center;
    }
}

/* ICP 备案号艺术化排版 */


.icp-icon {
    color: var(--neon-green);
    font-size: 0.7rem;
    opacity: 0.6;
}

.icp-number {
    font-weight: 500;
}

/* =========================================
   Site-wide Like Button (赞)
   ========================================= */
.site-like-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 0;
}

.btn-zan {
    background: transparent;
    border: 2px solid var(--neon-green);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--neon-green);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: visible;

    /* 思源黑体极细 */
    font-family: 'Source Han Sans CN', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    font-size: 3.5rem;
    font-weight: 100;
    line-height: 1;
}

.btn-zan:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.7);
    border-color: #fff;
    color: #fff;
}

.btn-zan:active {
    transform: scale(0.85) rotate(-8deg);
}

.btn-zan.liked {
    background: var(--neon-green);
    color: #000;
}

/* 出拳粒子 */
.punch-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--neon-green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 8px var(--neon-green);
    top: 0;
    left: 0;
}

.like-count-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

#site-like-count {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 2rem;
    color: var(--neon-green);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.like-label {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 2px;
}