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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 6px;
}

a {
    text-decoration: none;
    color: #ff4757;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff6b81;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}


.site-header {
    background-color: #2f3542;
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: auto;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.main-nav {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 5px 0;
}

.main-nav::-webkit-scrollbar {
    height: 4px;
}

.main-nav::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.main-nav::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
}

.main-nav ul {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 5px;
}

.main-nav li {
    margin-left: 15px;
    white-space: nowrap;
}

.main-nav a {
    color: #dfe4ea;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 3px;
}

.main-nav a:hover {
    background-color: #ff4757;
    color: #fff;
}

.search-box {
    margin-left: 20px;
}

.search-box form {
    display: flex;
}

.search-box input {
    padding: 8px 15px;
    border: none;
    border-radius: 3px 0 0 3px;
    width: 200px;
}

.search-box button {
    background-color: #ff4757;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
}

.search-box button:hover {
    background-color: #ff6b81;
}


.random-keywords {
    background-color: #f1f2f6;
    padding: 10px 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 14px;
}


.main-content {
    padding: 8px 2px;
    margin-top: 70px;
}

.page-title {
    font-size: 20px;
    margin: 2px 0;
    color: #2f3542;
    border-bottom: 1px solid #dfe4ea;
    padding-bottom: 6px;
}


.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
    padding: 0 3px;
}

.video-item {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    margin-bottom: 0;
    height: auto;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    padding-bottom: 60%;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 71, 87, 0.8);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover .play-icon {
    opacity: 1;
}

.video-info {
    padding: 5px 8px;
    height: auto;
    min-height: 65px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.3;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    word-break: break-all;
    max-height: 40px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #747d8c;
    margin-bottom: 0;
    line-height: 1.2;
    position: relative;
    top: -1px;
}

/* 分页 */
.pagination-container {
    margin: 30px 0;
    text-align: center;
}

.pagination {
    display: inline-flex;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-link {
    padding: 10px 15px;
    color: #2f3542;
    border-right: 1px solid #dfe4ea;
    min-width: 40px;
    text-align: center;
}

.page-link:last-child {
    border-right: none;
}

.page-link.current {
    background-color: #ff4757;
    color: #fff;
}

.page-link:hover:not(.current) {
    background-color: #f1f2f6;
}

.page-ellipsis {
    padding: 10px 15px;
    color: #747d8c;
}


.keyword-cloud {
    margin: 30px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.keyword-cloud h3 {
    margin-bottom: 15px;
    color: #2f3542;
    font-size: 18px;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f1f2f6;
    border-radius: 20px;
    font-size: 14px;
    color: #2f3542;
}

.keyword-tag:hover {
    background-color: #ff4757;
    color: #fff;
}


.related-videos h2,
.recommended-videos h2 {
    font-size: 20px;
    margin: 10px 0;
    color: #2f3542;
    border-bottom: 1px solid #dfe4ea;
    padding-bottom: 8px;
}


.video-player-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 0;
    box-shadow: none;
    margin: 70px 0 20px 0;
    overflow: visible;
}

.video-player-container .video-title {
    font-size: 20px;
    margin: 0 0 10px 0;
    padding: 0;
    height: auto;
    line-height: 1.4;
    color: #333;
    overflow: visible;
    font-weight: bold;
    padding-top: 5px;
}

.video-player-container .video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
    color: #666;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.5;
    padding: 5px 0;
}

.video-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 15px 0;
    background-color: #000;
    border-radius: 2px;
}

.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.video-tags {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.video-tags h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.video-tag {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 5px 12px;
    background-color: #f1f2f6;
    border-radius: 20px;
    font-size: 14px;
    color: #2f3542;
}

.video-tag:hover {
    background-color: #ff4757;
    color: #fff;
}

.hot-searches {
    margin: 15px 0;
    padding: 10px;
    background-color: #f1f2f6;
    border-radius: 5px;
}

.hot-searches h3 {
    font-size: 16px;
    color: #2f3542;
}


.random-content {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
}

.random-content h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2f3542;
}

.random-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.category-recommendations {
    margin: 15px 0;
}

