/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #007bff;
}

/* 轮播图样式 */
.banner {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    text-align: center;
}

#myVideo {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: auto;
    z-index: -1;
    object-fit: cover;
}
.video-container {
    width: 100%; /* 播放窗口宽度 */
    max-width: 640px; /* 最大宽度，可根据需要调整 */
    margin: 0 auto;
}

video {
    width: 100%; /* 视频宽度自适应 */
    height: auto; /* 视频高度按比例缩放 */
}

.banner-content {
    position: relative;
    width: 100%;
    padding: 0 1rem;
    color: #fff;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* 公司简介部分 */
.company-intro {
    padding: 5rem 5%;
    background-color: #f8f9fa;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.intro-text {
    flex: 1;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    width: 100%;
    border-radius: 10px;
}

/* 产品展示部分 */
.products {
    padding: 5rem 5%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 1rem;
}

.product-card p {
    padding: 0 1rem 1rem;
}

/* 新闻动态部分 */
.news {
    padding: 5rem 5%;
    background-color: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-date {
    color: #666;
    font-size: 0.9rem;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.social-links img {
    width: 30px;
    margin-right: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* 在移动端需要添加汉堡菜单 */
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
} 