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

/* 基础样式 */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 无障碍访问 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 面包屑导航 */
.breadcrumb {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #007bff;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo .tagline {
    font-size: 12px;
    color: #ccc;
    display: block;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #4ecdc4;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #4ecdc4;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link.active::after {
    width: 100%;
}

.header-tools {
    display: flex;
    align-items: center;
}

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

.search-input {
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 250px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    width: 300px;
}

.search-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    margin-left: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 轮播横幅 */
.banner-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

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

.banner-slide.active {
    opacity: 1;
}

.banner-bg {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.banner-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.slide-info {
    color: white;
    max-width: 600px;
}

.slide-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-desc {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.6;
    opacity: 0.9;
}

.slide-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.slide-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.slide-actions {
    display: flex;
    gap: 15px;
}

.btn-play,
.btn-info {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-play {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-info {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.3);
}

.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    padding: 40px 0;
}

.content-section {
    margin-bottom: 60px;
}

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

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.more-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #0056b3;
}

/* 电影网格 */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.movie-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.movie-poster {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.play-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: white;
    transform: scale(1.1);
}

.movie-info {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rating,
.episodes {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    text-align: center;
}

.rating {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

.movie-details {
    padding: 20px;
}

.movie-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.movie-meta {
    color: #666;
    font-size: 14px;
}

/* 更新列表 */
.update-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.update-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.update-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.update-poster {
    flex-shrink: 0;
    width: 120px;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
}

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

.update-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.update-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.update-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.update-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 14px;
}

.update-episode {
    background: #007bff;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
}

.update-time {
    color: #999;
}

.update-rating {
    color: #ff6b6b;
    font-weight: 600;
}

.update-action {
    display: flex;
    align-items: center;
}

.watch-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

/* 分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    color: #333;
}

.category-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.category-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* SEO内容区域 */
.seo-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.seo-text h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.seo-text h3 {
    font-size: 24px;
    color: #333;
    margin: 30px 0 15px 0;
}

.seo-text p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.seo-text ul {
    margin: 15px 0;
    padding-left: 25px;
}

.seo-text li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
}

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

.footer-section h4,
.footer-section h5 {
    margin-bottom: 15px;
    color: #4ecdc4;
}

.footer-section p {
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4ecdc4;
}

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

.footer-links a {
    color: #4ecdc4;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border: 1px solid #4ecdc4;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: #4ecdc4;
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.footer-bottom a {
    color: #4ecdc4;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 图片懒加载 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-input {
        width: 200px;
    }
    
    .search-input:focus {
        width: 220px;
    }
    
    .banner-section {
        height: 400px;
    }
    
    .slide-title {
        font-size: 32px;
    }
    
    .slide-desc {
        font-size: 16px;
    }
    
    .slide-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .update-item {
        flex-direction: column;
        text-align: center;
    }
    
    .update-poster {
        width: 100px;
        height: 133px;
        margin: 0 auto;
    }
    
    .update-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .seo-content {
        padding: 25px 20px;
    }
    
    .seo-text h2 {
        font-size: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 24px;
    }
    
    .main-nav {
        gap: 15px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .banner-section {
        height: 300px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .slide-desc {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .movie-details {
        padding: 15px;
    }
    
    .movie-title {
        font-size: 14px;
    }
    
    .update-item {
        padding: 15px;
    }
    
    .update-title {
        font-size: 16px;
    }
    
    .category-icon {
        font-size: 30px;
    }
    
    .category-card h4 {
        font-size: 16px;
    }
}

/* 性能优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 打印样式 */
@media print {
    .header,
    .banner-section,
    .footer {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    .movie-card,
    .update-item,
    .category-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
