/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #007bff;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* 轮播图样式 */
.banner {
    margin-top: 90px;
    height: 600px;
    overflow: hidden;
}

.carousel {
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

/* 公司简介样式 */
.about-summary {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.about-summary h2 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.about-summary p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-summary .btn {
    display: block;
    width: 150px;
    margin: 0 auto;
    text-align: center;
}

/* 产品展示样式 */
.products-showcase {
    padding: 80px 0;
}

.products-showcase h2 {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-item h3 {
    padding: 20px;
    font-size: 18px;
    margin-bottom: 10px;
}

.product-item p {
    padding: 0 20px 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.product-item .btn {
    margin: 0 20px 20px;
    font-size: 14px;
    padding: 8px 16px;
}

.products-showcase .btn {
    display: block;
    width: 150px;
    margin: 0 auto;
    text-align: center;
}

/* 页面标题样式 */
.page-header {
    margin-top: 90px;
    padding: 60px 0;
    background-color: #f0f0f0;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    color: #333;
}

/* 公司介绍样式 */
.company-intro {
    padding: 80px 0;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* 发展历程样式 */
.development-history {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.development-history h2 {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #007bff;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}

.timeline-date {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.timeline-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 团队展示样式 */
.team-showcase {
    padding: 80px 0;
}

.team-showcase h2 {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.team-member h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.team-member p {
    font-size: 14px;
    color: #666;
}

/* 产品分类筛选样式 */
.product-filters {
    padding: 30px 0;
    background-color: #f9f9f9;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 产品网格展示样式 */
.products-grid-section {
    padding: 80px 0;
}

#all-products-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* 产品详情模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.product-detail {
    display: flex;
    gap: 30px;
}

.product-detail-image {
    flex: 1;
}

.product-detail-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.product-detail-info p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-specs {
    margin-top: 30px;
}

.product-specs h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs th,
.product-specs td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.product-specs th {
    background-color: #f9f9f9;
    font-weight: bold;
}

/* 联系信息样式 */
.contact-info {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.info-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.info-item {
    text-align: center;
}

.info-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #007bff;
}

.info-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 联系表单样式 */
.contact-form-section {
    padding: 80px 0;
}

.contact-form-section h2 {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    display: block;
    width: 150px;
    margin: 0 auto;
    text-align: center;
}

/* 底部信息样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #999;
}