/* 视频详情页面样式 */
.video-container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 面包屑导航 */
.video-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--jiudi-text-gray);
}

.video-breadcrumb a {
    color: var(--jiudi-text-gray);
    transition: var(--jiudi-transition);
}

.video-breadcrumb a:hover {
    color: var(--jiudi-primary);
}

.video-breadcrumb span {
    margin: 0 8px;
    color: var(--jiudi-text-light-gray);
}

.video-breadcrumb .current {
    color: var(--jiudi-primary);
}

/* 视频标题 */
.video-title {
    text-align: center;
    margin-bottom: 40px;
}

.video-title h1 {
    font-size: 2.5rem;
    color: var(--jiudi-text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.video-title .video-meta {
    font-size: 16px;
    color: var(--jiudi-text-gray);
}

/* 视频播放区域 */
.video-player-container {
    position: relative;
    margin-bottom: 60px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 比例 */
    background-color: #000;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--jiudi-text-gray);
}

.video-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--jiudi-primary);
}

/* 机型推荐区域 */
.machine-recommendation {
    margin-top: 60px;
}

.recommendation-header {
    text-align: center;
    margin-bottom: 40px;
}

.recommendation-header h2 {
    font-size: 2rem;
    color: var(--jiudi-text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.recommendation-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--jiudi-primary), var(--jiudi-secondary));
    border-radius: 2px;
}

.recommendation-header p {
    font-size: 16px;
    color: var(--jiudi-text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--jiudi-bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--jiudi-transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--jiudi-text-dark);
    font-weight: 600;
}

.product-info p {
    color: var(--jiudi-text-gray);
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 14px;
}

.product-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--jiudi-primary);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--jiudi-transition);
}

.product-button:hover {
    background: var(--jiudi-secondary);
    color: white;
    transform: translateY(-2px);
}

/* 视频详情内容 */
.video-content {
    background: var(--jiudi-bg-gray);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
}

.video-content h2 {
    color: var(--jiudi-text-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.video-content p {
    color: var(--jiudi-text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.video-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.video-content li {
    color: var(--jiudi-text-gray);
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 1450px) {
    .video-container {
        padding: 30px 15px;
    }
}

@media (max-width: 1366px) {
    .video-title h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .product-image {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .video-title h1 {
        font-size: 1.8rem;
    }
    
    .recommendation-header h2 {
        font-size: 1.6rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .video-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .video-container {
        padding: 20px 10px;
    }
    
    .video-title {
        margin-bottom: 30px;
    }
    
    .video-title h1 {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .recommendation-header h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .video-title h1 {
        font-size: 1.3rem;
    }
    
    .video-meta {
        font-size: 14px;
    }
    
    .recommendation-header {
        margin-bottom: 30px;
    }
    
    .recommendation-header h2 {
        font-size: 1.2rem;
    }
    
    .video-content {
        padding: 15px;
    }
    
    .video-content h2 {
        font-size: 1.2rem;
    }
}

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

.product-card {
    animation: fadeIn 0.6s ease-out;
}

.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }

/* 视频控制按钮 */
.video-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.control-btn {
    padding: 12px 25px;
    background: var(--jiudi-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--jiudi-transition);
    font-weight: 500;
}

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

.control-btn.secondary {
    background: var(--jiudi-bg-gray);
    color: var(--jiudi-text-dark);
}

.control-btn.secondary:hover {
    background: var(--jiudi-border-gray);
}