/* style.css - Shared Styles for all pages */

/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #34495e;
    --white-color: #ffffff;
    --success-color: #28a745;
    --whatsapp-color: #25d366;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}
html {
    scroll-behavior: smooth;
}
.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark-color);
}

/* 
 * 为标题设置默认的字体大小以满足浏览器最佳实践。
 * 特别为<section>等元素内的h1指定大小，以避免未来浏览器渲染不一致，并解决Lighthouse警告。
*/
h1,
article h1,
aside h1,
nav h1,
section h1 {
    font-size: 3rem;
}
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }


h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}
.section-title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 3rem auto;
    border-radius: 2px;
}
section {
    padding: 60px 0;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .3s ease;
    text-align: center;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background-color: #004494;
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* --- Navigation (Shared) --- */
.navbar .logo {
    font-size: 1rem;
    font-weight: normal;
    line-height: 1;
}

.navbar ul {
    list-style: none;
    display: flex;
    margin-left: 60px;
}

.navbar .logo img {
    height: 80px;
    width: auto;
    vertical-align: middle;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    z-index: 1000;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}
.navbar ul {
    list-style: none;
    display: flex;
}
.navbar ul li {
    margin-left: 25px;
}
.navbar ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color .3s ease;
    padding-bottom: 5px;
}
.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* --- Footer (Shared) --- */
footer {
    background: var(--dark-color);
    color: #ccc;
    text-align: center;
    padding: 2rem 0;
}
footer p {
    margin: 0;
}

/* --- WhatsApp Button (Shared) --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: var(--white-color);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, .25);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}
@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* --- STYLES FOR INDEX.HTML --- */

.hero {
    position: relative;
    height: 100vh;
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    background-color: var(--dark-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, .7);
    z-index: 0;
}


.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.hero .btn {
    margin: 0 10px;
}
#why-choose-us {
    background-color: var(--light-color);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 2rem;
}
.feature-card {
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
    overflow: hidden;
    text-align: center;
    padding: 30px 20px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
.feature-card svg {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: .5rem;
    color: var(--dark-color);
}
#product-catalog {
    text-align: center;
}
#product-catalog p {
    max-width: 600px;
    margin: 1rem auto 2rem auto;
    font-size: 1.1rem;
}
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
}
.app-item img {
    width: 45px;
    height: 45px;
    margin-bottom: 1.2rem;
    object-fit: contain;
}
.app-item-title {
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 500;
    line-height: 1.4;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}
.contact-info p {
    margin-bottom: 1rem;
}
.contact-info p strong {
    color: var(--dark-color);
}
.contact-form .form-group {
    margin-bottom: 15px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}
.contact-form textarea {
    resize: vertical;
    height: 120px;
}
.contact-form button {
    width: 100%;
    font-size: 1.1rem;
}


/* --- STYLES FOR PRODUCTS.HTML --- */
.page-header {
    padding-top: 140px;
    padding-bottom: 40px;
    background-color: var(--light-color);
    text-align: center;
}
.page-header h1 {
    font-size: 3rem;
    margin-bottom: .5rem;
}
.product-category {
    margin-bottom: 50px;
}
.product-category h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}
.image-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.gallery-item {
    width: 220px;
    height: 220px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .05);
    transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sticky-quote-btn {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 999;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.4);
    animation: pulse-quote-btn 2s infinite;
}
.sticky-quote-btn:hover {
    box-shadow: 0 12px 30px rgba(0, 86, 179, 0.6);
    transform: translateY(-50%) scale(1.05);
}
.sticky-quote-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}
@keyframes pulse-quote-btn {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.08); box-shadow: 0 15px 35px rgba(0, 86, 179, 0.5); }
    100% { transform: translateY(-50%) scale(1); }
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 20px;
}
.modal-content {
    background: var(--white-color);
    padding: 30px 40px;
    border-radius: 8px;
    max-width: 550px;
    width: 100%;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .2);
    animation: fadeIn .3s ease-in-out;
}
.modal-content h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.close-button:hover {
    color: #333;
}
.modal-form .form-group {
    margin-bottom: 15px;
}
.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}
.modal-form textarea {
    resize: vertical;
    height: 100px;
}
.modal-form button {
    width: 100%;
    font-size: 1.1rem;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.contact-cta-mobile {
    display: none;
}

/* --- NEW: Form Status Message Style --- */
.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

/* --- ▼▼▼ START: THANKS.HTML 样式 ▼▼▼ --- */
.thank-you-section {
    padding: 150px 0;
}
.thank-you-content {
    text-align: center;
}
.thank-you-content svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    fill: var(--success-color);
}
.thank-you-content h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
}
.thank-you-content .thank-you-subtitle {
    font-size: 1.2rem;
    margin-top: 1rem;
}
.thank-you-content .btn {
    margin-top: 2rem;
}
/* --- ▲▲▲ END: THANKS.HTML 样式 ▲▲▲ --- */


