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

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

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

ul, ol {
    list-style: none;
}

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

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login {
    background-color: transparent;
    border: 1px solid #ff9500;
    color: #ff9500;
}

.btn-login:hover {
    background-color: #ff9500;
    color: white;
}

.btn-register {
    background-color: #ff9500;
    border: 1px solid #ff9500;
    color: white;
    margin-left: 10px;
}

.btn-register:hover {
    background-color: #ff7300;
    border-color: #ff7300;
}

.btn-android, .btn-ios {
    background-color: #ff9500;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 18px;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
}

.btn-android:hover, .btn-ios:hover {
    background-color: #ff7300;
}

.btn-android i, .btn-ios i {
    margin-right: 8px;
}

/* 头部导航 */
.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: 24px;
    font-weight: bold;
    color: #ff9500;
}

.logo-icon {
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.main-nav a:hover {
    color: #ff9500;
}

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

.main-nav a:hover:after {
    width: 100%;
}

.user-actions {
    display: flex;
    align-items: center;
}

/* 横幅区域 */
.banner {
    background: linear-gradient(135deg, #ff9500, #ff5e00);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.banner .container {
    position: relative;
    z-index: 2;
}

.banner-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.banner h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slogan {
    font-size: 22px;
    margin-bottom: 40px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

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

.search-box button {
    height: 50px;
    padding: 0 30px;
    background-color: #ff5e00;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* 内容区域通用样式 */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-left: 15px;
}

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

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

.more:hover {
    color: #ff9500;
}

/* 卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

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

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

.card-img {
    position: relative;
    overflow: hidden;
    padding-top: 140%;
}

.card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 149, 0, 0.9);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.card-info {
    padding: 15px;
}

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

.actors, .desc {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* APP下载模块 */
.app-download {
    background-color: #fff;
}

.app-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    background: linear-gradient(135deg, #fff6e9, #fff9f0);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 149, 0, 0.1);
}

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

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

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

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

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

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

.icon-check:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
}

.download-buttons {
    display: flex;
    margin-bottom: 20px;
}

.qrcode {
    text-align: center;
}

.qrcode-img {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 10px;
}

.app-image {
    flex: 1;
    text-align: center;
}

.app-image img {
    max-height: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 文章样式 */
.articles-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-img {
    flex: 0 0 300px;
    overflow: hidden;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.article-content {
    flex: 1;
    padding: 20px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.article-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #ff9500;
    font-weight: 500;
}

.read-more:hover {
    color: #ff5e00;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #ccc;
    padding: 60px 0 30px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #ff9500;
    margin-bottom: 20px;
}

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

.footer-nav-col h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #ff9500;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
}

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

.footer-info {
    text-align: center;
    color: #999;
    font-size: 14px;
}

.footer-info p {
    margin-bottom: 10px;
}

.divider {
    margin: 0 10px;
}

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

@media (max-width: 992px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-img {
        flex: 0 0 200px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner h1 {
        font-size: 32px;
    }
    
    .slogan {
        font-size: 18px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .card-container {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 25px;
        margin-bottom: 10px;
    }
    
    .search-box button {
        border-radius: 25px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .btn-android, .btn-ios {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* 图标样式 */
.icon-android:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8 2 8.67 2 9.5v7c0 .83.67 1.5 1.5 1.5S5 17.33 5 16.5v-7C5 8.67 4.33 8 3.5 8zm17 0c-.83 0-1.5.67-1.5 1.5v7c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5zm-4.97-5.84l1.3-1.3c.2-.2.2-.51 0-.71-.2-.2-.51-.2-.71 0l-1.48 1.48C13.85 1.23 12.95 1 12 1c-.96 0-1.86.23-2.66.63L7.85.15c-.2-.2-.51-.2-.71 0-.2.2-.2.51 0 .71l1.31 1.31C6.97 3.26 6 5.01 6 7h12c0-1.99-.97-3.75-2.47-4.84zM10 5H9V4h1v1zm5 0h-1V4h1v1z'/%3E%3C/svg%3E") center/contain no-repeat;
    margin-right: 8px;
}

.icon-apple:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.53 4.08zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z'/%3E%3C/svg%3E") center/contain no-repeat;
    margin-right: 8px;
}

/* 透明轮播背景 - 移除图片引用 */
.hot-section, .new-section, .tv-section, .variety-section, .anime-section {
    position: relative;
    overflow: hidden;
}

.hot-section:before, .new-section:before, .tv-section:before, .variety-section:before, .anime-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    z-index: -1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* 交替背景色 */
.hot-section, .tv-section, .articles-section {
    background-color: #f8f8f8;
}

.new-section, .variety-section, .anime-section, .app-download {
    background-color: #fff;
}

/* 卡片悬停效果增强 */
.card:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 149, 0, 0) 70%, rgba(255, 149, 0, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.card:hover:after {
    opacity: 1;
}

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

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ff9500;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff7300;
}
