/* 有罪风格主题 - 哥特暗黑审判风格 */
:root {
    --blood-red: #8b0000;
    --dark-judge: #1a1a1a;
    --parchment: #f5e7d0;
    --gold-accent: #d4af37;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --verdict-red: #ff2400;
    --cell-grey: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', serif;
}

body {
    background-color: var(--dark-judge);
    color: var(--parchment);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 0, 0, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(139, 0, 0, 0.1) 0%, transparent 20%);
}

a {
    text-decoration: none;
    color: var(--gold-accent);
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--verdict-red);
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--verdict-red);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 审判庭风格头部 */
header {
    background-color: var(--dark-judge);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--blood-red);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--verdict-red);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px var(--shadow-color);
    font-family: 'Old English Text MT', serif;
}

.logo::before {
    content: "⚖️";
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    padding: 8px 15px;
    border-radius: 0;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    border-bottom: 2px solid var(--verdict-red);
    background-color: transparent;
}

/* 法庭记录风格内容区 */
.main-content {
    background-color: var(--cell-grey);
    padding: 30px;
    margin: 30px 0;
    border: 1px solid var(--blood-red);
    box-shadow: 0 0 20px var(--shadow-color);
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--blood-red), var(--gold-accent), var(--blood-red));
}

.section-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--blood-red);
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Old English Text MT', serif;
    position: relative;
}

.section-title::after {
    content: '☠';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blood-red);
}

/* 案件档案风格文章列表 */
.case-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.case-file {
    background-color: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--blood-red);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-file:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
    border-color: var(--verdict-red);
}

.case-file::before {
    content: 'CONFIDENTIAL';
    position: absolute;
    top: 10px;
    right: -30px;
    background-color: var(--blood-red);
    color: white;
    padding: 3px 30px;
    transform: rotate(45deg);
    font-size: 12px;
    letter-spacing: 1px;
    z-index: 1;
}

.evidence-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--blood-red);
}

.case-details {
    padding: 20px;
}

.case-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--parchment);
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 54px;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gold-accent);
    margin-top: 15px;
    border-top: 1px dashed var(--blood-red);
    padding-top: 10px;
}

/* 审判记录风格详情页 */
.trial-record {
    max-width: 800px;
    margin: 0 auto;
}

.trial-header {
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 3px double var(--blood-red);
    padding-bottom: 20px;
}

.trial-title {
    font-size: 34px;
    margin-bottom: 20px;
    color: var(--verdict-red);
    font-family: 'Old English Text MT', serif;
    text-shadow: 2px 2px 4px var(--shadow-color);
    letter-spacing: 2px;
}

.trial-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--gold-accent);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trial-meta span {
    display: flex;
    align-items: center;
}

.trial-meta span::before {
    content: '•';
    margin-right: 5px;
    color: var(--blood-red);
}

.evidence-main {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border: 5px solid var(--dark-judge);
    outline: 1px solid var(--blood-red);
    margin-bottom: 30px;
    box-shadow: 0 0 20px var(--shadow-color);
}

.trial-content {
    line-height: 1.8;
    font-size: 17px;
}

.trial-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.trial-content img {
    max-width: 100%;
    height: auto;
    border: 3px solid var(--dark-judge);
    outline: 1px solid var(--blood-red);
    margin: 20px auto;
    display: block;
}

/* 判决书风格分页 */
.judgment-pages {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid var(--blood-red);
    padding-top: 20px;
}

.judgment-pages a {
    padding: 10px 25px;
    border: 2px solid var(--blood-red);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.judgment-pages a::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--blood-red);
    top: 50%;
    transform: translateY(-50%);
}

.judgment-pages a:first-child::before {
    left: -15px;
}

.judgment-pages a:last-child::before {
    right: -15px;
}

.judgment-pages a:hover {
    background-color: var(--blood-red);
    color: var(--parchment);
}

/* 共犯链接风格 */
.accomplices {
    background-color: var(--dark-judge);
    padding: 25px;
    margin: 30px 0;
    border: 1px solid var(--blood-red);
    box-shadow: 0 0 15px var(--shadow-color);
}

.accomplices h3 {
    margin-bottom: 20px;
    color: var(--verdict-red);
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Old English Text MT', serif;
}

.accomplices-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.accomplices-container a {
    padding: 8px 15px;
    background-color: var(--cell-grey);
    border: 1px solid var(--blood-red);
    font-size: 14px;
    letter-spacing: 1px;
}

.accomplices-container a:hover {
    background-color: var(--blood-red);
    color: var(--parchment);
}

/* 刑期页脚风格 */
footer {
    background-color: var(--dark-judge);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 3px solid var(--blood-red);
    position: relative;
}

footer::before {
    content: '⚖';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-judge);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    border: 3px solid var(--blood-red);
    font-size: 20px;
}

.copyright {
    font-size: 14px;
    color: var(--gold-accent);
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .case-files {
        grid-template-columns: 1fr;
    }
    
    .trial-title {
        font-size: 28px;
    }
    
    .trial-meta {
        gap: 15px;
    }
    
    .judgment-pages {
        flex-direction: column;
        gap: 15px;
    }
    
    .judgment-pages a::before {
        display: none;
    }
}