/* --- ▼▼▼ START: ABOUT.HTML 样式 ▼▼▼ --- */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}
.about-intro-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.gallery-image-wrapper {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    aspect-ratio: 1 / 1; 
}
.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-image-wrapper:hover img {
    transform: scale(1.05);
}
.about-intro-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}
.stats-section {
    background-color: var(--light-color);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.stat-item {
    text-align: center;
    padding: 20px;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}
.stat-text {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 10px;
}

/* New Logo Carousel Styles */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.logo-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}
.logo-carousel-container::before,
.logo-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}
.logo-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white-color), rgba(255,255,255,0));
}
.logo-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white-color), rgba(255,255,255,0));
}
.logo-carousel-track {
    display: flex;
    width: max-content; /* Let it be as wide as its content */
    animation: scroll 40s linear infinite; /* Adjust duration (40s) for speed */
}
.logo-carousel-container:hover .logo-carousel-track {
    animation-play-state: paused;
}
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px; /* Spacing between logos */
}
.partner-logo img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
/* End of Logo Carousel Styles */

.cta-section {
    background-color: var(--dark-color);
    color: var(--white-color);
    text-align: center;
}
.cta-section h2 {
    color: var(--white-color);
}
.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
/* --- ▲▲▲ END: ABOUT.HTML 样式 ▲▲▲ --- */


/* --- Responsive Styles (Shared) --- */
@media (max-width: 992px) {
    .feature-grid, .app-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .about-intro-grid { 
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .about-intro-text {
        order: -1; 
    }
    .stats-grid { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 768px) {
    .navbar .container { 
        flex-direction: column; 
        align-items: center; 
    }
    .navbar .logo { 
        margin-bottom: 10px; 
    }
    .navbar .logo img {
        height: 50px;
    }
    .navbar ul { 
        padding: 10px 0;
        margin-left: 0;
    }
    .navbar ul li { 
        margin: 0 10px; 
    }
    
    h2 { font-size: 2rem; }
    .hero { height: auto; padding: 150px 0 80px 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero .btn { width: 80%; margin-bottom: 10px; }
    .feature-grid { grid-template-columns: 1fr; }
    
    .page-header { padding-top: 160px; }
    .page-header h1 { font-size: 2rem; }
    .image-gallery-grid { justify-content: center; }
    .gallery-item { width: 150px; height: 150px; }
    
    .sticky-quote-btn { display: none; }
    .contact-cta-mobile { display: block; text-align: center; padding: 40px 20px; background-color: var(--light-color); }

    .whatsapp-float { width: 50px; height: 50px; right: 20px; bottom: 20px; }

    .stat-number { font-size: 2.5rem; }
    .partner-logo img { max-height: 45px; }
    .logo-carousel-container::before,
    .logo-carousel-container::after {
        width: 50px;
    }
}
@media (max-width: 480px) {
    .app-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .app-item-title { font-size: 0.9rem; }
    .gallery-item { width: calc(50% - 10px); height: auto; aspect-ratio: 1 / 1; }
    .about-intro-gallery { grid-template-columns: 1fr; } 
}