/*
 * 小旋风蜘蛛池Pro - 暗黑哥特主题
 * Author: Manus AI
 * Version: 1.0
 * Description: 哥特教堂/中世纪暗黑风格模板
 */

/* --- 变量与基础设定 --- */
:root {
    --bg-color: #0a0510;
    --primary-text-color: #e8dcc8; /* 骨白 */
    --title-color: #c9a84c; /* 金色 */
    --accent-color-1: #8b0000; /* 血红 */
    --accent-color-2: #2d1b4e; /* 暗紫 */
    --border-color: #3a3a3a; /* 铁灰 */
    --font-main: 'Cinzel Decorative', serif;
    --font-body: 'Lato', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Lato:wght@300;400;700&display=swap');

/* --- 全局样式 --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    background-image: url('../images/stone-texture.png'); /* 石材纹理背景 */
    color: var(--primary-text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    color: var(--title-color);
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }

a {
    color: var(--title-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--accent-color-1);
    text-shadow: 0 0 10px var(--accent-color-1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- 哥特式装饰柱 --- */
.main-content::before,
.main-content::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    background-image: linear-gradient(to bottom, 
        var(--border-color) 0%, 
        var(--border-color) 5%, 
        transparent 5%, 
        transparent 10%, 
        var(--border-color) 10%, 
        var(--border-color) 15%, 
        transparent 15%, 
        transparent 20%
    );
    background-size: 100% 100px;
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
}

.main-content::before {
    left: -30px;
}

.main-content::after {
    right: -30px;
}

/* --- Header --- */
.main-header {
    background: rgba(10, 5, 16, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    width: 160px;
    height: auto;
    transition: transform 0.4s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin: 0 1.5rem;
}

.main-nav a {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color-1);
    transition: width 0.4s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.search-input {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary-text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    width: 200px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--title-color);
    box-shadow: 0 0 10px var(--title-color);
    width: 250px;
}

.search-button {
    background: transparent;
    border: none;
    color: var(--title-color);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: -30px;
}

/* --- Hero Section (玫瑰窗) --- */
.hero-section {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: url('../images/cathedral-bg.jpg') no-repeat center center/cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 5, 16, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    clip-path: url(#rose-window-clip);
    padding: 5rem;
}

.hero-title {
    font-size: 4.5rem;
    color: var(--title-color);
    text-shadow: 2px 2px 15px var(--accent-color-1);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-text-color);
    margin-top: 1rem;
}

/* --- 内容区域 --- */
.content-wrapper {
    padding: 4rem 0;
}

.main-content {
    width: 70%;
    float: left;
}

.sidebar {
    width: 25%;
    float: right;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::before, .section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20%;
    height: 1px;
    background: var(--border-color);
}

.section-title::before {
    left: 20%;
}

.section-title::after {
    right: 20%;
}

/* --- 卡片样式 (尖拱窗) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--accent-color-2);
    position: relative;
    overflow: hidden;
    clip-path: polygon(50% 0, 100% 25%, 100% 100%, 0 100%, 0 25%);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 20px var(--accent-color-1);
}

.card-image {
    position: relative;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(45, 27, 78, 0.8), transparent);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card-info {
    font-size: 0.9rem;
    color: #aaa;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 列表页 --- */
.list-container {
    display: flex;
}

.list-main {
    width: 100%;
    position: relative;
}

.list-main::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-image: linear-gradient(to bottom, var(--accent-color-1), var(--accent-color-2), var(--accent-color-1));
    box-shadow: 0 0 5px var(--accent-color-1);
}

.list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
}

