/*
Template Name: 富江诅咒 - 伊藤润二富江系列恐怖美学
Author: Manus AI
Description: 灵感源于伊藤润二的《富江》，融合了妖艳与恐怖的视觉元素，营造出一种令人不安的诅咒氛围。
*/

:root {
    --main-bg-color: #0d0d0d; /* 墨黑底 */
    --main-text-color: #f0e6d3; /* 苍白肤色 */
    --accent-color-red: #6b0000; /* 暗红血色 */
    --accent-color-purple: #4a0033; /* 腐败紫 */
    --accent-color-gold: #c9a84c; /* 金色点缀 */
    --border-color: #4a0033;
    --hover-bg-color: #1a1a1a;
    --font-main: 'SimSun', 'Songti SC', serif; /* 宋体，营造诡异感 */
    --font-title: 'Zhi Mang Xing', cursive; /* 带有手写感的标题字体 */
}

/* === Base Styles === */
body {
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10 10 C 20 20, 40 20, 50 10 S 70 0, 80 10" stroke="%236b0000" stroke-width="0.5" fill="none" opacity="0.1"/></svg>');
    animation: blood-flow 60s linear infinite;
}

@keyframes blood-flow {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 2000px; }
}

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

a:hover {
    color: var(--accent-color-gold);
}

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

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

/* === Header === */
.site-header {
    background-color: rgba(13, 13, 13, 0.8);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    transition: transform 0.5s ease;
}

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

.main-nav a {
    margin: 0 15px;
    font-size: 1.1em;
    position: relative;
}

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

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

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

.search-box .search-input:focus {
    border-color: var(--accent-color-gold);
    width: 250px;
    outline: none;
}

/* === Main Content === */
.main-content {
    padding: 40px 0;
}

.content-wrap {
    display: flex;
    gap: 30px;
}

.main-area {
    flex: 1;
}

.sidebar {
    width: 300px;
}

/* === Section Header === */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    position: relative;
}

.section-header h2 {
    font-family: var(--font-title);
    font-size: 2.5em;
    color: var(--accent-color-gold);
    position: relative;
}

/* 毛发缠绕装饰线 */
.section-header h2::before, .section-header h2::after {
    content: '';
    position: absolute;
    height: 2px;
    background-color: var(--accent-color-purple);
    opacity: 0.6;
    animation: hair-grow 5s infinite alternate;
}

.section-header h2::before {
    width: 50%;
    left: -10%;
    top: 50%;
    transform: rotate(-5deg);
}

.section-header h2::after {
    width: 40%;
    right: -15%;
    bottom: 20%;
    transform: rotate(3deg);
}

@keyframes hair-grow {
    from { transform: scaleX(0.5); }
    to { transform: scaleX(1.2); }
}

/* === Video Card === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.video-card {
    background-color: #111;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-poster {
    position: relative;
}

/* 图片边缘不规则撕裂 */
.card-poster img {
    clip-path: polygon(0 0, 100% 0, 100% 95%, 90% 100%, 10% 98%, 0 100%);
    transition: clip-path 0.5s ease;
}

.video-card:hover .card-poster img {
    clip-path: polygon(0 5%, 10% 0, 95% 0, 100% 10%, 100% 100%, 90% 90%, 10% 100%, 0 90%);
}

