/* 电脑端样式 */
.product-download-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f6f6f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-download-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-download-info {
    flex: 1;
    min-width: 0; /* 允许flex项目收缩到其最小内容大小以下 */
}

.product-download-con {
    display: flex;
    align-items: center;
}

.product-download-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
    padding-right: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    background: linear-gradient(135deg, #61a5ed, #3c85d5);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

.product-download-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: scale(1.05);
}

.product-download-pdf::before {
    content: "📥";
    margin-right: 8px;
    font-size: 13px;
    line-height: 30px;
}

.product-download-btn span {
    vertical-align: middle;
}

/* 移动端样式 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .product-download-detail {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 12px;
    }

    .product-download-name {
        padding-right: 0;
        text-align: left;
        font-size: 16px;
        white-space: normal;
        text-overflow: clip;
    }

    .product-download-btn {
        align-self: stretch;
        padding: 12px 20px;
        font-size: 16px;
        margin-top: 5px;
    }

    .product-download-pdf::before {
        font-size: 18px;
        margin-right: 10px;
    }
}

/* 小屏设备优化 */
@media (max-width: 480px) {
    .product-download-detail {
        padding: 12px;
        margin: 20px;
    }

    .product-download-name {
        font-size: 15px;
    }

    .product-download-btn {
        padding: 1px 20px;
        font-size: 16px;
    }

    .product-download-btn span {
        display: block;
        margin-top: 4px;
    }

    .product-download-pdf::before {
        display: block;
        margin: 0 auto 4px auto;
    }
}

/* 中等屏幕适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-download-name {
        font-size: 15px;
    }

    .product-download-btn {
        padding: 9px 18px;
        font-size: 13px;
    }
}




.product-header{
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    transition: background-color 0.2s;
    box-shadow: 0 2px 10px rgb(4 4 4 / 20%);
    border-radius: 10px 10px 0 0;
    font-weight: 600;
}
.product-content{
    height: auto;
    padding: 20px;
    opacity: 1;
    background-color: #fafafa;
    box-shadow: -6px 6px 10px rgb(4 4 4 / 10%),6px 6px 10px rgb(4 4 4 / 10%);
    font-family: Chakra Petch, Noto Sans TC, Microsoft JhengHei, Arial, sans-serif !important;
}


.product-detail-container {
            background-color: white;
            border-radius: 0 0 10px 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            overflow: hidden;
        }
        
        .product-detail-item {
            border-bottom: 1px solid #eee;
            scroll-margin-top: 150px; /* 为滚动定位预留顶部边距 */
        }
        
        .product-detail-item:last-child {
            border-bottom: none;
        }
        .product-detail-item:first-child .product-detail-content:not(.active) {
  max-height: 100px;
}
        
        .product-detail-header {
            padding: 16px 20px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: white;
            transition: background-color 0.2s;
        }
        
        .product-detail-header:hover {
            background-color: white;
        }
        
        .product-detail-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }
        
        .arrow {
            font-size: 12px;
            color: #999;
            transition: transform 0.3s ease;
        }
        
        .product-detail-content {
            padding: 0 20px;
            height: 0;
            overflow: hidden;
            opacity: 0;
            transition: height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
            background-color: #fafafa;
        }
        
        .product-detail-content.active {
            height: auto;
            padding: 20px;
            opacity: 1;
        }
        
        .product-detail-item.active .arrow {
            transform: rotate(180deg);
            color: #333;
        }
        
        
        
.xiji-gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 1170px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.xiji-gallery-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.xiji-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.xiji-gallery-img-box {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.xiji-gallery-card:hover .xiji-gallery-img-box img {
    transform: scale(1.05);
}

/* 文字区域 flex 布局 */
.xiji-gallery-text {
    display: flex;
    flex-direction: column;
    padding: 15px;
    flex: 1;
}

.xiji-gallery-text h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #333;
    flex: 1;
    display: flex;
    align-items: center;
}

.xiji-gallery-text p {
    font-size: 14px;
    color: #666;
    margin-top: auto;
    line-height: 1.5;
}

/* 图片放大模态框样式 */
.xiji-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.xiji-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.xiji-modal-content {
    max-width: 90%;
    max-height: 90%;
    display: block;
    border-radius: 8px;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.xiji-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.xiji-close:hover {
    color: #ccc;
}

.xiji-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.xiji-nav-btn:hover {
    background-color: rgba(255,255,255,0.4);
}

.xiji-prev {
    left: 20px;
}

.xiji-next {
    right: 20px;
}

.xiji-image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background-color: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
    z-index: 1001;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .xiji-gallery-wrapper {
        width: 90%;
    }
}

@media (max-width: 992px) {
    .xiji-gallery-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .xiji-gallery-wrapper {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px 0;
    }
}

@media (max-width: 576px) {
    .xiji-gallery-wrapper {
        grid-template-columns: 1fr;
    }
}




.gc-gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 1170px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.gc-gallery-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gc-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gc-gallery-img-box {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.gc-gallery-card:hover .gc-gallery-img-box img {
    transform: scale(1.05);
}

/* 文字区域 flex 布局 */
.gc-gallery-text {
    display: flex;
    flex-direction: column;
    padding: 15px;
    flex: 1;
}

.gc-gallery-text h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #333;
    flex: 1;
    display: flex;
    align-items: center;
}

.gc-gallery-text p {
    font-size: 14px;
    color: #666;
    margin-top: auto;
    line-height: 1.5;
}

/* 图片放大模态框样式 */
.gc-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gc-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.gc-modal-content {
    max-width: 90%;
    max-height: 90%;
    display: block;
    border-radius: 8px;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.gc-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.gc-close:hover {
    color: #ccc;
}

.gc-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.gc-nav-btn:hover {
    background-color: rgba(255,255,255,0.4);
}

.gc-prev {
    left: 20px;
}

.gc-next {
    right: 20px;
}

.gc-image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background-color: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
    z-index: 1001;
}
.peizhi.active{
    padding:20px;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .gc-gallery-wrapper {
        width: 90%;
    }
}

@media (max-width: 992px) {
    .gc-gallery-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gc-gallery-wrapper {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px;
    }
    .product-detail-content.active {
            height: auto;
            padding: 0px;
            opacity: 1;
        }
}

@media (max-width: 576px) {
    .gc-gallery-wrapper {
        grid-template-columns: 1fr;
    }
    .product-detail-content.active {
        height: auto;
        padding: 0px;
        opacity: 1;
    }
    .peizhi.active{
        padding:15px;
    }
    .shengchan.active{
        padding:15px;
    }
    .youshi.active{
        padding:15px;
    }
}