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

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

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

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

a:hover {
    color: #c0392b;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

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

.section-header h2 {
    font-size: 24px;
    color: #e74c3c;
    position: relative;
}

.section-header .more {
    font-size: 14px;
    color: #666;
}

.section-header .more:hover {
    color: #e74c3c;
}

section {
    padding: 50px 0;
}

/* 头部样式 */
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;
    padding: 15px;
}

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

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

.logo h1 {
    font-size: 20px;
    margin-left: 10px;
    color: #e74c3c;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

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

nav ul li a:hover {
    color: #e74c3c;
}

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

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

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

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

.search-box button {
    padding: 8px 15px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

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

.slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

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

.slide-info {
    position: absolute;
    bottom: 50px;
    left: 50px;
    max-width: 500px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.slide-info h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

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

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

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

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

.dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    width: 12px;
    height: 12px;
    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: #e74c3c;
}

/* 电影卡片样式 */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

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

.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;
}

.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(231, 76, 60, 0.9);
    color: #fff;
    padding: 5px 10px;
    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 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.btn-play {
    display: block;
    text-align: center;
    padding: 8px 0;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-play:hover {
    background-color: #c0392b;
    color: #fff;
}

/* APP下载区域样式 */
.app-download {
    background-color: #2c3e50;
    color: #fff;
}

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

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

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

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

.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: #e74c3c;
    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-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

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

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 4px;
    margin-right: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

.icon-android, .icon-apple {
    margin-right: 8px;
    font-size: 18px;
}

.qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

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

/* 电影资讯样式 */
.news-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.news-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-img {
    flex: 0 0 300px;
}

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

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

.news-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.news-excerpt {
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.read-more {
    display: inline-block;
    padding: 8px 15px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #c0392b;
}

/* 用户评价样式 */
.user-reviews {
    background-color: #ecf0f1;
}

.review-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.review-slider::-webkit-scrollbar {
    display: none;
}

.review-slide {
    flex: 0 0 350px;
    margin-right: 20px;
    scroll-snap-align: start;
}

.review-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.review-stars {
    color: #f39c12;
    margin-bottom: 15px;
    font-size: 18px;
}

.icon-star, .icon-half-star {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #f39c12;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    margin-right: 2px;
}

.icon-half-star {
    background: linear-gradient(90deg, #f39c12 50%, #ddd 50%);
}

.review-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #444;
    font-style: italic;
}

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

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

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

.reviewer-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-style: normal;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding-top: 50px;
}

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

.footer-logo {
    flex: 0 0 100%;
    max-width: 300px;
    margin-bottom: 30px;
}

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

.footer-logo p {
    font-size: 14px;
    color: #bdc3c7;
}

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

.link-group {
    flex: 0 0 calc(25% - 20px);
    margin-bottom: 20px;
}

.link-group h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #e74c3c;
}

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

.link-group ul li a {
    color: #bdc3c7;
    font-size: 14px;
}

.link-group ul li a:hover {
    color: #e74c3c;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #34495e;
    border-radius: 50%;
    margin-right: 10px;
    margin-bottom: 10px;
    color: #ecf0f1;
    font-size: 0;
}

.social-icon:hover {
    background-color: #e74c3c;
}

.social-icon.weibo::before {
    content: '微';
    font-size: 14px;
}

.social-icon.wechat::before {
    content: '微';
    font-size: 14px;
}

.social-icon.douyin::before {
    content: '抖';
    font-size: 14px;
}

.social-icon.bilibili::before {
    content: 'B';
    font-size: 14px;
}

.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode-container img {
    width: 100px;
    height: 100px;
    margin-bottom: 5px;
}

.qrcode-container p {
    font-size: 12px;
    color: #bdc3c7;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding: 20px 0;
}

.copyright {
    text-align: center;
    margin-bottom: 20px;
}

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

.friendly-links {
    text-align: center;
}

.friendly-links h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #e74c3c;
}

