* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-attachment: fixed;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
}

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

header {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 0;
    border-radius: 0 0 10px 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo h1 {
    text-align: center;
    font-size: 2.2rem;
    color: #ffdd40;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: block;
    font-weight: bold;
}

nav ul li a:hover, 
nav ul li a.active {
    background: #ff3860;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

main {
    padding: 20px 0;
}

.category-section {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 1.8rem;
    color: #ff3860;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff3860;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.video-card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

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

.premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff3860, #ff7860);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.thumbnail {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.play-icon i {
    color: #ff3860;
    font-size: 20px;
    margin-left: 4px;
}

.video-card:hover .play-icon {
    opacity: 1;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta {
    display: flex;
    justify-content: space-between;
    color: #ccc;
    font-size: 0.9rem;
}

.load-more {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    background: linear-gradient(45deg, #ff3860, #ff7860);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 56, 96, 0.4);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 极速0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.purchase-modal {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.purchase-modal h2 {
    color: #ffdd40;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.subtitle {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.loading-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin: 20极速px 0;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 50%;
    background: #ff3860;
    border-radius: 5px;
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.purchase-options {
    margin: 20px 0;
}

.purchase-option {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.purchase-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.purchase-option h3 {
    color: #ffdd40;
    margin-bottom: 10px;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.desc {
    color: #ccc;
    font-size: 0.9rem;
}

.close-modal {
    background: transparent;
    color: #ccc;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

footer {
    text-align: center;
    padding: 20px 0;
    color: #ccc;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px 10px 0 0;
    margin-top: 30px;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 响应式设计 - 移动设备 */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .thumbnail {
        height: 160px;
    }
    
    .video-info {
        padding: 12px;
    }
    
    .video-info h3 {
        font-size: 1rem;
    }
    
    .meta {
        font-size: 0.85rem;
    }
    
    nav ul li {
        margin: 0 8px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .thumbnail {
        height: 140px;
    }
    
    .video-info {
        padding: 10px;
    }
    
    .video-info h3 {
        font-size: 0.9rem;
    }
    
    .meta {
        font-size: 0.8rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .load-more-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .purchase-modal {
        padding: 20px;
    }
    
    .purchase-modal h2 {
        font-size: 1.5rem;
    }
}

/* 超小屏幕设备 */
@media (max-width: 360px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .thumbnail {
        height: 120px;
    }
    
    .video-info h3 {
        font-size: 0.85rem;
    }
    
    .meta {
        font-size: 0.75rem;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
}