/* 小米风格 - 纯白简洁，4:3图片适配 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f8fafc;
    font-family: 'Segoe UI', 'Roboto', 'MiSans', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    color: #1e2a3a;
    line-height: 1.4;
    padding: 20px;
}

/* 小米橙色渐变按钮 */
.mi-banner {
    text-align: center;
    margin-bottom: 40px;
}
.mi-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6900, #ff9a3c);
    border: none;
    border-radius: 48px;
    padding: 12px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255,105,0,0.25);
    transition: 0.2s;
}
.mi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,105,0,0.35);
    background: linear-gradient(135deg, #ff5500, #ff8a2a);
}

/* 容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 每组样式 */
.video-group {
    margin-bottom: 48px;
}
.group-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #1f3b4c;
    padding-left: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #ff6900;
}

/* 6列网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

/* 卡片 - 小米圆润白卡片 */
.video-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #ffe0c0;
}

/* 4:3 图片容器 */
.image-link {
    display: block;
    text-decoration: none;
}
.img-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;   /* 宽高比 4:3 */
    background-size: cover;
    background-position: center;
    transition: transform 0.2s;
}
.video-card:hover .img-wrapper {
    transform: scale(1.01);
}

/* 播放图标 - 橙色风格，适配4:3图片大小 */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    border-radius: 50%;
    transition: 0.2s;
    border: 1px solid #ffb347;
}
.play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 56%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent white;
}
.image-link:hover .play-icon {
    background: #ff6900;
    transform: translate(-50%, -50%) scale(1.1);
    border-color: white;
}
.image-link:hover .play-icon::after {
    border-left-color: #fff;
}

/* 卡片信息区 */
.card-info {
    padding: 12px 10px 16px;
    text-align: center;
}
.keyword-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #ff6900;
    background: #fff4e8;
    padding: 5px 14px;
    border-radius: 28px;
    display: inline-block;
    transition: 0.2s;
}
.keyword-link:hover {
    background: #ff6900;
    color: white;
}
.keyword-desc {
    font-size: 0.65rem;
    color: #6c7a8a;
    margin-top: 8px;
    line-height: 1.3;
    background: #fafcff;
    border-radius: 16px;
    padding: 5px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 高密度关键词区域 - 小米轻量风格 */
.keyword-mi {
    background: #ffffff;
    border-radius: 32px;
    padding: 18px 24px;
    margin: 50px 0 30px;
    text-align: center;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.keyword-mi span {
    font-size: 0.9rem;
    font-weight: 600;
    background: #f0f2f5;
    padding: 4px 14px;
    border-radius: 28px;
    margin-right: 10px;
    color: #ff6900;
}
.keyword-mi a {
    text-decoration: none;
    color: #4a627a;
    margin: 0 4px;
    line-height: 1.9;
    display: inline-block;
}
.keyword-mi a:hover {
    color: #ff6900;
    text-decoration: underline;
}

/* 页脚 */
.footer-mi {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    font-size: 0.75rem;
    color: #8a9bb0;
    border-top: 1px solid #eef2f6;
}
.footer-mi a {
    color: #ff6900;
    text-decoration: none;
}

/* 响应式：大屏保持6列，平板4列，手机2列 */
@media (max-width: 1100px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}
@media (max-width: 700px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .group-title {
        font-size: 1.1rem;
    }
    .keyword-link {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    .keyword-desc {
        font-size: 0.6rem;
        white-space: normal;
    }
    .play-icon {
        width: 40px;
        height: 40px;
    }
    .play-icon::after {
        border-width: 8px 0 8px 15px;
    }
    .mi-btn {
        font-size: 0.9rem;
        padding: 8px 20px;
    }
}