/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-color: #f5f5f5;
    --second-bg-color: #ffffff;
    --text-color: #333333;
    --main-color: #007bff;
    --accent-color: #0056b3;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: auto; /* 由内容撑开高度 */
    padding: 6rem 9%; /* 增加上下内边距，保持板块呼吸感 */
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 4rem;
}

.heading span {
    color: var(--main-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: none;
    background: var(--accent-color);
}

.btn-outline {
    display: inline-block;
    padding: 1rem 2.8rem;
    border: 0.2rem solid var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--main-color);
    font-weight: 600;
    transition: .5s ease;
}

.btn-outline:hover {
    background: var(--main-color);
    color: #fff;
}

/* 头部导航已移除 */

/* 首页 Banner */
.home {
    min-height: 60vh; /* 调整高度为 60vh */
    display: flex;
    justify-content: center;
    align-items: center;
    /* 引用本地图片 */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/banner.jpg') no-repeat center center/cover;
    /* 注意：如果图片加载失败，背景色会显示。实际项目中应替换为本地图片或可靠的CDN */
    background-color: #333; 
}

.home-content {
    text-align: center;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.home-content p {
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
    color: #eee;
}

/* 关于我们 */
.about {
    background: var(--second-bg-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-img {
    flex: 1 1 35%; /* 从 40% 减小到 35% */
    text-align: center; /* 确保图片居中 */
}

.about-img img {
    width: 100%;
    max-width: 400px; /* 限制最大宽度，防止在大屏上过大 */
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* 移除旧的占位符样式 */
/* .about-img .placeholder-img { ... } */

.about-text {
    flex: 1 1 60%;
}

.about-text h3 {
    font-size: 2.6rem;
}

.about-text p {
    font-size: 1.6rem;
    margin: 1rem 0;
    line-height: 1.8;
}

/* 核心业务 */
.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-box {
    flex: 1 1 30rem;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
}

.service-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.service-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.service-box h3 {
    font-size: 2.6rem;
    margin: 1rem 0;
}

.service-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

/* 联系我们 */
.contact {
    background: var(--second-bg-color);
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

/* 页脚 */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--main-color);
}

.footer-text p {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-text p a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.footer-text p a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--second-bg-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--second-bg-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--main-color);
}

/* 媒体查询 - 响应式设计 */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    section {
        padding: 4rem 3% 2rem;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    .home {
        flex-direction: column;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .about {
        flex-direction: column-reverse;
    }
    
    .about-content {
        flex-direction: column;
    }

    .about-img {
        width: 100%;
    }

    .services h2 {
        margin-bottom: 3rem;
    }

    .contact form .input-box input {
        width: 100%;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .contact form .input-box input {
        width: 100%;
    }
}
