/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    color: #333;
    background-color: #f8f8f8;
    line-height: 1.6;
}

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

ul, ol {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo a {
    display: block;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 10px;
}

.main-nav a {
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
}

.main-nav a:hover {
    color: #ff7eb3;
    background-color: rgba(255, 126, 179, 0.1);
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 200px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 18px 0 0 18px;
    padding: 0 15px;
    outline: none;
}

.search-box button {
    height: 36px;
    padding: 0 15px;
    background-color: #ff7eb3;
    color: #fff;
    border: none;
    border-radius: 0 18px 18px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* 轮播图样式 */
.banner {
    padding: 20px 0;
    background-color: #fff;
}

.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.slider-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slider-item.active {
    opacity: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: #fff;
}

.slider-caption h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
}

.slider-dots span {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dots span.active {
    background-color: #fff;
}

/* 主要内容区域样式 */
main {
    padding: 20px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff7eb3;
    padding-bottom: 10px;
}

.section-header h1, .section-header h2 {
    font-size: 24px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.section-header h1:before, .section-header h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: #ff7eb3;
    border-radius: 2px;
}

.more-link {
    color: #ff7eb3;
    font-size: 14px;
}

.more-link:hover {
    text-decoration: underline;
}

/* 视频卡片样式 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.video-card {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.video-thumb {
    position: relative;
    height: 0;
    padding-bottom: 133%;
    overflow: hidden;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    background-color: rgba(255, 126, 179, 0.8);
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
}

.video-info {
    padding: 10px;
}

.video-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-info p {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 分类样式 */
.hot-section, .new-section, .classic-section, .review-section, .category-section {
    margin-bottom: 30px;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.category-item {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 5px;
}

.category-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-item:hover img {
    transform: scale(1.05);
}

.category-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: #fff;
    text-align: center;
}

/* APP下载模块样式 */
.app-download {
    background-color: #fff;
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.app-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-info {
    flex: 1;
    padding-right: 30px;
}

.app-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #ff7eb3;
}

.app-info p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.app-features {
    margin-bottom: 20px;
}

.app-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.feature-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-color: #ff7eb3;
    border-radius: 50%;
}

.app-buttons {
    display: flex;
}

.app-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    margin-right: 15px;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
}

.app-btn:hover {
    background-color: #555;
    color: #fff;
}

.btn-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-color: #fff;
    border-radius: 50%;
}

.app-qrcode {
    width: 200px;
    text-align: center;
}

.app-qrcode img {
    width: 150px;
    height: 150px;
    border: 1px solid #eee;
    padding: 5px;
    margin-bottom: 10px;
}

.app-qrcode p {
    font-size: 14px;
    color: #666;
}

/* 影评模块样式 */
.review-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.review-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.reviewer-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.reviewer-meta {
    display: flex;
    font-size: 12px;
    color: #999;
}

.reviewer-name {
    margin-right: 10px;
}

.review-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    max-height: 4.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-top {
    display: flex;
    margin-bottom: 30px;
}

.footer-logo {
    margin-right: 50px;
}

.footer-nav {
    display: flex;
    flex: 1;
    justify-content: space-between;
}

.footer-nav-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ff7eb3;
}

.footer-nav-column ul li {
    margin-bottom: 10px;
}

.footer-nav-column ul li a {
    color: #ccc;
    font-size: 14px;
}

.footer-nav-column ul li a:hover {
    color: #ff7eb3;
}

.social-links {
    display: flex;
}

.social-links li {
    margin-right: 15px;
}

.footer-middle {
    margin-bottom: 30px;
}

.footer-middle h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ff7eb3;
}

.friend-links ul {
    display: flex;
    flex-wrap: wrap;
}

.friend-links ul li {
    margin-right: 15px;
    margin-bottom: 10px;
}

.friend-links ul li a {
    color: #ccc;
    font-size: 14px;
}

.friend-links ul li a:hover {
    color: #ff7eb3;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.footer-bottom a {
    color: #999;
}

.footer-bottom a:hover {
    color: #ff7eb3;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .review-list {
        grid-template-columns: 1fr;
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        margin-bottom: 15px;
        width: 100%;
        overflow-x: auto;
    }
    
    .main-nav ul {
        width: max-content;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        flex: 1;
    }
    
    .slider {
        height: 250px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
    }
    
    .footer-nav-column {
        width: 50%;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-nav-column {
        width: 100%;
    }
}
