/* 喜庆霓虹主题 */
:root {
    --neon-pink: #ff2a6d;
    --neon-blue: #05d9e8;
    --neon-purple: #d300c5;
    --neon-yellow: #f9f002;
    --dark-bg: #0d0221;
    --light-text: #ffffff;
    --dark-text: #0d0221;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 霓虹光效 */
@keyframes neon-glow {
    0%, 100% { text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--neon-pink), 0 0 40px var(--neon-pink); }
    50% { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px var(--neon-blue), 0 0 20px var(--neon-blue); }
}

@keyframes border-glow {
    0%, 100% { box-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-purple); }
    50% { box-shadow: 0 0 15px var(--neon-blue), 0 0 25px var(--neon-yellow); }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3D倾斜头部 */
header {
    background: linear-gradient(145deg, #0d0221 0%, #1a0442 100%);
    padding: 25px 0;
    transform: skewY(-2deg);
    margin-bottom: 50px;
    border-bottom: 3px solid var(--neon-pink);
}

.header-content {
    transform: skewY(2deg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(to right, var(--neon-pink), var(--neon-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    animation: neon-glow 1.5s ease-in-out infinite alternate;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid var(--neon-blue);
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px;
}

nav ul li a:hover {
    background: var(--neon-pink);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 42, 109, 0.4);
}

/* 菱形网格内容区 */
.main-content {
    background: rgba(13, 2, 33, 0.7);
    padding: 40px;
    margin: 40px 0;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    animation: border-glow 3s infinite alternate;
}

.main-content::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(45deg, transparent 65%, var(--neon-purple) 65%),
        linear-gradient(-45deg, transparent 65%, var(--neon-blue) 65%);
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: -1;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--neon-pink), var(--neon-yellow));
}

/* 六边形文章网格 */
.hex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.hex-item {
    background: linear-gradient(135deg, rgba(255,42,109,0.2) 0%, rgba(5,217,232,0.2) 100%);
    border-radius: 15px;
    padding: 25px;
    transition: var(--transition);
    transform-style: preserve-3d;
    position: relative;
    border: 1px solid var(--neon-blue);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-item:hover {
    transform: rotateY(15deg) scale(1.05);
    background: linear-gradient(135deg, rgba(255,42,109,0.3) 0%, rgba(5,217,232,0.3) 100%);
    box-shadow: 0 10px 30px rgba(255, 42, 109, 0.3);
}

.hex-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid var(--neon-yellow);
}

.hex-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--neon-yellow);
}

.hex-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--neon-blue);
}

/* 文章详情页 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.article-detail::before {
    content: "";
    position: absolute;
    top: 0;
    left: -20px;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-pink), var(--neon-blue));
    border-radius: 5px;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--neon-pink), var(--neon-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.article-meta span {
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 3px solid var(--neon-purple);
    box-shadow: 0 10px 30px rgba(211, 0, 197, 0.3);
}

.article-content {
    line-height: 1.9;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.article-content p::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: var(--neon-blue);
}

/* 分页按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination a {
    padding: 12px 25px;
    border-radius: 30px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
    color: white;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.pagination a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 42, 109, 0.5);
}

/* 友情链接 */
.friend-links {
    background: rgba(13, 2, 33, 0.7);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid var(--neon-yellow);
}

.friend-links h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--neon-blue);
    text-align: center;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.friend-links-container a {
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--neon-purple);
    transition: var(--transition);
    font-size: 14px;
}

.friend-links-container a:hover {
    background: var(--neon-pink);
    transform: scale(1.1);
}

/* 页脚 */
footer {
    background: linear-gradient(145deg, #0d0221 0%, #1a0442 100%);
    padding: 30px 0;
    text-align: center;
    margin-top: 70px;
    position: relative;
    transform: skewY(2deg);
}

.footer-content {
    transform: skewY(-2deg);
}

.copyright {
    font-size: 14px;
    color: var(--neon-blue);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        transform: skewY(-3deg);
        padding: 20px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        transform: skewY(3deg);
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hex-grid {
        grid-template-columns: 1fr;
    }
    
    .hex-item {
        clip-path: none;
        border-radius: 15px;
    }
    
    .article-title {
        font-size: 28px;
    }
}