/*
Theme Name: 樱花禁域
Author: Manus AI
Description: 和风禁忌美学里番动漫风格模板
*/

/* --- 变量定义 --- */
:root {
    --color-dark: #0c0a0f;
    --color-sakura: #f472b6;
    --color-blood: #be123c;
    --color-gold: #d4a017;
    --color-moon: #e2e8f0;
    --color-text: #a0a0a0;
    --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-title: 'serif';
}

/* --- Reset & 基础样式 --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-dark);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    background-image: url('../images/washi-texture.png'); /* 和纸纹理 */
    overflow-x: hidden;
}

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

a:hover {
    color: var(--color-moon);
}

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

ul {
    list-style: none;
}

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

/* --- 动画 & 特效 --- */
@keyframes sakura-fall {
    0% { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) translateX(10vw) rotate(720deg); opacity: 0; }
}

@keyframes gold-sparkle {
    0%, 100% { text-shadow: 0 0 2px var(--color-gold), 0 0 5px var(--color-gold); }
    50% { text-shadow: 0 0 5px var(--color-gold), 0 0 15px var(--color-gold); }
}

.sakura-petal {
    position: fixed;
    top: -10vh;
    width: 20px;
    height: 20px;
    background-image: url('../images/sakura-petal.png');
    background-size: contain;
    animation: sakura-fall linear infinite;
    z-index: 9999;
    pointer-events: none;
}

/* --- Header/Nav --- */
.header {
    background: rgba(12, 10, 15, 0.8);
    border-bottom: 1px solid rgba(190, 18, 60, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-sakura);
    font-family: var(--font-title);
    animation: gold-sparkle 3s infinite;
}

.main-nav ul {
    display: flex;
}

.main-nav li a {
    padding: 0 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-moon);
    position: relative;
}

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

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

.header-search .search-input {
    background: rgba(226, 232, 240, 0.1);
    border: 1px solid var(--color-blood);
    border-radius: 20px;
    color: var(--color-moon);
    padding: 8px 15px;
    width: 200px;
    transition: all 0.3s ease;
}

.header-search .search-input:focus {
    width: 250px;
    border-color: var(--color-sakura);
    outline: none;
}

/* --- Hero Section --- */
.hero-section {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border-bottom: 2px solid var(--color-blood);
    box-shadow: 0 5px 20px rgba(190, 18, 60, 0.3);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    filter: brightness(0.4);
    z-index: -1;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 4rem;
    color: var(--color-sakura);
    text-shadow: 0 0 10px var(--color-sakura), 0 0 20px var(--color-blood);
    animation: gold-sparkle 2s infinite alternate;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-moon);
    margin-top: 1rem;
    letter-spacing: 2px;
}

/* --- Notification Bar --- */
.notification-bar {
    background-color: var(--color-blood);
    color: var(--color-moon);
    padding: 10px 0;
    text-align: center;
}

/* --- Layout --- */
.page-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.main-area {
    flex: 1;
}

.sidebar {
    width: 300px;
}

/* --- Section/Card --- */
.section-title {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--color-moon);
    margin-bottom: 20px;
    border-left: 5px solid var(--color-sakura);
    padding-left: 15px;
    border-image: linear-gradient(to bottom, var(--color-sakura), var(--color-blood)) 1;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.video-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(190, 18, 60, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.5) inset; /* 墨水晕染边框 */
}

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

.poster-wrap {
    position: relative;
}

.poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(12, 10, 15, 0.8), transparent);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.video-card:hover .card-overlay {
    opacity: 1;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: rgba(244, 114, 182, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-blood);
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.video-score {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-gold);
    color: var(--color-dark);
    padding: 3px 8px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    animation: gold-sparkle 2s infinite;
}

.card-info {
    padding: 15px;
}

.video-title {
    font-size: 1rem;
    color: var(--color-moon);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-meta {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* --- Feature Grid --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.feature-item {
    text-align: center;
    padding: 20px;
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 8px;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 15px;
}

/* --- Contact Grid --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.contact-item {
    text-align: center;
}

/* --- Sidebar --- */
.sidebar-box {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(190, 18, 60, 0.1);
}

.sidebar-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--color-sakura);
    margin-bottom: 15px;
}

.sidebar-list li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(226, 232, 240, 0.1);
}

.ranking-list .rank-num {
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    background: #333;
    color: #fff;
    margin-right: 10px;
    border-radius: 3px;
}

.ranking-list li:nth-child(1) .rank-num { background: var(--color-blood); }
.ranking-list li:nth-child(2) .rank-num { background: var(--color-sakura); }
.ranking-list li:nth-child(3) .rank-num { background: var(--color-gold); }

.tag-cloud a {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    background: #333;
    border-radius: 4px;
}

/* --- Detail Page --- */
.detail-article {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 8px;
}

.detail-title {
    font-size: 2.5rem;
    color: var(--color-moon);
}

.detail-meta {
    margin: 15px 0;
    color: #888;
}

.detail-meta span {
    margin-right: 20px;
}

.detail-player .poster-wrap {
    position: relative;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; opacity: 0; transition: opacity 0.3s ease;
}

.detail-player .poster-wrap:hover .play-overlay { opacity: 1; }

.play-button-large i { font-size: 80px; }

.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-list {
    margin: 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail-tags {
    margin: 20px 0;
}

.detail-body {
    margin-top: 30px;
    line-height: 1.8;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.1);
}

/* --- List Page & Pagination --- */
.list-grid {
    grid-template-columns: repeat(4, 1fr);
}

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

.pagination a {
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid var(--color-sakura);
    border-radius: 5px;
}

.pagination a.current, .pagination a:hover {
    background: var(--color-sakura);
    color: var(--color-dark);
}

/* --- FAQ --- */
.faq-item {
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
    margin-bottom: 10px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 0;
}

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

.faq-answer p {
    padding-bottom: 15px;
}

/* --- Footer --- */
.footer {
    background: rgba(12, 10, 15, 0.9);
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 2px solid var(--color-blood);
}

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

.footer-title {
    font-size: 1.2rem;
    color: var(--color-sakura);
    margin-bottom: 15px;
}

.footer-links li {
    padding: 5px 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.1);
    font-size: 0.9rem;
}

/* --- Anti-Interference --- */
body > div:not(.content-wrap):not(.header):not(.footer):not([class*="yandex"]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .page-container { flex-direction: column; }
    .sidebar { width: 100%; }
}

@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
    .main-nav { display: none; width: 100%; order: 3; }
    .header-search { order: 2; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 3rem; }
}

@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
}


