/* 
 * 直播导航页面 - 增强版样式
 * Enhanced Live Navigation Styles
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 动态背景粒子效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgFloat {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 顶部导航栏 - 玻璃拟态效果 */
.top-header {
    background: rgba(20, 20, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
    }
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.online-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    padding: 8px 16px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.online-dot {
    width: 10px;
    height: 10px;
    background: #4caf50;
    border-radius: 50%;
    animation: blink 2s infinite;
    box-shadow: 0 0 10px #4caf50;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 搜索框 */
.search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

/* 赛博朋克风格按钮 */
.btn {
    --primary: #667eea;
    --shadow-primary: #fded00;
    position: relative;
    padding: 10px 25px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    background: var(--primary);
    transition: all 0.3s;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px 0 rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(102, 126, 234, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #667eea;
}

/* 子导航栏 */
.sub-nav {
    background: rgba(15, 15, 30, 0.92);
    backdrop-filter: blur(15px);
    padding: 15px 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* 星星旋转按钮样式 */
.sub-nav-button {
    --stone-50: #ffffff;
    --stone-800: #1a1a2e;
    --yellow-400: #667eea;
    
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    line-height: 1;
    font-size: 0.95rem;
    border-radius: 0.8rem;
    outline: 2px solid transparent;
    outline-offset: 6px;
    color: var(--stone-50);
    text-decoration: none;
    transition: all 0.3s;
}

.sub-nav-button:active {
    outline-color: var(--yellow-400);
}

.sub-nav-button:focus-visible {
    outline-color: var(--yellow-400);
    outline-style: dashed;
}

.sub-nav-button::before {
    content: "";
    position: absolute;
    z-index: 0;
    height: 150%;
    max-height: 60px;
    aspect-ratio: 1;
    margin: auto;
    background: rgba(102, 126, 234, 0.8);
    clip-path: polygon(
        100% 50%,
        91.48% 56.57%,
        97.55% 65.45%,
        87.42% 69.07%,
        90.45% 79.39%,
        79.7% 79.7%,
        79.39% 90.45%,
        69.07% 87.42%,
        65.45% 97.55%,
        56.57% 91.48%,
        50% 100%,
        43.43% 91.48%,
        34.55% 97.55%,
        30.93% 87.42%,
        20.61% 90.45%,
        20.3% 79.7%,
        9.55% 79.39%,
        12.58% 69.07%,
        2.45% 65.45%,
        8.52% 56.57%,
        0% 50%,
        8.52% 43.43%,
        2.45% 34.55%,
        12.58% 30.93%,
        9.55% 20.61%,
        20.3% 20.3%,
        20.61% 9.55%,
        30.93% 12.58%,
        34.55% 2.45%,
        43.43% 8.52%,
        50% 0%,
        56.57% 8.52%,
        65.45% 2.45%,
        69.07% 12.58%,
        79.39% 9.55%,
        79.7% 20.3%,
        90.45% 20.61%,
        87.42% 30.93%,
        97.55% 34.55%,
        91.48% 43.43%
    );
    animation: star-rotate 4s linear infinite;
    opacity: 0.15;
}

.sub-nav-button:hover::before,
.sub-nav-button.active::before {
    opacity: 0.8;
}

.sub-nav-button > div {
    padding: 2px;
    border-radius: 1rem;
    background-color: var(--yellow-400);
    transform: translate(-4px, -4px);
    transition: all 150ms ease;
    box-shadow:
        0.5px 0.5px 0 0 var(--yellow-400),
        1px 1px 0 0 var(--yellow-400),
        1.5px 1.5px 0 0 var(--yellow-400),
        2px 2px 0 0 var(--yellow-400),
        2.5px 2.5px 0 0 var(--yellow-400),
        3px 3px 0 0 var(--yellow-400),
        0 0 0 2px var(--stone-800),
        0.5px 0.5px 0 2px var(--stone-800),
        1px 1px 0 2px var(--stone-800),
        1.5px 1.5px 0 2px var(--stone-800),
        2px 2px 0 2px var(--stone-800),
        2.5px 2.5px 0 2px var(--stone-800),
        3px 3px 0 2px var(--stone-800),
        3.5px 3.5px 0 2px var(--stone-800),
        4px 4px 0 2px var(--stone-800),
        0 0 0 4px var(--stone-50),
        0.5px 0.5px 0 4px var(--stone-50),
        1px 1px 0 4px var(--stone-50),
        1.5px 1.5px 0 4px var(--stone-50),
        2px 2px 0 4px var(--stone-50),
        2.5px 2.5px 0 4px var(--stone-50),
        3px 3px 0 4px var(--stone-50),
        3.5px 3.5px 0 4px var(--stone-50),
        4px 4px 0 4px var(--stone-50);
}

.sub-nav-button:hover > div {
    transform: translate(0, 0);
    box-shadow:
        0 0 0 0 var(--yellow-400),
        0 0 0 0 var(--yellow-400),
        0 0 0 0 var(--yellow-400),
        0 0 0 0 var(--yellow-400),
        0 0 0 0 var(--yellow-400),
        0 0 0 0 var(--yellow-400),
        0 0 0 2px var(--stone-800),
        0 0 0 2px var(--stone-800),
        0 0 0 2px var(--stone-800),
        0 0 0 2px var(--stone-800),
        0 0 0 2px var(--stone-800),
        0 0 0 2px var(--stone-800),
        0 0 0 2px var(--stone-800),
        0 0 0 2px var(--stone-800),
        0 0 0 2px var(--stone-800),
        0 0 0 4px var(--stone-50),
        0 0 0 4px var(--stone-50),
        0 0 0 4px var(--stone-50),
        0 0 0 4px var(--stone-50),
        0 0 0 4px var(--stone-50),
        0 0 0 4px var(--stone-50),
        0 0 0 4px var(--stone-50),
        0 0 0 4px var(--stone-50),
        0 0 0 4px var(--stone-50);
}

.sub-nav-button > div > div {
    position: relative;
    pointer-events: none;
    border-radius: calc(1rem - 2px);
    background-color: var(--stone-800);
}

.sub-nav-button > div > div::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    opacity: 0.15;
    background-image: radial-gradient(
            rgb(255 255 255 / 60%) 20%,
            transparent 20%
        ),
        radial-gradient(rgb(255 255 255 / 80%) 20%, transparent 20%);
    background-position:
        0 0,
        4px 4px;
    background-size: 8px 8px;
    mix-blend-mode: overlay;
    box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.3);
    animation: dots 0.4s infinite linear;
    transition: opacity 150ms ease;
}

.sub-nav-button:hover > div > div::before,
.sub-nav-button.active > div > div::before {
    opacity: 0.25;
}

.sub-nav-button > div > div > div {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    gap: 0.25rem;
    filter: drop-shadow(0 -1px 0 var(--stone-800));
    pointer-events: auto;
    white-space: nowrap;
}

.sub-nav-button > div > div > div:hover {
    filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.1));
}

