/* 全局样式 */
:root {
    --primary-color: #ff4d6d;
    --secondary-color: #c9184a;
    --accent-color: #ff8fa3;
    --text-color: #333333;
    --light-text: #ffffff;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --gray-bg: #f0f0f0;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 4px;
    font-weight: bold;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

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

.section-header h2 {
    font-size: 24px;
    color: var(--primary-color);
}

.more {
    color: var(--primary-color);
    font-weight: bold;
}

.more:hover {
    color: var(--secondary-color);
}

/* 顶部导航 */
header {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

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

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

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

.logo h1 {
    font-size: 24px;
    color: var(--light-text);
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    padding: 5px 10px;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: var(--primary-color);
}

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

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

.search-box button {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background-color: var(--secondary-color);
}

/* 轮播图 */
.banner {
    padding: 30px 0;
    background-color: var(--gray-bg);
}

.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--light-text);
}

.slide-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.slide-content p {
    margin-bottom: 15px;
    font-size: 16px;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 10;
}

.prev, .next {
    cursor: pointer;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--light-text);
    border-radius: 50%;
    font-size: 18px;
    transition: var(--transition);
}

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

.dots {
    display: flex;
    justify-content: center;
}

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

.dot.active {
    background-color: var(--light-text);
}

/* 电影卡片网格 */
.new-releases, .popular {
    padding: 40px 0;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.movie-card {
    background-color: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.movie-poster {
    position: relative;
    height: 250px;
}

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

.rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.movie-info {
    padding: 15px;
}

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

.movie-info p {
    color: #777;
    font-size: 14px;
}

/* 电影专题 */
.special-topics {
    padding: 40px 0;
    background-color: var(--gray-bg);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.topic-card {
    position: relative;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.topic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.topic-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--light-text);
}

.topic-info h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.topic-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

/* 电影资讯 */
.movie-news {
    padding: 40px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-info {
    padding: 20px;
}

.news-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-info .date {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-info .summary {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* 排行榜 */
.rankings {
    padding: 40px 0;
    background-color: var(--gray-bg);
}

.rankings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.ranking-column h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.ranking-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background-color: var(--light-text);
    border-radius: 8px;
    padding: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.rank {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
}

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

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

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

.rank-info p {
    font-size: 12px;
    color: #777;
}

/* APP下载 */
.app-download {
    padding: 60px 0;
    background-color: var(--dark-bg);
    color: var(--light-text);
}

.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: 10px;
    color: var(--primary-color);
}

.app-info > p {
    font-size: 18px;
    margin-bottom: 20px;
}

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

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

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

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

.download-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 4px;
    margin-right: 15px;
    transition: var(--transition);
}

.download-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.download-btn .icon {
    margin-right: 10px;
    font-size: 20px;
}

.qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.qrcode img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    background-color: white;
    padding: 5px;
    border-radius: 4px;
}

.qrcode p {
    font-size: 14px;
}

.app-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

/* 友情链接 */
.friend-links {
    padding: 30px 0;
    background-color: var(--light-bg);
}

.friend-links h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
}

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

.friend-links ul li, .friend-links ul a {
    margin-right: 15px;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.friend-links ul li a:hover, .friend-links ul a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 页脚 */
footer {
    background-color: var(--dark-bg);
    color: #999;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--light-text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.6;
}

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

.footer-column ul li a {
    color: #999;
    font-size: 14px;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
}

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

.social-media {
    display: flex;
    margin-top: 20px;
}

.social-icon {
    margin-right: 15px;
    color: #999;
    transition: var(--transition);
}

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

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

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .search-box {
        width: 100%;
        justify-content: center;
    }
    
    .slider {
        height: 300px;
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .rankings-container {
        grid-template-columns: 1fr;
    }
    
    .ranking-column {
        margin-bottom: 30px;
    }
    
    .slider {
        height: 250px;
    }
    
    .slide-content h2 {
        font-size: 22px;
    }
    
    .slider-controls {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .slider {
        height: 200px;
    }
    
    .slide-content h2 {
        font-size: 18px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-btn {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* 透明轮播背景 */
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.1) 0%, rgba(201, 24, 74, 0.1) 100%);
    z-index: -1;
}

/* 页面透明背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,77,109,0.05)" stroke-width="1"/></svg>') repeat;
    z-index: -1;
    opacity: 0.5;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card, .news-card, .topic-card {
    animation: fadeIn 0.5s ease-out forwards;
}

.movie-card:nth-child(2), .news-card:nth-child(2), .topic-card:nth-child(2) {
    animation-delay: 0.1s;
}

.movie-card:nth-child(3), .news-card:nth-child(3), .topic-card:nth-child(3) {
    animation-delay: 0.2s;
}

.movie-card:nth-child(4), .news-card:nth-child(4) {
    animation-delay: 0.3s;
}

.movie-card:nth-child(5), .news-card:nth-child(5) {
    animation-delay: 0.4s;
}

.movie-card:nth-child(6), .news-card:nth-child(6) {
    animation-delay: 0.5s;
}


