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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
}

.logo h1 {
    color: #2c3e50;
    font-size: 1.8rem;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #2c3e50;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

/* 轮播图样式 */
.slider {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 轮播图控制按钮 */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: #fff;
}

/* 轮播图箭头按钮 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* 产品展示样式 */
.products {
    padding: 4rem 5%;
    background-color: #f9f9f9;
}

.products h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-card h3 {
    padding: 15px;
    margin: 0;
    color: #333;
}

.product-card p {
    padding: 0 15px 15px;
    margin: 0;
    color: #666;
}

/* 产品页面特定样式 */
.products-page {
    padding: 80px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* 产品导航栏样式 */
.product-nav {
    margin-bottom: 30px;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.product-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}

.product-nav li {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    color: #666;
    margin-right: 10px;
}

.product-nav li:last-child {
    margin-right: 0;
}

.product-nav li:hover {
    background: #e0e0e0;
    color: #333;
}

.product-nav li.active {
    background: #1e88e5;
    color: white;
}

/* 产品展示区样式 */
.product-display {
    position: relative;
}

.product-series {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-series.active {
    display: block;
    opacity: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px;
    margin: 0;
    color: #333;
}

.product-card p {
    padding: 0 15px 15px;
    margin: 0;
    color: #666;
}

/* 关于我们页面样式 */
.about-page {
    margin-top: 60px;
    padding: 2rem 5%;
}

.about-section {
    margin-bottom: 4rem;
}

.about-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3498db;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 20px;
}

.about-image {
    width: 80%;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: translateY(-5px);
}

.about-text {
    padding: 20px;
}

.about-text h2 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
    font-size: 18px;
    text-align: justify;
    text-indent: 2em;
}

/* 企业文化样式 */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.culture-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.culture-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* 发展历程样式 */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 600px;
}

.timeline::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #3498db;
}

.timeline-item {
    position: relative;
    width: 180px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: #3498db;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px #3498db;
    z-index: 2;
}

/* 修改连接线为直线 */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #3498db;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item .year {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-align: center;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

.timeline-item .content {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 2;
}

/* 设置每个时间点的高度，呈现上升趋势 */
.timeline-item:nth-child(1) { bottom: 0; }
.timeline-item:nth-child(2) { bottom: 50px; }
.timeline-item:nth-child(3) { bottom: 100px; }
.timeline-item:nth-child(4) { bottom: 150px; }
.timeline-item:nth-child(5) { bottom: 200px; }
.timeline-item:nth-child(6) { bottom: 250px; }

