/* --------------------
   Global Styles & Reset
   -------------------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4; /* 淡灰色背景 */
    color: #333; /* 主要文字颜色 */
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    color: #005A9C; /* 标题蓝色 */
    font-weight: 600;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

p {
    margin-bottom: 1em;
}

a {
    color: #007BFF; /* 链接蓝色 */
    text-decoration: none;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* 避免图片下方多余空隙 */
}

/* Container to center content and limit width */
main, .container { /* Added .container for flexibility */
    width: 90%;
    max-width: 1200px; /* 最大内容宽度 */
    margin: 20px auto;
    padding: 20px;
    background-color: #fff; /* 内容区域白色背景 */
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* 轻微阴影 */
}

/* --------------------
   Header & Navigation
   -------------------- */
header {
    background-color: #004A7C; /* 头部深蓝色 */
    color: #fff;
    padding: 1em 0;
    border-bottom: 3px solid #FF7F00; /* 橙色强调线 (可选) */
}

header div#logo-container, header > div:first-child { /* For logo and company name */
    display: flex;
    align-items: center;
    justify-content: center; /* Center logo and title */
    padding: 0 5%;
    text-align: center; /* Fallback for non-flex */
}

header #logo {
    max-height: 60px;  /* 您可能需要根据555.png的实际尺寸调整 */
    /* max-width: 150px; */ /* 如果logo较宽，可以取消注释并调整此项 */
    margin-right: 15px;
}

header h1 {
    color: #fff;
    font-size: 1.8em; /* Adjust as needed */
    margin: 0;
}

nav {
    background-color: #005A9C; /* 导航栏蓝色 */
    padding: 0.5em 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav ul li {
    display: inline-block; /* 横向导航 */
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    font-weight: 500;
    padding: 0.5em 0;
}

nav ul li a:hover {
    color: #FFD700; /* 导航悬停黄色 (可选) */
    text-decoration: none;
}

/* --------------------
   Main Content Sections
   -------------------- */
section {
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee; /* 分隔线 */
}

section:last-child {
    border-bottom: none;
}

/* Call to Action Buttons */
.cta-button {
    display: inline-block;
    background-color: #007BFF; /* 按钮蓝色 */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.1em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3; /* 按钮悬停深蓝色 */
    color: #fff;
    text-decoration: none;
}

/* --------------------
   Homepage Specific Styles
   -------------------- */
#hero {
    background-color: #005A9C; /* 可替换为背景图片 */
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-bottom: none;
}

#hero h2 {
    color: #fff;
    font-size: 2.8em;
    margin-bottom: 0.5em;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
}

/* Preview sections on homepage */
#services-preview > div, 
#projects-preview > div {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

#services-preview h3, 
#projects-preview h3 {
    margin-top: 0;
    color: #005A9C;
}

/* Flexbox for service/project previews if you want columns */
@media (min-width: 768px) {
    #services-preview, #projects-preview {
        display: flex;
        flex-wrap: wrap;
        gap: 20px; /* Space between items */
    }
    #services-preview > div, 
    #projects-preview > div {
        flex: 1 1 calc(50% - 20px); /* Two columns, accounting for gap */
    }
}


/* --------------------
   Contact Page Specific Styles
   -------------------- */
#contact-details ul {
    list-style-type: none;
    padding: 0;
}

#contact-details ul li {
    margin-bottom: 0.8em;
    font-size: 1.1em;
}

#contact-details ul li strong {
    display: inline-block;
    min-width: 120px; /* Align labels */
    color: #004A7C;
}

#map-location img { /* For the map placeholder image */
    border: 1px solid #ddd;
    margin-top: 10px;
}

/* Basic form styling (if using the optional contact form) */
#contact-form-general form div {
    margin-bottom: 15px;
}
#contact-form-general label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
#contact-form-general input[type="text"],
#contact-form-general input[type="email"],
#contact-form-general textarea {
    width: calc(100% - 22px); /* Account for padding and border */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}
#contact-form-general textarea {
    resize: vertical;
}


/* --------------------
   Job Detail Page Specific Styles
   -------------------- */
#job-detail article {
    padding: 15px;
}

#job-detail h2 { /* Job title */
    font-size: 2.2em;
    margin-bottom: 0.2em;
}

#job-detail > article > p:first-of-type { /* "发布时间" */
    font-style: italic;
    color: #666;
    margin-bottom: 1.5em;
}

#job-detail > article > ul:first-of-type { /* Key job info list */
    list-style-type: none;
    padding: 0;
    margin-bottom: 2em;
    border: 1px solid #eee;
    padding: 1em;
    background: #f9f9f9;
    border-radius: 5px;
}
#job-detail > article > ul:first-of-type li {
    margin-bottom: 0.5em;
}
#job-detail > article > ul:first-of-type li strong {
    color: #005A9C;
}


#job-detail section { /* Responsibilities, Qualifications etc. */
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px dashed #ccc; /* Dashed separator for sections within job detail */
    border-bottom: none; /* Remove main section separator within article */
}
#job-detail section:first-of-type { /* e.g. Responsibilities, no top border if first */
    border-top: none; 
}


#job-detail section h3 { /* Section titles like "岗位职责" */
    font-size: 1.4em;
    color: #004A7C;
    margin-bottom: 0.8em;
}

#job-detail section ul {
    list-style-type: disc; /* Standard bullet points */
    padding-left: 25px;
}

#job-detail section ul li {
    margin-bottom: 0.5em;
}

#how-to-apply {
    background-color: #e9f5ff; /* Light blue background for application instructions */
    padding: 20px;
    border-radius: 5px;
    margin-top: 2em;
}
#how-to-apply p strong {
    color: #005A9C;
}
#how-to-apply a {
    font-weight: bold;
}


/* --------------------
   Footer
   -------------------- */
footer {
    background-color: #333; /* 页脚深灰色 */
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    font-size: 0.9em;
}

footer p {
    margin: 0.5em 0;
}

footer a {
    color: #00A0E9; /* 页脚链接亮蓝色 */
}
footer a:hover {
    color: #fff;
}

/* --------------------
   Basic Responsiveness (Mobile First ideas)
   -------------------- */
@media (max-width: 768px) {
    header #logo {
        max-height: 45px; /* Smaller logo on mobile */
    }
    header h1 {
        font-size: 1.3em;
    }
    nav ul li {
        display: block; /* Stack navigation items */
        margin: 10px 0;
    }
    main, .container {
        width: 95%;
        padding: 10px;
    }
    #hero h2 {
        font-size: 2em;
    }
    #services-preview > div, 
    #projects-preview > div {
        flex-basis: 100%; /* Full width on small screens */
    }
}