/* --- Global Reset & Basic Styling --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
    background-color: #f8f9fa; /* 非常浅的灰色背景 */
    color: #343a40; /* 深灰色文字 */
}

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

h1,
h2,
h3,
h4 {
    color: #212529; /* 更深的近黑色 */
    line-height: 1.3;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid #6c757d; /* 灰色调的装饰线 */
    padding-left: 10px;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* --- Header & Navigation --- */
header {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6; /* 浅色边框 */
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: #343a40;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #495057;
    font-weight: 500;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #212529;
    border-bottom-color: #212529;
}

nav ul li a.active {
    color: #212529;
    border-bottom-color: #212529;
    font-weight: 700;
}

/* --- Main Content Sections --- */
main {
    width: 100%;
}

.page-section {
    padding: 60px 0;
}

.alt-background {
    background-color: #ffffff;
}

/* Hero Section */
.hero {
    background-color: #e9ecef; /* 中性背景色 */
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    color: #6c757d; /* 柔和的辅助文字颜色 */
}

/* About Section */
#about .about-content ul {
    list-style-position: inside;
    padding-left: 10px;
}

#about .about-content ul li {
    margin-bottom: 10px;
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    background-color: #f8f9fa;
    padding: 30px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-align: center;
}

/* Contact Page */
.contact-info {
    max-width: 600px;
    text-align: center;
}
.contact-item {
    margin-top: 40px;
}

.contact-item h3 {
    border-left: none;
    padding-left: 0;
}

/* --- Footer --- */
footer {
    background-color: #343a40;
    color: #f8f9fa;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}
/* --- Image Section Styling --- */
.image-section {
    padding: 40px 0; /* 给图片上下留出空间 */
}

.image-section .container {
    display: flex; /* 让图片在容器中居中，如果有多张图片可以调整布局 */
    justify-content: center;
    align-items: center;
}

.full-width-image {
    max-width: 100%; /* 图片最大宽度为父容器的100% */
    height: auto; /* 保持图片比例 */
    display: block; /* 移除图片底部可能的额外空间 */
    border-radius: 8px; /* 稍微圆角，增加设计感 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* 略微的阴影效果 */
}

/* --- New Horizontal Contact Layout --- */
.contact-horizontal .container {
    display: flex;
    flex-wrap: wrap; /* 允许在小屏幕上换行 */
    gap: 40px; /* 图片和文字之间的间距 */
    align-items: center; /* 垂直居中对齐 */
    padding-top: 60px; /* 留出顶部空间 */
}

.contact-image-wrapper {
    flex: 1; /* 图片占据可用空间 */
    min-width: 300px; /* 最小宽度，防止图片过小 */
    text-align: center; /* 确保图片在自身容器内居中 */
}

.contact-main-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.contact-info-wrapper {
    flex: 1; /* 文字信息占据可用空间 */
    min-width: 300px; /* 最小宽度，防止文字区域过窄 */
    text-align: left; /* 文字内容左对齐 */
    padding-left: 20px; /* 与图片错开 */
}

.contact-info-wrapper h2 {
    text-align: left; /* 标题左对齐 */
    margin-bottom: 20px;
}

.contact-info-wrapper p {
    max-width: 500px; /* 限制段落宽度，防止过长 */
}

.contact-info-wrapper .contact-item {
    margin-top: 25px;
}

.contact-info-wrapper .contact-item h3 {
    border-left: 4px solid #6c757d; /* 保持与主页H3一致的装饰线 */
    padding-left: 10px;
    text-align: left;
    margin-bottom: 10px;
    margin-top: 0; /* 移除默认的H3上边距，因为它已经包含在contact-item的margin-top中 */
}
