/* 基础样式 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #ffffff;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* 头部样式 */
header {
    /* 设置背景颜色为#009dff */
    background: #009dff;
    /* 设置文字颜色为#ffffff */
    color: #ffffff;
    /* 设置内边距为20px */
    padding: 20px 0;
    /* 设置底部边框颜色为#e8491d，宽度为3px */
    border-bottom: #1de820 3px solid;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 设置header标签下的h1标签的样式 */
header h1 {
    /* 将h1标签向左浮动 */
    float: left;
    /* 设置h1标签的外边距为0 */
    margin: 0;
}

header nav {
    float: right;
    margin-top: 10px;
}

header nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    padding: 0 20px;
}

header nav a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

/* 当鼠标悬停在header nav中的a标签上时，或者a标签处于active状态时，改变其颜色和字体粗细 */
header nav a:hover,
header nav a.active {
    color: #000000;
    /* 改变颜色为#e8491d */
    font-weight: bold;
    /* 改变字体粗细为加粗 */
}





/* 主要内容区 */
main {
    padding: 20px 0;
    min-height: 400px;
}

/* 英雄区域 */
/* 定义一个名为hero的类 */
.hero {
    /* 设置背景颜色为#e8491d */
    background: #e8491d;
    /* 设置文字颜色为#ffffff */
    color: #848484;
    /* 设置内边距为30px */
    padding: 30px;
    /* 设置文字居中对齐 */
    text-align: center;
    /* 设置下边距为20px */
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    background: #35424a;
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.btn:hover {
    background: #e8491d;
    color: #ffffff;
}

/* 特性区域 */
.features {
    display: flex;
    flex-wrap: wrap;
    /* 允许换行 */
    justify-content: space-between;
    margin: 20px 0;
    gap: 15px;
    /* 使用gap替代margin控制间距 */
}

.feature {
    flex: 1 1 calc(33.33% - 20px);
    /* 基础宽度，考虑间距 */
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 250px;
    /* 最小宽度 */
}

.feature h3 {
    color: #e8491d;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature p {
    margin: 0;
    font-size: 0.9rem;
    color: #ffffff;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .feature {
        flex: 1 1 calc(50% - 15px);
        /* 中等屏幕下每行两个 */
    }
}

@media (max-width: 768px) {
    .features {
        flex-direction: column;
        /* 手机屏幕下垂直排列 */
        gap: 10px;
    }

    .feature {
        flex: 1 1 100%;
        /* 占满宽度 */
        min-width: auto;
        padding: 15px;
        margin: 0;
        /* 移除margin */
    }

    .feature h3 {
        font-size: 1.1rem;
    }

    .feature p {
        font-size: 0.85rem;
    }
}

/* 服务样式 */
.service {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.service h3 {
    color: #35424a;
    border-bottom: 2px solid #e8491d;
    padding-bottom: 10px;
}

/* 页脚样式 */
footer {
    background: #18445f;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

/* 响应式设计 */
@media(max-width: 768px) {

    header h1,
    header nav {
        float: none;
        text-align: center;
    }

    header nav ul li {
        display: block;
        padding: 10px;
    }

    .features {
        flex-direction: column;
    }

    .feature {
        margin: 10px 0;
    }
}

/* 浮动窗样式 */
.floating-container {
    position: fixed;
    width: 100px;
    height: 100px;
    z-index: 9999;
    cursor: pointer;
    will-change: transform;
    pointer-events: auto;
    transition: transform 0.1s linear;
}

.floating-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

/* 悬浮微动效果 */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .floating-container {
        width: 50px;
        height: 50px;
    }
}






/* 消除超链接下划线并设置灰黑色字体 */
a {
    text-decoration: none;
    /* 消除下划线 */
    color: #000;
    /* 设置字体颜色为灰黑色 */
}

/* 可选：添加悬停效果 */
a:hover {
    color: #000;
    /* 悬停时颜色稍亮 */
    text-decoration: underline;
    /* 悬停时显示下划线（可选） */
}

/* 可选：访问过的链接样式 */
a:visited {
    color: #000;
    /* 保持与普通链接相同颜色 */
}

/* 可选：活动链接样式 */
a:active {
    color: #222222;
    /* 点击时颜色稍暗 */
}






/* 基础样式 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #000000;
    background-color: #ffffff;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* 头部样式 */
header {
    background: #005c96;
    color: #ffffff;
    padding: 20px 0;
    border-bottom: #1de820 3px solid;
}

header a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 20px 0 20px;
}

header #branding {
    float: left;
}

header #branding h1 {
    margin: 0;
}

header nav {
    float: right;
    margin-top: 10px;
}

header .highlight,
header .current a {
    color: #e8491d;
    font-weight: bold;
}

header a:hover {
    color: #cccccc;
    font-weight: bold;
}

/* 汉堡菜单按钮 - 默认隐藏 */
.menu-toggle {
    display: none;
    cursor: pointer;
    float: right;
    padding: 10px;
    margin-top: 5px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #828282;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 响应式布局 - 手机屏幕 */
@media (max-width: 768px) {
    header {
        height: 60px; /* 高度缩减一半（假设原高度为120px） */
        padding: 10px 0; /* 调整内边距 */
    }

    .container {
        width: 90%;
    }

    header #branding,
    header nav {
        float: none;
        text-align: left; /* 文字左对齐 */
        width: 100%;
    }

    #branding h1 {
        margin: 0;
        font-size: 18px; /* 字号缩减一半（假设原字号为36px） */
        color: #ffffff;
        line-height: 40px; /* 调整行高以适应新高度 */
        text-align: left; /* 文字左对齐 */
        padding-left: 15px; /* 添加左内边距 */
    }

    header nav {
        display: none;
        margin-top: 10px; /* 减少上边距 */
        background-color: #f8f8f8; /* 添加背景色 */
        position: absolute;
        top: 60px; /* 与header高度一致 */
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    header nav.active {
        display: block;
    }

    header nav ul {
        padding: 0;
        margin: 0;
    }

    header nav li {
        display: block;
        padding: 10px 15px; /* 添加左右内边距 */
        border-bottom: 1px solid #e1e1e1; /* 调整边框颜色 */
    }

    header nav li a {
        display: block;
        padding: 5px 0;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        cursor: pointer;
    }

    /* 汉堡菜单动画 */
    .menu-toggle .bar {
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}




/* 服务特色 */
.service-features {
            margin: 60px 0 40px;
        }

        .service-features h2 {
            text-align: center;
            margin-bottom: 40px;
            font-size: 24px;
            color: #35424a;
            position: relative;
            padding-bottom: 15px;
        }

        .service-features h2::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: #e8491d;
        }







        /* 更好的响应式文字处理方式 */
html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
    font-size: 50%; /* 所有rem单位自动缩小一半 */
    }
}