/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    height: 80px;
}

.logo a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo img {
    /* max-height: 60px; */
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    /* padding: 10px 0; */
    transition: all 0.3s ease;
    filter: brightness(1);
}

.logo img:hover {
    filter: brightness(1.1);
}

/* Logo响应式设计 */
@media (max-width: 768px) {
    .logo {
        height: 60px;
        justify-content: center;
    }
    
    .logo img {
        max-height: 50px;
        padding: 5px 0;
    }
}

@media (max-width: 576px) {
    .logo {
        height: 50px;
    }
    
    .logo img {
        max-height: 40px;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333;
    padding: 20px 15px !important;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .active .nav-link {
    color: #007bff;
}

/* 导航选中状态 */
.navbar-nav .nav-item.active .nav-link {
    color: #007bff !important;
    font-weight: bold;
}

/* 英雄区域样式 */
.hero-section {
    margin-top: 80px;
    position: relative;
}

.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 600px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 区域内边距 */
.section-padding {
    padding: 80px 0;
}

.dark-bg {
    background-color: #f8f9fa;
}

/* 标题样式 */
.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.underline {
    width: 50px;
    height: 3px;
    background-color: #007bff;
    margin: 0 auto;
}

/* 关于我们区域 */
.about-us h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.about-us p {
    margin-bottom: 30px;
    font-size: 1rem;
    color: #666;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.image-gallery img {
    border-radius: 5px;
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* 产品中心 */
.product-center {
    background: #000;
}

.product-center .section-title h2 {
    color: #fff;
}

.product-center .underline {
    background: #007bff;
}

.product-item {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255,255,255,0.1);
}

.product-image {
    width: 100%;
    padding-top: 133.33%; /* 3:4 比例 (4/3 * 100) */
    position: relative;
    overflow: hidden;
    background: #2a2a2a;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 10px;
    text-align: center;
}

.product-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.product-info p {
    color: #aaa;
    margin-bottom: 15px;
}

.product-info .btn-primary {
    background: #007bff;
    border-color: #007bff;
    transition: all 0.3s;
}

.product-info .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: scale(1.05);
}

/* 新闻中心 */
.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-meta .date {
    color: #999;
    font-size: 0.9rem;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #0056b3;
}

/* 底部样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-widget h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-widget p {
    color: #ccc;
    margin-bottom: 10px;
}

.footer-widget p i {
    margin-right: 10px;
    color: #007bff;
}

.footer-bottom {
    border-top: 1px solid #555;
    margin: 30px 0 20px;
    padding-top: 30px;
}

.footer-bottom h5 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-bottom ul {
    list-style: none;
    padding: 0;
}

.footer-bottom ul li {
    margin-bottom: 8px;
}

.footer-bottom ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom ul li a:hover {
    color: #007bff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content {
        left: 5%;
        right: 5%;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
    }
    
    .footer-bottom .col-md-4 {
        margin-bottom: 30px;
    }
}