/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 头部样式 */
header {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    background-color: #E60012; /* Red color from the image */
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 8px;
    margin-right: 10px;
}

.logo-names {
    display: flex;
    flex-direction: column;
}

.logo-main-name {
    font-size: 20px; /* Adjust font size based on image */
    font-weight: bold;
    color: #000; /* Changed to pure black for main name */
    line-height: 1.2;
}

.logo-sub-name {
    font-size: 14px; /* Adjust font size based on image */
    color: #999; /* Changed to lighter gray for sub name */
    line-height: 1.2;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #C00;
}

.consult-btn {
    background-color: #C00;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.consult-btn:hover {
    background-color: #A00;
}

/* Hero Section */
#hero {
    /* background-image: url('https://via.placeholder.com/1920x600?text=Hero+Image'); */
    /* background-size: cover; */
    /* background-position: center; */
    color: #fff;
    text-align: center;
    padding: 0; /* Remove padding as slides will handle it */
    position: relative;
    margin-top: 61px; /* Adjust for fixed header */
    overflow: hidden; /* Hide overflowing slides */
    height: 600px; /* Define a fixed height for the slider */
}

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

#hero .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero .slide.active {
    opacity: 1;
}

#hero .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay for text readability */
}

#hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: left; /* Align text to left as in the image */
}

#hero .hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
}

#hero .hero-content .slogan {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ffeb3b; /* Yellow color for slogan */
}

#hero .hero-content .tech-info {
    font-size: 18px;
    margin-bottom: 30px;
    color: #fff;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start; /* Align buttons to left */
}

.hero-buttons .btn {
    background-color: #C00;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.hero-buttons .btn:hover {
    background-color: #A00;
}

.hero-buttons .btn-white {
    background-color: #fff;
    color: #C00;
}

.hero-buttons .btn-white:hover {
    background-color: #f0f0f0;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 2;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.navigation-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

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

.dot.active {
    background-color: #fff;
}

/* Company Intro */
#company-intro {
    padding: 50px 0;
    /* text-align: center; */ /* Remove center alignment from section */
    background-color: #f9f9f9;
}

#company-intro .company-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 50px; /* Space between columns */
    align-items: center;
    text-align: left; /* Align text to left within grid */
}

#company-intro .company-intro-content {
    padding-right: 20px; /* Add some space if needed */
}

#company-intro .badge {
    background-color: #e6ffe6; /* Light green background */
    color: #4CAF50; /* Green text color */
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: bold;
}

#company-intro h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

#company-intro .intro-text {
    font-size: 16px;
    line-height: 1.8;
    /* max-width: 800px; */ /* Remove max-width */
    margin-bottom: 30px;
    color: #555;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for features */
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.feature-item img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

#company-intro .btn {
    display: inline-block;
    background-color: #C00;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

#company-intro .btn:hover {
    background-color: #A00;
}

#company-intro .company-intro-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Products Section */
#products {
    padding: 50px 0;
    text-align: center;
}

#products h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

#products > p {
    font-size: 18px;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #C00;
}

.product-item ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.product-item ul li {
    font-size: 16px;
    margin-bottom: 5px;
    color: #555;
}

.product-item .btn-sm {
    display: inline-block;
    background-color: #C00;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.product-item .btn-sm:hover {
    background-color: #A00;
}

/* Cases Section */
#cases {
    padding: 80px 0;
    text-align: center;
    background-color: #f9f9f9;
}

#cases h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

#cases > p {
    font-size: 18px;
    margin-bottom: 40px;
}

/* 工程案例图片放大展示 */
#cases .case-grid {
    display: flex;
    justify-content: center;
    gap: 64px;
    max-width: 1500px;
    margin: 0 auto;
}

#cases .case-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 700px;
}

#cases .case-item h3 {
    font-size: 28px;
    margin-bottom: 18px;
    color: #222;
    font-weight: bold;
    text-align: left;
}

#cases .case-item img {
    width: 100%;
    height: 800px;
    object-fit: cover;
    border-radius: 4px;
}

