* {
    padding: 0;
    margin: 0;
    box-sizing: border-box; /* 新增：确保元素尺寸包含边框和内边距 */
}

body {
    font-size: 12px;
    font-family: "microsoft yahei";
    color: #000000;
    background-color: #FFFFFF;
}

ul, ol, li {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 14px;
}

img, input, select, textarea {
    vertical-align: middle;
}

img {
    border: none;
    max-width: 100%; /* 新增：确保图片不溢出容器 */
    height: auto;    /* 新增：保持图片比例 */
}

a {
    color: #fff;
    text-decoration: none;
}

.clear {
    clear: both;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* 核心修改1：内容容器自适应 */
.content {
    width: 100%;          /* 改为100%宽度 */
    max-width: 1200px;    /* 限制最大宽度 */
    margin: 0 auto;
    padding: 10px;        /* 新增：增加内边距避免内容贴边 */
}

/* 核心修改2：移除所有不必要的边框 */
.nav, .banner, .main, .left, .l, .le, .ri, .right {
    border: none !important; /* 强制覆盖原有边框 */
}

/* 导航栏优化 */
.nav {
    width: 100%;
    height: auto; /* 改为自动高度 */
    background-color: #333333;
    overflow: hidden;
}

.nav ul li {
    float: left;
    width: 10%;
    height: 60px; /* 缩小高度适应移动端 */
    text-align: center;
    line-height: 60px;
}

.nav ul li a {
    font-size: 16px; /* 缩小字体适应移动端 */
}

/* 核心修改3：图片容器自适应 */
.banner {
    width: 100%;
    height: auto;
    margin: 10px 0; /* 增加间距 */
}

.banner img {
    width: 100%;
    display: block; /* 解决图片底部间隙 */
}

/* 核心修改4：主内容区响应式调整 */
.main {
    width: 100%;
    height: auto; /* 改为自动高度 */
    overflow: hidden;
}

.left, .right {
    width: 100% !important; /* 移动端强制垂直排列 */
    float: none;           /* 清除浮动 */
    margin: 10px 0;
}

.l, .le, .r, .ri {
    width: 100% !important;
    float: none; /* 清除浮动 */
    margin: 10px 0;
    height: auto; /* 自动高度 */
}

.r h1, .ri h1 {
    font-size: 24px; /* 缩小标题字体 */
    margin: 15px auto;
}

.r p, .ri p {
    font-size: 14px; /* 缩小正文字体 */
    line-height: 1.5;
}

/* 移动端响应式设计 */
@media screen and (min-width: 768px) {
    /* PC端恢复原有布局 */
    .content {
        padding: 20px;
    }
    .left {
        width: 80%;
        float: left;
    }
    .right {
        width: 20%;
        float: left;
    }
    .l, .le {
        width: 50%;
        height: 400px; /* 恢复固定高度 */
    }
    .r, .ri {
        width: 40%;
        margin-left: 5%;
    }
    .nav ul li a {
        font-size: 21px; /* 恢复PC端字体大小 */
    }
}

.footer {
    width: 100%;
    height: 60px;
    overflow: hidden;
    text-align: center;
    line-height: 60px;
    background-color: green;
}

.footer p {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}