/* 合作伙伴列表页面样式开始 */

/* 合作伙伴区域 */
.partner-section {
    padding: 60px 0;
    background-color: #fff;
}

/* 页面标题 */
.partner-title {
    font-size: 38px;
    font-weight: 500;
    color: #323233;
    line-height: 40px;
    margin-bottom: 50px;
    text-align: center;
}

/* 合作伙伴列表容器 */
.partner-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
}
/* 响应式设计 */
@media (max-width: 992px) {
    .partner-list {
        grid-template-columns: 1fr;
    }
}
/* 合作伙伴链接 */
.partner-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* 单个合作伙伴卡片 */
.partner-item {
    background-color: #fff;
    border: 1px solid #f5f5f7;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.partner-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* 卡片头部 */
.partner-header {
    padding: 12px 24px;
    background-color: #fafafa;
    border-bottom: 1px solid #f5f5f7;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 公司logo */
.partner-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 公司名称 */
.partner-name {
    font-size: 22px;
    font-weight: 700;
    color: #323233;
    line-height: 28px;
    margin: 0;
    flex: 1;
}

/* 卡片内容 */
.partner-content {
    padding: 8px 24px 8px 24px;
}

/* 公司简介 */
.partner-description {
    font-size: 16px;
    color: #646566;
    line-height: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 公司标签 */
.partner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.partner-tags li {
    margin: 0;
}

.partner-tags a {
    display: inline-block;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    background-color: rgba(0, 102, 204, 0.08);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    letter-spacing: 0.2px;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
}

.partner-tags a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    border-color: var(--primary-color);
}

/* 查看详情按钮 */
.partner-button {
    padding-bottom: 10px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.btn-detail {
    display: inline-block;
    padding: 6px 14px;
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--primary-color);
    line-height: 1.4;
}

.btn-detail:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}
/* 合作伙伴列表页面样式结束*/

/* 合作伙伴详情开始 */


/* 响应式设计 */
@media (max-width: 992px) {
    
    .partner-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .partner-section {
        padding: 40px 0;
    }
    
    .partner-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .partner-header {
        flex-direction: row;
        text-align: left;
        padding: 20px;
    }
    
    .partner-name {
        font-size: 20px;
    }
    
    .partner-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .partner-section {
        padding: 30px 0;
    }
    
    .partner-logo {
        width: 70px;
        height: 70px;
    }
    
    .partner-logo img {
        max-width: 80px;
        max-height: 80px;
    }
    
    .partner-name {
        font-size: 18px;
    }
    
    .partner-description {
        font-size: 15px;
        line-height: 22px;
    }
    
    .partner-tags {
        gap: 8px;
        margin: 12px 0;
    }
    
    .partner-tags a {
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 18px;
    }
}

/* 合作伙伴详情页面样式开始 */

/* 详情页面整体布局 */
.base-main-left {
    width: calc(100% - 300px);
    padding: 30px;
    box-sizing: border-box;
}

/* 详情头部 */
.partner-detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

/* 详情页面logo */
.partner-detail-logo {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
    flex-shrink: 0;
}

.partner-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 详情页面基本信息 */
.partner-detail-info {
    flex: 1;
}

.partner-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: #323233;
    margin-bottom: 10px;
    line-height: 1.2;
}

.partner-detail-tags {
    margin-bottom: 10px;
}

/* 确保内部的partner-tags列表样式正常显示 */
.partner-detail-tags .partner-tags {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.partner-detail-visits {
    font-size: 14px;
    color: #646566;
    display: flex;
    align-items: center;
    gap: 5px;
    width: auto;
    justify-content: flex-end;
}

/* 联系方式区域 */
.partner-detail-contact {
    background-color: #fafafa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.partner-contact-item {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.partner-contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    font-weight: 500;
    color: #323233;
    margin-right: 10px;
}

.partner-contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.partner-contact-item a:hover {
    text-decoration: underline;
}

/* 选项卡样式 */
.partner-detail-tabs {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 选项卡导航 */
.tab-nav {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.tab-item {
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 500;
    color: #646566;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-item:hover {
    color: var(--primary-color);
}

.tab-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: rgba(0, 102, 204, 0.02);
}

/* 选项卡内容 */
.tab-content {
    padding: 25px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 详情内容 */
.partner-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #323233;
}

.partner-detail-content p {
    margin-bottom: 15px;
}

.partner-detail-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
}

/* 图库样式 */
.partner-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-item {
    width: calc(33.333% - 15px);
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.gallery-item-title {
    padding: 12px 15px;
    font-size: 14px;
    color: #323233;
    background-color: #fafafa;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .base-main-left {
        width: calc(100% - 280px);
    }
    
    .gallery-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 992px) {
    .base-main-left {
        width: 100%;
        padding: 20px;
    }
    
    .partner-detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .partner-detail-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .gallery-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .base-main-left {
        padding: 15px;
    }
    
    .partner-detail-title {
        font-size: 26px;
    }
    
    .tab-item {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .gallery-item {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .partner-detail-title {
        font-size: 22px;
    }
    
}

/* 图片查看器样式 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.85);
    padding-top: 20px;
    padding-bottom: 120px; /* 为底部按钮组留出空间 */
    box-sizing: border-box;
}

.image-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.image-viewer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.image-viewer-content img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    display: block;
}

/* 图片查看器控制按钮容器 */
.image-viewer-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 3;
}

/* 控制按钮通用样式 */
.image-viewer-btn, .image-viewer-close {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    position: static;
    transform: none;
}

.image-viewer-btn:hover, .image-viewer-close:hover {
    background-color: rgba(255, 255, 255, 0.25);;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    transform: scale(1.1);
}


/* 响应式调整 */
@media (max-width: 768px) {
    .image-viewer {
        padding-bottom: 100px; /* 为底部按钮组留出空间 */
    }
    
    .image-viewer-content {
        width: 100%;
        height: 100%;
        padding: 0;
    }
    
    .image-viewer-content img {
        max-width: 95vw;
        max-height: 100%;
        margin: 0 auto;
    }
    
    /* 响应式按钮容器和按钮 */
    .image-viewer-controls {
        bottom: 20px;
        gap: 15px;
    }
    
    .image-viewer-btn, .image-viewer-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}