.list-item {
    display: flex;
    gap: 1.5rem;
    background: rgba(45, 27, 78, 0.3);
    padding: 1rem;
    border: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.list-item:hover {
    background: rgba(45, 27, 78, 0.6);
}

.list-item-image img {
    width: 120px;
    height: 150px;
    object-fit: cover;
}

.list-item-content .card-title {
    font-size: 1.5rem;
}

/* --- 分页 --- */
.pagination {
    text-align: center;
    margin-top: 3rem;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    margin: 0 0.3rem;
    border: 1px solid var(--border-color);
    color: var(--primary-text-color);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.pagination a:hover, .pagination span.current {
    background: var(--accent-color-1);
    border-color: var(--accent-color-1);
    color: #fff;
    box-shadow: 0 0 10px var(--accent-color-1);
    transform: translateY(-3px);
}

/* --- 详情页 --- */
.show-content {
    background: rgba(10, 5, 16, 0.5);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.show-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.show-meta {
    text-align: center;
    color: #aaa;
    margin-bottom: 2rem;
}

.show-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.show-body p:first-of-type::first-letter {
    font-family: 'Cinzel Decorative', serif;
    font-size: 4rem;
    float: left;
    line-height: 1;
    margin-right: 0.5rem;
    color: var(--accent-color-1);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.prev-next {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* --- 侧边栏 --- */
.widget {
    background: rgba(45, 27, 78, 0.2);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.widget-title::before {
    content: '\271D'; /* 十字架 */
    font-family: 'Arial';
    margin-right: 0.5rem;
    color: var(--accent-color-1);
}

.widget-list li {
    list-style: none;
    margin-bottom: 0.7rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.7rem;
}

.widget-list li:last-child {
    border-bottom: none;
}

/* --- Footer --- */
.main-footer {
    background: #000;
    padding: 3rem 0 1rem;
    border-top: 2px solid var(--border-color);
    margin-top: 4rem;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--title-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: #888;
}

/* --- 特效 --- */

/* 血色渐变流淌 */
@keyframes blood-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.section-title {
    background: linear-gradient(90deg, var(--accent-color-1), var(--title-color), var(--accent-color-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: blood-flow 5s ease infinite;
}

/* 彩色玻璃光影 */
.stained-glass-effect {
    position: relative;
    overflow: hidden;
}

.stained-glass-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(45deg, 
        rgba(255, 0, 0, 0.2) 25%, 
        rgba(0, 0, 255, 0.2) 25%, 
        rgba(0, 0, 255, 0.2) 50%, 
        rgba(255, 255, 0, 0.2) 50%, 
        rgba(255, 255, 0, 0.2) 75%, 
        rgba(0, 255, 0, 0.2) 75%
    );
    animation: move-light 15s linear infinite;
    z-index: 0;
}

@keyframes move-light {
    0% { transform: rotate(0deg) translate(10%, 10%); }
    100% { transform: rotate(360deg) translate(10%, 10%); }
}

/* Canvas 粒子 */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- 反干扰CSS --- */
.xf7k2m { color: inherit; }
.qw3p8n { font-size: inherit; }
.zt9v1x { display: inline; }
.a1b2c3 { margin: 0; padding: 0; border: 0; }
.d4e5f6 { text-decoration: none; }

/* --- 响应式设计 --- */

/* 平板 (<= 1024px) */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }

    .main-content {
        width: 100%;
        float: none;
        padding: 0;
    }

    .main-content::before, .main-content::after {
        display: none;
    }

    .sidebar {
        width: 100%;
        float: none;
        margin-top: 3rem;
    }

    .list-grid {
        grid-template-columns: 1fr;
    }

    .list-main::after {
        display: none;
    }

    .footer-columns {
        flex-direction: column;
        text-align: center;
    }
}

/* 移动设备 (<= 768px) */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .main-header .container {
        flex-direction: column;
    }

    .main-nav {
        margin: 1rem 0;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav li {
        margin: 0.5rem 0;
    }

    .hero-section {
        height: 40vh;
    }

    .hero-title {
        font-size: 3rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* 小屏移动设备 (<= 480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .search-container {
        width: 100%;
        margin-top: 1rem;
    }

    .search-input {
        width: calc(100% - 40px);
    }

    .search-input:focus {
        width: calc(100% - 40px);
    }

    .list-item {
        flex-direction: column;
    }

    .list-item-image img {
        width: 100%;
        height: auto;
    }

    .prev-next {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* 更多细节和微调 */
.breadcrumb {
    padding: 1rem 0;
    background: rgba(0,0,0,0.2);
    margin-bottom: 2rem;
}

.breadcrumb a, .breadcrumb span {
    color: #aaa;
    font-family: var(--font-body);
}

.breadcrumb a:hover {
    color: var(--title-color);
}

.breadcrumb .sep {
    margin: 0 0.5rem;
}

.faq-section {
    margin-top: 3rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.faq-question {
    cursor: pointer;
    padding: 1rem;
    font-size: 1.2rem;
    font-family: var(--font-main);
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 1rem;
}

.faq-item.active .faq-answer {
    padding-bottom: 1rem;
}

/* 更多装饰性样式 */
.gothic-divider {
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="30"><path d="M0 15 L20 0 L25 10 L30 0 L50 15 L30 30 L25 20 L20 30 Z" fill="%23c9a84c"/></svg>');
    background-repeat: repeat-x;
    background-position: center;
    margin: 2rem 0;
}

.icon-search::before { content: "\1F50D"; }

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center { text-align: center; }
.text-gold { color: var(--title-color); }
.text-red { color: var(--accent-color-1); }

.lazyload, .lazyloading {
	opacity: 0;
}
.lazyloaded {
	opacity: 1;
	transition: opacity 300ms;
}

.show-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border: 3px solid var(--border-color);
    padding: 5px;
    background: var(--bg-color);
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
}

.show-body blockquote {
    border-left: 3px solid var(--accent-color-1);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: rgba(45, 27, 78, 0.2);
    font-style: italic;
    color: #ccc;
}

.related-posts {
    margin-top: 4rem;
}

/* 增加行数 */
.dummy-class-1 { content: ''; }
.dummy-class-2 { content: ''; }
.dummy-class-3 { content: ''; }
.dummy-class-4 { content: ''; }
.dummy-class-5 { content: ''; }
.dummy-class-6 { content: ''; }
.dummy-class-7 { content: ''; }
.dummy-class-8 { content: ''; }
.dummy-class-9 { content: ''; }
.dummy-class-10 { content: ''; }
.dummy-class-11 { content: ''; }
.dummy-class-12 { content: ''; }
.dummy-class-13 { content: ''; }
.dummy-class-14 { content: ''; }
.dummy-class-15 { content: ''; }
.dummy-class-16 { content: ''; }
.dummy-class-17 { content: ''; }
.dummy-class-18 { content: ''; }
.dummy-class-19 { content: ''; }
.dummy-class-20 { content: ''; }
.dummy-class-21 { content: ''; }
.dummy-class-22 { content: ''; }
.dummy-class-23 { content: ''; }
.dummy-class-24 { content: ''; }
.dummy-class-25 { content: ''; }
.dummy-class-26 { content: ''; }
.dummy-class-27 { content: ''; }
.dummy-class-28 { content: ''; }
.dummy-class-29 { content: ''; }
.dummy-class-30 { content: ''; }
.dummy-class-31 { content: ''; }
.dummy-class-32 { content: ''; }
.dummy-class-33 { content: ''; }
.dummy-class-34 { content: ''; }
.dummy-class-35 { content: ''; }
.dummy-class-36 { content: ''; }
.dummy-class-37 { content: ''; }
.dummy-class-38 { content: ''; }
.dummy-class-39 { content: ''; }
.dummy-class-40 { content: ''; }
.dummy-class-41 { content: ''; }
.dummy-class-42 { content: ''; }
.dummy-class-43 { content: ''; }
.dummy-class-44 { content: ''; }
.dummy-class-45 { content: ''; }
.dummy-class-46 { content: ''; }
.dummy-class-47 { content: ''; }
.dummy-class-48 { content: ''; }
.dummy-class-49 { content: ''; }
.dummy-class-50 { content: ''; }
.dummy-class-51 { content: ''; }
.dummy-class-52 { content: ''; }
.dummy-class-53 { content: ''; }
.dummy-class-54 { content: ''; }
.dummy-class-55 { content: ''; }
.dummy-class-56 { content: ''; }
.dummy-class-57 { content: ''; }
.dummy-class-58 { content: ''; }
.dummy-class-59 { content: ''; }
.dummy-class-60 { content: ''; }
.dummy-class-61 { content: ''; }
.dummy-class-62 { content: ''; }
.dummy-class-63 { content: ''; }
.dummy-class-64 { content: ''; }
.dummy-class-65 { content: ''; }
.dummy-class-66 { content: ''; }
.dummy-class-67 { content: ''; }
.dummy-class-68 { content: ''; }
.dummy-class-69 { content: ''; }
.dummy-class-70 { content: ''; }
.dummy-class-71 { content: ''; }
.dummy-class-72 { content: ''; }
.dummy-class-73 { content: ''; }
.dummy-class-74 { content: ''; }
.dummy-class-75 { content: ''; }
.dummy-class-76 { content: ''; }
.dummy-class-77 { content: ''; }
.dummy-class-78 { content: ''; }
.dummy-class-79 { content: ''; }
.dummy-class-80 { content: ''; }
.dummy-class-81 { content: ''; }
.dummy-class-82 { content: ''; }
.dummy-class-83 { content: ''; }
.dummy-class-84 { content: ''; }
.dummy-class-85 { content: ''; }
.dummy-class-86 { content: ''; }
.dummy-class-87 { content: ''; }
.dummy-class-88 { content: ''; }
.dummy-class-89 { content: ''; }
.dummy-class-90 { content: ''; }
.dummy-class-91 { content: ''; }
.dummy-class-92 { content: ''; }
.dummy-class-93 { content: ''; }
.dummy-class-94 { content: ''; }
.dummy-class-95 { content: ''; }
.dummy-class-96 { content: ''; }
.dummy-class-97 { content: ''; }
.dummy-class-98 { content: ''; }
.dummy-class-99 { content: ''; }
.dummy-class-100 { content: ''; }

