/* 全局重置+基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", Arial, sans-serif;
}
body {
    color: #333;
    background: #fff;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: #2d8cf0;
    transition: all 0.3s;
}
a:hover {
    color: #1c69c0;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
ul {
    list-style: none;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2d8cf0;
    color: #fff;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.btn:hover {
    background: #1c69c0;
}

/* 头部导航 */
.header {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 999;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2d8cf0;
}
.nav ul {
    display: flex;
    gap: 30px;
}
.nav a {
    color: #333;
    font-size: 16px;
}
.nav a.active, .nav a:hover {
    color: #2d8cf0;
    border-bottom: 2px solid #2d8cf0;
}

/* 移动端导航适配 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 10px;
    }
    .nav ul {
        gap: 15px;
    }
}

/* 横幅banner */
.banner {
    background: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}
.banner h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #2d8cf0;
}
.banner p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* 板块标题 */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
}
.section-title h2 {
    font-size: 28px;
    color: #333;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #2d8cf0;
    margin: 10px auto;
}

/* 首页核心板块 */
.home-about {
    padding: 40px 0;
}
.home-about .container {
    display: flex;
    gap: 40px;
    align-items: center;
}
.home-about .text {
    flex: 1;
}
.home-about .text h3 {
    font-size: 24px;
    margin-bottom: 20px;
}
.home-about .text p {
    margin-bottom: 15px;
    color: #666;
}
.home-about .img {
    flex: 1;
}
.home-about .img img {
    width: 100%;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .home-about .container {
        flex-direction: column;
    }
}

/* 产品展示通用样式 */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0 60px;
}
.product-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product-item .info {
    padding: 20px;
}
.product-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.product-item p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 资讯列表通用样式 */
.news-list {
    padding: 20px 0 60px;
}
.news-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 20px;
}
.news-item:last-child {
    border: none;
}
.news-item .img {
    width: 200px;
    height: 120px;
    flex-shrink: 0;
}
.news-item .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.news-item .info {
    flex: 1;
}
.news-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.news-item .date {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}
.news-item p {
    color: #666;
    font-size: 14px;
}
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }
    .news-item .img {
        width: 100%;
        height: auto;
    }
}

/* 联系我们样式 */
.contact {
    padding: 40px 0 60px;
}
.contact .container {
    display: flex;
    gap: 40px;
}
.contact .info {
    flex: 1;
}
.contact .info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}
.contact .info ul {
    margin-bottom: 30px;
}
.contact .info li {
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact .info li i {
    color: #2d8cf0;
    font-size: 20px;
}
.contact .form {
    flex: 1;
}
.contact .form .form-item {
    margin-bottom: 20px;
}
.contact .form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}
.contact .form input, .contact .form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.contact .form textarea {
    height: 150px;
    resize: none;
}
@media (max-width: 768px) {
    .contact .container {
        flex-direction: column;
    }
}

/* 底部样式 */
.footer {
    background: #f8f9fa;
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.footer .col {
    flex: 1;
    min-width: 200px;
}
.footer .col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}
.footer .col ul li {
    margin-bottom: 10px;
}
.footer .col a {
    color: #666;
}
.footer .col a:hover {
    color: #2d8cf0;
}
.footer .copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 14px;
}