/* style.css */
:root {
    --primary-color: #007AFF; /* 类似苹果的蓝色 */
    --text-color: #333;
    --secondary-text-color: #555;
    --bg-color: #ffffff;
    --light-gray-bg: #f8f8f8;
    --border-color: #eee;
    --header-height: 70px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-top: var(--header-height); /* 为固定导航栏留出空间 */
}

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

/* --- Header / Navigation --- */
header {
    background-color: rgba(255, 255, 255, 0.9); /* 半透明效果 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}
/* 你可以用图片替换文字Logo */
/* .logo img { height: 40px; } */

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

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none; /* 默认隐藏 */
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
}

/* --- Sections --- */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 600;
}

section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* --- Hero Section (首页) --- */
.hero {
    background-color: var(--light-gray-bg); /* 替换为背景图片 */
    background-image: url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    height: calc(80vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Gray semi-transparent overlay */
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.hero p {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 30px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #000;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin: 5px;
    cursor: pointer;
}

.hero-btn {
    color: #fff;
}

.btn:hover {
    background-color: #005bb5; /* 鼠标悬停颜色加深 */
}

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

.btn-secondary:hover {
    background-color: rgba(0, 122, 255, 0.1);
}


/* --- Grid Layouts (用于服务、文化等) --- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.grid-item {
    padding: 20px;
}

.grid-item i { /* 用于放图标，可以使用 Font Awesome 或 SVG */
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block; /* 占位，替换为实际图标 */
    height: 40px; /* 占位 */
    width: 40px; /* 占位 */
    background: #eee; /* 占位 */
    margin: 0 auto 15px auto; /* 占位 */
    border-radius: 50%; /* 图标背景圆形 */
}


.grid-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.grid-item p {
    font-size: 0.95rem;
    color: var(--secondary-text-color);
}


/* --- Product Section --- */
.product-feature {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}
.product-feature:nth-child(even) {
    flex-direction: row-reverse;
}
.product-feature-text {
    flex: 1;
}
.product-feature-image {
    flex: 1;
    text-align: center;
}
.product-feature-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    object-fit: contain;
}
.product-feature-image .placeholder { /* 图片占位符样式 */
    width: 100%;
    height: 300px;
    background-color: #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

/* --- Technology / Patents Table --- */
.tech-table-container {
    overflow-x: auto; /* Make table scrollable on small screens */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: var(--light-gray-bg);
    font-weight: 600;
}

tbody tr:nth-child(even) {
    background-color: var(--light-gray-bg);
}

/* --- News Section --- */
.news-item {
    background-color: var(--light-gray-bg);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.news-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.news-item .meta {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin-bottom: 15px;
}
.news-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.news-item a:hover {
    text-decoration: underline;
}

/* --- Contact Section --- */
.contact-details {
    max-width: 600px; /* Limit the width of the contact details */
    margin: 0 auto; /* Center the contact details */
    text-align: left; /* Align text to the left within the container */
}

.contact-details p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-details strong {
    display: inline-block;
    width: 150px;
    text-align: right;
    padding-right: 10px;
}


#map-placeholder {
    height: 400px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-style: italic;
    margin-top: 40px;
    border-radius: 8px;
}

/* --- Footer --- */
footer {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
    font-size: 1rem;
}

footer p {
    margin-bottom: 0;
}

footer a {
    color: var(--primary-color);
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    body {
        padding-top: var(--header-height);
    }

    header .container {
        padding: 0 15px;
    }

    .menu-toggle {
        display: block; /* Show hamburger menu */
        z-index: 1001; /* Above nav links */
    }

    .nav-links {
        display: none; /* Hide nav links by default */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex; /* Show nav links when active */
    }

    .nav-links li {
        margin: 15px 0;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .hero {
        height: calc(70vh - var(--header-height));
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-feature {
        flex-direction: column !important; /* Stack image and text */
        gap: 30px;
    }
    .product-feature-image .placeholder {
        height: 250px;
    }

    .contact-details strong {
        display: block; /* Stack label and value */
        width: auto;
        margin-bottom: 5px;
    }
}