/* --- 1. 全局和排版基础 --- */
:root {
    --color-white: #FFFFFF;
    --color-dark: #333333;
    --color-light-gray: #f8f8f8;
    --color-accent: #1A476A; /* 海军蓝强调色 */
    --color-success: #008000;
    --font-family: 'Inter', sans-serif;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片覆盖整个容器，并裁剪超出部分 */
    display: block;
    border-radius: 4px; /* 匹配容器的圆角 */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
}

section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3em; }
h2 { font-size: 2em; text-align: center; margin-bottom: 60px; }
h3 { font-size: 1.4em; }

p { margin-bottom: 20px; font-weight: 300; }

/* --- 2. 导航栏 (Header) --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    border-bottom: 1px solid var(--color-light-gray);
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-dark);
}

nav a {
    text-decoration: none;
    color: var(--color-dark);
    margin-left: 25px;
    font-weight: 400;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--color-accent);
}

.cta-link {
    background-color: var(--color-accent);
    color: var(--color-white) !important;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
}

/* --- 3. 首屏英雄区 (Hero Section) --- */
.hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 80vh; /* 保证占据大部分屏幕高度 */
    text-align: left;
    padding-top: 50px;
    padding-bottom: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2em;
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-image-placeholder {
    flex: 1;
    height: 450px; /* 占位符高度 */
    background-color: var(--color-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #999;
}

/* 核心行动按钮 (CTA Button) 样式 */
.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #0d2c43; /* 更深的颜色 */
    transform: translateY(-2px);
}

/* --- 4. 产品亮点 (Features) --- */
.features-section {
    background-color: var(--color-light-gray);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.feature-item h3 {
    color: var(--color-accent);
    margin-bottom: 10px;
}

.feature-item p {
    font-weight: 400;
}

/* --- 5. 画廊/案例 (Gallery) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 300px;
    background-color: var(--color-light-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
    /* 实际使用时，请用 background-image 替换此处的占位背景 */
}

/* --- 6. 收集资料表单 (Contact Form) --- */
.contact-section {
    text-align: center;
}

.contact-section p {
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    padding: 40px;
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: var(--font-family);
    transition: border-color 0.3s;
}

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

.contact-form .cta-button {
    width: 100%;
    margin-top: 15px;
}

.form-message {
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
}

.form-message.success {
    color: var(--color-success);
}

.form-message.error {
    color: #ff0000;
}

/* --- 7. 页脚 (Footer) --- */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 30px 5%;
    text-align: center;
    font-size: 0.9em;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

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

/* --- 8. 响应式设计 (Media Queries) --- */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        order: 2;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-image-placeholder {
        order: 1;
        width: 100%;
        height: 300px;
        margin-bottom: 40px;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 1.8em; }
    section { padding: 60px 5%; }

    .header {
        flex-direction: column;
        padding-bottom: 10px;
    }

    .header nav {
        margin-top: 15px;
    }

    .header nav a {
        margin: 0 10px;
    }

    .cta-link {
        display: none; /* 在小屏幕上隐藏导航栏CTA，避免拥挤 */
    }
}

