/* 故障艺术风格 - 淡薰衣草主题 */
:root {
    --lavender: #e2d4f0;
    --light-purple: #d4c4ed;
    --glitch-color-1: #ff00ff;
    --glitch-color-2: #00ffff;
    --dark-text: #3a3a5c;
    --light-text: #f0e6ff;
    --bg-color: #f9f5ff;
    --card-bg: rgba(255, 255, 255, 0.8);
}

/* 故障动画效果 */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

.glitch-effect {
    position: relative;
}

.glitch-effect:hover::before,
.glitch-effect:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch-effect:hover::before {
    color: var(--glitch-color-1);
    animation: glitch 0.3s linear infinite;
    z-index: -1;
}

.glitch-effect:hover::after {
    color: var(--glitch-color-2);
    animation: glitch 0.3s linear infinite reverse;
    z-index: -2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: var(--bg-color);
    color: var(--dark-text);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: 
        linear-gradient(45deg, var(--light-purple) 25%, transparent 25%),
        linear-gradient(-45deg, var(--light-purple) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--light-purple) 75%),
        linear-gradient(-45deg, transparent 75%, var(--light-purple) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

a {
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s;
}

a:hover {
    color: #9c64f7;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 故障风格头部 */
header {
    background-color: var(--card-bg);
    padding: 25px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--light-purple);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transform: skewX(-15deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -10%; }
    100% { left: 110%; }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(to right, #9c64f7, #6a3093);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #9c64f7, #6a3093);
    transition: all 0.3s;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 80%;
}

/* 主要内容区域 */
.main-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 196, 237, 0.5);
    position: relative;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #9c64f7, #6a3093, #9c64f7);
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--light-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6a3093;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, #9c64f7, transparent);
}

/* 故障风格文章网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    position: relative;
}

.article-grid::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px dashed var(--light-purple);
    border-radius: 5px;
    pointer-events: none;
    opacity: 0.5;
}

.article-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 196, 237, 0.5);
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-card:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #9c64f7, #6a3093);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(212, 196, 237, 0.5);
    transition: all 0.5s;
}

.article-card:hover .card-image {
    filter: hue-rotate(15deg) contrast(1.1);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #7a6f8b;
    margin-top: 15px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(to right, #d4c4ed, #e2d4f0);
    color: #6a3093;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: bold;
    border: 1px solid rgba(154, 100, 247, 0.3);
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #6a3093;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.article-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #9c64f7, #6a3093, #9c64f7);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #7a6f8b;
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-size: 14px;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 196, 237, 0.8);
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 196, 237, 0.5);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 30px;
    background-color: var(--card-bg);
    border: 1px solid var(--light-purple);
    transition: all 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.pagination a:hover {
    background: linear-gradient(to right, #9c64f7, #6a3093);
    color: white;
    border-color: #6a3093;
}

/* 故障风格友情链接 */
.friend-links {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 196, 237, 0.5);
    position: relative;
    overflow: hidden;
}

.friend-links::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #9c64f7, #6a3093, #9c64f7);
}

.friend-links h3 {
    margin-bottom: 20px;
    color: #6a3093;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: var(--lavender);
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(154, 100, 247, 0.3);
    transition: all 0.3s;
    font-weight: bold;
}

.friend-links-container a:hover {
    background: linear-gradient(to right, #9c64f7, #6a3093);
    color: white;
    transform: translateY(-2px);
}

/* 故障风格页脚 */
footer {
    background-color: #6a3093;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    color: var(--lavender);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #9c64f7, #e2d4f0, #9c64f7);
}

.copyright {
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
}