.sub-nav-button > div > div > div:active {
    transform: translateY(2px);
}

.sub-nav-button.active > div {
    background-color: #764ba2;
}

.sub-nav-button.active > div > div {
    background-color: #764ba2;
}

@keyframes star-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes dots {
    0% {
        background-position:
            0 0,
            4px 4px;
    }
    100% {
        background-position:
            8px 0,
            12px 4px;
    }
}

/* 主容器 */
.container {
    display: flex;
    max-width: 1800px;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
    position: relative;
    z-index: 1;
}

/* 左侧边栏 - 玻璃拟态 */
.sidebar {
    width: 240px;
    background: rgba(20, 20, 40, 0.92);
    backdrop-filter: blur(15px);
    padding: 20px 0;
    height: calc(100vh - 140px);
    overflow-y: auto;
    position: sticky;
    top: 140px;
    border-right: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Gooey按钮效果 - 侧边栏项 */
.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #06c8d9;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    border: 2px solid transparent;
    border-radius: 4px;
    margin: 4px 10px;
    overflow: hidden;
    z-index: 1;
    transition: all 700ms ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-item > span {
    position: relative;
    z-index: 2;
}

/* Gooey按钮的blobs容器 */
.sidebar-item .sidebar-blobs {
    height: 100%;
    filter: url(#goo);
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    bottom: -3px;
    right: -1px;
    z-index: -1;
}

/* Gooey按钮的blob元素 */
.sidebar-item .sidebar-blobs div {
    background-color: #06c8d9;
    width: 34%;
    height: 100%;
    border-radius: 100%;
    position: absolute;
    transform: scale(1.4) translateY(125%) translateZ(0);
    transition: all 700ms ease;
}

.sidebar-item .sidebar-blobs div:nth-child(1) {
    left: -5%;
}

.sidebar-item .sidebar-blobs div:nth-child(2) {
    left: 30%;
    transition-delay: 60ms;
}

.sidebar-item .sidebar-blobs div:nth-child(3) {
    left: 66%;
    transition-delay: 25ms;
}

.sidebar-item:hover {
    color: #fff;
    border-color: #06c8d9;
    transform: translateX(5px);
}

.sidebar-item:hover .sidebar-blobs div {
    transform: scale(1.4) translateY(0) translateZ(0);
}

.sidebar-item.active {
    color: #fff;
    border-color: #06c8d9;
    background: rgba(6, 200, 217, 0.2);
}

.sidebar-item.active .sidebar-blobs div {
    transform: scale(1.4) translateY(0) translateZ(0);
}

.sidebar-item-count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(6, 200, 217, 0.3);
    border-radius: 10px;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 30px;
    background: transparent;
}

/* 横幅 - 霓虹效果 */
.banner {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(102, 126, 234, 0.5);
    color: white;
    padding: 25px 35px;
    border-radius: 15px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(102, 126, 234, 0.4);
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: bannerShine 3s infinite;
}

@keyframes bannerShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.banner-icon {
    font-size: 48px;
    margin-right: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 237, 0, 0.8));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    z-index: 1;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 分类标题 */
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.category-flag {
    font-size: 28px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(102, 126, 234, 0.1);
}

