/* reset & 深色魅蓝基调 - 8列版本 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 20% 30%, #071a2b, #030e17);
    font-family: 'Segoe UI', 'Roboto', 'Poppins', system-ui, sans-serif;
    color: #ecf5ff;
    line-height: 1.4;
    padding: 20px;
}

/* 赛博横幅 */
.cyber-banner {
    text-align: center;
    margin-bottom: 40px;
}
.neon-btn {
    display: inline-block;
    background: linear-gradient(120deg, #0f4c71, #052e46);
    border: 1px solid #2bc0fc;
    border-radius: 56px;
    padding: 12px 36px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    box-shadow: 0 0 8px #2bc0fc;
    transition: 0.2s;
}
.neon-btn:hover {
    background: #1b6d9e;
    box-shadow: 0 0 18px #4cc9ff;
    transform: translateY(-2px);
}

/* 容器 */
.container {
    max-width: 1600px;
    margin: 0 auto;
}

/* 每组样式 */
.video-group {
    margin-bottom: 48px;
}
.group-title {
    font-size: 1.4rem;
    font-weight: 600;
    background: rgba(5, 35, 55, 0.8);
    backdrop-filter: blur(4px);
    display: inline-block;
    padding: 5px 24px;
    border-radius: 32px;
    margin-bottom: 22px;
    color: #b3e4ff;
    border-left: 5px solid #3bc0fc;
    font-family: monospace;
}

/* 8列网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 18px;
}

/* 卡片 - 紧凑但精致 */
.video-card {
    background: rgba(10, 35, 50, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.2s;
    border: 0.5px solid #2879a3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.video-card:hover {
    transform: translateY(-4px);
    border-color: #61dafb;
    background: rgba(20, 55, 80, 0.85);
    box-shadow: 0 10px 20px rgba(0,160,255,0.2);
}

/* 9:16 图片 */
.image-link {
    display: block;
    text-decoration: none;
}
.img-wrapper {
    position: relative;
    aspect-ratio: 9 / 16;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s;
}
.video-card:hover .img-wrapper {
    transform: scale(1.01);
}

/* 播放图标 - 小尺寸适配8列 */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    border-radius: 50%;
    transition: 0.2s;
    border: 1px solid #3bc0fc;
}
.play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 56%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 16px;
    border-color: transparent transparent transparent white;
}
.image-link:hover .play-icon {
    background: #ff8c42;
    transform: translate(-50%, -50%) scale(1.1);
    border-color: #fff2b5;
}
.image-link:hover .play-icon::after {
    border-left-color: #000;
}

/* 卡片信息区 */
.card-info {
    padding: 10px 8px 12px;
    text-align: center;
}
.keyword-link {
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    color: #f7ffb0;
    background: #0a3147;
    padding: 4px 10px;
    border-radius: 28px;
    display: inline-block;
    transition: 0.2s;
}
.keyword-link:hover {
    background: #f0a500;
    color: #021c2c;
}
.keyword-desc {
    font-size: 0.6rem;
    color: #c2e2ff;
    margin-top: 8px;
    line-height: 1.2;
    background: rgba(0,0,0,0.4);
    border-radius: 14px;
    padding: 4px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 高密度关键词区域 - 滚动风格 */
.keyword-grid-block {
    background: rgba(2, 25, 40, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 48px;
    padding: 18px 24px;
    margin: 50px 0 30px;
    text-align: center;
    font-size: 0.8rem;
    border: 1px solid #2b9bcb;
}
.keyword-grid-block span {
    font-size: 0.95rem;
    font-weight: bold;
    background: #115a7a;
    padding: 4px 12px;
    border-radius: 32px;
    margin-right: 10px;
    color: #ffe3a3;
}
.keyword-grid-block a {
    text-decoration: none;
    color: #bbe6ff;
    margin: 0 4px;
    line-height: 1.9;
    display: inline-block;
}
.keyword-grid-block a:hover {
    color: #ffad5c;
    text-shadow: 0 0 3px #ffad5c;
}

/* 页脚 */
.footer-8x8 {
    text-align: center;
    margin-top: 50px;
    padding: 18px;
    font-size: 0.75rem;
    background: rgba(1, 20, 30, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    color: #86bedb;
}
.footer-8x8 a {
    color: #f9b84a;
    text-decoration: none;
}

/* 手机端：一排2个 */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    .group-title {
        font-size: 1.2rem;
    }
}
@media (max-width: 640px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .keyword-link {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    .keyword-desc {
        font-size: 0.5rem;
        white-space: normal;
    }
    .play-icon {
        width: 36px;
        height: 36px;
    }
    .play-icon::after {
        border-width: 7px 0 7px 13px;
    }
    .neon-btn {
        font-size: 0.9rem;
        padding: 8px 20px;
    }
}