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

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

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

a:hover {
    color: #ff6b6b;
}

ul, ol {
    list-style: none;
}

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

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

/* 网站配色方案 - 电视剧风格 */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #5f27cd;
    --accent-color: #ff9f43;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #f5f5f5;
    --card-bg: #fff;
    --border-color: #eee;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

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

.logo {
    display: flex;
    align-items: center;
}

.site-name h1 {
    font-size: 22px;
    color: var(--primary-color);
    margin-left: 15px;
}

.search-box {
    flex: 0 0 300px;
}

.search-box form {
    display: flex;
    position: relative;
}

.search-box input {
    width: 100%;
    height: 36px;
    padding: 0 15px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    height: 36px;
    width: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 18px 18px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* 导航样式 */
nav {
    background-color: var(--secondary-color);
}

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

.main-nav li {
    flex: 1;
    text-align: center;
}

.main-nav li a {
    display: block;
    padding: 12px 0;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.main-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 轮播图样式 */
.banner {
    margin: 20px 0;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.slider {
    display: flex;
    height: 400px;
}

.slide {
    flex: 0 0 100%;
    position: relative;
    display: none;
}

.slide.active {
    display: block;
}

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

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

.slide-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev, .next {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dots {
    display: flex;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #fff;
}

/* 通用区块样式 */
section {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 20px;
    color: var(--text-color);
    position: relative;
    padding-left: 15px;
}

.section-header h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 4px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.more {
    color: var(--light-text);
    font-size: 14px;
}

/* 卡片样式 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.card {
    flex: 0 0 calc(16.666% - 20px);
    margin: 0 10px 20px;
    background-color: var(--card-bg);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.card-img {
    position: relative;
    height: 0;
    padding-bottom: 140%;
    overflow: hidden;
}

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

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

.score, .update, .tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.update {
    background-color: var(--accent-color);
}

.tag {
    background-color: var(--secondary-color);
}

.card-info {
    padding: 10px;
}

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

.card-info p {
    font-size: 12px;
    color: var(--light-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info .desc {
    margin-top: 5px;
    color: #999;
}

/* 排行榜样式 */
.ranking-container {
    display: flex;
    justify-content: space-between;
}

.ranking-list {
    flex: 0 0 32%;
    background-color: var(--card-bg);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.ranking-title {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
}

.ranking-list ul {
    padding: 10px;
}

.ranking-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.ranking-list li:last-child {
    border-bottom: none;
}

.rank {
    width: 24px;
    height: 24px;
    background-color: #ddd;
    color: #fff;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.rank-1 {
    background-color: #ff6b6b;
}

.rank-2 {
    background-color: #ff9f43;
}

.rank-3 {
    background-color: #feca57;
}

.rank-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.rank-info img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 10px;
}

.rank-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.rank-info p {
    font-size: 12px;
    color: var(--light-text);
}

/* APP下载区域样式 */
.app-download {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-color);
}

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

.app-info {
    flex: 0 0 60%;
    padding: 30px;
}

.app-info h2 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.app-info p {
    font-size: 16px;
    color: var(--light-text);
    margin-bottom: 20px;
}

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

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

.app-features i {
    color: var(--primary-color);
    margin-right: 10px;
}

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

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: #ff5252;
    color: #fff;
}

.btn-download i {
    margin-right: 5px;
}

.btn-download.ios {
    background-color: var(--secondary-color);
}

.btn-download.ios:hover {
    background-color: #4b1fa9;
}

.qrcode {
    text-align: center;
}

.qrcode img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.qrcode p {
    font-size: 12px;
    color: var(--light-text);
}

.app-image {
    flex: 0 0 40%;
    padding: 20px;
}

.app-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

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

.article-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.article-img {
    flex: 0 0 200px;
    margin-right: 20px;
}

.article-img img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
}

.article-content {
    flex: 1;
}

.article-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-content p {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.article-meta .date {
    margin-right: 15px;
}

/* 友情链接样式 */
.friend-links {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 20px;
    margin-bottom: 30px;
}

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

.links-container li, .links-container a {
    margin-right: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--light-text);
}

/* 页脚样式 */
footer {
    background-color: #2d3436;
    color: #dfe6e9;
    padding: 50px 0 20px;
}

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

.footer-logo {
    flex: 0 0 30%;
}

.footer-logo h3 {
    font-size: 18px;
    color: #fff;
    margin: 15px 0 10px;
}

.footer-logo p {
    font-size: 14px;
    color: #b2bec3;
    line-height: 1.6;
}

.footer-nav {
    flex: 0 0 45%;
    display: flex;
    justify-content: space-between;
}

.footer-nav-group h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav-group h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-nav-group ul li a {
    color: #b2bec3;
    transition: all 0.3s ease;
}

.footer-nav-group ul li a:hover {
    color: var(--primary-color);
}

.footer-contact {
    flex: 0 0 25%;
}

.footer-contact h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-media {
    display: flex;
    margin: 15px 0;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
}

.app-download-footer {
    margin-top: 15px;
}

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

.app-download-footer img {
    width: 100px;
    height: 100px;
}

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

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

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

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* 响应式样式 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .card {
        flex: 0 0 calc(20% - 20px);
    }
}

@media (max-width: 992px) {
    .card {
        flex: 0 0 calc(25% - 20px);
    }
    
    .footer-content {
        flex-wrap: wrap;
    }
    
    .footer-logo {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
    
    .footer-nav {
        flex: 0 0 60%;
    }
    
    .footer-contact {
        flex: 0 0 35%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }
    
    .site-name {
        flex: 0 0 calc(100% - 70px);
    }
    
    .search-box {
        flex: 0 0 100%;
        margin-top: 15px;
    }
    
    .main-nav {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        flex: 0 0 33.333%;
    }
    
    .card {
        flex: 0 0 calc(33.333% - 20px);
    }
    
    .ranking-container {
        flex-direction: column;
    }
    
    .ranking-list {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info, .app-image {
        flex: 0 0 100%;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-img {
        flex: 0 0 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .article-img img {
        height: 180px;
    }
    
    .footer-nav, .footer-contact {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .card {
        flex: 0 0 calc(50% - 20px);
    }
    
    .main-nav li {
        flex: 0 0 50%;
    }
    
    .slider {
        height: 250px;
    }
    
    .download-btns {
        flex-direction: column;
    }
    
    .btn-download {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* 图标样式 */
.icon-search::before {
    content: "🔍";
}

.icon-check::before {
    content: "✓";
}

.icon-android::before {
    content: "📱";
}

.icon-apple::before {
    content: "🍎";
}

.icon-email::before {
    content: "✉️";
}

.icon-phone::before {
    content: "📞";
}

.icon-weibo::before {
    content: "微";
}

.icon-wechat::before {
    content: "微";
}

.icon-qq::before {
    content: "Q";
}

/* 透明轮播背景 */
.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(95, 39, 205, 0.2));
    z-index: -1;
}

/* 页面透明背景装饰 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1), transparent);
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(95, 39, 205, 0.1), transparent);
    z-index: -1;
}

