/* 基础设置 */
:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --border-color: #ccc;
    --font-family-sans: "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #555;
}

/* 布局与组件 */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 4rem;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: "Bitcount Grid Double", system-ui;
    font-size: 50px;
    font-weight: 350;
    font-style: normal;
    color:red;
}

.main-nav ul {
    list-style: none;
    font-family: "Bitcount Grid Double", system-ui;
    font-size: 27px;
    font-weight: 370;
    font-style: normal;
    display: flex;
    gap: 2.5rem;
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background-image: url('images/hero-bg.jpg'); /* 替换为你的图片路径 */
    background-size: cover; /* 关键修改：让图片完整显示 */
    background-position: center; /* 将图片居中 */
    background-repeat: no-repeat; /* 防止图片重复 */
}

.hero-content h2 {
    font-family: "Bitcount Grid Double", system-ui;
    font-size: 65px;
    font-weight: 300;
    font-style: normal;
    color: white;
}
.hero-content p {
    color: white;
    font-family: "Bitcount Grid Double", system-ui;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
}

.content-section {
    padding: 4rem 2rem;
    max-width: 960px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 350;
    font-style: normal;
    position: relative;
    font-family: "Bitcount Grid Double", system-ui;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #eee;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        justify-content: center;
        margin-top: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }
}

/* 幻灯片图库 */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 960px; /* 与内容区域宽度一致 */
    margin: 2rem auto;
    overflow: hidden; /* 隐藏超出容器的图片 */
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-wrapper img {
    width: 100%;
    max-height: 500px; /* 限制最大高度 */
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

.slider-container button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.slider-container button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-container .prev-btn {
    left: 10px;
    border-radius: 5px;
}

.slider-container .next-btn {
    right: 10px;
    border-radius: 5px;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

.about-image {
    max-width: 50%; /*限制最大宽度 */
    height: auto;
    display: block;
    margin: 2rem auto 0; /* 居中显示，并保留上边距 */
    border: 1px solid var(--border-color);
}