/* 有罪风格 - 赛博朋克犯罪主题 */
:root {
    --crime-red: #ff0038;
    --police-blue: #0066ff;
    --evidence-yellow: #ffcc00;
    --darkness: #0a0a12;
    --neon-purple: #cc00ff;
    --blood-red: #cc0000;
    --text-glow: 0 0 8px currentColor;
    --year-color: #00ffcc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: var(--darkness);
    color: white;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 0, 56, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 20%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="2" height="2" x="20" y="20" fill="rgba(255,0,56,0.2)"/><rect width="2" height="2" x="50" y="50" fill="rgba(0,102,255,0.2)"/><rect width="2" height="2" x="80" y="30" fill="rgba(255,204,0,0.2)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: var(--police-blue);
    transition: all 0.3s;
    text-shadow: var(--text-glow);
}

a:hover {
    color: var(--crime-red);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 犯罪现场胶带边框 */
.main-content {
    border: 2px dashed var(--evidence-yellow);
    padding: 30px;
    margin: 40px 0;
    position: relative;
    background-color: rgba(10, 10, 18, 0.8);
    box-shadow: 0 0 20px rgba(255, 0, 56, 0.3);
}

.main-content::before, .main-content::after {
    content: "CRIME SCENE DO NOT CROSS";
    position: absolute;
    color: var(--evidence-yellow);
    font-size: 12px;
    letter-spacing: 2px;
    background: var(--darkness);
    padding: 0 10px;
}

.main-content::before {
    top: -10px;
    left: 20px;
}

.main-content::after {
    bottom: -10px;
    right: 20px;
}

/* 头部样式 - 警用警戒线效果 */
header {
    background-color: var(--darkness);
    padding: 20px 0;
    border-bottom: 4px solid var(--crime-red);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(to right, var(--crime-red), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 0, 56, 0.5);
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    padding: 8px 15px;
    border: 1px solid var(--police-blue);
    border-radius: 4px;
    font-weight: bold;
}

nav ul li a:hover {
    background-color: var(--crime-red);
    border-color: var(--crime-red);
    color: white;
    box-shadow: 0 0 15px var(--crime-red);
}

/* 文章卡片 - 证据袋效果 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid var(--police-blue);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.article-card::before {
    content: "EVIDENCE";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--evidence-yellow);
    color: black;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--crime-red);
    box-shadow: 0 5px 20px rgba(255, 0, 56, 0.5);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--police-blue);
    filter: grayscale(30%);
    transition: filter 0.3s;
}

.article-card:hover .card-image {
    filter: grayscale(0%) contrast(120%);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: bold;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--evidence-yellow);
    margin-top: 15px;
}

/* 分类标签 - 通缉令风格 */
.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--crime-red);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 文章详情页 - 案件档案风格 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 2px solid var(--crime-red);
    padding-bottom: 20px;
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 0, 56, 0.5);
    letter-spacing: 1px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--police-blue);
    margin-bottom: 20px;
    flex-wrap: wrap;
    font-size: 14px;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border: 3px solid var(--evidence-yellow);
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
    border-left: 2px solid var(--police-blue);
    padding-left: 20px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

/* 分页导航 - 案件页码风格 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    border-radius: 4px;
    background-color: rgba(0, 102, 255, 0.2);
    border: 1px solid var(--police-blue);
    font-weight: bold;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--crime-red);
    border-color: var(--crime-red);
    box-shadow: 0 0 15px var(--crime-red);
}

/* 友情链接 - 共犯名单风格 */
.friend-links {
    background-color: rgba(20, 20, 30, 0.8);
    border: 1px solid var(--neon-purple);
    padding: 25px;
    margin: 40px 0;
    position: relative;
}

.friend-links::before {
    content: "ACCOMPLICES";
    position: absolute;
    top: -10px;
    left: 20px;
    background-color: var(--darkness);
    color: var(--neon-purple);
    padding: 0 10px;
    font-size: 14px;
    letter-spacing: 2px;
}

.friend-links h3 {
    margin-bottom: 20px;
    color: var(--neon-purple);
    font-size: 20px;
    text-shadow: var(--text-glow);
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-container a {
    padding: 8px 15px;
    background-color: rgba(204, 0, 255, 0.2);
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid var(--neon-purple);
    transition: all 0.3s;
}

.friend-links-container a:hover {
    background-color: var(--neon-purple);
    color: white;
    box-shadow: 0 0 15px var(--neon-purple);
}

/* 页脚样式 - 案件结案风格 */
footer {
    background-color: #000;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 4px solid var(--crime-red);
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--crime-red), var(--police-blue), var(--evidence-yellow), var(--neon-purple));
}

.copyright {
    font-size: 14px;
    color: var(--year-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
    }
}