/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: url('image/15.png') center center;
    background-size: cover;
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
}

.brand-logo-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Main Section */
.main-section {
    padding: 80px 0;
    background: url('image/17.png') center top;
    background-size: 100% auto;
    background-repeat: repeat-y;
    min-height: 100vh;
}

/* Main Display */
.main-display {
    text-align: center;
    margin-bottom: 100px;
}

.video-showcase {
    display: inline-block;
    background: #000;
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    max-width: 900px;
    width: 100%;
}

.main-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* 简单清晰的视频控件设计 */
.main-video::-webkit-media-controls {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-video:hover::-webkit-media-controls {
    opacity: 1;
}

/* 控制栏面板 - 10%透明度背景 */
.main-video::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, transparent 100%) !important;
}

/* 全屏时的控制面板样式 */
.main-video:fullscreen::-webkit-media-controls-panel,
.main-video:-webkit-full-screen::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, transparent 100%) !important;
}

/* 所有按钮和控件 - 白色图标，确保可见 */
.main-video::-webkit-media-controls-play-button,
.main-video::-webkit-media-controls-mute-button,
.main-video::-webkit-media-controls-fullscreen-button,
.main-video::-webkit-media-controls-timeline,
.main-video::-webkit-media-controls-current-time-display,
.main-video::-webkit-media-controls-time-remaining-display,
.main-video::-webkit-media-controls-volume-slider {
    color: white !important;
}

/* 全屏视频样式修复 */
.main-video:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    background: #000 !important;
}

.main-video:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    background: #000 !important;
}

.main-video:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    background: #000 !important;
}

.main-video:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    background: #000 !important;
}

/* 全屏时确保video-showcase容器不干扰 */
.video-showcase:has(video:fullscreen),
.video-showcase:has(video:-webkit-full-screen),
.video-showcase:has(video:-moz-full-screen),
.video-showcase:has(video:-ms-fullscreen) {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* 全屏时隐藏所有遮罩层 */
body:fullscreen .modal-overlay,
body:fullscreen .image-preview-overlay,
body:-webkit-full-screen .modal-overlay,
body:-webkit-full-screen .image-preview-overlay,
body:-moz-full-screen .modal-overlay,
body:-moz-full-screen .image-preview-overlay {
    display: none !important;
}

.video-showcase:hover .main-video::-webkit-media-controls {
    opacity: 1;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.action-btn {
    background: #000;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.action-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-preview {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.feature-title {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    text-align: center;
    margin: 0;
}

/* Footer */
.footer {
    background: url('image/15.png') center center;
    background-size: cover;
    color: white;
    padding: 40px 0;
    margin-top: 0;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-info {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-logo-image {
        max-width: 400px;
    }

    .video-showcase {
        margin: 0 -20px;
        border-radius: 0;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .action-btn {
        width: 80%;
        max-width: 300px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .brand-logo-image {
        max-width: 300px;
    }

    .main-section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading State */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loaded {
    opacity: 1;
    transform: translateY(0);
}