/* --- 全局和基本样式 --- */
:root {
    --primary-color: #C0C0C0;    /* 典雅银灰 - 高亮点缀色 */
    --secondary-color: #8D99AE;  /* 灰蓝色 - 次要文字/图标 */
    --background-color: #0B132B; /* 午夜蓝 - 主背景 */
    --text-color: #F0F8FF;       /* 爱丽丝蓝 - 主要文字 */
    --card-bg: #1C2541;          /* 深石板蓝 - 卡片背景 */
    --border-color: #415A77;      /* 边框颜色 */
    --metal-gradient: linear-gradient(145deg, #2a3a5b, #1c2541); /* 新的金属质感渐变 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
    border-bottom: none;
}

.section:nth-child(even) {
    background-color: var(--card-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    filter: brightness(1.2);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 动态效果 --- */
.reveal {
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 1s, opacity 1s;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* --- 页眉 --- */
.header {
    background: rgba(11, 19, 43, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.navigation ul {
    list-style: none;
    display: flex;
}

.navigation ul li {
    margin-left: 30px;
}

.navigation ul li a {
    color: var(--text-color);
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 0;
    position: relative;
}

.navigation ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.navigation ul li a:hover::after {
    width: 100%;
    left: 0;
}

.language-switcher button {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.language-switcher button:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

/* --- Banner --- */
.banner {
    padding-top: 80px;
    height: 600px;
    position: relative;
    overflow: hidden;
    background-color: var(--background-color);
}

.banner .carousel .carousel-item {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    visibility: hidden;
}

.banner .carousel .carousel-item.active {
    opacity: 1;
    visibility: visible;
}

.banner .carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    background: transparent;
    padding: 0;
    width: 80%;
    max-width: 800px;
}

.carousel-caption h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.carousel-caption p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 2;
}

.carousel-controls span {
    cursor: pointer;
    color: white;
    background: rgba(28, 37, 65, 0.5);
    padding: 10px 15px;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.carousel-controls span:hover {
    background: rgba(28, 37, 65, 0.8);
}

/* --- 关于我们 --- */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text, .about-video {
    flex: 1;
}

.about-video video {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.factory-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    margin-top: 60px;
}

.factory-item img {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.factory-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(11, 19, 43, 0.5);
}

.factory-item h3 {
    margin-top: 15px;
    color: var(--secondary-color);
}

/* --- 产品展示 --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative; /* Crucial for overlay positioning */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(11, 19, 43, 0.6);
    border-color: var(--primary-color);
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 5px 5px 0 0;
}

.product-item:hover img {
    transform: scale(1.1); /* Add a slight zoom effect on hover */
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.product-info p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    min-height: 44px; /* 设定一个最小高度防止卡片高度不一 */
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 37, 65, 0.9); /* Semi-transparent overlay */
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.product-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.product-specs {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.product-specs li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.details-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--background-color);
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.details-btn:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
    color: var(--background-color); /* Ensure text color remains on hover */
}

/* --- 成功案例 --- */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
    color: #fff;
    transition: transform 0.4s ease;
}

.case-item:hover {
    transform: scale(1.05);
}

.case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}

.case-item:hover img {
    filter: brightness(0.4);
}

.case-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(11, 19, 43, 0.9) 0%, rgba(0,0,0,0) 100%);
    transform: translateY(50%);
    transition: transform 0.4s ease;
}

.case-item:hover .case-item-content {
    transform: translateY(0);
}

.case-item-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.case-item-content p {
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
    color: var(--secondary-color);
}

.case-item:hover .case-item-content p {
    opacity: 1;
}

/* --- 客户评价 (卡片翻转) --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: transparent;
    height: 250px;
    perspective: 1000px;
}

.testimonial-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.testimonial-card:hover .testimonial-card-inner {
    transform: rotateY(180deg);
}

.testimonial-card-front, .testimonial-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.testimonial-card-front {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.testimonial-card-front img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.testimonial-card-front h3 {
    color: var(--text-color);
    margin-bottom: 5px;
}

.testimonial-card-front p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.testimonial-card-back {
    background: var(--primary-color);
    color: var(--background-color);
    transform: rotateY(180deg);
    font-style: italic;
    font-size: 1.1rem;
    font-weight: bold;
}

/* --- 我们的优势 --- */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.advantage-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.advantage-item h3 {
    margin-bottom: 10px;
}

.advantage-item p {
    color: var(--secondary-color);
}

/* --- 资质与认证 --- */
.certification-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.cert-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: default;
}

