* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 游戏壁纸背景 */
.game-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: url('assets/background.jpg') no-repeat center center;
    background-size: cover;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
    position: relative;
}

.home-button-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.home-button {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    color: #ffd700;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.home-button:hover {
    background: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

header h1 {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

header h1 i {
    margin-right: 15px;
}

.tagline {
    font-size: 1.2rem;
    color: #a9b7d0;
    max-width: 600px;
    margin: 0 auto;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background: rgba(30, 30, 46, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-header {
    background: linear-gradient(90deg, #ff8c00, #ffd700);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-header h2 {
    font-size: 1.4rem;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-header h2 i {
    font-size: 1.2rem;
}

.system-tag {
    background: rgba(26, 26, 46, 0.7);
    color: #ffd700;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.product-media {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-media:hover video {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-media:hover .play-icon {
    opacity: 1;
}

.play-icon i {
    font-size: 24px;
    color: #ffd700;
}

.product-content {
    padding: 20px;
}

.feature-section {
    margin-bottom: 20px;
}

.feature-section h3 {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list {
    list-style: none;
    padding-left: 10px;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
    color: #d1d8e0;
}

.feature-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #52c41a;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.meta-tag {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.toggle-details {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
    width: fit-content;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.toggle-details:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

.product-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.product-details.active {
    max-height: 2000px;
}

.continue-button-container {
    text-align: center;
    margin: 40px 0;
}

.continue-button {
    background: linear-gradient(90deg, #ff8c00, #ffd700);
    color: #1a1a2e;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.continue-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.unsupported-message {
    background: rgba(255, 243, 205, 0.9);
    color: #856404;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.unsupported-message i {
    color: #ffc107;
    margin-right: 10px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ffd700;
}

.modal-media {
    width: 100%;
    height: 80vh;
}

.modal-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
        padding-top: 20px;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .products-container {
        grid-template-columns: 1fr;
    }
    
    .product-header h2 {
        font-size: 1.2rem;
    }
    
    .product-media {
        height: 200px;
    }
    
    .feature-list li {
        font-size: 0.9rem;
    }
    
    .home-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .home-button-container {
        left: 15px;
        top: 15px;
    }
    
    .toggle-details {
        width: 100%;
        margin: 15px auto 0;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    header {
        padding: 20px 0;
    }
    
    header h1 {
        font-size: 1.7rem;
    }
    
    .home-button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .system-tag {
        align-self: flex-start;
    }
    
    .product-media {
        height: 180px;
    }
    
    .product-content {
        padding: 15px;
    }
    
    .feature-section h3 {
        font-size: 1rem;
    }
    
    .feature-list li {
        font-size: 0.85rem;
    }
    
    .meta-tag {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}