/* 作品案例列表页面样式 */
:root {
    --zh-primary-color: #20c997;
    --zh-primary-dark: #16a085;
    --zh-primary-light: #6fdecb;
    --zh-secondary-color: #17a2b8;
    --zh-accent-color: #fd7e14;
    --zh-text-primary: #333333;
    --zh-text-secondary: #666666;
    --zh-text-muted: #999999;
    --zh-background: #ffffff;
    --zh-background-light: #f8f9fa;
    --zh-border-color: #e9ecef;
    --zh-shadow: 0 2px 20px rgba(32, 201, 151, 0.1);
    --zh-shadow-hover: 0 8px 30px rgba(32, 201, 151, 0.2);
    --zh-border-radius: 16px;
    --zh-border-radius-small: 8px;
    --zh-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--zh-text-primary);
    margin: 0;
    padding: 0;
    background-color: var(--zh-background-light);
}

.zh_main-container {
    min-height: 100vh;
    padding-top: 20px;
}

.zh_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面头部标题区域 */
.zh_page-header {
    background: linear-gradient(135deg, var(--zh-primary-color) 0%, var(--zh-secondary-color) 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.zh_page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.zh_page-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.zh_page-title i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.zh_page-subtitle {
    font-size: 1.2rem;
    margin: 0 0 25px 0;
    opacity: 0.9;
    font-weight: 300;
}

.zh_breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.zh_breadcrumb a {
    color: white;
    text-decoration: none;
    transition: var(--zh-transition);
}

.zh_breadcrumb a:hover {
    opacity: 0.7;
}

.zh_separator {
    opacity: 0.6;
}

.zh_current {
    font-weight: 600;
}

/* 筛选工具条 */
.zh_filter-section {
    margin-bottom: 30px;
}

.zh_filter-toolbar {
    background: var(--zh-background);
    border-radius: var(--zh-border-radius);
    padding: 25px;
    box-shadow: var(--zh-shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.zh_search-box {
    display: flex;
    position: relative;
    min-width: 300px;
    flex: 1;
}

.zh_search-box form {
    display: flex;
    position: relative;
    width: 100%;
}

.zh_search-input {
    flex: 1;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--zh-border-color);
    border-radius: var(--zh-border-radius-small);
    font-size: 1rem;
    transition: var(--zh-transition);
    background: var(--zh-background-light);
}

.zh_search-input:focus {
    outline: none;
    border-color: var(--zh-primary-color);
    background: var(--zh-background);
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.1);
}

.zh_search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--zh-primary-color);
    border: none;
    border-radius: var(--zh-border-radius-small);
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: var(--zh-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh_search-btn:hover {
    background: var(--zh-primary-dark);
    transform: translateY(-50%) scale(1.05);
}

.zh_filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.zh_category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.zh_filter-btn {
    background: var(--zh-background-light);
    border: 2px solid var(--zh-border-color);
    padding: 10px 18px;
    border-radius: var(--zh-border-radius-small);
    cursor: pointer;
    transition: var(--zh-transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--zh-text-secondary);
    text-decoration: none;
}

.zh_filter-btn:hover {
    border-color: var(--zh-primary-color);
    color: var(--zh-primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.2);
    text-decoration: none;
}

.zh_filter-btn.active {
    background: var(--zh-primary-color);
    border-color: var(--zh-primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.3);
}

/* 排序工具条 */
.zh_sort-section {
    margin-bottom: 40px;
}

.zh_sort-toolbar {
    background: var(--zh-background);
    border-radius: var(--zh-border-radius);
    padding: 20px 25px;
    box-shadow: var(--zh-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.zh_sort-options {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.zh_sort-label {
    font-weight: 600;
    color: var(--zh-text-primary);
    margin-right: 10px;
}

.zh_sort-btn {
    background: var(--zh-background-light);
    border: 2px solid var(--zh-border-color);
    padding: 8px 16px;
    border-radius: var(--zh-border-radius-small);
    cursor: pointer;
    transition: var(--zh-transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--zh-text-secondary);
}

.zh_sort-btn:hover {
    border-color: var(--zh-primary-color);
    color: var(--zh-primary-color);
    background: var(--zh-background);
}

.zh_sort-btn.active {
    background: var(--zh-primary-color);
    border-color: var(--zh-primary-color);
    color: white;
}

.zh_view-toggle {
    display: flex;
    gap: 5px;
}

.zh_view-btn {
    background: var(--zh-background-light);
    border: 2px solid var(--zh-border-color);
    width: 40px;
    height: 40px;
    border-radius: var(--zh-border-radius-small);
    cursor: pointer;
    transition: var(--zh-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zh-text-secondary);
}

.zh_view-btn:hover {
    border-color: var(--zh-primary-color);
    color: var(--zh-primary-color);
}

.zh_view-btn.active {
    background: var(--zh-primary-color);
    border-color: var(--zh-primary-color);
    color: white;
}

/* 作品案例网格 */
.zh_portfolio-section {
    margin-bottom: 60px;
}

.zh_portfolio-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.zh_portfolio-grid.active {
    display: grid;
}

.zh_portfolio-item {
    position: relative;
}

.zh_portfolio-card {
    background: var(--zh-background);
    border-radius: var(--zh-border-radius);
    overflow: hidden;
    box-shadow: var(--zh-shadow);
    transition: var(--zh-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.zh_portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--zh-shadow-hover);
}

.zh_portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.zh_portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--zh-transition);
}

.zh_portfolio-card:hover .zh_portfolio-image img {
    transform: scale(1.1);
}

.zh_portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(32, 201, 151, 0.9), rgba(23, 162, 184, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--zh-transition);
}

.zh_portfolio-card:hover .zh_portfolio-overlay {
    opacity: 1;
}

.zh_portfolio-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.zh_portfolio-link {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: var(--zh-border-radius-small);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: var(--zh-transition);
    font-size: 0.9rem;
}

.zh_portfolio-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.zh_portfolio-favorite {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--zh-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.zh_portfolio-favorite:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.zh_portfolio-favorite.favorited {
    color: var(--zh-accent-color);
}

.zh_portfolio-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.zh_portfolio-badge span {
    background: var(--zh-primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: var(--zh-border-radius-small);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.zh_badge-new {
    background: var(--zh-primary-color) !important;
}

.zh_badge-latest {
    background: var(--zh-secondary-color) !important;
}

.zh_badge-hot {
    background: var(--zh-accent-color) !important;
}

.zh_portfolio-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.zh_portfolio-title {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.zh_portfolio-title a {
    color: var(--zh-text-primary);
    text-decoration: none;
    transition: var(--zh-transition);
}

.zh_portfolio-title a:hover {
    color: var(--zh-primary-color);
}

.zh_portfolio-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--zh-text-muted);
}

.zh_portfolio-category,
.zh_portfolio-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.zh_portfolio-stats {
    display: flex;
    gap: 20px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--zh-border-color);
}

.zh_stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--zh-text-muted);
}

/* 列表视图样式 */
.zh_portfolio-section.zh_view-list .zh_portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.zh_portfolio-section.zh_view-list .zh_portfolio-card {
    flex-direction: row;
    height: 200px;
}

.zh_portfolio-section.zh_view-list .zh_portfolio-image {
    width: 300px;
    height: 100%;
    flex-shrink: 0;
}

.zh_portfolio-section.zh_view-list .zh_portfolio-content {
    flex: 1;
    padding: 20px 25px;
}

/* 分页样式 */
.zh_pagination-section {
    margin-bottom: 60px;
}

.zh_pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 推荐区域 */
.zh_recommendation-section {
    background: var(--zh-background);
    padding: 60px 0;
    border-radius: var(--zh-border-radius);
    margin-bottom: 40px;
    box-shadow: var(--zh-shadow);
}

.zh_section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 40px 0;
    color: var(--zh-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.zh_section-title i {
    color: var(--zh-accent-color);
}

.zh_recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.zh_recommendation-item {
    background: var(--zh-background-light);
    border-radius: var(--zh-border-radius-small);
    overflow: hidden;
    transition: var(--zh-transition);
}

.zh_recommendation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.zh_recommendation-image {
    height: 120px;
    overflow: hidden;
}

.zh_recommendation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--zh-transition);
}

