/*
 * Template Name: 偶像舞台Live
 * Author: Manus.im
 * Description: 偶像演唱会应援舞台风格模板
 */

/* --- General Styles --- */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei", sans-serif;
    background-color: #0a0a2e; /* 深夜蓝 */
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a { text-decoration: none; color: #ff69b4; transition: color 0.3s ease; }
a:hover { color: #ffd700; }

.main-container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    gap: 20px;
}

.content { flex: 1; }
.sidebar { width: 300px; }

.section-title {
    font-size: 2em;
    color: #ffd700; /* 闪亮金 */
    text-shadow: 0 0 10px #ffd700, 0 0 20px #ff69b4;
    border-bottom: 2px solid #7b2fbe; /* 舞台紫 */
    padding-bottom: 10px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

/* --- Header --- */
.stage-header {
    position: relative;
    background: url("../images/stage-bg.jpg") no-repeat center center/cover;
    padding-top: 60px; /* Space for top-bar */
    overflow: hidden;
}

.curtain-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 100;
    pointer-events: none;
}

.curtain {
    position: absolute;
    top: 0; width: 50%; height: 100%;
    background-color: #7b2fbe;
    transition: transform 2s ease-in-out;
}

.curtain.left { left: 0; transform-origin: left; }
.curtain.right { right: 0; transform-origin: right; }

body.loaded .curtain.left { transform: translateX(-100%); }
body.loaded .curtain.right { transform: translateX(100%); }

.top-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(10, 10, 46, 0.8);
    z-index: 10;
}

.logo img { display: block; }

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