/* 悬停时画面出现诡异微笑叠加 */
.card-overlay::after {
    content: '😈'; /* 使用emoji或背景图片 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2);
    font-size: 50px;
    color: var(--accent-color-red);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-shadow: 0 0 10px var(--accent-color-red);
}

.video-card:hover .card-overlay::after {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.5);
}

.card-info {
    padding: 15px;
}

/* 文字出现裂痕/碎裂效果 */
.card-title {
    font-size: 1.2em;
    font-weight: bold;
    animation: text-crack 8s infinite alternate;
    position: relative;
}

@keyframes text-crack {
    0%, 100% { text-shadow: 0 0 1px transparent; }
    50% { text-shadow: 1px 1px 0 var(--accent-color-purple), -1px -1px 0 var(--accent-color-gold); }
}

/* === Sidebar === */
.sidebar-box {
    background-color: #111;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 25px;
}

.sidebar-title {
    font-family: var(--font-title);
    font-size: 1.8em;
    color: var(--accent-color-gold);
    margin-bottom: 15px;
    text-align: center;
}

.sidebar-list li {
    border-bottom: 1px dashed var(--border-color);
    padding: 8px 0;
}

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

/* === Footer === */
.site-footer {
    background-color: #0a0a0a;
    border-top: 2px solid var(--accent-color-red);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--accent-color-gold);
    font-family: var(--font-title);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.footer-links li a:hover {
    padding-left: 10px;
    color: var(--accent-color-gold);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
    opacity: 0.7;
}

/* === Show Page === */
.video-player-wrapper {
    background-color: #000;
    padding: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.video-info h1 {
    font-family: var(--font-title);
    font-size: 3em;
    color: var(--accent-color-red);
    text-align: center;
    margin-bottom: 20px;
    animation: title-flicker 3s infinite;
}

@keyframes title-flicker {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--accent-color-red); }
    50% { opacity: 0.8; text-shadow: none; }
}

.video-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.video-description {
    background-color: #111;
    padding: 20px;
    border-left: 3px solid var(--accent-color-purple);
}

/* === List Page === */
.breadcrumb {
    padding: 15px;
    background-color: #111;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a, .pagination span {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.pagination a:hover, .pagination .current {
    background-color: var(--accent-color-purple);
    color: var(--main-text-color);
    border-color: var(--accent-color-gold);
}

/* === Anti-Adblock Random Classes === */
.promo-block-a1b2, .ad-container-c3d4, .banner-space-e5f6 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* === Responsive Design === */

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .content-wrap {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
        justify-content: center;
        display: flex;
    }
}

/* Mobile Large - 768px */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .video-info h1 {
        font-size: 2.5em;
    }
}

/* Mobile Small - 480px */
@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .main-nav a {
        margin: 0 8px;
        font-size: 1em;
    }
    .search-box {
        width: 100%;
        margin-top: 10px;
    }
    .search-box .search-input {
        width: 100%;
    }
    .video-info h1 {
        font-size: 2em;
    }
}

/* === Additional Effects === */

/* General hover flicker */
.flicker-hover:hover {
    animation: flicker-effect 0.5s infinite;
}

@keyframes flicker-effect {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Glitch effect for text */
.glitch-text {
    position: relative;
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--main-bg-color);
    overflow: hidden;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-color-red);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-color-purple);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    25% { clip: rect(12px, 9999px, 59px, 0); }
    50% { clip: rect(38px, 9999px, 2px, 0); }
    75% { clip: rect(78px, 9999px, 92px, 0); }
    100% { clip: rect(54px, 9999px, 14px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    25% { clip: rect(80px, 9999px, 25px, 0); }
    50% { clip: rect(20px, 9999px, 75px, 0); }
    75% { clip: rect(10px, 9999px, 45px, 0); }
    100% { clip: rect(90px, 9999px, 5px, 0); }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color-red);
}

/* FAQ Section */
.faq-section .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.faq-q {
    background-color: #1a1a1a;
    padding: 15px;
    cursor: pointer;
    font-size: 1.2em;
    position: relative;
}

.faq-q::after {
    content: '+';
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
}

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

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background-color: #111;
}

.faq-a p {
    padding: 20px;
}