.friendly-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.friendly-links ul li {
    margin: 0 10px 10px 0;
}

.friendly-links ul li a,
.friendly-links a {
    color: #bdc3c7;
    font-size: 14px;
    padding: 5px 10px;
    background-color: #34495e;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 5px 5px 0;
}

.friendly-links ul li a:hover,
.friendly-links a:hover {
    background-color: #e74c3c;
    color: #fff;
}

/* 背景动画 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(231, 76, 60, 0.05);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

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

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

/* 移动菜单按钮 */
.mobile-menu-button {
    display: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    nav ul li {
        margin: 0 10px 10px;
    }
    
    .search-box {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .slider {
        height: 400px;
    }
    
    .slide-info {
        bottom: 30px;
        left: 30px;
    }
    
    .slide-info h2 {
        font-size: 28px;
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-img {
        flex: 0 0 200px;
    }
    
    .link-group {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .slider {
        height: 300px;
    }
    
    .slide-info {
        bottom: 20px;
        left: 20px;
        max-width: 300px;
    }
    
    .slide-info h2 {
        font-size: 24px;
    }
    
    .slide-info p {
        font-size: 16px;
    }
    
    .review-slide {
        flex: 0 0 300px;
    }
    
    .footer-logo {
        max-width: 100%;
    }
    
    .link-group {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider {
        height: 250px;
    }
    
    .slide-info {
        bottom: 15px;
        left: 15px;
        max-width: 250px;
    }
    
    .slide-info h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .slide-info p {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-img {
        flex: 0 0 150px;
    }
    
    .news-content h3 {
        font-size: 18px;
    }
    
    .review-slide {
        flex: 0 0 250px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .btn-download {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* 页面加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease forwards;
}

/* 图片悬停效果 */
.movie-poster {
    overflow: hidden;
}

.movie-poster img {
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.1);
}

/* 链接悬停效果 */
a {
    position: relative;
}

a:not(.btn):not(.btn-play):not(.read-more):not(.social-icon):not(.friendly-links a):not(.btn-download):after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #e74c3c;
    transition: width 0.3s ease;
}

a:not(.btn):not(.btn-play):not(.read-more):not(.social-icon):not(.friendly-links a):not(.btn-download):hover:after {
    width: 100%;
}

/* 按钮悬停效果 */
.btn, .btn-play, .read-more, .btn-download {
    position: relative;
    overflow: hidden;
}

.btn:before, .btn-play:before, .read-more:before, .btn-download:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn:hover:before, .btn-play:hover:before, .read-more:hover:before, .btn-download:hover:before {
    left: 100%;
}

/* 卡片阴影效果 */
.movie-card, .news-item, .review-content {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.movie-card:hover, .news-item:hover, .review-content:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 文字选中效果 */
::selection {
    background-color: #e74c3c;
    color: #fff;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

/* 输入框焦点效果 */
input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

/* 页面过渡效果 */
body {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 透明背景效果 */
.banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.slide-info {
    z-index: 2;
}

/* 页面底部渐变效果 */
footer:before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.8), transparent);
}

/* 图标样式 */
.icon-android:before {
    content: 'A';
    font-weight: bold;
}

.icon-apple:before {
    content: 'i';
    font-weight: bold;
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-download {
    animation: pulse 2s infinite;
}

/* 标题下划线效果 */
.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #e74c3c;
}

/* 卡片悬停效果 */
.movie-card {
    transition: all 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-10px);
}

/* 评分标签效果 */
.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 页面背景图案 */
body:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 25px 25px, #f5f5f5 2px, transparent 0),
                      radial-gradient(circle at 75px 75px, #f5f5f5 2px, transparent 0);
    background-size: 100px 100px;
    opacity: 0.3;
    z-index: -1;
}

/* 页脚波浪效果 */
footer {
    position: relative;
}

footer:after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%232c3e50" opacity=".25"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%232c3e50" opacity=".5"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%232c3e50"></path></svg>') no-repeat;
    background-size: cover;
}