.view-all:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #fff;
    transform: translateX(5px);
}

/* 主播网格 */
.models-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

/* 主播卡片 - 增强版 */
.model-card {
    background: rgba(30, 30, 50, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transform-style: preserve-3d;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.model-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 30px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.model-card:hover::before {
    opacity: 1;
}

.model-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.model-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.model-card:hover .model-thumbnail img {
    transform: scale(1.1);
}

/* 状态标识 - 霓虹效果 */
.model-status {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-badge.live {
    background: rgba(255, 23, 68, 0.9);
    border-color: #ff1744;
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.6);
    animation: neonPulse 2s infinite;
}

.status-badge.new {
    background: rgba(255, 165, 0, 0.9);
    border-color: #ffa500;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.6);
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 23, 68, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 23, 68, 0.9);
    }
}

/* 收藏按钮 */
.model-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.model-icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.model-icon:hover {
    background: rgba(255, 23, 68, 0.9);
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.6);
}

/* 主播信息 - 玻璃效果 */
.model-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.model-name {
    font-weight: 700;
    font-size: 14px;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

/* 占位图片 */
.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 64px;
}

/* 响应式设计 */
@media (max-width: 1600px) {
    .models-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1400px) {
    .models-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .models-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .model-thumbnail {
        height: 180px;
    }

    .top-header {
        flex-wrap: wrap;
        padding: 15px;
    }

    .search-box {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin: 15px 0 0 0;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2, #667eea);
}

/* 页面加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.models-grid {
    animation: fadeIn 0.6s ease-out;
}
