/* 未来科技感极简风格 */
:root {
    --neon-primary: #00f2ff;
    --neon-secondary: #00ff9d;
    --bg-dark: #0a0a12;
    --bg-light: #1a1a24;
    --text-primary: #e0e0ff;
    --text-secondary: #a0a0c0;
    --accent: #ff00aa;
    --border: rgba(0, 242, 255, 0.2);
}

* {
    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;500;700&display=swap');
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--neon-primary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

a:hover {
    color: var(--neon-secondary);
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.6);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 非对称头部设计 */
header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 60px;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(to right, var(--neon-primary), var(--neon-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, var(--neon-primary), transparent);
    z-index: -1;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    padding: 8px 0;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-secondary);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 斜切内容区 */
.main-content {
    background: var(--bg-light);
    padding: 50px;
    margin-bottom: 80px;
    position: relative;
    border: 1px solid var(--border);
    transform: skewY(-1deg);
}

.main-content::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--neon-primary);
    opacity: 0.3;
    pointer-events: none;
}

.main-content > * {
    transform: skewY(1deg);
}

.section-title {
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--neon-primary), var(--neon-secondary));
}

/* 蜂窝网格布局 */
.article-honeycomb {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.article-cell {
    background: rgba(10, 10, 18, 0.7);
    border: 1px solid var(--border);
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.article-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.1), transparent);
    transition: 0.5s;
}

.article-cell:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--neon-primary);
}

.article-cell:hover::before {
    left: 100%;
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    filter: grayscale(30%);
    transition: filter 0.3s;
}

.article-cell:hover .article-image {
    filter: grayscale(0%);
}

.article-title {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
    position: relative;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 20px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--neon-primary);
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--neon-primary);
}

/* 文章详情页 */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
}

.article-title {
    font-size: 42px;
    margin-bottom: 25px;
    line-height: 1.3;
    background: linear-gradient(to right, var(--neon-primary), var(--neon-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin: 40px 0;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.article-content {
    line-height: 1.9;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.article-content p::before {
    content: '»';
    position: absolute;
    left: 0;
    color: var(--neon-primary);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border: 1px solid var(--neon-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--neon-primary), transparent);
    transition: 0.5s;
    z-index: -1;
}

.pagination a:hover::before {
    left: 100%;
}

/* 友情链接 */
.friend-links {
    background: var(--bg-light);
    padding: 40px;
    margin: 60px 0;
    border: 1px solid var(--border);
}

.friend-links h3 {
    font-size: 24px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links-container a {
    padding: 8px 20px;
    border: 1px solid var(--neon-primary);
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.friend-links-container a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.3), transparent);
    transition: 0.5s;
}

.friend-links-container a:hover::before {
    left: 100%;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-dark) 100%);
    padding: 50px 0 30px;
    text-align: center;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
    margin-top: 100px;
    border-top: 1px solid var(--border);
}

.copyright {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .header-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    nav ul {
        justify-content: flex-start;
    }
    
    .main-content {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-honeycomb {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 36px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}