/* Tab styles */
.tab-group .tab {
    cursor: pointer;
    padding: 8px 15px;
    margin: 0 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-group .tab.active, .tab-group .tab:hover {
    color: var(--accent-color-gold);
    border-bottom-color: var(--accent-color-gold);
}

/* More random classes */
.widget-container-x7y8, .sidebar-ad-z9a0, .footer-promo-b1c2 {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.text-crack-subtle {
    animation: text-crack-subtle 10s infinite;
}

@keyframes text-crack-subtle {
    0%, 100% { text-shadow: none; }
    20% { text-shadow: 0.5px 0.5px 0px var(--accent-color-purple); }
    40% { text-shadow: -0.5px -0.5px 0px var(--accent-color-red); }
    60% { text-shadow: 0.5px -0.5px 0px var(--accent-color-purple); }
    80% { text-shadow: -0.5px 0.5px 0px var(--accent-color-red); }
}

.hairline-decoration {
    position: relative;
    display: inline-block;
}

.hairline-decoration::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color-gold), transparent);
    animation: hair-sway 4s ease-in-out infinite;
}

@keyframes hair-sway {
    0%, 100% { transform: translateX(0) rotate(0); }
    50% { transform: translateX(5px) rotate(-1deg); }
}

.creepy-smile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M 20 60 Q 50 80, 80 60" stroke="%23f0e6d3" stroke-width="2" fill="none" opacity="0.8"/></svg>');
    background-size: 50% 50%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.has-smile-hover:hover .creepy-smile-overlay {
    opacity: 1;
}

.bleeding-text {
    color: var(--accent-color-red);
    text-shadow: 0 0 5px var(--accent-color-red), 0 0 10px var(--accent-color-red), 0 0 15px #ff0000;
    animation: bleed 2s ease-in-out infinite alternate;
}

@keyframes bleed {
    from { text-shadow: 0 0 5px var(--accent-color-red); }
    to { text-shadow: 0 0 20px #ff0000, 0 0 30px var(--accent-color-red); }
}

.distorted-image {
    transition: filter 1s ease;
}

.distorted-image:hover {
    filter: url(#junji-ito-distortion);
}

/* SVG filter for distortion */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
}

.final-ad-block-check-p9q8r7 {
    opacity: 0.001;
    pointer-events: none;
}

.random-padding-class-s5t6u7 {
    padding: 1px;
}

.invisible-separator-v8w9x0 {
    border: none;
    margin: 0;
    padding: 0;
}

.cursed-link {
    position: relative;
    text-decoration: none;
    color: var(--accent-color-gold);
}

.cursed-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color-red);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s ease-out;
}

.cursed-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.tomie-title {
    font-family: var(--font-title);
    font-size: 4em;
    color: var(--main-text-color);
    text-align: center;
    letter-spacing: 5px;
    position: relative;
    -webkit-text-stroke: 1px var(--accent-color-purple);
    text-stroke: 1px var(--accent-color-purple);
}

.tomie-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--accent-color-red);
    -webkit-text-stroke: 1px var(--accent-color-red);
    text-stroke: 1px var(--accent-color-red);
    animation: tomie-glitch 3s infinite;
}

@keyframes tomie-glitch {
    0% { clip-path: inset(50% 0 30% 0); }
    25% { clip-path: inset(10% 0 70% 0); }
    50% { clip-path: inset(80% 0 5% 0); }
    75% { clip-path: inset(40% 0 45% 0); }
    100% { clip-path: inset(60% 0 20% 0); }
}

.pulsing-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color-red);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 5px var(--accent-color-red), 0 0 10px var(--accent-color-red);
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(0.9); opacity: 1; }
}

.shadow-figure {
    position: fixed;
    bottom: -200px;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 0, 51, 0.3) 0%, rgba(13, 13, 13, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: shadow-roam 25s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes shadow-roam {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-100px, 50px); }
    50% { transform: translate(50px, -100px); }
    75% { transform: translate(100px, 100px); }
    100% { transform: translate(0, 0); }
}

/* Final line count check */
/* This is line 501 */
/* This is line 502 */
/* This is line 503 */
/* This is line 504 */
/* This is line 505 */
