﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}
/* 顶部导航 */
.navbar {
    background-color: black;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .navbar input {
        padding: 5px;
        width: 180px;
        border-radius: 5px;
        border: none;
    }

    .navbar button {
        background: #ffcc00;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        border-radius: 5px;
    }
/* 轮播广告 */
.swiper {
    width: 100%;
    height: 180px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 菜单导航 */
.menu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto; /* 启用水平滚动 */
    white-space: nowrap; /* 防止a标签换行 */
    background: #000;
    padding: 10px;
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
}

    /* 隐藏滚动条（适用于Chrome、Safari、Edge） */
    .menu::-webkit-scrollbar {
        display: none;
    }

    .menu a {
        padding: 5px 15px;
        font-size: 16px;
        color: hsla(0, 0%, 100%, .7);
        text-decoration: none;
        font-weight: bold;
        display: inline-block;
    }

    .menu .fldh_div {
        font-weight: 900 !important;
        background: -webkit-linear-gradient(left, #147b96, #e6d205 25%, #147b96 50%, #e6d205 75%, #147b96);
        color: transparent;
        -webkit-background-clip: text;
        background-clip: text;
        background-size: 200% 100%;
        animation: masked-animation-76952326 1slinear infinite;
    }

        .menu .fldh_div .fldh {
            font-weight: 900 !important;
            background: -webkit-linear-gradient(left, #147b96, #e6d205 25%, #147b96 50%, #e6d205 75%, #147b96);
            color: transparent;
            -webkit-background-clip: text;
            background-clip: text;
            background-size: 200% 100%;
            animation: masked-animation-76952326 1slinear infinite;
        }

/* 分类图标 */
.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    background: white;
    padding: 10px;
}

.category-item {
    width: 16%;
    text-align: center;
    font-size: 12px;
}

    .category-item a {
        color: inherit;
        text-decoration: none;
    }

        .category-item a:hover {
            text-decoration: none; /* 鼠标悬停时仍然没有下划线 */
        }

        .category-item a:visited {
            color: inherit;
            text-decoration: none; /* 鼠标悬停时仍然没有下划线 */
        }

    .category-item img {
        width: 50px;
        height: 50px;
        border-radius: 6px;
    }
/* 文字导航 */
.text-nav {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    background: #f0f2f4;
}

    .text-nav table {
        width: 100%
    }

    .text-nav a {
        margin: 2px;
        color: rgb(0, 64, 133);
        background: rgb(204, 229, 255);
        width: 96%;
        display: block;
        text-align: center;
        text-decoration: none;
        font-size: 14px;
        color: black;
        padding: 5px 0;
    }

/* 广告条容器 */
.marquee-container {
    height: 30px;
    background: rgb(204, 229, 255);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* 小喇叭图标 */
.marquee-icon {
    width: 60px;
    height: 30px;
    margin-top: 10px;
    flex-shrink: 0;
}

/* 文字滚动区域 */
.marquee-wrapper {
    position: relative;
    width: 100%; /* 计算排除喇叭的宽度 */
    overflow: hidden;
    white-space: nowrap;
}

/* 滚动文本 */
.marquee-text {
    white-space: nowrap;
    display: inline-block;
    font-size: 16px;
    color: rgb(0, 64, 133);
    animation: marquee 20s linear infinite;
}

/* 文字滚动动画 */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    /* 从右侧进入 */
    10% {
        transform: translateX(49%);
    }
    /* 文字滚动到左侧消失 */
    100% {
        transform: translateX(-100%);
    }
    /* 文字完全离开，等待下一轮 */
}

/* 热门推荐 */
.recommendations {
    padding: 10px;
    background-color: white;
    margin-bottom: 20px;
}

.recommend-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    padding-left: 5px;
}

    .recommend-title .more {
        margin-top: 5px;
        color: #999;
        cursor: pointer;
        text-decoration: none;
        font-size: 16px;
    }

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.video-card {
    height: 193px;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    border-radius: 1.6vw;
}

    .video-card img {
        width: 100%;
        border-radius: 5px;
        height: 126px;
        display: block;
        object-fit: cover;
    }

    .video-card .views {
        position: absolute;
        bottom: 55px;
        left: 10px;
        font-size: 12px;
        color: white;
        background: rgba(0, 0, 0, 0.5);
        padding: 2px 6px;
        border-radius: 5px;
    }

/* 文字标题样式 */
.video-title {
    font-size: 14px;
    color: #333;
    margin-top: 5px;
    line-height: 1.4;
    max-height: 2.8em; /* 控制最多两行 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制最多2行 */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    float: left;
}



.container {
    padding: 20px;
    margin: 20px;
    text-align: center;
}

.title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.emoji {
    font-size: 28px;
    margin: 5px 0;
}

.email-link, .domain-link {
    color: #1e90ff;
    text-decoration: none;
    font-weight: bold;
}

    .email-link:hover, .domain-link:hover {
        text-decoration: underline;
    }

.footer {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}



/*分页列表*/
/* 分页按钮容器 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    margin-top: 10px;
}

    /* 分页按钮 */
    .pagination a {
        display: inline-block;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        text-decoration: none;
        color: #333;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .pagination .active {
        background-color: #007bff;
        color: white;
        border-color: #007bff;
    }

    .pagination a:hover {
        background-color: #007bff;
        color: white;
    }

/* 跳转框 */
.jump-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.jump-input {
    width: 60px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.jump-button {
    padding: 6px 12px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

    .jump-button:hover {
        background-color: #0056b3;
    }

/* 视频推荐样式 */
.recommendations {
    margin-top: 20px;
}

.recommend-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.video-card {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

    .video-card img {
        width: 100%;
        border-radius: 4px;
    }

.views {
    font-size: 12px;
    color: gray;
    margin-top: 5px;
}

.video-title {
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
}
