/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

header {
    background: #2c3e50;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 700;
    margin-left: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    margin-right: 20px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

.hero {
    background: #3498db;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.btn {
    background: #e67e22;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #d35400;
}

.container {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
}

.about, .services, .portfolio, .contact {
    padding: 50px 0;
}

.service-list, .portfolio-list {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.service-item, .portfolio-item {
    flex: 1;
    margin: 0 10px;
    padding: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* 轮播图样式 */
.slider {
    position: relative;
    width: 100vw;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 0;
    left: 50%;
    transform: translateX(-50%);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100vw;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
}

.contact-info {
    flex: 1;
    margin-right: 20px;
}

.map-container {
    flex: 2;
    height: 400px; /* 地图高度 */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative; /* 相对定位，用于标记 */
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例 */
}

.map-marker {
    position: absolute; /* 绝对定位，用于标记 */
    top: 50%; /* 调整标记位置 */
    left: 50%; /* 调整标记位置 */
    width: 20px;
    height: 20px;
    background-color: #e67e22;
    border-radius: 50%;
    transform: translate(-50%, -50%); /* 居中标记 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
} 