/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
 font-weight: 1000;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #007bff;
}

/* 轮播图样式 */
.hero {
    position: relative;
    height: 91vh;
    overflow: hidden;
    margin-top: 80px; /* 给导航栏留出空间 */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #333;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* 视频展示区容器 */
.video-gallery-container {
    padding: 60px 0;
    background-color: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.gallery-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2f3542;
    position: relative;
    padding-bottom: 15px;
}

.gallery-title i {
    margin-right: 10px;
    color: #ff6b81;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #ff6b81, #70a1ff);
    border-radius: 2px;
}

.gallery-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

/* 视频网格布局 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* 视频卡片样式 */
.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 视频缩略图区域 */
.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 宽高比 */
    overflow: hidden;
    cursor: pointer;
}

.cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: none;
}

.video-thumbnail:hover .cover-image {
    opacity: 0.8;
}

/* 播放按钮覆盖层 */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 129, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s;
    z-index: 2;
}

.play-overlay i {
    color: white;
    font-size: 24px;
    margin-left: 5px;
}

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

/* 视频元信息 */
.video-meta {
    padding: 18px;
}

.video-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #2f3542;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.video-info i {
    margin-right: 5px;
    font-size: 0.9rem;
}

.upload-date {
    color: #666;
}

.duration {
    background-color: #f1f2f6;
    padding: 3px 8px;
    border-radius: 4px;
    color: #555;
}

/* 页脚样式 */
.footer {
    background-color: white;
    color: black;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: -5px;
    margin-bottom: 40px;
}

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

.footer-logo img {
    height: 60px;
}

.footer-logo div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-logo p {
    color: #FF0000;
    margin: 0;
}

.footer-logo p:first-child {
    font-weight: bold;
    font-size: 16px;
    margin-top: 12px;
}

.footer-logo p:last-child {
    font-weight: bold;
    font-size: 9px;
}

.footer-info {
    grid-column: 1;
    margin-top: 20px;
}

.footer-info p {
    margin-bottom: 10px;
    color: black;
}

.contact-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

.footer-qr {
    grid-column: 3;
    display: flex;
    justify-content: space-around;
}

.qr-code {
    text-align: center;
}

.qr-code img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.qr-code p {
    color: black;
    font-size: 0.9em;
}

.footer-bottom {
    display: flex;          /* 使用 Flexbox 布局 */
    align-items: center;    /* 垂直居中 */
    justify-content: center; /* 水平居中（可选） */
    gap: 10px;              /* 设置两个元素之间的间距 */
    font-size: 14px;        /* 统一字体大小 */
    color: #666;            /* 默认文字颜色 */
    padding: 10px 0;        /* 上下内边距 */
    background: #f5f5f5;    /* 背景色（可选） */
}

.footer-bottom a {
    color: #666;            /* 链接颜色 */
    text-decoration: none;  /* 去掉下划线 */
    transition: color 0.3s; /* 悬停动画 */
}

.footer-bottom a:hover {
    color: #1890ff;         /* 悬停时变色（蓝色） */
}

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

.footer-links a {
    color: black;
    text-decoration: none;
    font-size: 0.9em;
}

.footer-links a:hover {
    color: #007bff;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 1200px;
}

.modal-video {
    width: 100%;
    height: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        height: 60vh;
        margin-top: 60px;
    }
    
    .slider-controls button {
        width: 40px;
        height: 40px;
        padding: 10px;
        margin: 0 10px;
    }
    
    .slider-dots {
        bottom: 15px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-qr {
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }
    
    .footer-info {
        grid-column: auto;
    }
}