/* {模板路径}/static/css/style.css */

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

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

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

a:hover {
    color: #ff4757;
}

ul, ol {
    list-style: none;
}

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

/* 图标样式 */
.icon-logo {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b81, #ff4757);
    border-radius: 8px;
    margin-right: 10px;
    vertical-align: middle;
}

.icon-check {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #ff6b81;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}

.icon-check:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -70%) rotate(-45deg);
}

.icon-android, .icon-apple {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
    background-color: #fff;
    border-radius: 50%;
}

/* 容器样式 */
.header-container,
.section-header,
.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
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;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6b81;
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

.user-actions {
    display: flex;
}

.login-btn, .register-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    margin-left: 10px;
}

.login-btn {
    color: #ff6b81;
    border: 1px solid #ff6b81;
}

.register-btn {
    background-color: #ff6b81;
    color: #fff;
}

/* 主横幅样式 */
.hero-banner {
    background: linear-gradient(135deg, #ff6b81, #ff4757);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,229.3C672,224,768,192,864,181.3C960,171,1056,181,1152,181.3C1248,181,1344,171,1392,165.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-banner h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-banner p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    outline: none;
}

.search-box button {
    padding: 15px 30px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

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

/* 通用模块样式 */
section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff6b81;
}

.section-header p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 渐变背景样式 */
.gradient-bg-1 { background: linear-gradient(135deg, #ff9a9e, #fad0c4); }
.gradient-bg-2 { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); }
.gradient-bg-3 { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.gradient-bg-4 { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.gradient-bg-5 { background: linear-gradient(135deg, #ff6b81, #ff4757); }
.gradient-bg-6 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.gradient-bg-7 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.gradient-bg-8 { background: linear-gradient(135deg, #fa709a, #fee140); }
.gradient-bg-9 { background: linear-gradient(135deg, #6a11cb, #2575fc); }
.gradient-bg-10 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.gradient-bg-11 { background: linear-gradient(135deg, #30cfd0, #330867); }
.gradient-bg-12 { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.gradient-bg-13 { background: linear-gradient(135deg, #5ee7df, #b490ca); }
.gradient-bg-14 { background: linear-gradient(135deg, #d299c2, #fef9d7); }
.gradient-bg-15 { background: linear-gradient(135deg, #f6d365, #fda085); }
.gradient-bg-16 { background: linear-gradient(135deg, #cd9cf2, #f6f3ff); }
.gradient-bg-17 { background: linear-gradient(135deg, #ebc0fd, #d9ded8); }
.gradient-bg-18 { background: linear-gradient(135deg, #96e6a1, #d4fc79); }
.gradient-bg-19 { background: linear-gradient(135deg, #fff1eb, #ace0f9); }
.gradient-bg-20 { background: linear-gradient(135deg, #c1dfc4, #deecdd); }
.gradient-bg-21 { background: linear-gradient(135deg, #e0c3fc, #8ec5fc); }
.gradient-bg-22 { background: linear-gradient(135deg, #f83600, #f9d423); }
.gradient-bg-23 { background: linear-gradient(135deg, #6e45e2, #88d3ce); }
.gradient-bg-24 { background: linear-gradient(135deg, #ff6b81, #ff4757); }

/* 精选推荐模块样式 */
.featured-section {
    background-color: #fff;
}

.video-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.video-thumbnail {
    height: 180px;
    position: relative;
}

.video-info {
    padding: 20px;
}

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

.video-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 视频分类模块样式 */
.categories-section {
    background-color: #f8f9fa;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.category-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.category-item p {
    font-size: 14px;
    color: #666;
}

/* 热门榜单模块样式 */
.popular-section {
    background-color: #fff;
}

.ranking-list {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.ranking-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.ranking-item:hover {
    transform: translateX(5px);
}

.ranking-number {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b81;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.ranking-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    margin-right: 20px;
}

.ranking-info {
    flex: 1;
}

.ranking-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.ranking-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

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

/* 最新上线模块样式 */
.newest-section {
    background-color: #f8f9fa;
}

.newest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.newest-item {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.newest-thumbnail {
    width: 120px;
    min-height: 100%;
}

.newest-info {
    padding: 15px;
    flex: 1;
}

.newest-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.newest-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.newest-meta {
    font-size: 12px;
    color: #999;
}

/* APP下载模块样式 */
.app-section {
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.app-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,107,129,0.05)" fill-opacity="1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,202.7C672,203,768,181,864,170.7C960,160,1056,160,1152,176C1248,192,1344,224,1392,240L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.app-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

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

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

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

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

.app-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.app-buttons {
    display: flex;
    gap: 20px;
}

.app-btn {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.app-btn:hover {
    transform: translateY(-3px);
}

.app-btn.android {
    background-color: #333;
    color: #fff;
}

.app-btn.ios {
    background-color: #ff6b81;
    color: #fff;
}

.app-image {
    flex: 1;
    height: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 关于我们模块样式 */
.about-section {
    background-color: #f8f9fa;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-text {
    margin-bottom: 40px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #ff6b81;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #666;
}

/* 文章内容模块样式 */
.articles-section {
    background-color: #fff;
}

.articles-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.article-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

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

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}

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

.footer-nav-column h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
}

.footer-nav-column h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ff6b81;
}

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

.footer-nav-column ul li a {
    color: #bbb;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

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

.friend-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
}

.friend-links h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ff6b81;
}

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

.friend-links ul li a,
.friend-links ul a {
    color: #bbb;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #bbb;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
    }
    
    nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .app-container {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .app-features li {
        justify-content: center;
    }
    
    .app-buttons {
        justify-content: center;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 30px;
    }
    
    .footer-nav {
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 60px 0;
    }
    
    .hero-banner h1 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .video-cards, .newest-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .ranking-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ranking-number {
        margin-bottom: 10px;
    }
    
    .ranking-thumbnail {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .newest-item {
        flex-direction: column;
    }
    
    .newest-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .footer-nav {
        flex-direction: column;
    }
}
/* {模板路径}/static/css/style.css (续) */

@media (max-width: 576px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 30px;
        margin-bottom: 10px;
    }
    
    .search-box button {
        border-radius: 30px;
        width: 100%;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .app-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-item h3 {
        font-size: 20px;
    }
}

/* 优化图片SEO */
.video-thumbnail, 
.category-icon, 
.ranking-thumbnail, 
.newest-thumbnail, 
.app-image {
    position: relative;
    overflow: hidden;
}

.video-thumbnail::after, 
.category-icon::after, 
.ranking-thumbnail::after, 
.newest-thumbnail::after, 
.app-image::after {
    content: attr(alt);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover::after, 
.category-icon:hover::after, 
.ranking-thumbnail:hover::after, 
.newest-thumbnail:hover::after, 
.app-image:hover::after {
    opacity: 1;
}

/* 透明轮播背景 */
.hero-banner {
    position: relative;
    animation: gradientBG 15s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 滚动动画 */
.video-card, 
.category-item, 
.ranking-item, 
.newest-item, 
.stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.video-card.show, 
.category-item.show, 
.ranking-item.show, 
.newest-item.show, 
.stat-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* 锚点平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ff6b81;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #ff4757;
}

.back-to-top:before {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: 4px;
}
