/* Basic Reset & Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #1a1a1a;        /* Dark background */
    --secondary-bg: #2a2a2a;      /* Slightly lighter dark for cards */
    --light-bg: #f0f0f0;          /* Light background for company section */
    --text-light: #e0e0e0;        /* Light text on dark background */
    --text-dark: #333333;         /* Dark text on light background */
    --accent-color: #007bff;      /* Vibrant blue for highlights */
    --accent-hover: #0056b3;      /* Darker blue on hover */
    --border-color: #444;         /* Subtle border for separation */
    --max-width: 1200px;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary-bg);
    overflow-x: hidden; /* Prevent horizontal scroll from padding */
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 {
    font-size: 3.5em;
    font-weight: 700;
}

h2 {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
}

h3 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
}

p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    margin-bottom: 1em;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.btn-text {
    color: var(--accent-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-text:hover {
    color: var(--accent-hover);
}


/* Header & Navigation */
header {
    background-color: rgba(26, 26, 26, 0.9); /* Semi-transparent dark header */
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.05em;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Sections General Styling */
section {
    padding: 100px 0;
    text-align: center;
}

.section-dark {
    background-color: var(--primary-bg);
    color: var(--text-light);
}

.section-light {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.section-light h2,
.section-light h3 {
    color: var(--text-dark);
}

.section-intro {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

/* Hero Section */
.hero-section {
    height: 90vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative; /* For potential overlay */
}


.hero-section .hero-bg-image {
    position: absolute; /* 让图片脱离文档流，悬浮在背景 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片覆盖整个区域 */
    z-index: 0; /* 确保图片在最底层 */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}


/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.product-card {
    background-color: var(--secondary-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 30px; /* Space for button */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.product-card h3 {
    padding: 0 25px;
    font-size: 1.6em;
    margin-bottom: 10px;
}

.product-card p {
    padding: 0 25px;
    font-size: 1em;
    margin-bottom: 20px;
}

.product-card .btn-small {
    margin-left: 25px;
}

/* Company Layout */
.company-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: left;
}

.company-layout .company-text {
    flex: 1;
}

.company-layout .company-text h2 {
    text-align: left;
    margin-bottom: 25px;
}

.company-layout .company-text p {
}

.company-layout .company-image {
    flex: 1;
    min-width: 400px;
}

.company-layout .company-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.support-item {
    background-color: var(--secondary-bg);
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.support-item .icon {
    font-size: 3.5em;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: block; /* Make sure it takes its own line */
}

.support-item h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.support-item p {
    font-size: 1em;
    margin-bottom: 25px;
}

/* Footer */
footer {
    background-color: #0d0d0d;
    color: #a0a0a0;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 3em;
    }
    h2 {
        font-size: 2.2em;
    }
    h3 {
        font-size: 1.5em;
    }
    .hero-content p {
        font-size: 1.2em;
    }
    .company-layout {
        flex-direction: column;
        text-align: center;
    }
    .company-layout .company-text h2 {
        text-align: center;
    }
    .company-layout .company-image {
        min-width: unset;
        width: 100%;
    }
    .product-grid, .support-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }
    .nav-links {
        display: none; /* For simplicity, hide nav links on mobile. A hamburger menu would be ideal here. */
    }
    .logo a {
        font-size: 1.5em;
    }
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 1.8em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    section {
        padding: 60px 0;
    }
    .product-card, .support-item {
        padding: 30px 20px;
    }
    .product-card h3, .support-item h3 {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.6em;
    }
    .hero-content p {
        font-size: 0.9em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.8em;
    }
    .company-layout .company-image img {
        margin-top: 30px;
    }

}