.zh_recommendation-item:hover .zh_recommendation-image img {
    transform: scale(1.1);
}

.zh_recommendation-content {
    padding: 15px;
}

.zh_recommendation-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.zh_recommendation-title a {
    color: var(--zh-text-primary);
    text-decoration: none;
    transition: var(--zh-transition);
}

.zh_recommendation-title a:hover {
    color: var(--zh-primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zh_container {
        padding: 0 15px;
    }
    
    .zh_page-title {
        font-size: 2rem;
    }
    
    .zh_page-title i {
        font-size: 1.8rem;
    }
    
    .zh_filter-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .zh_search-box {
        min-width: auto;
    }
    
    .zh_filter-options {
        justify-content: center;
    }
    
    .zh_sort-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .zh_sort-options {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .zh_view-toggle {
        justify-content: center;
    }
    
    .zh_portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .zh_portfolio-section.zh_view-list .zh_portfolio-card {
        flex-direction: column;
        height: auto;
    }
    
    .zh_portfolio-section.zh_view-list .zh_portfolio-image {
        width: 100%;
        height: 200px;
    }
    
    .zh_recommendation-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .zh_section-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .zh_page-header {
        padding: 40px 0;
    }
    
    .zh_page-title {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .zh_portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .zh_filter-toolbar,
    .zh_sort-toolbar {
        padding: 20px;
    }
    
    .zh_portfolio-content {
        padding: 20px;
    }
}

/* 动画效果 */
@keyframes zh_fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zh_pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.zh_portfolio-card {
    animation: zh_fadeInUp 0.6s ease-out;
}

.zh_badge-new {
    animation: zh_pulse 2s infinite;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--zh-background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--zh-primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--zh-primary-dark);
}
