/* 太空科技主题 - 创新不对称布局 */
:root {
    --space-dark: #0a0a1a;
    --neon-blue: #00f7ff;
    --neon-pink: #ff00f7;
    --star-light: #e0e0ff;
    --panel-dark: rgba(10, 10, 30, 0.8);
    --glow-effect: 0 0 15px currentColor;
    --asymmetrical-offset: 5vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
}

body {
    background-color: var(--space-dark);
    color: var(--star-light);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 247, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 247, 0.1) 0%, transparent 20%);
    overflow-x: hidden;
    line-height: 1.7;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* 创新不对称头部 */
header {
    background: var(--panel-dark);
    backdrop-filter: blur(8px);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 80% 100%, 0 100%);
    border-bottom: 1px solid var(--neon-blue);
    transform: translateX(calc(-1 * var(--asymmetrical-offset)));
    width: calc(100% + var(--asymmetrical-offset));
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    transform: translateX(var(--asymmetrical-offset));
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--glow-effect);
    letter-spacing: 2px;
}

/* 对角线导航菜单 */
nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 1.5rem;
    transform: skewX(-15deg);
}

nav ul li a {
    color: var(--star-light);
    padding: 8px 15px;
    position: relative;
    display: block;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    transition: width 0.3s;
}

nav ul li a:hover::before {
    width: 100%;
}

/* 倾斜内容区 */
.main-content {
    background: var(--panel-dark);
    backdrop-filter: blur(5px);
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(0, 247, 255, 0.2);
    box-shadow: 
        0 0 30px rgba(0, 247, 255, 0.1),
        0 0 60px rgba(255, 0, 247, 0.05);
    transform: rotateZ(1deg);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,0,247,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    transform: translateX(var(--asymmetrical-offset));
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), transparent);
}

/* 蜂窝网格布局 */
.article-honeycomb {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    transform: translateX(calc(var(--asymmetrical-offset)/2));
}

.article-cell {
    background: rgba(20, 20, 40, 0.7);
    border: 1px solid rgba(0, 247, 255, 0.2);
    border-radius: 0;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-cell:hover {
    transform: scale(1.05) rotateZ(5deg);
    z-index: 10;
    box-shadow: 
        0 0 30px rgba(0, 247, 255, 0.3),
        0 0 60px rgba(255, 0, 247, 0.2);
}

.article-image {
    width: 100%;
    height: 60%;
    object-fit: cover;
    filter: grayscale(30%) contrast(120%);
    transition: filter 0.3s;
}

.article-cell:hover .article-image {
    filter: grayscale(0%) contrast(100%);
}

.article-info {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(90deg, var(--neon-blue), var(--star-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--neon-pink);
}

/* 文章详情页 - 全息投影风格 */
.article-hologram {
    background: rgba(10, 10, 30, 0.6);
    border: 1px solid var(--neon-blue);
    box-shadow: 
        0 0 40px rgba(0, 247, 255, 0.2),
        inset 0 0 20px rgba(0, 247, 255, 0.1);
    padding: 40px;
    position: relative;
    margin: 50px 0;
}

.article-hologram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

.article-detail-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 0 10px var(--neon-blue);
}

.article-detail-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.article-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin: 30px 0;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.3);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.article-content p::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--neon-pink);
    font-size: 0.8em;
}

/* 分页器 - 太空舱按钮 */
.pagination-capsule {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination-capsule a {
    padding: 12px 25px;
    border: 1px solid var(--neon-blue);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.pagination-capsule a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.3), transparent);
    transition: left 0.5s;
}

.pagination-capsule a:hover::before {
    left: 100%;
}

/* 友情链接 - 星球轨道 */
.friend-orbit {
    position: relative;
    padding: 40px;
    margin: 50px 0;
    border: 1px dashed rgba(0, 247, 255, 0.5);
    border-radius: 50%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.friend-orbit h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 80%;
}

.friend-links-container a {
    padding: 8px 15px;
    border: 1px solid var(--neon-pink);
    border-radius: 15px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.friend-links-container a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 247, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s;
}

.friend-links-container a:hover::after {
    transform: translateX(100%);
}

/* 页脚 - 太空船坞 */
footer {
    background: rgba(5, 5, 15, 0.9);
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
    clip-path: polygon(0 20%, 50% 0, 100% 20%, 100% 100%, 0 100%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink), var(--neon-blue));
}

.copyright {
    font-size: 0.9rem;
    margin-top: 30px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .article-honeycomb {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .article-cell {
        clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    }
}

@media (max-width: 768px) {
    :root {
        --asymmetrical-offset: 0;
    }
    
    header {
        clip-path: none;
        transform: none;
        width: 100%;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        transform: none;
    }
    
    nav ul {
        justify-content: center;
        margin-top: 20px;
        transform: none;
    }
    
    .main-content {
        transform: none;
    }
    
    .section-title {
        transform: none;
    }
    
    .article-honeycomb {
        transform: none;
    }
    
    .article-cell {
        clip-path: none;
        height: auto;
    }
    
    .friend-orbit {
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .article-honeycomb {
        grid-template-columns: 1fr;
    }
    
    .article-detail-title {
        font-size: 1.8rem;
    }
    
    .pagination-capsule {
        flex-direction: column;
        align-items: center;
    }
}