.main-nav li a {
    padding: 10px 15px;
    font-size: 1.1em;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

.main-nav li a:hover {
    background: linear-gradient(45deg, #ff0000, #ff8c00, #ffd700, #00ff00, #00bfff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-box input {
    background: rgba(255,255,255,0.2);
    border: 1px solid #7b2fbe;
    color: #fff;
    padding: 8px;
    border-radius: 5px;
}

.search-box button {
    background: #ff69b4;
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.stage-banner {
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.stage-banner h1 {
    font-size: 4em;
    margin: 0;
    color: #ffd700;
    text-shadow: 0 0 20px #ff69b4, 0 0 40px #ff69b4;
    animation: flicker 1.5s infinite alternate;
}

.stage-banner p { font-size: 1.5em; color: #fff; }

.spotlight {
    position: absolute;
    top: -50px;
    width: 200px;
    height: 400px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    transform-origin: top center;
}

.spotlight1 { left: 10%; animation: sweep1 8s infinite linear; }
.spotlight2 { right: 10%; animation: sweep2 10s infinite linear; }

/* --- Main Content --- */
.breadcrumb-nav {
    margin-bottom: 20px;
    color: #ccc;
}

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

.support-card {
    background: #1e103b;
    border: 2px solid #7b2fbe;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.support-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px #ff69b4;
}

.support-card .card-image-wrapper {
    position: relative;
}

.support-card img { width: 100%; display: block; }

.support-card .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, #ff0000, #ff8c00, #ffd700, #00ff00, #00bfff, #8a2be2);
    opacity: 0;
    transition: opacity 0.4s;
}

.support-card:hover .overlay { opacity: 0.6; }

.support-card .play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px; height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s;
}

.support-card:hover .play-icon { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.play-icon::after {
    content: '';
    position: absolute;
    top: 50%; left: 55%;
    transform: translate(-50%, -50%);
    border-left: 20px solid #7b2fbe;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.support-card .card-content { padding: 15px; }
.support-card h3 { margin: 0 0 10px; font-size: 1.1em; }
.card-meta { font-size: 0.9em; color: #ccc; display: flex; justify-content: space-between; }

.list-view .list-item {
    display: flex;
    background: #1e103b;
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.list-item .item-thumbnail { width: 150px; }
.list-item .item-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.list-item .item-details { padding: 15px; }
.list-item h3 { margin: 0 0 10px; }
.list-item p { margin: 0 0 10px; color: #ccc; }
.item-meta { font-size: 0.9em; color: #ff69b4; }

.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination .page-item {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background: #7b2fbe;
    color: #fff;
    border-radius: 5px;
}

.pagination .page-item:hover { background: #ff69b4; }

/* --- Show Page --- */
.post-header h1 { font-size: 2.5em; color: #ffd700; }
.post-meta { margin: 20px 0; color: #ccc; }
.post-meta .meta-item { margin-right: 20px; }

.video-player-container {
    position: relative;
    margin-bottom: 20px;
}

.video-poster { width: 100%; }

.stage-smoke {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100px;
    background: url("../images/smoke.png") repeat-x;
    background-size: contain;
    animation: smoke-move 20s linear infinite;
    opacity: 0.5;
}

.post-body { line-height: 1.8; font-size: 1.1em; }

.rating-stars {
    margin: 20px 0;
    font-size: 2em;
    color: #ffd700;
}

.rating-stars .star { animation: star-flicker 1s infinite alternate; }
.rating-stars .star:nth-child(2) { animation-delay: 0.2s; }
.rating-stars .star:nth-child(3) { animation-delay: 0.4s; }
.rating-stars .star:nth-child(4) { animation-delay: 0.6s; }

.post-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #7b2fbe;
    padding-top: 20px;
}

/* --- Sidebar --- */
.sidebar .widget {
    background: #1e103b;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #7b2fbe;
}

.widget-title {
    font-size: 1.5em;
    color: #ff69b4;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #7b2fbe;
}

.ranking-list ul, .category-list ul { list-style: none; padding: 0; margin: 0; }
.ranking-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.rank-num {
    font-weight: bold;
    font-size: 1.2em;
    color: #ffd700;
    margin-right: 10px;
    width: 25px;
    text-align: center;
}

.rank-1, .rank-2, .rank-3 { color: #ff0000; }
.ranking-list a { flex: 1; }
.rank-hits { color: #ccc; font-size: 0.9em; }

.category-list li a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed #7b2fbe;
}

.random-recommend .card-list { list-style: none; padding: 0; margin: 0; }
.random-recommend .card-list li { margin-bottom: 15px; }
.random-recommend .card-link { display: block; background: #0a0a2e; border-radius: 5px; overflow: hidden; }
.random-recommend .card-image img { width: 100%; }
.random-recommend .card-info { padding: 10px; }
.random-recommend .card-info h4 { margin: 0 0 5px; font-size: 1em; }
.random-recommend .card-info p { margin: 0; font-size: 0.9em; color: #ccc; }

/* --- Footer --- */
.main-footer {
    background: #1e103b;
    color: #ccc;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.danmaku-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
}

.danmaku {
    position: absolute;
    width: 100%;
    animation: danmaku-scroll 20s linear infinite;
}

.danmaku span {
    position: absolute;
    white-space: nowrap;
    color: #fff;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px #000;
}

.danmaku span:nth-child(1) { top: 10%; left: 100%; animation-delay: 0s; }
.danmaku span:nth-child(2) { top: 30%; left: 100%; animation-delay: 5s; color: #ffd700; }
.danmaku span:nth-child(3) { top: 50%; left: 100%; animation-delay: 10s; }
.danmaku span:nth-child(4) { top: 70%; left: 100%; animation-delay: 15s; color: #ff69b4; }
.danmaku span:nth-child(5) { top: 85%; left: 100%; animation-delay: 18s; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.footer-links h3 { color: #ff69b4; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { display: inline-block; margin: 0 10px; }

.footer-info { position: relative; z-index: 1; }
.footer-info p { margin: 5px 0; }

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

/* --- Animations --- */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes sweep1 {
    0% { transform: rotate(-30deg); }
    50% { transform: rotate(30deg); }
    100% { transform: rotate(-30deg); }
}

@keyframes sweep2 {
    0% { transform: rotate(20deg); }
    50% { transform: rotate(-20deg); }
    100% { transform: rotate(20deg); }
}

@keyframes smoke-move {
    from { background-position: 0 0; }
    to { background-position: -1000px 0; }
}

@keyframes star-flicker {
    from { text-shadow: 0 0 5px #ffd700; }
    to { text-shadow: 0 0 20px #ffd700, 0 0 30px #ff8c00; }
}

@keyframes danmaku-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-200%); }
}

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

@media (max-width: 768px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .top-bar { flex-direction: column; height: auto; padding: 10px; }
    .main-nav ul { flex-direction: column; text-align: center; width: 100%; margin-top: 10px; }
    .main-nav li { margin: 5px 0; }
    .stage-header { padding-top: 150px; }
    .stage-banner h1 { font-size: 3em; }
}

@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr; }
    .stage-banner h1 { font-size: 2.5em; }
    .post-header h1 { font-size: 2em; }
    .list-item { flex-direction: column; }
    .list-item .item-thumbnail { width: 100%; height: 150px; }
}

/* --- Additional Animations & Effects --- */
.support-card .card-image-wrapper {
    overflow: hidden;
}

.support-card:hover img {
    transform: scale(1.1);
    transition: transform 0.4s ease-out;
}

.widget-title {
    position: relative;
}

.widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #ff69b4, #ffd700);
    animation: slide-in 1s ease-out;
}

@keyframes slide-in {
    from { width: 0; }
    to { width: 50px; }
}

.search-box button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #ffd700;
    transition: all 0.3s;
}

.main-nav li {
    position: relative;
}

.main-nav li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s;
}

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

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.post-body p {
    margin-bottom: 1.5em;
}

.post-body strong {
    color: #ff69b4;
}

.post-body blockquote {
    border-left: 4px solid #7b2fbe;
    padding-left: 1em;
    margin-left: 0;
    font-style: italic;
    color: #ccc;
}

/* --- More Responsive Adjustments --- */
@media (max-width: 1200px) {
    .main-container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .stage-banner h1 { font-size: 3.5em; }
    .stage-banner p { font-size: 1.2em; }
    .ranking-list li { font-size: 0.9em; }
}

@media (max-width: 576px) {
    .top-bar {
        padding: 5px 10px;
    }
    .stage-header { padding-top: 180px; }
    .search-box {
        width: 100%;
        margin-top: 10px;
        display: flex;
    }
    .search-box input { flex-grow: 1; }
    .post-meta .meta-item {
        display: block;
        margin-bottom: 5px;
    }
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}
