/*
 * Dark Neon Purple Theme Override for loltu_cos
 * Inspired by missai.cc
 *
 * Place this file AFTER the original style.css to override
 * the light pink/purple ACG anime theme with a dark neon-purple aesthetic.
 *
 * IMPORTANT: This file ONLY modifies colors, backgrounds, shadows, borders,
 * and visual effects. No layout, spacing, sizing, or structural changes.
 */

/* =============================================
   1. Root Variables Override - Dark Theme Colors
   ============================================= */

:root {
    /* === Dark Neon Purple Variables === */
    --text-primary: #ffffff;
    --text-secondary: #b4b4d1;
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --border-color: #2d2d44;
    /* Accent colors - neon purple palette */
    --sakura-pink: #c084fc;
    --lavender-purple: #a855f7;
    --sky-blue: #818cf8;
    --rose-pink: #e879f9;
    --gold-accent: #fbbf24;
    /* Glassmorphism - dark glass */
    --glass-bg: rgba(30, 30, 60, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    /* Shadows - purple neon glow */
    --shadow-pink: 0 8px 32px rgba(168, 85, 247, 0.25);
    --shadow-purple: 0 8px 32px rgba(147, 51, 234, 0.2);
    --shadow-soft: 0 4px 20px rgba(100, 80, 160, 0.15);
    /* Gradients - neon purple */
    --gradient-pink-purple: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    --gradient-pink-blue: linear-gradient(135deg, #c084fc 0%, #818cf8 100%);
    --gradient-rose-gold: linear-gradient(135deg, #e879f9 0%, #fbbf24 100%);
    --gradient-dreamy: linear-gradient(135deg, #0a0a12 0%, #0f0f1a 50%, #12121f 100%);
    /* Elastic curve - unchanged */
    --elastic-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================
   2. Body Background Override
   ============================================= */

body {
    background: #0a0a12;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
}

/* =============================================
   3. Navbar Scrolled State Override
   ============================================= */

.navbar.navbar-scrolled {
    background: rgba(15, 15, 26, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* =============================================
   4. Scrollbar Override - Dark with Purple Thumb
   ============================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a12;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7c3aed, #a855f7);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9333ea, #c084fc);
}

/* =============================================
   5. Modal Overlay Override
   ============================================= */

.modal-overlay {
    background: rgba(5, 5, 15, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-content {
    background: #1a1a2e !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.modal-header {
    background: #1a1a2e !important;
}

.modal-body {
    background: #12121f !important;
}

.modal-image-container {
    background-color: #12121f !important;
}

.modal-image-container img {
    background: #12121f !important;
}

/* Single page overrides */
.single .single-wrapper {
    background: #0f0f1a;
}

.single .single-container > .modal-content .modal-image-container {
    background-color: #12121f;
}

.single .single-container > .modal-content .nav-arrow {
    color: #ffffff;
    opacity: 0.3;
}

/* Payment / Login modal overrides */
#payment-modal .modal-content,
#login-modal .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

/* =============================================
   6. Glass-Effect Elements Override
   ============================================= */

/* Navbar glass */
.navbar {
    background: rgba(15, 15, 26, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Search bar glass */
.search-bar {
    background: rgba(30, 30, 60, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.search-bar:hover {
    background: rgba(30, 30, 60, 0.7);
    border-color: rgba(168, 85, 247, 0.3);
}

.search-bar:focus-within {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2), var(--shadow-soft);
    background: rgba(30, 30, 60, 0.85);
}

/* Hero search glass */
.hero-search {
    background: rgba(30, 30, 60, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-search:focus-within {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2), var(--shadow-purple);
    background: rgba(30, 30, 60, 0.85);
}

/* User dropdown glass */
.user-dropdown {
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-purple);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* User center profile card glass */
.user-center-profile-card {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

/* User center stat cards glass */
.user-center-stat {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(30, 30, 60, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* User center tabs glass */
.user-center-tabs {
    background: rgba(30, 30, 60, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* User center login box glass */
.user-center-login-box {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-purple);
}

/* Author profile card glass */
.author-profile-card {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

/* Author bio box glass */
.author-bio-box {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(30, 30, 60, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
}

/* Author sort tabs glass */
.author-sort-tabs {
    background: rgba(30, 30, 60, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Author count card glass */
.author-count-card {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

/* Topics hero glass */
.topics-hero {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

/* Topics category card glass */
.topics-category-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(30, 30, 60, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
}

/* Page guide hero glass */
.page-guide-hero {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}

/* Page guide section glass */
.page-guide-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(30, 30, 60, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
}

/* Page guide card glass */
.page-guide-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(30, 30, 60, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Page default content glass */
.page-default-content {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}

/* Button icon glass (overlay buttons on image cards) */
.btn-icon {
    background: rgba(30, 30, 60, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #e0e0f0;
    opacity: 0.5;
}

.btn-icon:hover {
    opacity: 1;
}

/* Skeleton shimmer elements */
.image-item-skeleton-avatar,
.image-item-skeleton-line,
.image-item-skeleton-chip {
    background: rgba(168, 85, 247, 0.15);
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.08);
}

/* =============================================
   7. Buttons and Interactive Elements Override
   ============================================= */

/* Submit button */
.submit-btn {
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    box-shadow: var(--shadow-soft);
}

.submit-btn:hover {
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.4);
    filter: brightness(1.1);
}

/* Download button */
.btn-download {
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    box-shadow: var(--shadow-soft);
}

.btn-download:hover {
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.4);
    filter: brightness(1.1);
}

/* Secondary button */
.btn-secondary {
    background: rgba(30, 30, 60, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: #a855f7;
    color: #e879f9;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

/* Button icon hover */
.btn-icon:hover {
    color: #e879f9;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

/* Back to top button */
.back-to-top-btn {
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.4);
}

.back-to-top-btn:hover {
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.5), 0 0 20px rgba(147, 51, 234, 0.3);
}

.back-to-top-btn:focus-visible {
    outline: 2px solid #c084fc;
    outline-offset: 3px;
}

/* Load more button */
#load-more-btn {
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    box-shadow: var(--shadow-soft);
}

#load-more-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.4);
}

/* Nav links hover */
.nav-links a:hover {
    color: #e879f9;
}

.primary-menu li a:hover {
    color: #e879f9;
}

.nav-bottom a:not(.active):hover {
    color: #e879f9;
}

/* User dropdown hover */
.user-dropdown a:hover {
    background: rgba(168, 85, 247, 0.15);
    color: #e879f9;
}

/* Footer link hover */
.site-custom-footer a:hover {
    color: #e879f9;
}

/* Tab active states */
.user-center-tab-btn:hover {
    color: #e879f9;
}

.user-center-tab-btn.active {
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

.author-sort-tab:hover {
    color: #e879f9;
}

.author-sort-tab.active {
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

/* Tags */
.bc-tag {
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.25);
}

.bc-tag:hover {
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
    filter: brightness(1.1);
}

/* =============================================
   8. Mobile Sidebar Override
   ============================================= */

.mobile-sidebar-overlay {
    background: rgba(10, 10, 18, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.mobile-sidebar {
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.3);
}

.mobile-sidebar-title {
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-sidebar-close {
    background: rgba(30, 30, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e879f9;
}

.mobile-sidebar-close:hover {
    background: rgba(168, 85, 247, 0.15);
}

.mobile-sidebar-search {
    background: rgba(30, 30, 60, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mobile-sidebar-search i {
    color: #a855f7;
}

.mobile-sidebar-search input {
    color: #ffffff;
}

.mobile-sidebar-search input::placeholder {
    color: #6b6b8a;
    opacity: 0.8;
}

.mobile-sidebar-menu li a,
.mobile-sidebar-nav > a {
    color: #ffffff;
    background: rgba(30, 30, 60, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(100, 80, 160, 0.08);
}

.mobile-sidebar-menu li a:hover,
.mobile-sidebar-menu li a.active,
.mobile-sidebar-nav > a:hover,
.mobile-sidebar-nav > a.active {
    color: #fff;
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.25);
}

.mobile-sidebar-action {
    color: #ffffff;
    background: rgba(30, 30, 60, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(100, 80, 160, 0.08);
}

.mobile-sidebar-action:hover {
    color: #fff;
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.25);
}

.mobile-sidebar-login {
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.25);
}

.mobile-sidebar-register {
    background: rgba(30, 30, 60, 0.5);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-sidebar-register:hover {
    color: #fff;
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.25);
}

/* =============================================
   9. Footer Override
   ============================================= */

.site-custom-footer {
    background: linear-gradient(180deg, #0f0f1a 0%, #0a0a12 100%);
}

.site-custom-footer::before {
    background: linear-gradient(90deg, transparent 0%, #a855f7 30%, #c084fc 50%, #a855f7 70%, transparent 100%);
    opacity: 0.5;
}

.site-custom-footer-inner {
    color: #8b8ba0;
}

.site-custom-footer a {
    color: #ffffff;
}

/* =============================================
   10. Image Items Hover Effects Override
   ============================================= */

.image-item {
    background-color: #1a1a2e;
}

.image-item > img {
    background: #1a1a2e;
}

@media (hover: hover) and (pointer: fine) {
    .image-item:hover {
        box-shadow: 0 12px 40px rgba(168, 85, 247, 0.35), 0 4px 16px rgba(147, 51, 234, 0.2);
    }
}

/* Topics category card hover */
.topics-category-card:hover {
    box-shadow: var(--shadow-purple);
}

/* User center stat hover */
.user-center-stat:hover {
    box-shadow: var(--shadow-purple);
}

/* Page guide card hover */
.page-guide-card:hover {
    box-shadow: var(--shadow-purple);
}

/* =============================================
   11. Danmaku Section Override
   ============================================= */

/* 弹幕区域CSS变量统一在 Section 30 中定义，此处不再重复 */

/* Danmaku input */
.single-danmaku-input {
    background: rgba(30, 30, 60, 0.5);
    color: #e0e0f0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.single-danmaku-input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2);
    background: rgba(30, 30, 60, 0.85);
}

/* Danmaku submit button */
.single-danmaku-submit {
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%) !important;
    box-shadow: var(--shadow-soft);
}

.single-danmaku-submit:hover {
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.4) !important;
    filter: brightness(1.1) !important;
}

/* Danmaku empty text */
.single-danmaku-empty {
    color: #6b6b8a;
}

/* Danmaku tip text */
.single-danmaku-tip {
    color: #6b6b8a;
}

/* =============================================
   12. Pagination Override
   ============================================= */

.page-numbers li span.page-numbers,
.page-numbers li a.page-numbers {
    color: #b4b4d1;
}

.page-numbers li a.page-numbers:hover {
    color: #fff;
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

.page-numbers li .current {
    color: #fff;
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%) !important;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

.page-numbers li .current::after {
    background: #e879f9;
}

.page-numbers li .dots {
    color: #8b8ba0;
}

.pagination-end-message {
    color: #8b8ba0;
}

/* =============================================
   13. Shadow / Glow Effects Override
   ============================================= */

/* Glow pulse animation - purple neon */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
    }
    50% {
        box-shadow: 0 4px 24px rgba(147, 51, 234, 0.5), 0 0 40px rgba(168, 85, 247, 0.2);
    }
}

/* Modal loading bar */
.modal-loading-bar {
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
}

/* Hero title gradient */
.hero h1 {
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #e879f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Topics hero title gradient */
.topics-hero-title {
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #e879f9 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Topics section border */
.topics-section-head {
    border-bottom: 2px solid #2d2d44 !important;
}

/* Nav bottom active indicator */
.nav-bottom a.active::after {
    background: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
}

/* =============================================
   14. Selection Color Override
   ============================================= */

::selection {
    background: rgba(168, 85, 247, 0.4);
    color: #ffffff;
}

/* =============================================
   15. Focus Styles Override
   ============================================= */

*:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

/* =============================================
   16. Divider & Border Overrides
   ============================================= */

.divider {
    background: linear-gradient(180deg, #7c3aed, #a855f7);
    width: 2px;
    border-radius: 999px;
}

.v-divider {
    background: linear-gradient(180deg, #7c3aed, #a855f7);
    width: 2px;
    border-radius: 999px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

.nav-bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-action-row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =============================================
   17. Avatar Border Override
   ============================================= */

.nav-avatar img {
    border: 2px solid #a855f7;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.nav-avatar img:hover {
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.5);
}

.user-center-avatar img {
    border: 2px solid #a855f7;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

.author-avatar img {
    border: 2px solid #a855f7;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

/* =============================================
   18. Topics Scrollbar Override
   ============================================= */

.topics-category-grid {
    scrollbar-color: #7c3aed transparent;
}

.topics-category-grid::-webkit-scrollbar-track {
    background: transparent;
}

.topics-category-grid::-webkit-scrollbar-thumb {
    background-color: #7c3aed;
    border-radius: 999px;
}

.topics-category-grid::-webkit-scrollbar-thumb:hover {
    background-color: #a855f7;
}

/* =============================================
   19. Mobile Close Button Override
   ============================================= */

@media (max-width: 768px) {
    .back-to-top-btn {
        box-shadow: 0 6px 20px rgba(147, 51, 234, 0.35);
    }

    .modal-content {
        border: none;
    }

    /* Single page mobile background */
    .single .single-container > .modal-content .modal-image-container {
        background-color: #12121f;
    }

    /* Login modal bottom sheet swipe indicator */
    #login-modal .modal-content::before {
        background: #3b3b5c;
    }
}

/* =============================================
   20. VIP Badge Override
   ============================================= */

.vip-badge {
    background: #1a1a2e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-identity-tag.normal {
    background: #2d2d44;
    color: #b4b4d1;
}

/* =============================================
   21. Placeholder Text Override
   ============================================= */

input::placeholder,
textarea::placeholder {
    color: #6b6b8a;
}

/* =============================================
   22. Mobile Menu Toggle Override
   ============================================= */

.mobile-menu-toggle {
    color: #ffffff;
}

.mobile-menu-toggle:hover {
    background: rgba(168, 85, 247, 0.15);
}

/* =============================================
   23. Misc Dark Adjustments
   ============================================= */

/* Ensure all secondary text colors are visible on dark */
.hero p {
    color: #b4b4d1;
}

.user-center-identity p {
    color: #b4b4d1;
}

.user-center-meta {
    color: #8b8ba0;
}

.user-center-stat-label {
    color: #8b8ba0;
}

.user-center-section-head span {
    color: #8b8ba0;
}

.user-center-empty,
.user-center-tip {
    color: #8b8ba0;
}

.user-center-login-box p {
    color: #b4b4d1;
}

.author-handle {
    color: #b4b4d1;
}

.author-submeta {
    color: #8b8ba0;
}

.author-submeta a {
    color: #8b8ba0;
}

.author-submeta a:hover {
    color: #ffffff;
}

.author-bio {
    color: #b4b4d1;
}

.author-count-label {
    color: #8b8ba0;
}

.author-empty {
    color: #8b8ba0;
}

.topics-hero p {
    color: #b4b4d1;
}

.topics-section-head span {
    color: #8b8ba0;
}

.topics-category-meta {
    color: #8b8ba0;
}

.topics-empty {
    color: #8b8ba0;
}

.page-guide-hero p {
    color: #b4b4d1;
}

.page-guide-card p {
    color: #8b8ba0;
}

.page-guide-steps li {
    color: #b4b4d1;
}

.page-guide-note {
    color: #b4b4d1;
}

.page-default-body {
    color: #b4b4d1;
}

.page-default-body h2,
.page-default-body h3 {
    color: #ffffff;
}

.page-default-body a {
    color: #c084fc;
}

.stat-label {
    color: #8b8ba0;
}

.stat-value {
    color: #ffffff;
}

.user-handle {
    color: #8b8ba0;
}

.user-name {
    color: #ffffff;
}

.modal-meta-row {
    color: #8b8ba0;
}

/* Search bar icon */
.search-bar i {
    color: #8b8ba0;
}

.hero-search i {
    color: #8b8ba0;
}

/* User dropdown icon */
.user-dropdown a i {
    color: #8b8ba0;
}

/* =============================================
   24. Card Hover Border Glow
   ============================================= */

@media (hover: hover) and (pointer: fine) {
    .topics-category-card:hover {
        border-color: #3b3b5c;
        box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.15), var(--shadow-purple);
    }

    .page-guide-card:hover {
        border-color: #3b3b5c;
        box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.15), var(--shadow-soft);
    }
}

/* =============================================
   25. Banner Gradient (for any banner/hero areas)
   ============================================= */

.hero {
    background: linear-gradient(90deg, rgba(88, 28, 135, 0.15), rgba(30, 30, 60, 0.1));
    border-radius: 0;
}

/* =============================================
   26. Disabled Button States
   ============================================= */

.btn-download:disabled,
.btn-download.is-downloading {
    background: #2d2d44;
}

.btn-download:disabled:hover,
.btn-download.is-downloading:hover {
    background: #2d2d44;
}

/* =============================================
   27. Mobile Responsive Dark Adjustments
   ============================================= */

@media (max-width: 768px) {
    .image-item {
        background-color: #1a1a2e;
    }
}

/* =============================================
   28. Image Modal Dynamic Background (Enhancement 1)
   ============================================= */

/* Modal image container - dark background matching detail page */
.modal-image-container {
    position: relative;
    background-color: #12121f !important;
}
.modal-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(ellipse at center, var(--modal-ambient-color, rgba(168,85,247,0.06)) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    transition: background 0.6s ease;
}
.modal-image-container img {
    position: relative;
    z-index: 1;
    background: #12121f !important;
}

/* =============================================
   29. Info Panel White Background Fix (Enhancement 2)
   ============================================= */

.image-info-panel {
    background: rgba(30, 30, 60, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.image-info-panel p {
    color: #e0e0f0 !important;
}

/* =============================================
   30. Refined Danmaku Section (Enhancement 3)
   ============================================= */

/* === Refined Danmaku Section === */
.single-danmaku-section {
    --danmaku-panel-bg: linear-gradient(180deg, rgba(18,18,31,0.95) 0%, rgba(26,26,46,0.98) 50%, rgba(15,15,26,0.95) 100%);
    --danmaku-rule-bg: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    --danmaku-rule-text: #fff;
    --danmaku-stage-top: rgba(18, 18, 31, 0.96);
    --danmaku-stage-bottom: rgba(26, 26, 46, 0.98);
    --danmaku-stage-line: rgba(168, 85, 247, 0.04);
    --danmaku-fade-edge: rgba(18, 18, 31, 0.96);
    --danmaku-item-bg: rgba(30, 30, 60, 0.75);
    --danmaku-author-bg: linear-gradient(90deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
    --danmaku-author-text: #fff;
    --danmaku-author-anonymous-bg: rgba(168, 85, 247, 0.3);
    --danmaku-content-text: #d0d0e8;
    --danmaku-meta-text: #6b6b8a;
    border-radius: 20px !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    overflow: hidden;
    position: relative;
}

/* Danmaku section top decorative gradient line */
.single-danmaku-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #a855f7 30%, #c084fc 50%, #a855f7 70%, transparent 100%);
    opacity: 0.6;
}

/* Danmaku header */
.single-danmaku-head {
    padding: 20px 20px 0;
}
.single-danmaku-head h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
}

/* Danmaku form - refined */
.single-danmaku-form {
    padding: 0 20px;
    margin-bottom: 12px;
    gap: 10px;
}
.single-danmaku-input {
    background: rgba(30, 30, 60, 0.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    color: #e0e0f0;
    font-size: 14px;
    height: 44px;
    padding: 0 18px;
    transition: all 0.3s ease;
}
.single-danmaku-input:focus {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1), 0 0 20px rgba(168, 85, 247, 0.08);
    background: rgba(30, 30, 60, 0.7);
}
.single-danmaku-input::placeholder {
    color: #6b6b8a;
}

/* Danmaku submit button - refined pill */
.single-danmaku-submit {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%) !important;
    border-radius: 14px !important;
    font-size: 14px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.25) !important;
}
.single-danmaku-submit:hover {
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* Danmaku tip */
.single-danmaku-tip {
    padding: 0 20px;
    margin-bottom: 8px;
    color: #4b4b6b;
    font-size: 12px;
}

/* Danmaku stage - refined with subtle grid */
.single-danmaku-stage {
    border-radius: 0 0 16px 16px;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(168, 85, 247, 0.02) 0,
            rgba(168, 85, 247, 0.02) 1px,
            transparent 1px,
            transparent 48px
        );
}

/* Danmaku items - softer, more refined */
.single-danmaku-item {
    background: rgba(30, 30, 60, 0.65);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 20px;
    padding: 8px 16px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.single-danmaku-author {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border-radius: 10px;
    padding: 3px 8px;
    font-size: 11px;
}
.single-danmaku-item.is-anonymous .single-danmaku-author {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.15);
}
.single-danmaku-content {
    color: #c8c8e0;
    font-size: 13px;
    line-height: 1;
}
.single-danmaku-meta {
    color: #4b4b6b;
    font-size: 11px;
}
.single-danmaku-empty {
    color: #4b4b6b;
}

/* Danmaku stage fade edges - removed (mask layer disabled) */

/* =============================================
   31. Premium Category Navigation Bar (Enhancement 4)
   ============================================= */

/* === Premium Category Navigation Bar === */
.nav-bottom.acg-nav-categories {
    height: auto;
    padding: 10px 24px;
    border-bottom: none;
    background: transparent;
    gap: 6px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-bottom.acg-nav-categories a {
    height: auto;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    color: #b4b4d1;
    background: rgba(30, 30, 60, 0.4);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}

.nav-bottom.acg-nav-categories a:hover {
    color: #ffffff;
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.15);
}

.nav-bottom.acg-nav-categories a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
    font-weight: 600;
}

.nav-bottom.acg-nav-categories a.active::after {
    display: none;
}

.nav-bottom .v-divider {
    display: none;
}

/* =============================================
   32. Topics Page Enhancement (Enhancement 5)
   ============================================= */

/* === Topics Page Enhancement === */
.topics-hero {
    text-align: center;
    padding: 28px 32px !important;
    margin-bottom: 16px !important;
    position: relative;
    overflow: hidden;
}

/* Topics hero decorative background */
.topics-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(192, 132, 252, 0.06) 0%, transparent 50%);
    animation: topics-hero-glow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes topics-hero-glow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-5%, 3%); }
}

.topics-hero-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    position: relative;
}

.topics-hero-desc {
    font-size: 15px !important;
    line-height: 1.8 !important;
    max-width: 560px !important;
}

/* Topics section title - refined */
.topics-section-head {
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    padding-bottom: 14px !important;
    margin-bottom: 24px !important;
}

.topics-section-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

.topics-section-desc {
    font-size: 13px !important;
    color: #6b6b8a !important;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(30, 30, 60, 0.4);
    border: 1px solid rgba(255,255,255,0.06);
}

/* Topics category cards - refined glass */
.topics-category-card {
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    position: relative !important;
    z-index: 0;
    padding: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    /* Inner border glow to cover any edge gaps */
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.25),
                inset 0 -40px 60px -20px rgba(10, 10, 18, 0.6),
                inset 0 40px 60px -20px rgba(10, 10, 18, 0.3);
}
/* Inner wrapper to restore padding without affecting background coverage */
.topics-category-card-inner {
    padding: 20px 14px;
    position: relative;
    z-index: 1;
}

.topics-category-card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.4),
                inset 0 -40px 60px -20px rgba(10, 10, 18, 0.6),
                inset 0 40px 60px -20px rgba(10, 10, 18, 0.3),
                0 16px 48px rgba(168, 85, 247, 0.2) !important;
}

.topics-category-card h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

.topics-category-meta {
    font-size: 12px !important;
}

.topics-category-meta span {
    opacity: 0.85;
}

/* Topics section spacing */
.topics-section {
    margin-bottom: 28px !important;
}
/* Remove extra bottom padding from category grid */
.topics-category-grid {
    padding-bottom: 0 !important;
}


/* Topics page body font - refined for dark theme */
.topics-page,
.topics-page * {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.topics-hero-desc {
    font-size: 15px !important;
    line-height: 1.8 !important;
    max-width: 560px !important;
    color: #9a9ab8 !important;
    font-weight: 400;
}

/* =============================================
   33. Modal Content Enhancements (Enhancement 6)
   ============================================= */

/* Modal content refined */
.modal-content {
    background: #1a1a2e !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 20px !important;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Modal stats grid - refined */
.modal-stats-grid {
    gap: 32px;
    padding: 4px 0;
}

.stat-item {
    padding: 8px 16px;
    background: rgba(30, 30, 60, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.04);
}

/* Color swatch border fix */
.color-swatch {
    border: 1px solid rgba(255,255,255,0.15) !important;
}

/* Modal related section title */
.modal-related h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    position: relative;
    padding-bottom: 12px;
}

.modal-related h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #c084fc);
    border-radius: 999px;
}

/* =============================================
   34. Submit Modal Dark Theme Fix (Enhancement 7)
   ============================================= */

/* Submit modal dark theme */
#submit-photo-modal .modal-content {
    background: #1a1a2e !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}

#submit-photo-modal h2 {
    color: #ffffff;
}

#submit-photo-modal label {
    color: #e0e0f0;
    font-weight: 500;
}

#submit-photo-modal p {
    color: #8b8ba0;
}

/* Payment modal dark theme */
#payment-modal .modal-content {
    background: #1a1a2e !important;
}

.payment-header h2 {
    color: #ffffff;
}

.payment-footer div {
    color: #ffffff;
}

/* Login modal dark theme */
#login-modal .modal-content {
    background: #1a1a2e !important;
}

.login-prompt-header h2 {
    color: #ffffff;
}

/* =============================================
   35. Footer Enhancements (Enhancement 8)
   ============================================= */

/* Footer refined */
.site-custom-footer {
    position: relative;
    overflow: hidden;
}

.site-custom-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* =============================================
   36. Additional Refined Details (Enhancement 9)
   ============================================= */

/* Refined search bar */
.search-bar {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
}
.search-bar input {
    color: #ffffff;
}
.search-bar input::placeholder {
    color: #6b6b8a;
}

/* User dropdown refined */
.user-dropdown {
    border-radius: 16px;
    overflow: hidden;
}

/* Back to top refined */
.back-to-top-btn {
    border: 1px solid rgba(255,255,255,0.1);
}

/* Loading bar in modal */
.modal-loading-bar {
    background: linear-gradient(90deg, #7c3aed, #a855f7, #c084fc) !important;
    height: 3px;
    border-radius: 0 0 3px 3px;
}

/* Image overlay on hover - refined */
.image-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    border-radius: 16px;
}

/* Author avatar/name 50% opacity on hover */
.user-snippet {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.user-snippet:hover {
    opacity: 1;
}
.user-snippet img {
    background: rgba(168, 85, 247, 0.3);
}

/* === Footer Links Style === */
.site-custom-footer-inner a {
    color: #8b8ba0 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}
.site-custom-footer-inner a:hover {
    color: #a855f7 !important;
}

/* Mobile responsive fixes for new nav */
@media (max-width: 768px) {
    .nav-bottom.acg-nav-categories {
        padding: 8px 16px;
        gap: 6px;
    }

    .nav-bottom.acg-nav-categories a {
        padding: 6px 14px;
        font-size: 15px;
    }

    .topics-hero {
        padding: 32px 20px !important;
    }

    .topics-hero-title {
        font-size: 26px !important;
    }

    .stat-item {
        padding: 10px 12px;
    }
}

/* =============================================
   封面图内描边效果
   ============================================= */

/* 用伪元素在图片上层绘制边框，不影响瀑布流布局 */
.image-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 5px solid rgba(168, 85, 247, 0.25);
    border-radius: inherit;
    pointer-events: none;
    z-index: 3;
}

/* =============================================
   分类导航样式
   ============================================= */

@media (max-width: 768px) {
    .nav-bottom.acg-nav-categories a {
        padding: 6px 20px !important;
        font-size: 18px !important;
    }
}

@media (min-width: 769px) {
    .nav-bottom.acg-nav-categories a {
        padding: 8px 25px !important;
        font-size: 20px !important;
    }
}

/* =============================================
   作者页移动端居中
   ============================================= */

@media (max-width: 768px) {
    .author-profile-card {
        padding: 20px !important;
    }
    
    .author-profile-main {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .author-avatar {
        margin-right: 0 !important;
        margin-bottom: 16px !important;
    }
    
    .author-meta {
        width: 100% !important;
        text-align: center !important;
    }
    
    .author-meta h1 {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        text-align: center !important;
    }
    
    .author-handle {
        text-align: center !important;
    }
    
    .author-inline-bio {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        text-align: center !important;
    }
    
    .author-social-links {
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .author-profile-card {
        padding: 16px !important;
    }
}
