* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}
body {
    background: #f8f5f0;
    color: #333;
    line-height: 1.6;
}
.container {
    width: 1200px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
}

/* 头部 */
/* 头部 - 红色框区域 */
/* 头部 - 红色框区域（核心修复） */
.header-top {
    background: #fff;
    padding: 0; /* 去掉上下内边距，让图片紧贴 */
    border-bottom: none; /* 去掉边框，让图片无缝衔接 */
}

/* 容器：强制 1200px 居中 */
.header-top .container {
    max-width: 1200px !important; /* 强制最大宽度 1200 */
    width: 100% !important;
    margin: 0 auto !important; /* 居中对齐 */
    padding: 0 !important; /* 去掉内边距 */
    display: block !important; /* 确保块级显示 */
}

/* 门头图片：100% 铺满容器，高度自适应，保证不变形 */
.logo {
    width: 100%;
    margin: 0;
    padding: 0;
}

.logo img {
    width: 100%; /* 100% 铺满容器 */
    height: auto; /* 高度自适应（核心！不拉伸） */
    display: block; /* 去除图片底部间隙 */
    max-width: 1200px; /* 最大不超过 1200 */
    margin: 0 auto; /* 图片居中 */
}

/* 原来的 slogan 样式，我们直接不用了 */
.slogan {
    display: none; /* 彻底隐藏右侧文字 */
}
.logo {
    font-size: 22px;
    font-weight: bold;
    color: #2d3748;
}
.slogan {
    color: #666;
    font-size: 15px;
}
.logo {
    font-size: 22px;
    font-weight: bold;
    color: #2d3748;
}
.slogan {
    color: #666;
    font-size: 15px;
}

/* 导航 */
.nav {
    background: #2d3748;
}
.nav-list {
    display: flex;
    list-style: none;
}
.nav-list li a {
    display: block;
    padding: 8px 28px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: 0.2s;
}
.nav-list li a:hover {
    background: #4a5568;
}
@media (max-width: 768px) {
    .nav-list {
        flex-wrap: wrap;
    }
    .nav-list li a {
        padding: 10px 15px;
        font-size: 15px;
    }
}

/* 轮播图 */
.banner {
    width: 100%;
    position: relative;
    overflow: hidden;
}
.banner-wrap {
    position: relative;
    width: 100%;
}
.banner-item {
    display: none;
    width: 100%;
}
.banner-item.active {
    display: block;
}
.banner-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 轮播箭头 */
.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    user-select: none;
}
.banner-prev {
    left: 25px;
}
.banner-next {
    right: 25px;
}
@media (max-width: 768px) {
    .banner-prev, .banner-next {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
    }
    .banner-prev { left: 10px; }
    .banner-next { right: 10px; }
}

/* 轮播指示器 */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 6px;
    cursor: pointer;
}
.dot.active {
    background: #fff;
}

/* 主体内容 */
.main {
    padding: 0px 0;
}

/* 尾部 */
.footer {
    background: #fff;
    padding: 45px 0 20px;
    border-top: 1px solid #eee;
    margin-top: 30px;
}
.footer-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}
.footer-item {
    width: 23%;
}
.footer-item h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #2d3748;
}
.footer-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .footer-info {
        flex-wrap: wrap;
    }
    .footer-item {
        width: 48%;
        margin-bottom: 20px;
    }
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 14px;
}

/* 公共网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* 卡片公共样式 */
.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: 0.2s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}
.card h3 {
    padding: 12px;
    text-align: center;
    font-size: 15px;
    font-weight: normal;
    color: #333;
}