/* 赛博朋克/霓虹风格样式 - 增强版 */

/* 全局背景 - 深紫色星空效果 */
body {
    background: linear-gradient(135deg, #0a0015 0%, #1a0033 50%, #0d001a 100%);
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top right, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(255, 107, 157, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* 霓虹星星背景装饰 */
body::after {
    content: '★';
    position: fixed;
    top: -50px;
    right: -50px;
    font-size: 400px;
    color: transparent;
    -webkit-text-stroke: 2px rgba(138, 43, 226, 0.3);
    text-shadow: 0 0 50px rgba(138, 43, 226, 0.2);
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* 主容器 */
.main-container {
    position: relative;
    z-index: 1;
}

/* 顶部导航 - 玻璃拟态效果 */
.top-header {
    background: rgba(15, 0, 30, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(138, 43, 226, 0.3) !important;
    box-shadow: 0 4px 30px rgba(138, 43, 226, 0.1);
}

/* Logo 霓虹发光效果 */
.header-left .logo {
    background: linear-gradient(45deg, #ff6b9d, #c44569, #8a2be2) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
    filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.3));
}

/* 搜索框 - 玻璃效果 */
.search-box {
    background: rgba(42, 42, 42, 0.5) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: rgba(255, 107, 157, 0.5);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.2);
}

/* 头部按钮 - 霓虹边框 */
.header-btn {
    background: rgba(42, 42, 42, 0.5) !important;
    border: 1px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-btn:hover {
    background: rgba(138, 43, 226, 0.2) !important;
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

/* 登录按钮 - 渐变发光 */
.login-btn {
    background: linear-gradient(45deg, #ff6b9d, #c44569) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6);
}

/* 侧边栏 - 玻璃拟态 */
.sidebar {
    background: rgba(15, 0, 30, 0.6) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(138, 43, 226, 0.2) !important;
}

/* 侧边栏菜单项 */
.sidebar-menu a {
    background: transparent !important;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background: rgba(138, 43, 226, 0.1) !important;
    border-color: rgba(138, 43, 226, 0.3);
}

.sidebar-menu a.active {
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.3), rgba(255, 107, 157, 0.2)) !important;
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

/* 内容区域 */
.content {
    background: transparent !important;
}

/* 卡片样式 - 玻璃拟态 + 霓虹边框 */
.feature-section,
.live-section {
    background: rgba(20, 0, 40, 0.4) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 区块标题 - 霓虹发光 */
.section-title,
.feature-title {
    background: linear-gradient(45deg, #ff6b9d, #8a2be2) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.3));
}

/* 直播卡片 - 炫酷效果 */
.live-card {
    background: rgba(30, 0, 60, 0.6) !important;
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.live-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 107, 157, 0.6);
    box-shadow: 
        0 12px 40px rgba(255, 107, 157, 0.3),
        0 0 30px rgba(138, 43, 226, 0.2);
}

/* 卡片缩略图 */
.card-image {
    position: relative;
    overflow: hidden;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.live-card:hover .card-image::after {
    opacity: 1;
}

/* LIVE 标签 - 霓虹发光 */
.live-tag {
    background: linear-gradient(45deg, #ff6b9d, #ff1744) !important;
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.6);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 107, 157, 0.6); }
    50% { box-shadow: 0 0 25px rgba(255, 107, 157, 0.9); }
}

/* 观看人数标签 */
.viewer-tag {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(138, 43, 226, 0.3);
}

/* 卡片信息区域 */
.card-info {
    background: transparent !important;
}

/* 主播名称 */
.streamer-name {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* 直播标题 */
.stream-title {
    color: #ccc !important;
}

/* 标签 - 霓虹效果 */
.tag {
    background: rgba(138, 43, 226, 0.2) !important;
    border: 1px solid rgba(138, 43, 226, 0.4);
    color: #c9a7eb !important;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(138, 43, 226, 0.4) !important;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.4);
}

/* 按钮 - 渐变发光 */
.btn-primary,
.btn-charge,
.btn-submit {
    background: linear-gradient(45deg, #ff6b9d, #c44569) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-charge:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6);
}

/* 输入框 - 玻璃效果 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    background: rgba(42, 42, 42, 0.5) !important;
    border: 1px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
    color: #fff !important;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(255, 107, 157, 0.6);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.2);
}

/* 模态框 - 玻璃拟态 */
.modal-content {
    background: rgba(20, 0, 40, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* 底部导航 - 手机端 */
.bottom-nav {
    background: rgba(15, 0, 30, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(138, 43, 226, 0.3) !important;
}

.bottom-nav-item {
    transition: all 0.3s ease;
}

.bottom-nav-item.active {
    color: #ff6b9d !important;
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

/* 悬浮按钮 - 霓虹发光 */
.floating-chat-btn {
    background: linear-gradient(45deg, #ff6b9d, #c44569) !important;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.5);
    animation: float-pulse 3s ease-in-out infinite;
}

@keyframes float-pulse {
    0%, 100% { 
        transform: translateY(0);
        box-shadow: 0 4px 20px rgba(255, 107, 157, 0.5);
    }
    50% { 
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(255, 107, 157, 0.7);
    }
}

/* 客服聊天窗口 */
.cs-chat-window {
    background: rgba(20, 0, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.cs-chat-header {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(255, 107, 157, 0.2)) !important;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

/* 排行榜 */
.ranking-item {
    background: rgba(30, 0, 60, 0.4) !important;
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: rgba(138, 43, 226, 0.1) !important;
    border-color: rgba(138, 43, 226, 0.4);
}

/* 排名数字 - 霓虹效果 */
.ranking-number {
    background: linear-gradient(45deg, #ffd700, #ff6b9d) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 公告区域 */
.notice-item {
    background: rgba(30, 0, 60, 0.4) !important;
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-left: 3px solid #ff6b9d;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 0, 40, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8a2be2, #ff6b9d);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9d3cf5, #ff85b0);
}

/* 文字选择颜色 */
::selection {
    background: rgba(255, 107, 157, 0.3);
    color: #fff;
}

/* 链接悬停效果 */
a:hover {
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

/* ============================================
   人气最高直播间 - 横向卡片样式
   ============================================ */

/* 卡片容器 - 紧凑横向布局 */
.featured-live-card {
    position: relative;
    background: rgba(20, 0, 40, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(138, 43, 226, 0.15);
}

/* 卡片内容布局 - 横向 */
.featured-live-content {
    display: flex;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* 左侧缩略图 - 小尺寸 */
.featured-live-preview {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    height: 140px;
    position: relative;
}

.featured-live-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-live-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a0033 0%, #2d0055 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

/* LIVE 标签 */
.featured-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff6b9d, #ff1744);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.6);
    animation: pulse-glow 2s ease-in-out infinite;
    z-index: 2;
}

/* 观看人数 */
.featured-live-viewers {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    z-index: 2;
}

/* 右侧信息区域 */
.featured-live-info {
    flex: 1;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-streamer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.featured-streamer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #8a2be2;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.4);
    overflow: hidden;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.featured-streamer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-streamer-name {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.featured-live-title {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-live-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.featured-live-tags .tag {
    background: rgba(138, 43, 226, 0.2) !important;
    border: 1px solid rgba(138, 43, 226, 0.4);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    color: #c9a7eb !important;
}

/* 人气标识 */
.featured-hot-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ffd700, #ff6b9d);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* 响应式 */
@media (max-width: 768px) {
    .featured-live-content {
        flex-direction: column;
    }
    
    .featured-live-preview {
        width: 100%;
        height: 180px;
    }
    
    .featured-live-info {
        padding: 12px 15px;
    }
    
    .featured-streamer-avatar {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .featured-streamer-name {
        font-size: 14px;
    }
    
    .featured-live-title {
        font-size: 12px;
    }
}

/* 加载动画 */
@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 7px #ff6b9d,
            0 0 10px #ff6b9d,
            0 0 21px #ff6b9d,
            0 0 42px #8a2be2,
            0 0 82px #8a2be2;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    body::after {
        font-size: 200px;
        top: -30px;
        right: -30px;
    }
    
    .live-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}
