/**
 * 声网案例模块样式
 * 
 * @package ShengWang
 * @since 1.0.0
 */

/* ========================================
   单个案例页面样式
======================================== */

.sw-case-single-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sw-case-single-container {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 案例头部 */
.sw-case-header {
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.sw-case-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.sw-case-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: #fff;
}

.sw-case-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 24px 0;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
}

.sw-case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.sw-case-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sw-case-meta-label {
    font-weight: 500;
    opacity: 0.9;
}

.sw-case-meta-value {
    font-weight: 600;
}

.sw-case-meta-link {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.sw-case-meta-link:hover {
    opacity: 0.8;
}

/* LOGO上传样式 */
.sw_case_logo_upload {
    margin-bottom: 10px;
}

.sw_case_logo_upload .button {
    margin-right: 10px;
    margin-bottom: 10px;
}

.sw_case_logo_preview {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    max-width: 200px;
}

.sw_case_logo_preview img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 产品和解决方案项目样式 */
.sw_case_product_item,
.sw_case_solution_item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.sw_case_product_item input,
.sw_case_solution_item input {
    flex: 1;
}

/* 案例特色图片 */
.sw-case-featured-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.sw-case-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 案例分类 */
.sw-case-categories {
    padding: 20px 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.sw-case-categories-label {
    font-weight: 500;
    margin-right: 12px;
    color: #6c757d;
}

.sw-case-category {
    display: inline-block;
    background: var(--sw-color-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
    text-decoration: none;
    margin: 4px 8px 4px 0;
    transition: background-color 0.3s ease;
}

.sw-case-category:hover {
    background: var(--sw-color-primary-dark);
    color: #fff;
}

/* 案例内容 */
.sw-case-content {
    padding: 40px;
    line-height: 1.8;
    color: #333;
}

.sw-case-content h2,
.sw-case-content h3,
.sw-case-content h4 {
    margin: 24px 0 16px 0;
    color: #2c3e50;
}

.sw-case-content p {
    margin: 0 0 16px 0;
}

.sw-case-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

/* 案例导航 */
.sw-case-navigation {
    padding: 30px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.sw-case-nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.sw-case-nav-previous,
.sw-case-nav-next {
    flex: 1;
}

.sw-case-nav-previous a,
.sw-case-nav-next a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sw-color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sw-case-nav-previous a:hover,
.sw-case-nav-next a:hover {
    color: var(--sw-color-primary-dark);
}

.sw-case-nav-next a {
    justify-content: flex-end;
}

.sw-case-nav-arrow {
    font-size: 18px;
    font-weight: bold;
}

.sw-case-nav-title {
    font-size: 16px;
}

/* 相关案例 */
.sw-case-related {
    padding: 40px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.sw-case-related-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px 0;
    color: #2c3e50;
    text-align: center;
}

.sw-case-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.sw-case-related-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sw-case-related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sw-case-related-item a {
    text-decoration: none;
    color: inherit;
}

.sw-case-related-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.sw-case-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sw-case-related-item:hover .sw-case-related-image img {
    transform: scale(1.05);
}

.sw-case-related-title {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}

/* ========================================
   案例归档页面样式
======================================== */

.sw-case-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sw-case-archive-container {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 归档头部 */
.sw-case-archive-header {
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
}

.sw-case-archive-title {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #fff;
}

.sw-case-archive-description {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 分类筛选 */
.sw-case-filter {
    padding: 20px 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.sw-case-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.sw-case-filter-item {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    color: #6c757d;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.sw-case-filter-item:hover,
.sw-case-filter-item.active {
    background: var(--sw-color-primary);
    color: #fff;
    border-color: var(--sw-color-primary);
}

.sw-case-filter-count {
    opacity: 0.7;
    font-size: 12px;
}

/* 案例网格 */
.sw-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px;
}

.sw-case-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sw-case-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.sw-case-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.sw-case-item:hover .sw-case-item-image img {
    transform: scale(1.05);
}

.sw-case-item-content {
    padding: 24px;
}

.sw-case-item-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.sw-case-item-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sw-case-item-title a:hover {
    color: var(--sw-color-primary);
}

.sw-case-item-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #6c757d;
}

.sw-case-item-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.sw-case-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 16px 0;
    font-size: 13px;
}

.sw-case-item-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sw-case-item-meta-label {
    color: #6c757d;
    font-weight: 500;
}

.sw-case-item-meta-value {
    color: #2c3e50;
    font-weight: 600;
}



.sw-case-item-categories {
    margin: 0 0 16px 0;
}

.sw-case-item-category {
    display: inline-block;
    background: #e9ecef;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    margin: 0 4px 4px 0;
    transition: all 0.3s ease;
}

.sw-case-item-category:hover {
    background: var(--sw-color-primary);
    color: #fff;
}

.sw-case-item-more {
    text-align: right;
}

.sw-case-item-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sw-color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.sw-case-item-link:hover {
    color: var(--sw-color-primary-dark);
}

.sw-case-item-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.sw-case-item-link:hover .sw-case-item-arrow {
    transform: translateX(4px);
}

/* 无内容 */
.sw-case-no-content {
    padding: 60px 40px;
    text-align: center;
    color: #6c757d;
}

.sw-case-no-content h2 {
    font-size: 24px;
    margin: 0 0 16px 0;
    color: #2c3e50;
}

.sw-case-no-content p {
    font-size: 16px;
    margin: 0;
}

/* 分页 */
.sw-case-archive-wrapper .wp-pagenavi,
.sw-case-archive-wrapper .navigation {
    padding: 30px 40px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.sw-case-archive-wrapper .page-numbers,
.sw-case-archive-wrapper .prev,
.sw-case-archive-wrapper .next {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: #fff;
    color: var(--sw-color-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sw-case-archive-wrapper .page-numbers:hover,
.sw-case-archive-wrapper .prev:hover,
.sw-case-archive-wrapper .next:hover,
.sw-case-archive-wrapper .current {
    background: var(--sw-color-primary);
    color: #fff;
}

/* ========================================
   响应式设计
======================================== */

@media (max-width: 768px) {
    .sw-case-single-wrapper,
    .sw-case-archive-wrapper {
        padding: 20px 10px;
    }
    
    .sw-case-header,
    .sw-case-archive-header {
        padding: 30px 20px;
    }
    
    .sw-case-title {
        font-size: 28px;
    }
    
    .sw-case-archive-title {
        font-size: 24px;
    }
    
    .sw-case-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .sw-case-categories {
        padding: 15px 20px;
    }
    
    .sw-case-content {
        padding: 30px 20px;
    }
    
    .sw-case-navigation {
        padding: 20px;
    }
    
    .sw-case-nav-links {
        flex-direction: column;
        gap: 16px;
    }
    
    .sw-case-nav-previous a,
    .sw-case-nav-next a {
        justify-content: center;
    }
    
    .sw-case-related {
        padding: 30px 20px;
    }
    
    .sw-case-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sw-case-filter {
        padding: 15px 20px;
    }
    
    .sw-case-filter-list {
        justify-content: flex-start;
    }
    
    .sw-case-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .sw-case-title {
        font-size: 24px;
    }
    
    .sw-case-archive-title {
        font-size: 20px;
    }
    
    .sw-case-filter-list {
        flex-direction: column;
        align-items: center;
    }
    
    .sw-case-item-content {
        padding: 20px;
    }
    
    .sw-case-item-title {
        font-size: 18px;
    }
}

/* ========================================
   新增字段样式
======================================== */

/* 客户信息样式 */
.sw-case-client-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.sw-case-client-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sw-case-client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sw-case-client-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sw-case-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

/* 内容布局 */
.sw-case-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px;
}

.sw-case-main-content {
    min-width: 0;
}

.sw-case-sidebar {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* 简介样式 */
.sw-case-introduction-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #2c3e50;
}

.sw-case-introduction-content {
    line-height: 1.6;
    color: #555;
}

/* 按钮样式 */
.sw-case-buttons {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.sw-case-buttons-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #2c3e50;
}

.sw-case-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.sw-case-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.sw-case-product-button {
    background: var(--sw-color-primary);
    color: #fff;
}

.sw-case-product-button:hover {
    background: var(--sw-color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sw-case-solution-button {
    background: #fff;
    color: var(--sw-color-primary);
    border-color: var(--sw-color-primary);
}

.sw-case-solution-button:hover {
    background: var(--sw-color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 归档页面客户信息 */
.sw-case-item-client {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sw-case-item-client-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sw-case-item-client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sw-case-item-client-name {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.sw-case-item-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
}

/* ========================================
   案例页面模板样式
======================================== */

.sw-usecase-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sw-usecase-page-container {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 页面头部 */
.sw-usecase-page-header {
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.sw-usecase-page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.sw-usecase-page-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: #fff;
}

.sw-usecase-page-excerpt {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
}

/* 页面内容 */
.sw-usecase-page-content {
    padding: 40px;
    line-height: 1.8;
    color: #333;
}

.sw-usecase-page-main-content {
    max-width: 800px;
    margin: 0 auto;
}

.sw-usecase-page-main-content h2,
.sw-usecase-page-main-content h3,
.sw-usecase-page-main-content h4 {
    margin: 24px 0 16px 0;
    color: #2c3e50;
}

.sw-usecase-page-main-content p {
    margin: 0 0 16px 0;
}

.sw-usecase-page-main-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

/* 案例列表区域 */
.sw-usecase-list-section {
    padding: 40px;
    background: #f8f9fa;
}

.sw-usecase-list-header {
    text-align: center;
    margin-bottom: 40px;
}

.sw-usecase-list-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 24px 0;
    color: #2c3e50;
}

/* 筛选器 */
.sw-usecase-filter {
    margin-bottom: 30px;
}

.sw-usecase-filter-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.sw-usecase-filter-item {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    color: var(--sw-color-primary);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.sw-usecase-filter-item:hover,
.sw-usecase-filter-item.active {
    background: var(--sw-color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sw-usecase-filter-count {
    font-size: 12px;
    opacity: 0.8;
}

/* 案例网格 */
.sw-usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.sw-usecase-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sw-usecase-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sw-usecase-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.sw-usecase-item:hover .sw-usecase-item-image img {
    transform: scale(1.05);
}

.sw-usecase-item-content {
    padding: 24px;
}

.sw-usecase-item-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.sw-usecase-item-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sw-usecase-item-title a:hover {
    color: var(--sw-color-primary);
}

.sw-usecase-item-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #6c757d;
}

.sw-usecase-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 16px 0;
    font-size: 13px;
}

.sw-usecase-item-client {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sw-usecase-item-client-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sw-usecase-item-client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sw-usecase-item-client-name {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.sw-usecase-item-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
}

.sw-usecase-item-meta-label {
    color: #6c757d;
    font-weight: 500;
}

.sw-usecase-item-meta-value {
    color: #2c3e50;
    font-weight: 600;
}

.sw-usecase-item-categories {
    margin: 0 0 16px 0;
}

.sw-usecase-item-category {
    display: inline-block;
    background: #e9ecef;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin: 0 4px 4px 0;
}

.sw-usecase-item-more {
    text-align: right;
}

.sw-usecase-item-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sw-color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.sw-usecase-item-link:hover {
    color: var(--sw-color-primary-dark);
}

.sw-usecase-item-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.sw-usecase-item-link:hover .sw-usecase-item-arrow {
    transform: translateX(4px);
}

/* 无内容 */
.sw-usecase-no-content {
    padding: 60px 40px;
    text-align: center;
    color: #6c757d;
    grid-column: 1 / -1;
}

.sw-usecase-no-content h3 {
    font-size: 24px;
    margin: 0 0 16px 0;
    color: #2c3e50;
}

.sw-usecase-no-content p {
    font-size: 16px;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sw-case-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sw-case-sidebar {
        position: static;
        order: -1;
    }
    
    .sw-usecase-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .sw-case-content-wrapper {
        padding: 20px;
    }
    
    .sw-case-buttons-grid {
        flex-direction: column;
    }
    
    .sw-case-button {
        text-align: center;
    }
    
    .sw-case-client-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .sw-case-item-client {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
} 