/* 项目展示页面样式 - 模仿公司动态风格 */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #9F5748 0%, #d4926b 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 装饰性背景图案已移除 - pattern.png不存在 */
/* .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
} */

.header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 项目分类导航 */
.projects-nav {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #9F5748;
    background: transparent;
    color: #9F5748;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
    background: #9F5748;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(159, 87, 72, 0.3);
}

.tab-btn i {
    font-size: 16px;
}

/* 主要内容区域 */
.projects-section {
    padding: 40px 0 80px;
    background: #f8f9fa;
    min-height: calc(100vh - 400px);
}

.projects-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧项目列表 */
.projects-list-container {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.projects-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.projects-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.projects-header h2 i {
    font-size: 24px;
    color: #9F5748;
}

.projects-stats {
    font-size: 14px;
    color: #666;
}

.projects-stats .total-count {
    background: #f8f9fa;
    color: #666;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

/* 项目列表 - 注释掉冲突样式，使用project-cards.css中的网格布局 */
.projects-list-old {
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
}

/* 项目项样式已移至projects-list-style.css */

.project-item.active {
    background: #fff3f0;
    border-left: 4px solid #9F5748;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.project-category {
    background: #9F5748;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.project-category.ancient { background: #8B4513; }
.project-category.garden { background: #228B22; }
.project-category.heritage { background: #DC143C; }
.project-category.international { background: #1E90FF; }
.project-category.award { background: #FFD700; color: #333; }

.project-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.project-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

.project-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hot-project {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

/* 加载状态 */
.loading-placeholder {
    padding: 60px 30px;
    text-align: center;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #9F5748;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 分页导航 - 模仿新闻页面样式 */
.pagination-container {
    padding: 25px 30px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-radius: 0 0 15px 15px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination a:hover,
.pagination a.active {
    background: #9F5748;
    color: white;
    border-color: #9F5748;
}

/* 项目容器 - 模仿新闻页面布局 */
.projects-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* 项目列表容器 - 模仿新闻列表容器 */
.projects-list-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 右侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 搜索小部件 */
.search-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-widget h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9F5748;
    display: inline-block;
}

.search-widget h3::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #9F5748;
    margin-right: 8px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form input {
    flex: 1;
    padding: 8px 15px;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
    height: 38px;
    box-sizing: border-box;
}

.search-form input:focus {
    outline: none;
    border-color: #9F5748;
    background: white;
}

.search-form button {
    width: 38px;
    height: 38px;
    background: #9F5748;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.search-form button:hover {
    background: #8a4a3e;
    transform: scale(1.05);
}

/* 统计小部件 */
.stats-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stats-widget h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-widget h3::before {
    content: '\f080';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #9F5748;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 45px;
    height: 45px;
    background: #9F5748;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.stat-content {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

/* 联系信息小部件 */
.contact-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-widget h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9F5748;
    display: inline-block;
}

.contact-widget h3::before {
    content: '\f095';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #9F5748;
    margin-right: 8px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #666;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    color: #333;
}

.contact-item i {
    width: 20px;
    text-align: center;
    color: #9F5748;
    font-size: 16px;
}

/* 空状态 */
.no-projects {
    text-align: center;
    padding: 60px 30px;
    color: #999;
}

.no-projects i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-projects h3 {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.no-projects p {
    font-size: 14px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .projects-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .projects-nav {
        padding: 20px 0;
    }
    
    .nav-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .projects-section {
        padding: 20px 0 40px;
    }
    
    .projects-container {
        gap: 20px;
    }
    
    .projects-header {
        padding: 20px;
    }
    
    .projects-header h2 {
        font-size: 20px;
    }
    
    /* .project-item {
        padding: 20px;
    } */
    
    .project-title {
        font-size: 16px;
    }
    
    .search-widget,
    .stats-widget,
    .contact-widget {
        padding: 20px;
    }
    
    .stats-list {
        gap: 12px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .projects-header,
    .project-item,
    .search-widget,
    .stats-widget,
    .contact-widget {
        padding: 15px;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .search-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-form input {
        width: 100%;
    }
    
    .search-form button {
        width: 100%;
        border-radius: 20px;
        height: 40px;
        align-self: center;
    }
}