/* 太空科技主题CSS */
:root {
    --neon-blue: #0ff0fc;
    --neon-pink: #ff00ff;
    --deep-space: #0a0a1a;
    --star-dust: #e0e0e0;
    --void: #000033;
    --warning: #ff5555;
    --terminal: #00ff41;
    --grid-line: rgba(0, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', 'Orbitron', sans-serif;
}

body {
    background-color: var(--deep-space);
    color: var(--star-dust);
    background-image: 
        radial-gradient(circle at 20% 30%, var(--void) 0%, transparent 25%),
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 不对称头部设计 */
header {
    background: rgba(10, 10, 26, 0.9);
    padding: 1.5rem 3rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    border-bottom: 1px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transform: skewX(-15deg);
}

/* 导航菜单 - 全息投影效果 */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
}

nav ul li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* 3D倾斜容器 */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 3rem auto;
    perspective: 1000px;
}

.main-content {
    background: rgba(10, 10, 26, 0.7);
    border: 1px solid var(--neon-blue);
    padding: 2.5rem;
    margin-bottom: 3rem;
    transform-style: preserve-3d;
    transform: rotateY(-5deg);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2),
                inset 0 0 20px rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.main-content:hover::before {
    left: 100%;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--neon-pink);
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, var(--neon-blue), transparent);
}

/* 蜂窝网格布局 */
.hex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    grid-auto-rows: 1fr;
}

.hex-item {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid var(--neon-blue);
    padding: 1.5rem;
    transition: all 0.3s;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
}

.hex-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 20px var(--neon-blue);
    z-index: 10;
}

.hex-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 1rem;
    filter: grayscale(30%);
    transition: filter 0.3s;
}

.hex-item:hover .hex-image {
    filter: grayscale(0%);
}

.hex-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--neon-pink);
}

.hex-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--terminal);
}

/* 文章详情页 - 控制台风格 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    border-left: 3px solid var(--neon-blue);
    padding-left: 2rem;
}

.article-header {
    margin-bottom: 3rem;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--neon-blue);
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    color: var(--terminal);
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin: 2rem 0;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    border-top: 1px dashed var(--neon-pink);
    padding-top: 2rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.article-content p::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-pink);
}

/* 分页 - 按钮组风格 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.8rem 1.5rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--neon-blue);
    transition: all 0.3s;
    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, 255, 0.3), transparent);
    transition: 0.5s;
}

.pagination a:hover::before {
    left: 100%;
}

.pagination a:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px var(--neon-blue);
}

/* 友情链接 - 芯片风格 */
.friend-links {
    background: rgba(15, 15, 35, 0.8);
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid var(--neon-pink);
    position: relative;
}

.friend-links::before, .friend-links::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-blue);
}

.friend-links::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.friend-links::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

.friend-links h3 {
    margin-bottom: 1.5rem;
    color: var(--neon-pink);
    font-size: 1.5rem;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.friend-links-container a {
    padding: 0.5rem 1rem;
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid var(--neon-pink);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background: rgba(255, 0, 255, 0.3);
    box-shadow: 0 0 10px var(--neon-pink);
}

/* 页脚 - 飞船控制台风格 */
footer {
    background: #050510;
    padding: 2rem 0;
    text-align: center;
    margin-top: 5rem;
    border-top: 1px solid var(--neon-blue);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 48%, var(--neon-blue) 50%, transparent 52%),
        linear-gradient(0deg, transparent 48%, var(--neon-blue) 50%, transparent 52%);
    background-size: 30px 30px;
    opacity: 0.1;
}

.copyright {
    font-size: 0.9rem;
    color: var(--terminal);
    position: relative;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }
    
    .main-content {
        transform: none;
    }
    
    .hex-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        clip-path: none;
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hex-item {
        clip-path: none;
    }
    
    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hex-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}