/* 前台样式 - 蓝色工业风格 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #003399;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

.clearfix {
    clear: both;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部栏 */
.top-bar {
    background-color: #0055aa;
    color: #fff;
    padding: 8px 0;
    font-size: 12px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.top-bar a {
    color: #fff;
}

/* 头部 */
.header {
    background-color: #fff;
    border-bottom: 3px solid #0066cc;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
}

.logo h1 {
    font-size: 24px;
    color: #0066cc;
    margin-left: 10px;
}

.logo h1 span {
    font-size: 12px;
    color: #999;
}

/* 导航菜单 */
.nav {
    background-color: #0066cc;
}

.nav ul {
    display: flex;
    justify-content: center;
}

.nav li {
    position: relative;
}

.nav a {
    display: block;
    color: #fff;
    padding: 15px 30px;
    font-size: 15px;
    transition: background-color 0.3s;
}

.nav a:hover,
.nav a.active {
    background-color: #0055aa;
}

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

/* Banner轮播 */
.banner {
    background-color: #e8f4fc;
    padding: 30px 0;
    margin-bottom: 30px;
}

.banner-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 5px;
}

.banner-slider img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* 面包屑导航 */
.breadcrumb-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
    font-size: 13px;
    color: #999;
}

.breadcrumb-nav a {
    color: #666;
}

.breadcrumb-nav a:hover {
    color: #0066cc;
}

/* 内容区域 */
.content-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.content-section h1 {
    font-size: 22px;
    color: #0066cc;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0066cc;
}

/* 内容区块 */
.section {
    margin-bottom: 40px;
}

.section-title {
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 22px;
    color: #0066cc;
}

.section-title .more {
    float: right;
    font-size: 14px;
    color: #666;
}

