/* 绿帽社 - 全新原创设计 - 深色霓虹风格 */
/* 域名: yjlo6a.com */

:root {
    --neon-pink: #ff2d95;
    --neon-blue: #00d4ff;
    --neon-purple: #a855f7;
    --dark-bg: #0a0a0f;
    --dark-card: #12121a;
    --dark-border: #1e1e2e;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --gradient-neon: linear-gradient(90deg, #ff2d95, #00d4ff);
    --glow-pink: 0 0 20px rgba(255,45,149,0.5);
    --glow-blue: 0 0 20px rgba(0,212,255,0.5);
}

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.wrapper { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 - 全新设计 */
.top-bar {
    background: linear-gradient(180deg, rgba(10,10,15,0.98) 0%, rgba(10,10,15,0.9) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: 1px solid var(--dark-border);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand img { height: 36px; }

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    gap: 8px;
    flex: 1;
}

.main-nav a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.on {
    background: var(--dark-card);
    color: var(--neon-pink);
}

.search-box {
    display: flex;
    background: var(--dark-card);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
}

.search-box input {
    background: transparent;
    border: none;
    padding: 10px 16px;
    color: var(--text-white);
    width: 200px;
    outline: none;
}

.search-box input::placeholder { color: var(--text-gray); }

.search-box button {
    background: var(--gradient-neon);
    border: none;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    font-weight: 500;
}

/* 主内容区 - 左右分栏布局 */
.main-content {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    padding: 20px 0;
}

/* 左侧内容 */
.left-content { display: flex; flex-direction: column; gap: 24px; }

/* 大Banner - 全新设计 */
.hero-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 21/9;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, transparent 60%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tag {
    display: inline-block;
    background: var(--neon-pink);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 12px;
    width: fit-content;
}

.hero-overlay h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    text-shadow: var(--glow-pink);
}

.hero-overlay p {
    color: var(--text-gray);
    max-width: 400px;
}

/* 分类标签栏 */
.category-tabs {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--dark-border);
    overflow-x: auto;
}

.category-tabs a {
    padding: 8px 20px;
    background: var(--dark-card);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-gray);
    white-space: nowrap;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.category-tabs a:hover,
.category-tabs a.on {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: var(--glow-blue);
}

/* 视频列表 - 瀑布流风格 */
.video-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.video-item {
    background: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--dark-border);
}

.video-item:hover {
    transform: translateY(-4px);
    border-color: var(--neon-purple);
    box-shadow: 0 8px 30px rgba(168,85,247,0.2);
}

.video-cover {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-item:hover .video-cover img { transform: scale(1.08); }

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.play-icon::after {
    content: '';
    border-left: 16px solid var(--neon-pink);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 4px;
}

.video-item:hover .play-icon { transform: translate(-50%, -50%) scale(1); }

.video-time {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.video-info { padding: 12px; }

.video-info h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.video-meta .tag {
    color: var(--neon-blue);
}

/* 右侧边栏 */
.right-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-block {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--dark-border);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--gradient-neon);
    border-radius: 2px;
}

/* 热门排行 */
.rank-list { display: flex; flex-direction: column; gap: 12px; }

.rank-item {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.rank-item:hover { background: rgba(255,255,255,0.05); }

.rank-num {
    width: 24px;
    height: 24px;
    background: var(--dark-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-num { background: var(--neon-pink); }
.rank-item:nth-child(2) .rank-num { background: var(--neon-blue); }
.rank-item:nth-child(3) .rank-num { background: var(--neon-purple); }

.rank-info h4 {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.rank-info span {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* 直播推荐 */
.live-list { display: flex; flex-direction: column; gap: 12px; }

.live-item {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.live-item:hover { background: rgba(255,255,255,0.05); }

.live-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-pink);
}

.live-info { flex: 1; }

.live-info h4 {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.live-info span {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.live-badge {
    background: #ff4444;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 页脚 */
.site-footer {
    background: var(--dark-card);
    border-top: 1px solid var(--dark-border);
    padding: 40px 0 20px;
    margin-top: 40px;
}

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

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--text-gray);
    font-size: 0.85rem;
    padding: 6px 0;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--neon-blue); }

.footer-bottom {
    border-top: 1px solid var(--dark-border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* 内页样式 */
.page-hero {
    background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-bg) 100%);
    padding: 100px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--dark-border);
}

.page-hero h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero p { color: var(--text-gray); }

.breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.breadcrumb a { color: var(--neon-blue); }

/* 响应式 */
@media (max-width: 1200px) {
    .main-content { grid-template-columns: 1fr; }
    .right-sidebar { display: none; }
}

@media (max-width: 768px) {
    .video-list { grid-template-columns: repeat(2, 1fr); }
    .main-nav { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .video-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