.category-section {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.category-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2f3542;
}

.video-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.random-keywords-cloud {
    margin: 15px 0;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.random-keywords-cloud h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2f3542;
}

.random-keywords-cloud p {
    line-height: 1.8;
}


.no-results {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    text-align: center;
}

.no-results p {
    margin-bottom: 10px;
}

.related-keywords {
    margin: 30px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.related-keywords h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2f3542;
}

.tag-cloud {
    margin: 20px 0;
    padding: 15px;
    background-color: #f1f2f6;
    border-radius: 5px;
}

.tag-cloud h3 {
    font-size: 16px;
    color: #2f3542;
}


.site-footer {
    background-color: #2f3542;
    padding: 30px 0;
    color: #dfe4ea;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.random-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.random-links a {
    color: #dfe4ea;
    font-size: 14px;
}

.random-links a:hover {
    color: #ff4757;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-nav a {
    color: #dfe4ea;
    font-size: 14px;
}

.footer-nav a:hover {
    color: #ff4757;
}

.copyright {
    border-top: 1px solid #404656;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}


@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .main-nav {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .main-nav ul {
        margin-bottom: 0;
    }
    
    .main-nav li {
        margin-left: 0;
        margin-right: 15px;
    }
    
    .search-box {
        margin-left: 0;
        width: 100%;
    }
    
    .search-box form {
        width: 100%;
    }
    
    .search-box input {
        flex: 1;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 6px;
        padding: 0 2px;
    }
    
    .video-title {
        font-size: 14px;
        height: 36px;
        max-height: 36px;
    }
    
    .main-content {
        margin-top: 90px;
        overflow: visible;
    }
    
    .video-player-container .video-title {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .video-player-container .video-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .video-player-container {
        padding: 15px;
        margin-top: 90px;
    }
    
    .video-info {
        padding: 5px;
        height: auto;
        min-height: 58px;
    }
    
    .video-thumbnail {
        padding-bottom: 58%;
    }
}


.icon-play:before {
    content: "▶";
    font-size: 20px;
}


.menu-toggle {
    display: none;
    cursor: pointer;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
    }
    
    .menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* 添加回video-top-info样式，但更符合截图效果 */
.video-top-info {
    border-left: 2px solid #ff4757;
    padding: 0 0 0 10px;
    margin: 15px 0;
    background-color: transparent;
    border-radius: 0;
}

/* 相关标签区域样式 */
.related-tags {
    margin: 15px 0;
}

.related-tags h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: #333;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
}

.tag-item {
    background-color: #f5f5f5;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #555;
    line-height: 1.3;
}

.tag-item:hover {
    background-color: #eee;
    color: #ff4757;
}

/* 减少视频项目底部的分类和日期空间 */
.video-item .video-meta {
    margin-top: 0;
    padding-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 视频分类标签 */
.video-item .video-category {
    color: #666;
    font-size: 11px;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

/* 视频日期 */
.video-item .video-date {
    color: #999;
    font-size: 11px;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

/* 跑马灯样式 */
.marquee-container {
    display: inline-block;
    margin-left: 10px;
    overflow: hidden;
    vertical-align: middle;
    width: 70%;
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
    padding-left: 100%;
    color: #ff4757;
    font-weight: bold;
}

.page-title-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 8px 0;
    border-bottom: 1px solid #dfe4ea;
    padding-bottom: 6px;
}

.page-title-container .page-title {
    margin: 0;
    padding: 0;
    border: none;
    white-space: nowrap;
    font-size: 20px;
    color: #2f3542;
}

/* 跑马灯动画 */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* 播放页特殊样式 */
.play-page .main-content {
    padding-top: 0;
    margin-top: 0;
}

/* 播放页标题样式调整 */
.video-player-container .video-title {
    font-size: 20px;
    margin: 0 0 10px 0;
    padding: 0;
    height: auto;
    line-height: 1.4;
    color: #333;
    overflow: visible;
    font-weight: bold;
    padding-top: 5px;
}

.video-info-text {
    display: inline-block;
    padding: 2px 0;
    background-color: transparent;
    position: relative;
    z-index: 5;
} 