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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* 固定头部 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 100%);
    box-shadow: 0 2px 20px rgba(135, 206, 235, 0.3);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    padding: 15px 0;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

/* 固定按钮样式 */
.fixed-action-button {
    position: fixed;
    top: 20px;
    right: 120px;
    z-index: 1001;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4682B4 0%, #5F9EA0 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.fixed-action-button:hover {
    background: linear-gradient(135deg, #204868 0%, #325c5d 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(70, 130, 180, 0.4);
}

.fixed-action-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 3px 10px rgba(135, 206, 235, 0.4);
}

.fixed-action-button i {
    font-size: 16px;
}

.fixed-action-button span {
    font-size: 14px;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .fixed-action-button {
        top: 5px;
        right: 15px;
        padding: 3px 16px;
        font-size: 12px;
        gap: 6px;
    }
    
    .fixed-action-button i {
        font-size: 12px;
    }
    
    .fixed-action-button span {
        font-size: 14px;
    }
}

.site-title {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 主要内容 */
.main-content {
    margin-top: 80px;
    margin-bottom: 50px;
}

/* 轮播图区域 */
.carousel-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    background: linear-gradient(45deg, #f0f8ff, #e6f3ff);
    transform: none !important;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-arrow-left {
    left: 20px;
}

.carousel-arrow-right {
    right: 20px;
}

.carousel-track {
    display: flex;
    width: 600%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    flex: 0 0 16.666%;
    height: 100%;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e1efff;
}

.carousel-image {
    max-width: 98%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.carousel-slide:hover .carousel-image {
    transform: scale(1.05);
}

/* 按钮区域 */
.buttons-section {
    padding: 40px 20px;
    background: #ffffff;
}

.buttons-container {
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.feature-button {
    background: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 100%);
    border: none;
    border-radius: 15px;
    padding: 25px 20px;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.feature-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.feature-button:hover::before {
    left: 100%;
}

.feature-button:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4);
    font-size: 2.2rem;
}

.feature-button:active {
    transform: translateY(-2px) scale(0.98);
}

.feature-button.active {
    background: linear-gradient(135deg, #4682B4 0%, #5F9EA0 100%);
    box-shadow: 0 6px 20px rgba(70, 130, 180, 0.4);
    transform: scale(1.05);
    font-size: 2rem;
}

.feature-button i {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.feature-button:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* 内容区域 */
.content-section {
    background: #ffffff;
    min-height: 500px;
}

.content-item {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    padding: 60px 20px;
}

.content-item.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

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

.content-container h2 {
    font-size: 2rem;
    color: #4682B4;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.content-container h2::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #87CEEB, transparent);
}

.content-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.content-container ul {
    list-style: none;
    padding-left: 0;
}

.content-container li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.content-container li i {
    color: #87CEEB;
    margin-top: 5px;
    flex-shrink: 0;
}

/* 厂房卡片 */
.factory-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.factory-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
}

.factory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(176, 224, 230, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.factory-card:hover::before {
    opacity: 1;
}

.factory-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(135, 206, 235, 0.3);
}

.factory-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.factory-card:hover .factory-image {
    transform: scale(1.1);
}

.factory-info {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.factory-info h3 {
    font-size: 1.3rem;
    color: #4682B4;
    margin-bottom: 15px;
    font-weight: 600;
}

.factory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #d1be69;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 800;
    transition: transform 0.2s ease;
}

.tag:hover {
    transform: scale(1.05);
}

/* 固定底部 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4682B4 0%, #5F9EA0 100%);
    color: #fff;
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(70, 130, 180, 0.3);
    transition: all 0.3s ease;
}

/* 简化显示区域 */
.footer-collapsed {
    display: block;
}

.footer-simple-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.simple-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.simple-contact i {
    color: #ffffff;
}

.expand-button {
    background: rgba(135, 206, 235, 0.2);
    color: #fff;
    border: 1px solid rgba(135, 206, 235, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.expand-button:hover {
    background: rgba(135, 206, 235, 0.3);
    transform: translateY(-1px);
}

/* 完整内容区域 */
.footer-expanded {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.footer.expanded .footer-collapsed {
    display: none;
}

.footer.expanded .footer-expanded {
    display: block;
    max-height: 500px;
}

.collapse-button {
    background: rgba(135, 206, 235, 0.2);
    color: #fff;
    border: 1px solid rgba(135, 206, 235, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 15px auto 0;
    justify-self: center;
}

.collapse-button:hover {
    background: rgba(135, 206, 235, 0.3);
    transform: translateY(-1px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.contact-item i {
    color: #ffffff;
}

.phone-button {
    background: linear-gradient(135deg, #87CEEB, #B0E0E6);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(135, 206, 235, 0.3);
}

.phone-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.5);
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
}

.form-group {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group i {
    position: absolute;
    left: 12px;
    color: #87CEEB;
    z-index: 1;
}

.form-group input {
    padding: 10px 15px 10px 40px;
    border: 2px solid rgba(135, 206, 235, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 200px;
}

.form-group input:focus {
    outline: none;
    border-color: #87CEEB;
    box-shadow: 0 0 10px rgba(135, 206, 235, 0.3);
    transform: scale(1.02);
}

.submit-button {
    background: linear-gradient(135deg, #87CEEB, #B0E0E6);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(135, 206, 235, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.5);
}

.submit-button:active {
    transform: translateY(0) scale(0.98);
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copyright i {
    color: #87CEEB;
}

/* 备案信息样式 */
.icp-info {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.icp-info a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.icp-info a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.icp-info i {
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {

    .header-content {
        max-width: 1200px;
        margin: -10px auto;
        padding: 0 20px;
    }

    .logo {
        width: 30px;
        height: 30px;
        transition: transform 0.3s ease;
    }
    .site-title {
        font-size: 1rem;
    }

    .main-content {
        margin-top: 400px; /* 减少顶部空白，只保留必要的导航栏间距 */
        margin-bottom: 80px; /* 减少手机端底部空白 */
    }
    
    .carousel-section {
        position: fixed;
        height: 250px; /* 手机端固定高度 */
        top: 10px;
        left: 0;
        right: 0;
        z-index: 100;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-arrow-left {
        left: 10px;
    }
    
    .carousel-arrow-right {
        right: 10px;
    }
    
    .buttons-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .buttons-section {
        padding: 20px 15px;
    }
    
    .feature-button {
        padding: 8px 10px;
        font-size: 0.8rem;
        flex-direction: row;
        gap: 5px;
        min-height: auto;
        white-space: nowrap;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .feature-button i {
        font-size: 0.8rem;
    }
    
    .feature-button:hover {
        font-size: 0.85rem;
        transform: translateY(-1px) scale(1.02);
    }
    
    .feature-button:hover i {
        font-size: 0.85rem;
        transform: scale(1.1);
    }
    
    .feature-button.active {
        font-size: 0.82rem;
        transform: scale(1.02);
    }
    
    .content-container h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .content-container p,
    .content-container li {
        font-size: 1rem;
    }
    
    .content-item {
        padding: 30px 15px;
    }
    
    .content-section {
        min-height: 300px;
    }
    
    .factory-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .factory-card {
        display: flex;
        align-items: center;
    }
    
    .factory-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }
    
    .factory-info {
        flex: 1;
        padding: 15px;
    }
    
    .factory-info h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-group input {
        width: 250px;
    }

    .footer-simple-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 3px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .simple-contact {
        display: flex;
        align-items: center;
        gap: 15px;
        font-size: 0.9rem;
    }

    .simple-contact i {
        color: #ffffff;
    }
    
    .expand-button{
        padding: 5px 15px;
    }

    .collapse-button {
        font-size: 0.7rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(135, 206, 235, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(135, 206, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(135, 206, 235, 0);
    }
}

.feature-button.active {
    animation: pulse 2s infinite;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #87CEEB, #B0E0E6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4682B4, #5F9EA0);
}