/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1600px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border: 2px solid #333;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn:hover {
    background-color: transparent;
    color: #333;
}

/* 头部样式 */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 15px;
}

.nav ul li a:hover {
    color: #666;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search {
    display: flex;
    position: relative;
}

.search input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    width: 250px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search input:focus {
    border-color: #333;
    width: 300px;
}

.search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    transition: color 0.3s ease;
}

.search button:hover {
    color: #333;
}



/* 英雄区域 */
.hero {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #000;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18));
    z-index: 1;
}

.hero-slide.active {
    display: flex;
    opacity: 1;
    z-index: 2;
}

.hero-photo {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    z-index: 0;
    background-color: #000;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    margin-left: 10%;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 15px;
}

.hero-prev, .hero-next {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-prev:hover, .hero-next:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* 关于我们 */
.about-us {
    padding: 100px 0;
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.about-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 新产品发布 */
.new-product {
    padding: 40px 0;
    background-color: #333;
    color: #fff;
}

.new-product-content {
    text-align: center;
}

.new-product-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-top: 20px;
    text-align: left;
}

.product-image img {
    width: 50%;
    height: 220px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-image {
    text-align: center;
}
.product-image.hover-overlay {
    display: inline-block;
}

.product-info h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.product-info p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.product-info .btn {
    background-color: #fff;
    color: #333;
    border-color: #fff;
}

.product-info .btn:hover {
    background-color: transparent;
    color: #fff;
}

/* 产品中心 */
.products-center {
    padding: 100px 0;
    background-color: #fff;
}

.products-center h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.product-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 首页 Products Center 专用尺寸还原 */
.products-center .product-item img {
    height: 300px;
}

.product-item:hover img {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hover-overlay {
    position: relative;
}
.img-overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
}
.hover-overlay:hover .img-overlay {
    opacity: 1;
}

.product-item h4 {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.view-all {
    text-align: center;
}

/* 新闻中心 */
.news-center {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.news-center h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
    font-weight: 700;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #fff;
}

.news-content {
    padding: 25px;
}

.news-content h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.news-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: box;
    line-clamp: 2;
    box-orient: vertical;
    overflow: hidden;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #fff;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 13px;
    color: #fff;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav ul {
        gap: 20px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-details {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* About page gallery images */

@media (max-width: 992px) {
    .hero {
        height: 80vh;
    }
    .products-center .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .search input {
        width: 200px;
    }
    
    .search input:focus {
        width: 250px;
    }
    
    .about-us,
    .new-product,
    .products-center,
    .news-center {
        padding: 60px 0;
    }
    
    .about-text h2,
    .products-center h2,
    .news-center h2 {
        font-size: 28px;
    }
    
    .product-info h2 {
        font-size: 32px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .search input {
        width: 250px;
    }
    
    .search input:focus {
        width: 250px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .about-text h2,
    .products-center h2,
    .news-center h2 {
        font-size: 24px;
    }
    
    .product-info h2 {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Override global single-column on small screens for Products Center */
@media (max-width: 768px) {
    .products-center .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