.cert-item i {
    font-size: 4rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.cert-item span {
    font-size: 1rem;
    font-weight: bold;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-10px);
}

.cert-item:hover i,
.cert-item:hover span {
    color: var(--primary-color);
}

/* --- 行动号召 (CTA) --- */
.cta {
    background: var(--primary-color);
    color: var(--background-color);
    text-align: center;
    padding: 60px 20px;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--background-color);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--background-color);
}

.cta-button:hover {
    background: transparent;
    color: var(--background-color);
    transform: scale(1.05);
}

/* --- 合作伙伴 --- */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    text-align: center;
}

.partner-item {
    background: var(--card-bg);
    padding: 25px 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-10px);
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(192, 192, 192, 0.2);
}

.partner-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.partner-item:hover i {
    color: var(--background-color);
}

.partner-item span {
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.partner-item:hover span {
    color: var(--background-color);
}

/* --- 合作流程 --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.process-step-item {
    background: var(--card-bg);
    padding: 30px 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease-in-out;
}

.process-step-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(192, 192, 192, 0.15);
    border-color: var(--primary-color);
}

.process-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.process-step-item:hover .process-icon {
    transform: scale(1.2);
}

.process-step-item h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.process-step-item p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* --- FAQ --- */
.faq-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

.faq-item {
    background: var(--card-bg);
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
}
.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    font-weight: bold;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    color: var(--secondary-color);
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 15px 20px;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

/* --- 联系我们 --- */
.contact-wrapper {
    display: flex;
    gap: 40px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
}
.contact-info, .contact-form {
    flex: 1;
}
.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--secondary-color);
}
.contact-info i {
    color: var(--primary-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}
.social-media {
    margin-top: 20px;
}
.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.social-media a i {
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.social-media a:hover {
    background: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
    transform: scale(1.1); /* 增加轻微放大效果 */
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
}

.contact-form .form-row {
    display: flex;
    gap: 15px;
}

.contact-form .form-row input {
    margin-bottom: 0;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.contact-form button {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: var(--primary-color);
    color: var(--background-color);
    font-weight: bold;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.contact-form button:hover {
    filter: brightness(1.2);
}

/* --- 页脚 --- */
.footer {
    background: #000;
    padding: 50px 0 20px;
    color: var(--secondary-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-about {
    max-width: 350px;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: var(--secondary-color);
}
.footer-col ul li a:hover {
    color: var(--primary-color);
}
.footer-col p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.footer-col p i {
    margin-right: 10px;
    color: var(--primary-color);
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* --- WhatsApp 浮动图标 --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- Catalog Page Specific Styles --- */
.pdf-container {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background-color: var(--background-color);
    min-height: 800px;
}

.pdf-container embed {
    display: block;
}

.pdf-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.pdf-note a {
    font-weight: bold;
    text-decoration: underline;
}



/* Responsive Design & Hamburger Menu */
.hamburger, .nav-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    z-index: 9999;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 992px) {
    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--card-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 4rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 9999;
        overflow-y: auto;
        visibility: hidden;
    }

    .navigation.active {
        right: 0;
        visibility: visible;
    }

    .navigation ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1.5rem;
    }

    .navigation ul li a {
        font-size: 1.1rem;
    }

    .hamburger {
        display: block;
    }
    
    .nav-close-btn {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .about-content, .contact-wrapper {
        flex-direction: column;
    }

    .product-grid, .case-grid, .testimonial-grid, .advantage-grid, .partner-grid, .process-grid, .certification-grid, .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0.5rem 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Lightbox Modal Styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1002; /* Sit on top */
    padding-top: 60px;
    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.9); /* Black w/ opacity */
    transition: opacity 0.4s ease;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .lightbox-content {
        width: 90%;
    }
}

/* --- 响应式设计 --- */
@media (max-width: 992px) {
    /* 移除 display: none; 以便导航菜单可以通过 active 类显示 */
    .product-grid, .case-grid, .testimonial-grid, .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-content { flex-direction: column; }
    .contact-wrapper { flex-direction: column; }
    .factory-display { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-about {
        max-width: 100%;
    }
    
    .footer-logo {
        text-align: center;
    }
    .product-grid, .case-grid, .testimonial-grid, .advantage-grid, .partner-grid, .process-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid { grid-template-columns: 1fr; }
    .header .container {
        flex-direction: column;
        gap: 10px;
    }
    .carousel-caption h2 { font-size: 2rem; }
    .carousel-caption p { font-size: 1.2rem; }
}