/* 全局样式 */
body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #fffaf0; /* 淡红色背景 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #c00; /* 主红色 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff; /* 白色文字 */
    text-decoration: none;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: #fff; /* 白色文字 */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffeb3b; /* 悬停时黄色 */
}

/* 主要内容区域 */
main {
    margin-top: 100px;
}

/* 首页英雄区域 */
.hero {
    background-color: #ffebee; /* 淡红色背景，与关于我们页面一致 */
    color: #c00; /* 红色文字 */
    text-align: center;
    padding: 5rem 1rem;
    position: relative;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: #c00; /* 红色按钮 */
    color: #fff; /* 白色文字 */
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #8c0000; /* 悬停时深红色 */
    color: #fff;
}

/* 产品中心页面样式 */
.products-header {
    background-color: #ffebee; /* 淡红色背景 */
    padding: 3rem 0;
    text-align: center;
}

.products-header h1 {
    color: #c00; /* 红色标题，与网站其他重要标题统一 */
    margin: 0;
    font-size: 2.5rem;
}

.products-intro {
    text-align: center;
    margin: 2rem 0;
    font-size: 1.1rem;
    color: #666; /* 灰色介绍文字，与首页统一 */
}

.section-title {
    color: #c00;
    text-align: center;
    margin: 3rem 0 2rem 0;
    font-size: 2rem;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #c00;
    margin: 10px auto;
}

.products-grid,
.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-category,
.application-category {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 0 15px rgba(192, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-category:hover,
.application-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(192, 0, 0, 0.2);
}

.product-category h3,
.application-category h3 {
    color: #c00;
    margin-top: 0;
    font-size: 1.3rem;
}

.product-category p,
.application-category p {
    color: #666;
    margin-bottom: 0;
}

.products-section,
.application-section {
    margin-bottom: 2rem;
}

/* 产品图片样式 */
.product-image {
    height: 200px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 1rem;
    cursor: pointer;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-category:hover .product-image img {
    transform: scale(1.05);
}

/* 图片放大功能样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.close:hover,
.close:focus {
    color: #bbb;
}

/* 特色服务区域 */
.features {
    display: flex;
    flex-wrap: wrap;
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    flex: 1;
    min-width: 250px;
    padding: 2rem;
    text-align: center;
    margin: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(192, 0, 0, 0.2);
    transition: transform 0.3s;
    background-color: #fff;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 3rem;
    color: #c00; /* 红色图标 */
    margin-bottom: 1rem;
}

.feature h3 {
    color: #c00; /* 红色标题 */
    margin-bottom: 1rem;
}

/* 首页产品展示区域 */
.products-showcase {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products-showcase .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.products-showcase .product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 250px; /* 固定宽度为250px，不伸缩 */
}

.products-showcase .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(192, 0, 0, 0.2);
}

.products-showcase .product-image {
    height: 180px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.products-showcase .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.products-showcase .product-card:hover .product-image img {
    transform: scale(1.05);
}

.products-showcase .product-info {
    padding: 1.5rem;
    text-align: center;
}

.products-showcase .product-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
}

.products-showcase .product-info p {
    margin: 0.5rem 0 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 关于我们页面 */
.about-header {
    background-color: #ffebee; /* 淡红色背景 */
    padding: 3rem 0;
    text-align: center;
}

.about-header h1 {
    color: #c00; /* 红色标题，与网站其他重要标题统一 */
}

.about-content {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 20px;
}

.about-content h2 {
    color: #c00; /* 红色标题 */
    text-align: center;
    margin-bottom: 2rem;
}

.about-content h3 {
    color: #c00; /* 红色标题 */
}

.team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
    margin: 1rem;
    flex: 1;
    min-width: 250px;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #c00; /* 红色边框 */
}

/* 新闻列表 */
.news-header {
    background-color: #ffebee; /* 更改为淡红色背景 */
    padding: 3rem 0;
    text-align: center;
}

.news-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #c00; /* 红色标题，与网站其他重要标题统一 */
}

