/* 极简未来主义风格 - 霓虹色调 */
:root {
    --neon-blue: #0ff0fc;
    --neon-pink: #ff00ff;
    --neon-purple: #9600ff;
    --dark-bg: #0a0a0a;
    --light-text: #e0e0e0;
    --glow-effect: 0 0 10px currentColor;
    --section-gap: 4vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Arial Narrow', sans-serif;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;700&display=swap');
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.8;
    overflow-x: hidden;
    perspective: 1000px;
}

/* 独特的斜切头部设计 */
header {
    background: linear-gradient(175deg, #111 60%, transparent 60.5%);
    padding: 3rem 0 6rem;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    position: relative;
    margin-bottom: var(--section-gap);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: end;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
}

.logo {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--glow-effect);
    transform: rotate(-5deg) translateX(-10px);
}

/* 不对称导航 */
nav ul {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 1.5rem;
    justify-content: end;
    list-style: none;
}

nav ul li:nth-child(odd) {
    transform: translateY(15px);
}

nav ul li a {
    color: var(--neon-blue);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--neon-blue);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

nav ul li a:hover {
    color: var(--dark-bg);
    background: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
    transform: scale(1.1) rotate(2deg);
}

/* 动态网格布局 */
.container {
    display: grid;
    grid-template-columns: 1fr minmax(0, 1200px) 1fr;
    padding: 0 2vw;
}

.container > * {
    grid-column: 2;
}

/* 斜角内容区块 */
.main-content {
    background: rgba(20, 20, 20, 0.7);
    padding: 4rem;
    margin-bottom: var(--section-gap);
    clip-path: polygon(0 3%, 100% 0, 97% 97%, 3% 100%);
    border: 1px solid var(--neon-purple);
    transition: clip-path 0.5s ease;
}

.main-content:hover {
    clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--neon-pink);
    text-shadow: var(--glow-effect);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, var(--neon-blue), transparent);
}

/* 蜂窝文章网格 */
.article-honeycomb {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    grid-auto-rows: 1fr;
}

.article-honeycomb::before {
    content: '';
    grid-column: 1 / -1;
    padding-bottom: 50%;
}

.article-cell {
    background: linear-gradient(145deg, #151515, #0d0d0d);
    padding: 2rem;
    border: 1px solid rgba(150, 0, 255, 0.3);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.article-cell:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 25px rgba(150, 0, 255, 0.5);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    z-index: 2;
}

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    filter: grayscale(80%);
    transition: filter 0.3s;
}

.article-cell:hover .article-image {
    filter: grayscale(0%) contrast(120%);
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--neon-blue);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--neon-pink);
    margin-top: auto;
}

/* 文章详情页的科幻风格 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.article-detail::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px dashed var(--neon-blue);
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.article-header {
    margin-bottom: 4rem;
    text-align: center;
}

.article-detail-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.article-detail-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    color: var(--neon-purple);
}

.article-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 3rem;
    border: 3px solid var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 255, 252, 0.3);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
    column-count: 2;
    column-gap: 3rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    break-inside: avoid;
}

/* 分页导航的电路板风格 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    position: relative;
}

.pagination::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--neon-purple), transparent);
    z-index: -1;
}

.pagination a {
    padding: 0.8rem 1.5rem;
    margin: 0 1rem;
    background: var(--dark-bg);
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    position: relative;
    overflow: hidden;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 252, 0.3), transparent);
    transition: all 0.6s;
}

.pagination a:hover::before {
    left: 100%;
}

/* 3D悬浮友情链接 */
.friend-links {
    margin: var(--section-gap) 0;
    position: relative;
}

.friend-links h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--neon-pink);
    text-align: center;
}

.friend-links-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    transform-style: preserve-3d;
}

.friend-links-container a {
    padding: 1rem;
    text-align: center;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    transition: all 0.4s ease;
    transform: rotateX(15deg) rotateY(-10deg);
}

.friend-links-container:hover a {
    transform: rotateX(0) rotateY(0);
}

.friend-links-container a:hover {
    background: var(--neon-blue);
    color: var(--dark-bg);
    transform: translateZ(20px) !important;
    box-shadow: 0 0 20px var(--neon-blue);
}

/* 科幻风格页脚 */
footer {
    background: linear-gradient(5deg, #000, #111);
    padding: 5rem 0 3rem;
    margin-top: var(--section-gap);
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0% 100%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--neon-pink), var(--neon-blue));
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: var(--neon-purple);
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .header-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    nav ul {
        justify-content: start;
    }
    
    .article-content {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 3rem 2rem;
        clip-path: none;
    }
    
    .article-honeycomb {
        grid-template-columns: 1fr;
    }
    
    .article-cell {
        clip-path: none !important;
    }
    
    nav ul {
        grid-template-columns: 1fr 1fr;
    }
    
    .article-detail-title {
        font-size: 2.2rem;
    }
}

/* 独特的滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}