/* 公司简介 */
.company-intro {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.company-intro p {
    text-indent: 2em;
    line-height: 1.8;
    color: #666;
}

/* 产品展示 */
.product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-item {
    display: block;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    color: #333;
    text-decoration: none;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #0066cc;
}

.product-item .image {
    height: 180px;
    overflow: hidden;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item .image img {
    max-width: 90%;
    max-height: 90%;
}

.product-item .info {
    padding: 15px;
}

.product-item .name {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.product-item .model {
    font-size: 12px;
    color: #999;
}

.product-item .price {
    font-size: 16px;
    color: #e74c3c;
    font-weight: bold;
    margin-top: 10px;
}

.product-item .tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 3px;
}

/* 新闻列表 */
.news-list {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .image {
    width: 150px;
    height: 100px;
    overflow: hidden;
    border-radius: 5px;
    margin-right: 15px;
}

.news-item .info {
    flex: 1;
}

.news-item .title {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.news-item .title:hover {
    color: #0066cc;
}

.news-item .summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.news-item .date {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* 新闻详情 */
.news-detail {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-detail .title {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.news-detail .meta {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-detail .content {
    line-height: 1.8;
    color: #666;
}

.news-detail .content p {
    margin-bottom: 15px;
    text-indent: 2em;
}

/* 产品详情 */
.product-detail {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-detail .main-info {
    display: flex;
    margin-bottom: 30px;
}

.product-detail .image {
    width: 350px;
    height: 350px;
    flex-shrink: 0;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    cursor: pointer;
}

.product-detail .image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-detail .image:hover img {
    transform: scale(1.05);
}

.product-detail .info {
    flex: 1;
    padding-left: 30px;
}

.product-detail .name {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.product-detail .model {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.product-detail .description {
    line-height: 1.8;
    color: #666;
}

.product-detail .specs {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.product-detail .specs h3 {
    font-size: 18px;
    color: #0066cc;
    margin-bottom: 15px;
}

.specifications, .features {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.specifications h2, .features h2 {
    font-size: 18px;
    color: #0066cc;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.specifications p, .features p {
    line-height: 1.8;
    color: #666;
}

/* 图片灯箱 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
}

/* 分类导航 */
.category-nav {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-nav ul {
    display: flex;
    flex-wrap: wrap;
}

.category-nav li {
    margin-right: 15px;
}

.category-nav a {
    display: block;
    padding: 8px 20px;
    background-color: #f0f0f0;
    border-radius: 3px;
    color: #666;
}

.category-nav a:hover,
.category-nav a.active {
    background-color: #0066cc;
    color: #fff;
}

/* 分类筛选 */
.category-filter {
    margin-bottom: 20px;
}

.category-filter a {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f0f0f0;
    border-radius: 3px;
    color: #666;
    margin-right: 10px;
    margin-bottom: 8px;
}

.category-filter a:hover,
.category-filter a.active {
    background-color: #0066cc;
    color: #fff;
}

/* 页面双栏布局 */
.page-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.page-sidebar {
    width: 220px;
    flex-shrink: 0;
    background-color: #f8fafc;
    border-radius: 5px;
    padding: 0;
}

.page-main {
    flex: 1;
    min-width: 0;
}

/* 侧边栏分类导航 */
.sidebar-category {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.sidebar-category h3 {
    font-size: 16px;
    color: #fff;
    background-color: #0066cc;
    padding: 12px 20px;
    margin: 0;
}

.sidebar-category a {
    display: block;
    padding: 12px 20px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.sidebar-category a:last-child {
    border-bottom: none;
}

.sidebar-category a:hover,
.sidebar-category a.active {
    background-color: #e8f4fc;
    color: #0066cc;
    border-left: 3px solid #0066cc;
    padding-left: 17px;
}

/* 关于我们 */
.about-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.about-section {
    margin-bottom: 30px;
}

.about-section h3 {
    font-size: 20px;
    color: #0066cc;
    margin-bottom: 20px;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
}

.about-section p {
    line-height: 1.8;
    color: #666;
    text-indent: 2em;
}

.about-section .history-timeline {
    padding: 20px;
}

.about-section .history-item {
    display: flex;
    margin-bottom: 20px;
}

.about-section .year {
    width: 100px;
    font-size: 18px;
    color: #0066cc;
    font-weight: bold;
}

.about-section .event {
    flex: 1;
    color: #666;
}

/* 联系我们 */
.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contact-info h2, .contact-form h2 {
    font-size: 18px;
    color: #0066cc;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.contact-info p {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.8;
}

.contact-form {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 5px;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    background-color: #0066cc;
    color: #fff;
    padding: 10px 30px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.contact-form button:hover {
    background-color: #0055aa;
}

.contact-map {
    padding: 20px;
}

.contact-map h3 {
    font-size: 18px;
    color: #0066cc;
    margin-bottom: 15px;
}

.contact-map .info-item {
    margin-bottom: 10px;
    color: #666;
}

.contact-map .info-item strong {
    color: #333;
}

/* 招聘列表 */
.recruitment-list {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.recruitment-item {
    padding: 20px;
    border-bottom: 1px dashed #eee;
}

.recruitment-item:last-child {
    border-bottom: none;
}

.recruitment-item .position {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.recruitment-item .meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.recruitment-item .meta span {
    margin-right: 15px;
}

.recruitment-item .description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 下载列表 */
.download-list {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.download-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px dashed #eee;
}

.download-item:last-child {
    border-bottom: none;
}

.download-item .icon {
    width: 50px;
    height: 50px;
    background-color: #0066cc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-right: 15px;
    font-size: 24px;
}

.download-item .info {
    flex: 1;
}

.download-item .title {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.download-item .meta {
    font-size: 12px;
    color: #999;
}

.download-item .download-btn {
    background-color: #0066cc;
    color: #fff;
    padding: 8px 20px;
    border-radius: 3px;
}

.download-item .download-btn:hover {
    background-color: #0055aa;
}

/* 侧边栏 */
.sidebar {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar .widget {
    margin-bottom: 20px;
}

.sidebar .widget-title {
    font-size: 16px;
    color: #0066cc;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
    margin-bottom: 15px;
}

.sidebar .widget ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    color: #666;
}

.sidebar .widget ul li a:hover {
    color: #0066cc;
}

/* 底部 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer .widget {
    margin-bottom: 20px;
}

.footer .widget-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
}

.footer .widget p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.8;
}

.footer .widget ul li {
    margin-bottom: 10px;
}

.footer .widget ul li a {
    color: #ccc;
}

.footer .widget ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
}

.footer-bottom p {
    font-size: 12px;
    color: #999;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    display: block;
    padding: 8px 15px;
    margin-right: 5px;
    border: 1px solid #ddd;
    color: #666;
}

.pagination a:hover,
.pagination .current {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* 消息提示 */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.message.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.message.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .page-layout {
        flex-direction: column;
    }
    
    .page-sidebar {
        width: 100%;
    }
    
    .product-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .nav ul {
        flex-wrap: wrap;
    }
    
    .nav a {
        padding: 10px 20px;
    }
    
    .product-detail .main-info {
        flex-direction: column;
    }
    
    .product-detail .image {
        width: 100%;
    }
    
    .product-detail .info {
        padding-left: 0;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .product-list {
        grid-template-columns: 1fr;
    }
    
    .footer .container {
        grid-template-columns: 1fr;
    }
    
    .header .container {
        flex-direction: column;
        text-align: center;
    }
}