* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: '微软雅黑', sans-serif;
}

/* ========== 表头 ========== */
.header {
    background-color: #005a8c;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #ffd700;
}

.phone {
    background-color: #e67e22;
    padding: 6px 15px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.phone:hover {
    background-color: #d35400;
}

/* ========== 下拉菜单 ========== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #005a8c;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    color: white !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #003f5c;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ========== 轮播图 ========== */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #e0e0e0;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 100%;
}

.slide img {
    width: 100%;
    height: 750px;
    object-fit: cover;
    display: block;
    transform: scale(0.99);
    transform-origin: center center;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.prev { left: 15px; }
.next { right: 15px; }

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ========== 主要内容区域 ========== */
.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.main-content h1 {
    font-size: 28px;
    color: #005a8c;
    margin-bottom: 20px;
}

.main-content h2 {
    font-size: 24px;
    color: #005a8c;
    margin: 20px 0 10px;
}

.main-content p {
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

/* ========== 关于我们 - 侧边栏 ========== */
.about-sidebar {
    float: left;
    width: 220px;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-right: 30px;
}

.about-sidebar a {
    display: block;
    padding: 10px;
    color: #005a8c;
    text-decoration: none;
    border-radius: 4px;
}

.about-sidebar a:hover,
.about-sidebar a.active {
    background-color: #005a8c;
    color: white;
}

.about-content {
    overflow: hidden;
}

/* 公司简介 */
.company-intro p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ========== 荣誉/资质列表 - 左图右文 ========== */
.honor-list,
.qualification-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.honor-item,
.qualification-item {
    display: flex;
    gap: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.honor-item:hover,
.qualification-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.honor-image,
.qualification-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.honor-image img,
.qualification-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: #999;
    font-size: 12px;
    text-align: center;
}

.honor-info,
.qualification-info {
    flex: 1;
}

.honor-info h3,
.qualification-info h3 {
    font-size: 18px;
    color: #005a8c;
    margin-bottom: 8px;
}

.honor-year {
    font-size: 13px;
    color: #e67e22;
    margin-bottom: 8px;
}

.honor-desc,
.qualification-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* 关联企业列表 */
.affiliated-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.affiliated-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.affiliated-item h3 {
    font-size: 18px;
    color: #005a8c;
    margin-bottom: 10px;
}

.affiliated-item p {
    margin: 5px 0;
    color: #555;
}

/* ========== 产品列表页 ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.product-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;   /* 从 cover 改为 contain */
    background-color: #f5f5f5;  /* 留白区域背景色 */
    display: block;
}

.product-item h3 {
    font-size: 18px;
    padding: 12px 12px 0;
    color: #005a8c;
}

.product-item .model {
    font-size: 14px;
    color: #666;
    padding: 5px 12px;
}

.product-item .price {
    font-size: 20px;
    font-weight: bold;
    color: #e67e22;
    padding: 5px 12px 12px;
}

/* 分类侧边栏 */
.category-sidebar {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.category-sidebar a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px 10px 0;
    background-color: #f5f5f5;
    color: #005a8c;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
}

.category-sidebar a:hover {
    background-color: #005a8c;
    color: white;
}

/* ========== 新闻列表页 ========== */
.news-list {
    margin-top: 30px;
}

.news-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    display: flex;
    gap: 20px;
}

.news-item img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}

.news-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.news-item h3 a {
    color: #005a8c;
    text-decoration: none;
}

.news-item h3 a:hover {
    text-decoration: underline;
}

.news-item .date {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.news-item .excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ========== 在线留言页面 ========== */
.contact-info {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.contact-info h3 {
    margin-top: 15px;
    margin-bottom: 8px;
    color: #005a8c;
}

.contact-form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #005a8c;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group input[type="file"] {
    padding: 8px 0;
}

#image_preview {
    margin-top: 10px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* ========== 招聘信息页面 ========== */
.job-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.job-item h3 {
    color: #005a8c;
    margin-bottom: 10px;
}

/* ========== 页脚多列布局 ========== */
.footer {
    background-color: #005a8c;   /* 深色背景 */
    color: #fff;                  /* 深色文字 */
    padding: 40px 20px 20px;
    margin-top: 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 160px;
}

.footer-col h3 {
    color: #ffd700;               /* 标题金黄色 */
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #fff;                  /* 链接白色 */
    text-decoration: none;
    font-size: 13px;
}

.footer-col ul li a:hover {
    color: #ffd700;               /* 悬停金黄色 */
    text-decoration: underline;
}

.contact-info li {
    color: #fff;
    font-size: 13px;
    margin-bottom: 8px;
    list-style: none;
    font-weight: normal;
}

.contact-info .phone {
    color: #fff;
    font-weight: normal;
}

.contact-info .email {
    color: #fff;
    font-weight: normal;
}

.contact-info .address {
    color: #fff;
    font-weight: normal;
    font-size: 12px;
}

/* 二维码 */
.qrcode {
    margin-top: 15px;
    text-align: center;
}

.qrcode p {
    font-size: 12px;
    margin-bottom: 8px;
    color: #333;
}

.qrcode-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.qrcode-text {
    font-size: 12px;
    color: #333;
    margin-top: 8px;
    text-align: center;
}

/* 友情链接 */
.footer-links {
    max-width: 1200px;
    margin: 20px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
    text-align: center;
    font-size: 12px;
}

.footer-links span {
    color: #fff;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: #ffd700;
}

/* 版权信息 */
.footer-copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

.qrcode-placeholder {
    width: 100px;
    height: 100px;
    background-color: #2a3a4a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    margin: 0 auto;
}

/* ========== 强制修复联系我们列 ========== */
.footer-col .contact-info,
.footer-col .contact-info li,
.footer-col .contact-info .phone,
.footer-col .contact-info .email,
.footer-col .contact-info .address {
    color: #ffffff !important;
    background-color: transparent !important;
    font-weight: normal !important;
    font-size: 13px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 8px 0 !important;
}

.footer-col .contact-info li:first-child {
    margin-top: 0 !important;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .nav a {
        font-size: 13px;
    }
    
    .slide img {
        height: 300px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-item img {
        width: 100%;
        height: auto;
    }
    
    .about-sidebar {
        float: none;
        width: 100%;
        margin-bottom: 20px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .about-sidebar a {
        display: inline-block;
        padding: 8px 15px;
    }
    
    .honor-item,
    .qualification-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .honor-image,
    .qualification-image {
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    /* 资料下载页面 */
    .download-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .download-item {
        display: flex;
        align-items: center;
        gap: 20px;
        background-color: #f9f9f9;
        padding: 15px 20px;
        border-radius: 8px;
        transition: box-shadow 0.3s;
    }

    .download-item:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .download-icon {
        font-size: 32px;
        min-width: 50px;
        text-align: center;
    }

    .download-info {
        flex: 1;
    }

    .download-info h3 {
        font-size: 16px;
        color: #005a8c;
        margin-bottom: 5px;
    }

    .download-info p {
        font-size: 13px;
        color: #666;
        margin-bottom: 5px;
    }

    .download-size {
        font-size: 12px;
        color: #999;
    }

    .btn-download {
        background-color: #005a8c;
        color: white;
        padding: 8px 16px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 13px;
        transition: background-color 0.3s;
    }

    .btn-download:hover {
        background-color: #003f5c;
    }

    @media (max-width: 768px) {
        .download-item {
            flex-wrap: wrap;
        }
    
        .download-action {
            width: 100%;
            text-align: center;
        }
    }
}