/* 页面标题样式 */
.page-header {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto 15px;
    line-height: 1.6;
}

/* 产品板块样式 */
.product-section {
    padding: 80px 0;
    border-bottom: 1px solid #eee;
}

.tab-header {
    text-align: center;
    margin-bottom: 50px;
}

.tab-header h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}
/* 添加授权标签样式 */
.auth-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 10px;
    background-color: #ff7d00;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    vertical-align: middle;
}

.tab-header p {
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

.tab-body {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.product-image-container {
    flex: 1;
    min-width: 300px;
    cursor: pointer;
}

.main-product-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.product-image-container:hover .main-product-image {
    transform: scale(1.02);
}

.features-list {
    flex: 1;
    min-width: 300px;
}

/* 功能点样式调整 - 更紧凑 */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 12px; /* 减小间距 */
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    /* 增强过渡效果 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 功能点选中状态 */
.feature-item.active {
    background-color: #f0f7ff;
}
/* 添加选中状态的左侧装饰条 */
.feature-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
}

/* 不同板块功能点悬浮和选中颜色区分 */
.product-section:nth-child(3) .feature-item:hover {
    background-color: #f0f7ff;
}

.product-section:nth-child(3) .feature-item.active {
    background-color: #e6f4ff;
    box-shadow: 0 2px 8px rgba(145, 200, 255, 0.2);
}

.product-section:nth-child(4) .feature-item:hover {
    background-color: #f6ffed;
}

.product-section:nth-child(4) .feature-item.active {
    background-color: #f0fff4;
    box-shadow: 0 2px 8px rgba(171, 243, 171, 0.3);
}

.product-section:nth-child(5) .feature-item:hover {
    background-color: #fff0f5;
}

.product-section:nth-child(5) .feature-item.active {
    background-color: #fff0f3;
    box-shadow: 0 2px 8px rgba(255, 204, 213, 0.3);
}
.product-section:nth-child(6) .feature-item.active {
    background-color: #f6f3ff;
    box-shadow: 0 2px 8px rgba(213, 202, 255, 0.3);
}
.feature-item:hover {
    transform: translateX(5px);
}
.feature-item img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    object-fit: contain;
    margin-top: 3px;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 客户端下载样式 */
.section-title {
    text-align: center;
}
.section-title h2 {
    font-size: 1.8rem;
}
.client-downloads {
    padding: 80px 0;
    background-color: var(--white);
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.download-item {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background-color: #f9fafb;
    position: relative;
    transition: all 0.3s ease;
    height: 300px; /* 固定高度，确保所有卡片一致 */
    overflow: hidden;
    cursor: pointer;
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* 下载项内容样式 */
.default-content, .hover-content {
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 默认隐藏hover内容 */
.hover-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

/* 鼠标悬浮时显示hover内容，隐藏默认内容 */
.download-item:hover .default-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

.download-item:hover .hover-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.download-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.download-icon img {
    max-width: 45px;
    max-height: 45px;
    object-fit: contain;
}

.default-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.default-content p {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 二维码样式 */
.qrcode-img {
    width: 150px;
    height: 150px;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.hover-text {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
}

/* Windows下载提示 */
.download-action {
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 下载链接覆盖整个卡片 */
.download-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* 微信小程序码查看器 */
.mini-program-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.mini-program-viewer.active {
    display: flex;
}

.mini-program-viewer .viewer-content {
    text-align: center;
    color: white;
}

.mini-program-code {
    width: 250px;
    height: 250px;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 20px auto;
}


/* 图片查看器样式 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.image-viewer.active {
    display: flex;
}

.image-viewer-content {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    color: white;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition);
}

.close-btn:hover {
    color: #bbb;
}

.viewer-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.viewer-desc {
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.viewer-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .tab-body {
        flex-direction: column;
    }
    
    .product-image-container {
        width: 100%;
        order: 1;
    }
    .features-list {
        order: 2;
    }
    
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .product-section, .client-downloads {
        padding: 60px 0;
    }
    
    .tab-header h2 {
        font-size: 1.6rem;
    }
    
    .feature-item {
        padding: 12px 15px;
    }
    
    .feature-item h3 {
        font-size: 1rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
    
    .download-item {
        height: 260px;
    }
    
    .qrcode-img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 40px 0;
    }
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .download-item {
        padding: 25px 15px;
        height: 240px;
    }
    
    .cta-card {
        padding: 40px 20px;
    }
    
    .cta-card h2 {
        font-size: 1.6rem;
    }
    
    .viewer-title {
        font-size: 1.2rem;
    }
    
    .close-btn {
        font-size: 30px;
    }
    
    .mini-program-code {
        width: 200px;
        height: 200px;
    }
}