/* Contact Section */
#contact {
    background-color: #C00;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

#contact h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #fff;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    text-align: left;
    font-size: 18px;
    line-height: 1.8;
}

.contact-info p {
    margin-bottom: 10px;
}

.qr-codes {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

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

.qr-item img {
    width: 150px;
    height: 150px;
    border: 5px solid #fff;
    border-radius: 8px;
    margin-bottom: 10px;
}

.qr-item p {
    font-size: 16px;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 40px 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-col p, .footer-col ul li {
    color: #ccc;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li a {
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #C00;
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    color: #ccc;
}

/* Product Detail Modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto; /* Centered */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be more responsive */
    max-width: 800px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close-button:hover,
.close-button:focus {
    color: #C00;
    text-decoration: none;
    cursor: pointer;
}

#modal-title {
    color: #C00;
    margin-bottom: 20px;
    font-size: 28px;
}

#modal-body {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* 新产品卡片风格 */
.new-product-style {
    align-items: flex-start;
}

.new-product-style .product-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 260px;
}

.new-product-style .product-item > h3 {
    min-height: 48px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.new-product-style .product-item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
    background: #ffe000;
}

.new-product-style .product-item > h3,
.new-product-style .product-item .product-features,
.new-product-style .product-item .btn-detail,
.new-product-style .product-item > p {
    background: #fff;
}

.new-product-style .product-item > p {
    padding: 0 22px 8px 22px;
    font-size: 15px;
    color: #444;
    margin: 0;
}

.new-product-style .product-item .product-features {
    list-style: none;
    padding: 0 22px;
    margin: 0 0 14px 0;
}

.new-product-style .product-item .product-features li {
    font-size: 14px;
    color: #222;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.new-product-style .product-item .checkmark {
    color: #1bc47d;
    font-weight: bold;
    margin-right: 7px;
    font-size: 16px;
}

.new-product-style .product-item .btn-detail {
    margin: 0 22px 22px 22px;
    padding: 10px 0;
    width: calc(100% - 44px);
    border: 1px solid #222;
    background: #fff;
    color: #222;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.new-product-style .product-item .btn-detail:hover {
    background: #222;
    color: #fff;
    border-color: #222;
}

@media (max-width: 1200px) {
    .new-product-style .product-item {
        max-width: 48vw;
    }
}
@media (max-width: 900px) {
    .new-product-style .product-item {
        max-width: 100%;
        min-width: 0;
    }
    .new-product-style {
        gap: 12px;
    }
}

@media (max-width: 1600px) {
    #cases .case-grid {
        max-width: 100%;
        gap: 32px;
    }
    #cases .case-item {
        max-width: 100%;
    }
    #cases .case-item img {
        height: 520px;
    }
}
@media (max-width: 1000px) {
    #cases .case-grid {
        flex-direction: column;
        gap: 16px;
    }
    #cases .case-item img {
        height: 300px;
    }
}

/* 品质保证区域图片缩略图美化 6:9比例 大图大间距 */
.quality-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    justify-content: center;
    margin-bottom: 18px;
}
.quality-gallery > div {
    background: #f7f7f9;
    border-radius: 24px;
    box-shadow: 0 2px 18px rgba(0,0,0,0.09);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 18px 10px 10px 10px;
    border: 1.5px solid #f0f0f0;
}
.quality-gallery img {
    width: 100%;
    height: 300px;
    aspect-ratio: 2/3;
    object-fit: contain;
    border-radius: 16px;
    background: #f6f6f6;
    display: block;
    box-shadow: none;
    margin-bottom: 10px;
    cursor: pointer;
}
.quality-gallery .quality-caption {
    width: 100%;
    border-top: 1px solid #ececec;
    margin-top: 6px;
    padding-top: 8px;
    font-size: 14px;
    color: #888;
    text-align: center;
    letter-spacing: 1px;
}
@media (max-width: 900px) {
    .quality-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .quality-gallery img {
        height: 150px;
    }
}
@media (max-width: 600px) {
    .quality-gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .quality-gallery img {
        height: 90px;
    }
} 