/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ad1f24; /* 主色调 */
    --secondary-color: #ffffff; /* 次要颜色，如白色 */
    --text-color: #333333; /* 文本颜色 */
    --background-color: #f4f9fd; /* 背景颜色 #f9e5e6*/
    --link-color: #ad1f24; /* 链接颜色 */
    --hover-color: #8c1b20; /* 悬停效果颜色 */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 1rem 0rem; /* 增加内边距，使内容更舒适 */
}

header {
    background: #ad1f24; /* 红色导航栏  原来是蓝色导航栏 #1e90ff*/
    color: white;
    padding: 0rem 0;
	border-bottom: 2px solid var(--secondary-color); /* 添加底边 */
}

.header-content {
    display: flex;
    align-items: center;
	gap: 1rem; /* 为Logo和标题之间添加间距 */
    flex: 1; /* 使header-content占据可用空间 */
    
}

.logo {
    max-width: 70px; /* 根据实际Logo大小调整 */
    height: auto;
    margin-right: 1rem; /* 为Logo和标题之间添加一些间距 */
}

header h1 {
    display: inline-block;
	margin:0;
}

nav ul {
    list-style: none;
    float: right;
	margin-top:-15px;
}

nav ul li {
    display: inline-block;
    margin-left: 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background 0.3s;
}

nav ul li a:hover {
    background: var(--hover-color); /* 淡蓝色悬停效果 */
}

/* 英雄部分（Hero Section） */
.hero {
    position: relative; /* 确保绝对定位的元素相对于英雄部分 */
    height: 500px; /* 固定高度，可以根据需要调整 */
    background: url('images/hero-image.jpg') no-repeat center center/cover; /* 使用高分辨率图片 */
    color: var(--secondary-color);
    text-align: center;
    padding-top: 100px; /* 确保文本有足够的空间 */
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* 确保背景图片在不同屏幕尺寸下自适应 */
@media (max-width: 768px) {
    .hero {
        height: auto; /* 在小屏幕上，让英雄部分的高度根据内容自动调整 */
        padding-top: 100px; /* 减少顶部内边距 */
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
	header {
        flex-direction: column;
        align-items: center; /* 在小屏幕上垂直居中对齐 */
    }

    .header-content {
        margin-bottom: 1rem; /* 在小屏幕上为标题和导航之间添加间距 */
        flex-direction: column; /* 在小屏幕上垂直排列 */
        align-items: center; /* 水平居中对齐 */
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 添加一个半透明的覆盖层，使文本更易读 */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* 半透明黑色覆盖层 */
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2; /* 确保文本和其他内容在覆盖层之上 */
}

#serviceList {
    font-family: Arial, sans-serif;
    line-height: 1;
    margin-bottom: 10px;
	margin-top:40px;
}

#serviceList strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    color: #2c3e50;
}

#serviceList ol {
    padding-left: 20px;
}

#serviceList li {
    margin-bottom: 10px;
	list-style-type: circle;
}

#serviceList ul {
    padding-left: 20px;
    list-style-type: circle;
}

#serviceList ul li {
    margin-bottom: 5px;
}

section {
    padding: 2rem 0;
}

section h2 {
    margin-bottom: 1rem;
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 0.5rem;
}

form input,
form textarea {
    padding: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    margin-top: 1rem;
    padding: 0.5rem;
    background: var(--link-color);/* 原来的颜色#1e90ff; */
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: var(--link-color);/* 原来的颜色#1c86ee; */
}

footer {
    background:  var(--link-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

footer a {
    color: var(--secondary-color); /* 链接颜色 */
    text-decoration: none;
    margin-left: 0.5rem; /* 为链接添加一点间距 */
}

footer a:hover {
    text-decoration: underline; /* 悬停时显示下划线 */
}