.timeline-item .content:hover {
    transform: translateX(-50%) translateY(-8px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.timeline-item .content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.timeline-item .content p {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

/* 未来展望样式 */
.timeline-future {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.timeline-future h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-future p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
}

/* 企业荣誉样式 */
.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.honor-item {
    text-align: center;
}

.honor-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.honor-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* 联系我们页面样式 */
.contact-page {
    padding: 90px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-container {
    margin-top: 40px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 20px;
}

.info-card h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
}

.info-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 10px;
        position: relative;
    }

    .logo h1 {
        font-size: 1.2rem;
        padding-right: 60px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        width: 200px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-radius: 0 0 10px 10px;
        padding: 10px 0;
        z-index: 9999;
        flex-direction: column;
    }

    .nav-links.active {
        display: block;
    }

    .nav-links li {
        margin: 0;
        display: block;
    }

    .nav-links a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
    }

    .nav-links a:hover {
        background: #f8f9fa;
    }

    .contact-page {
        padding: 40px 15px 20px;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .info-card {
        width: 100%;
        max-width: 280px;
        padding: 20px;
    }

    .info-card i {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .info-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .info-card p {
        font-size: 14px;
    }

    footer {
        padding: 30px 15px 15px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-section {
        margin: 10px 0;
    }

    .footer-section h3 {
        font-size: 18px;
    }

    .footer-section p {
        font-size: 14px;
        margin: 10px 0;
    }

    .qrcode img {
        width: 60px;
        height: 60px;
    }

    .copyright {
        font-size: 12px;
        margin-top: 20px;
    }
}

/* 公司简介样式 */
.about-preview {
    padding: 4rem 5%;
    text-align: center;
    background-color: #fff;
}

.about-preview h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.about-preview p {
    max-width: 800px;
    margin: 0 auto;
    color: #666;
}

/* 页脚样式 */
footer {
    background: #333;
    color: #fff;
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-section {
    margin: 20px;
    text-align: center;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-section p {
    margin: 20px 0;
    color: #ccc;
}

.qrcode {
    margin-top: 15px;
}

.qrcode img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
    width: 100%;
}

.footer-bottom p {
    margin: 5px 0;
    color: #999;
    font-size: 14px;
    text-align: center;
    width: 100%;
}

.footer-bottom a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.footer-bottom a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 0.5rem;
    }

    .slider {
        height: 300px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
    }

    .product-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .timeline {
        flex-direction: column;
        height: auto;
        padding: 40px 20px;
    }
    
    .timeline::before {
        left: 30px;
        top: 0;
        width: 2px;
        height: 100%;
    }

    .timeline-item {
        width: 100%;
        margin-bottom: 80px;
        position: relative;
        bottom: 0 !important;
        opacity: 1;
        transform: none;
    }

    .timeline-item::before {
        left: 30px;
        bottom: 50%;
        width: 12px;
        height: 12px;
    }

    .timeline-item .year {
        left: 30px;
        bottom: 0;
        transform: none;
        font-size: 16px;
        margin-bottom: 8px;
    }

    .timeline-item .content {
        left: 70px;
        bottom: 0;
        transform: none;
        width: calc(100% - 70px);
        padding: 15px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .timeline-item .content:hover {
        transform: none;
    }

    .timeline-item .content h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .timeline-item .content p {
        font-size: 14px;
        color: #666;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .map-container {
        height: 300px;
    }

    .product-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .product-nav li {
        width: 100%;
        text-align: center;
    }
}

/* 首页图片展示区样式 */
.home-gallery {
    padding: 120px 20px 40px;
    background: #f9f9f9;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item.large {
    grid-column: 1 / -1;
    height: 500px;
}

.gallery-item:not(.large) {
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.gallery-overlay p {
    margin: 5px 0 0;
    font-size: 16px;
    opacity: 0.9;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .home-gallery {
        padding: 80px 15px 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .gallery-item.large {
        grid-column: span 2;
        height: 200px;
    }

    .gallery-item:not(.large) {
        height: 150px;
    }

    .gallery-overlay {
        padding: 10px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5));
        transform: translateY(0);
    }

    .gallery-overlay h3 {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .gallery-overlay p {
        font-size: 12px;
        margin: 0;
    }

    /* 轮播图高度调整 */
    .slider {
        height: 200px;
        margin-bottom: 20px;
    }

    /* 产品展示调整 */
    .products {
        padding: 30px 15px;
    }

    .product-grid {
        gap: 15px;
    }

    .product-card {
        margin-bottom: 15px;
    }

    .product-card img {
        height: 200px;
    }

    .product-card h3 {
        font-size: 16px;
        padding: 10px;
    }

    .product-card p {
        font-size: 14px;
        padding: 0 10px 10px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .products-page {
        padding: 60px 15px 30px;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .product-nav {
        margin-bottom: 20px;
        padding: 10px;
    }

    .product-nav::-webkit-scrollbar {
        display: none;
    }

    .product-nav li {
        padding: 8px 15px;
        font-size: 14px;
        margin-right: 8px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px 0;
    }

    .product-card {
        margin-bottom: 10px;
    }

    .product-card img {
        height: 150px;
        object-fit: cover;
    }

    .product-card h3 {
        font-size: 14px;
        padding: 8px;
        margin: 0;
    }

    .product-card p {
        font-size: 12px;
        padding: 0 8px 8px;
        margin: 0;
        color: #666;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .about-page {
        padding: 40px 15px 20px;
    }

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

    .about-section h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .about-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-text {
        padding: 10px;
    }

    .about-text h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .about-text p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    /* 企业文化样式调整 */
    .culture-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .culture-item {
        padding: 15px;
    }

    .culture-item h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .culture-item p {
        font-size: 14px;
    }

    /* 发展历程样式调整 */
    .timeline {
        height: auto;
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline::before {
        left: 20px;
        top: 0;
        width: 2px;
        height: 100%;
    }

    .timeline-item {
        width: 100%;
        margin-bottom: 40px;
        position: relative;
        bottom: 0 !important;
        padding-left: 50px;
    }

    .timeline-item::before {
        left: 20px;
        bottom: 0;
        transform: translateX(-50%);
    }

    .timeline-item .year {
        position: relative;
        left: 0;
        bottom: 0;
        transform: none;
        margin-bottom: 10px;
        width: auto;
        min-width: 100px;
    }

    .timeline-item .content {
        position: relative;
        left: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        margin-top: 10px;
    }

    .timeline-item .content h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .timeline-item .content p {
        font-size: 14px;
    }

    /* 未来展望样式调整 */
    .timeline-future {
        padding: 20px;
        margin-top: 20px;
    }

    .timeline-future h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .timeline-future p {
        font-size: 14px;
    }
}

/* 产品画册链接样式 */
.product-catalog-link {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
}

.catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.catalog-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.catalog-btn i {
    font-size: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-catalog-link {
        margin-top: 30px;
        padding: 15px;
    }

    .catalog-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
} 