/* Global Styles */
:root {
    --primary-color: #1e50a2;
    --secondary-color: #ff6600;
    --dark-color: #333333;
    --light-color: #f4f4f4;
    --white-color: #ffffff;
    --text-color: #444444;
    --border-color: #dddddd;
    --footer-color: #2c3e50;
    --navbar-color: #1e50a2;
    --font-family: 'Microsoft YaHei', Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--white-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header Styles */
header {
    background-color: var(--navbar-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo img {
    max-height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 28px;
    color: var(--white-color);
    margin: 0;
}

nav {
    position: relative;
}

nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: center !important;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

nav ul li a.active,
nav ul li a:hover {
    color: var(--primary-color, #0056b3);
}

nav ul li a.active::after,
nav ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color, #0056b3);
}

.mobile-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.divider {
    height: 3px;
    width: 80px;
    background-color: var(--primary-color);
    margin: 0 auto;
    margin-top: 15px;
}

/* About Preview Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image img {
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Products Preview Section */
.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category {
    text-align: center;
    background-color: var(--light-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category:hover {
    transform: translateY(-10px);
}

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category:hover .category-image img {
    transform: scale(1.1);
}

.category h3 {
    padding: 20px 0;
    font-size: 20px;
    color: var(--dark-color);
}

/* Advantages Section */
.advantages {
    background-color: var(--light-color);
}

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

.advantage {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.advantage:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.advantage h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Footer Styles */
footer {
    background-color: var(--footer-color);
    color: var(--white-color);
    padding: 60px 0 20px;
}

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

.footer-contact h3,
.footer-links h3,
.footer-qrcode h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3::after,
.footer-links h3::after,
.footer-qrcode h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-contact ul li {
    margin-bottom: 10px;
}

.footer-contact ul li i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--white-color);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-qrcode img {
    width: 120px;
    height: auto;
    margin-top: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* Page Header */
.page-header {
    background-color: var(--light-color);
    padding: 40px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.breadcrumb {
    color: var(--text-color);
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

/* About Page Styles */
.company-intro {
    margin-bottom: 60px;
}

.mission-vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mission, .vision {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 5px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    left: 0;
    margin: 40px 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-year {
    position: absolute;
    width: 80px;
    height: 80px;
    right: -40px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-year {
    left: -40px;
    right: auto;
}

.timeline-content {
    padding: 20px;
    background-color: var(--white-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.team-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
}

/* Products Page Styles */
.category-tabs {
    margin-bottom: 40px;
}

.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
}

.tabs li {
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    color: var(--text-color);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tabs li.active,
.tabs li:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.products-list {
    margin-bottom: 60px;
}

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

.product-item {
    background-color: var(--white-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.product-image {
    height: 220px;
    overflow: hidden;
}

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

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-info p {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 14px;
}

.product-inquiry {
    background-color: var(--light-color);
    text-align: center;
    padding: 60px 0;
}

.inquiry-content {
    max-width: 700px;
    margin: 0 auto;
}

.inquiry-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.inquiry-content p {
    margin-bottom: 30px;
    font-size: 18px;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
}

.contact-item .text h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.required {
    color: #e74c3c;
}

.map-container {
    margin-top: 30px;
}

.map-placeholder {
    height: 400px;
    background-color: var(--light-color);
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.address-info {
    text-align: center;
}

.address-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.address-info p {
    font-size: 16px;
}

.address-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .mission-vision-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .mission {
        margin-bottom: 30px;
    }

    .timeline::before {
        left: 40px;
    }

    .timeline-item {
        width: 100%;
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-year {
        left: 0;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-year {
        left: 0;
    }

    .timeline-content {
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    nav ul {
        position: absolute;
        flex-direction: column;
        background-color: white;
        width: 100%;
        top: 100%;
        left: 0;
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 15px 0;
        display: none;
        text-align: center;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 8px 0;
    }
    
    nav ul li a {
        padding: 8px 0;
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }

    .contact-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .tabs li {
        padding: 8px 12px;
        font-size: 14px;
    }
} 