/* Global Styles */
:root {
    --primary-color: #ffffff;
    --secondary-color: #0056b3;
    --accent-color: #e63946;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --dark-gray: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-color);
}

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

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo-img {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-links a:hover {
    color: var(--secondary-color);
    background-color: rgba(0, 86, 179, 0.1);
}

.nav-links a.active {
    color: var(--secondary-color);
    background-color: rgba(0, 86, 179, 0.1);
}

/* Products Hero Section */
.products-hero {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-gray));
    color: var(--primary-color);
    height: 120px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 80px;
    padding: 20px 0;
}

.products-hero .container {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
}

.products-hero h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
}

.products-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Products Grid Section */
.products-grid-section {
    padding: 4rem 0;
    background-image: url('/assets/backgrounds/pattern.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

.products-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.products-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin: 2rem auto;
}

.product-card {
    background-color: var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 400px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.product-content p {
    margin-bottom: 0.5rem;
}

.product-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.product-feature {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.learn-more-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    margin-top: auto;
    transition: background-color 0.3s ease;
    height: 36px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.learn-more-btn:hover {
    background-color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-hero {
        height: 100px;
        margin-top: 90px;
        padding: 15px 0;
    }
    
    .products-hero .container {
        max-width: 350px;
    }
    
    .products-hero h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-img {
        max-height: 40px;
    }
    
    .products-hero {
        height: 80px;
        margin-top: 85px;
        padding: 10px 0;
    }
    
    .products-hero .container {
        max-width: 300px;
    }
    
    .products-hero h1 {
        font-size: 1.8rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    margin: 8% auto;
    width: 60%;
    max-width: 800px;
    animation: modalFadeIn 0.3s ease;
}

.modal-video {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    padding-top: 56.25%; /* 16:9 宽高比 */
}

.modal-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2;
}

.close-modal:hover {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 80%;
        margin: 12% auto;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 90%;
        margin: 15% auto;
    }
    
    .close-modal {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }
}

/* Prosys Modal Specific Styles */
#prosys-modal .modal-content {
    padding: 0;
}

/* Header Section */
.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-title {
    color: #F5A623;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
}

.modal-brand {
    color: #F5A623;
    font-size: 12px;
    margin: 0;
}

.modal-subtitle {
    color: #000000;
    font-size: 12px;
    text-align: center;
    width: 80%;
    margin: 10px auto 0;
}

/* Main Section */
.modal-main {
    height: 300px;
    background-image: url('assets/backgrounds/cityscape.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.modal-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.modal-main-title {
    color: #F5A623;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    z-index: 1;
    max-width: 40%;
}

.modal-features {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-features li {
    color: #000000;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.modal-features li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #F5A623;
    border-radius: 50%;
    margin-right: 10px;
}

.modal-icon {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    z-index: 1;
}

/* Content Section */
.modal-content-section {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.modal-content-title {
    color: #F5A623;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.modal-function-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.modal-function-list li {
    color: #000000;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.modal-function-list li::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 2px;
    background-color: #F5A623;
    margin-right: 10px;
}

.modal-house-icon {
    width: 50px;
    height: 50px;
    position: relative;
}

.modal-house-icon::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-color: rgba(224, 247, 250, 0.5);
    border-radius: 50%;
    z-index: -1;
}

/* Footer */
.modal-footer {
    padding: 20px;
    text-align: center;
    color: #000000;
    font-size: 12px;
}

/* Hover Effects */
.modal-features li:hover,
.modal-function-list li:hover {
    color: #F5A623;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }

    .modal-main {
        height: 200px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .modal-main-title {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .modal-features {
        text-align: left;
    }

    .modal-content-section {
        flex-direction: column;
    }

    .modal-house-icon {
        margin: 20px auto;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-features li,
    .modal-function-list li {
        font-size: 12px;
    }

    .modal-subtitle {
        font-size: 10px;
    }
}

/* Company Description Section */
.company-description {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.company-description .container {
    max-width: 800px;
}

.company-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
}

@media (max-width: 768px) {
    .company-description {
        padding: 40px 0;
    }
    
    .company-description p {
        font-size: 1rem;
        padding: 0 20px;
    }
}

/* Products Section */
.products {
    padding: 5rem 0;
    background-color: var(--primary-color);
} 