.header-intro {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666; /* 灰色介绍文字，与首页统一 */
    opacity: 0.9;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.news-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(192, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #ffebee;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(192, 0, 0, 0.15);
}

.news-item-content {
    padding: 2rem;
}

.news-item h3 {
    margin-top: 0;
    color: #c00; /* 红色标题 */
}

.news-item h3 a {
    color: #c00; /* 红色链接 */
    text-decoration: none;
    transition: color 0.3s;
}

.news-item h3 a:hover {
    color: #8c0000;
}

.news-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.news-summary {
    color: #666;
    margin-bottom: 1.5rem;
}

.news-link {
    color: #c00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.news-link:hover {
    color: #8c0000;
    text-decoration: underline;
}

/* 新闻详情页面 */
.news-detail-header {
    background-color: #c00;
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.news-detail-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.news-detail-content {
    max-width: 800px;
    margin: 0 auto 2rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(192, 0, 0, 0.1);
}

.news-navigation {
    text-align: center;
    margin-bottom: 2rem;
}

/* 荣誉资质页面 */
.honors-header {
    background-color: #ffebee; /* 淡红色背景，与其他页面保持一致 */
    padding: 3rem 0;
    text-align: center;
}

.honors-header h1 {
    color: #c00; /* 红色标题，与网站其他重要标题统一 */
    margin: 0;
    font-size: 2.5rem;
}

.honors-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(192, 0, 0, 0.1);
    margin: 2rem 0;
}

.honors-content h2 {
    color: #c00; /* 红色标题 */
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffcdd2;
}

.honors-content h3 {
    color: #d32f2f;
}

/* 联系我们 */
.contact-header {
    background-color: #ffebee;
    padding: 3rem 0;
    text-align: center;
}

.contact-header h1 {
    color: #c00; /* 红色标题，与网站其他重要标题统一 */
}

.contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-main {
    flex: 2;
    min-width: 300px;
}

.contact-sidebar {
    flex: 1;
    min-width: 250px;
}

.contact-content,
.contact-map-card,
.contact-time-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(192, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-content:hover,
.contact-map-card:hover,
.contact-time-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(192, 0, 0, 0.2);
}

.contact-content h2,
.contact-map-card h3,
.contact-time-card h3 {
    color: #c00;
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffcdd2;
}

.contact-content h2 i,
.contact-map-card h3 i,
.contact-time-card h3 i {
    margin-right: 0.5rem;
}

.contact-section {
    margin-bottom: 2rem;
}

.contact-section h3 {
    color: #d32f2f;
    margin-top: 1.5rem;
}

.contact-section ul {
    padding-left: 1.5rem;
}

.contact-section li {
    margin-bottom: 0.5rem;
}

.company-location {
    text-align: center;
    padding: 1rem;
    border: 2px dashed #ffcdd2;
    background-color: #fff8f0;
}

.company-location img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.company-location p {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.map-placeholder {
    text-align: center;
    padding: 2rem;
    border: 2px dashed #ffcdd2;
    border-radius: 5px;
    background-color: #fff8f0;
}

.map-placeholder p:first-child {
    font-size: 3rem;
    color: #c00;
    margin: 0;
}

.map-placeholder p {
    margin: 0.5rem 0;
}

.contact-time-card ul {
    list-style: none;
    padding-left: 0;
}

.contact-time-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.contact-time-card li:last-child {
    border-bottom: none;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #c00; /* 红色标签 */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ffcdd2; /* 淡红色边框 */
    border-radius: 5px;
}

/* 页脚 */
footer {
    background-color: #c00; /* 主红色 */
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

footer a {
    color: #ffeb3b; /* 黄色链接 */
}

/* 响应式设计 */
@media(max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 0.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .features {
        flex-direction: column;
    }
    
    main {
        margin-top: 150px;
    }
    
    .contact-layout {
        flex-direction: column;
    }
    
    .products-grid,
    .application-grid {
        grid-template-columns: 1fr;
    }
}