/* 未来科技感主题 - 赛博橙主色调 */
:root {
    --cyber-orange: #ff6b35;
    --neon-blue: #0ff0fc;
    --dark-matrix: #0a0a0a;
    --grid-line: rgba(15, 240, 252, 0.1);
    --text-glow: rgba(255, 107, 53, 0.7);
    --cyber-purple: #8a2be2;
    --tech-gray: #1a1a1a;
    --font-main: 'Orbitron', 'Rajdhani', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@300;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-matrix);
    color: #e0e0e0;
    font-family: var(--font-main);
    line-height: 1.6;
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 30px 30px;
    overflow-x: hidden;
}

/* 动态网格背景动画 */
@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: inherit;
    animation: gridMove 20s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

a {
    color: var(--cyber-orange);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px var(--text-glow);
}

a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 斜切头部设计 */
header {
    background-color: rgba(10, 10, 10, 0.9);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    border-bottom: 1px solid var(--cyber-orange);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: skewX(-10deg);
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--cyber-orange), var(--cyber-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: skewX(10deg);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 8px 15px;
    font-weight: 500;
    position: relative;
    font-size: 1.1rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--neon-blue);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 不对称内容区域 */
.main-content {
    background-color: rgba(26, 26, 26, 0.8);
    padding: 40px;
    margin: 40px 0;
    border-left: 3px solid var(--cyber-orange);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
    clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1));
    pointer-events: none;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--cyber-orange), var(--neon-blue));
}

/* 六边形网格布局 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    perspective: 1000px;
}

.article-card {
    background-color: var(--tech-gray);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    min-height: 350px;
}

.article-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    border-color: var(--cyber-orange);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 60%, rgba(15, 240, 252, 0.1));
    pointer-events: none;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.article-card:hover .card-image {
    filter: grayscale(0%) contrast(110%);
}

.card-body {
    padding: 25px;
    position: relative;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 20px;
    font-family: 'Rajdhani', sans-serif;
}

.card-meta span:first-child {
    color: var(--cyber-orange);
}

/* 分类标签 - 芯片样式 */
.category-chip {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--dark-matrix);
    color: var(--neon-blue);
    border-radius: 0;
    font-size: 0.8rem;
    margin-bottom: 15px;
    border: 1px solid var(--neon-blue);
    position: relative;
    overflow: hidden;
}

.category-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(15, 240, 252, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.category-chip:hover::before {
    transform: translateX(100%);
}

/* 文章详情页 - 全息投影风格 */
.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: 1px solid var(--cyber-orange);
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyber-orange), var(--neon-blue), var(--cyber-orange));
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
    text-shadow: 0 0 10px var(--text-glow);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    color: #aaa;
    margin-bottom: 30px;
    font-family: 'Rajdhani', sans-serif;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta span::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--cyber-orange);
    margin-right: 5px;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 30px;
    border: 1px solid var(--cyber-orange);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    font-family: 'Rajdhani', sans-serif;
    position: relative;
}

.article-content p {
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.article-content p::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--cyber-orange);
}

/* 分页导航 - 未来控制面板风格 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    background-color: var(--tech-gray);
    border: 1px solid var(--cyber-orange);
    color: white;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.3), transparent);
    transition: all 0.6s ease;
}

.pagination a:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--neon-blue);
    border-color: var(--neon-blue);
}

.pagination a:hover::before {
    left: 100%;
}

/* 友情链接 - 网络节点风格 */
.friend-links {
    background-color: var(--tech-gray);
    padding: 30px;
    margin: 50px 0;
    border-top: 1px solid var(--cyber-orange);
    border-bottom: 1px solid var(--cyber-orange);
    position: relative;
}

.friend-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(15, 240, 252, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.friend-links h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.friend-links-container a {
    padding: 10px 20px;
    background-color: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--cyber-orange);
    border-radius: 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.friend-links-container a:hover {
    background-color: var(--cyber-orange);
    color: var(--dark-matrix);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* 页脚 - 终端风格 */
footer {
    background-color: rgba(10, 10, 10, 0.9);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    border-top: 1px solid var(--cyber-orange);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

.copyright {
    font-size: 0.9rem;
    color: #aaa;
    font-family: 'Rajdhani', sans-serif;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        transform: none;
    }
    
    .logo {
        transform: none;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 30px 20px;
        clip-path: none;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .article-card {
        min-height: 300px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
}