/* 厂房仓库项目案例页面样式 - 工业现代风格 */

/* 页面介绍区域 */
.page-intro {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1), transparent);
    border-radius: 50%;
}

.page-intro .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.page-intro h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-intro p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 筛选区域 */
.filter-section {
    padding: 60px 0 40px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.filter-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.filter-tabs {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 32px;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: #ffffff;
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* 项目统计 */
.projects-stats {
    padding: 40px 0;
    background: #ffffff;
}

.projects-stats .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.stats-item {
    text-align: center;
    flex: 1;
    padding: 0 20px;
    border-right: 2px solid #dee2e6;
}

.stats-item:last-child {
    border-right: none;
}

.stats-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 8px;
}

.stats-label {
    font-size: 16px;
    color: #666;
}

/* 项目案例网格区域 */
.projects-grid-section {
    padding: 80px 0;
    background: #ffffff;
}

.projects-grid-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.project-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.project-card .project-image {
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

.project-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.project-info {
    padding: 30px;
    opacity: 1 !important;
    transform: none !important;
    height: auto !important;
    overflow: visible !important;
}

.project-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.project-meta-item {
    font-size: 14px;
    color: #666;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: auto !important;
}

.project-description {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 162px;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.project-tag {
    padding: 6px 14px;
    background: #e8f5e9;
    color: #2ecc71;
    font-size: 13px;
    border-radius: 20px;
    border: 1px solid #c8e6c9;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3498db;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #2ecc71;
    gap: 12px;
}

.project-link svg {
    width: 18px;
    height: 18px;
}

/* 分页区域 */
.pagination-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.pagination-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination-button,
.pagination-number {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-button:hover,
.pagination-number:hover {
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-button:disabled:hover {
    border-color: #dee2e6;
    color: #495057;
    box-shadow: none;
}

.pagination-number.active {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: #ffffff;
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.pagination-ellipsis {
    padding: 0 10px;
    color: #6c757d;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stats-item {
        flex: 1;
        min-width: 150px;
        border-right: none;
        border-bottom: 2px solid #dee2e6;
        padding-bottom: 20px;
    }

    .stats-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .page-intro {
        padding: 40px 0;
    }

    .page-intro .container {
        padding: 0 15px;
    }

    .page-intro h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-intro p {
        font-size: 14px;
        line-height: 1.6;
    }

    .filter-section {
        padding: 40px 0 30px;
    }

    .filter-section .container {
        padding: 0 15px;
    }

    .filter-tabs {
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .filter-tabs::-webkit-scrollbar-thumb {
        background: rgba(52, 152, 219, 0.3);
        border-radius: 2px;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .projects-stats {
        padding: 30px 0;
    }

    .projects-stats .container {
        padding: 0 15px;
    }

    .stats-row {
        flex-direction: column;
        gap: 0;
        padding: 20px 15px;
    }

    .stats-item {
        width: 100%;
        padding: 15px 0;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        border-radius: 0;
    }

    .stats-item:last-child {
        border-bottom: none;
    }

    .stats-number {
        font-size: 28px;
        margin-bottom: 5px;
    }

    .stats-label {
        font-size: 13px;
    }

    .projects-grid-section {
        padding: 40px 0;
    }

    .projects-grid-section .container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0;
        width: 100%;
    }

    .project-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(52, 152, 219, 0.1);
    }

    .project-card * {
        box-sizing: border-box;
    }

    .project-image {
        height: 200px;
        width: 100%;
        overflow: hidden;
    }

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .project-badge {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .project-info {
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        opacity: 1 !important;
        transform: none !important;
        height: auto !important;
        overflow: visible !important;
    }

    .project-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 12px;
        width: 100%;
        font-size: 12px;
    }

    .project-meta-item {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        color: #666;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        flex-shrink: 0;
    }

    .project-card .project-title {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.4;
        color: #2c3e50;
        margin-bottom: 12px;
        width: 100%;
        max-width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
        word-wrap: break-word;
        white-space: normal;
        display: block;
        overflow: visible;
        -webkit-line-clamp: none;
        -webkit-box-orient: initial;
    }

    .project-description {
        font-size: 14px;
        line-height: 1.7;
        color: #666;
        margin-bottom: 15px;
        width: 100%;
        max-width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
        word-wrap: break-word;
        white-space: normal;
        display: block;
        overflow: visible;
        min-height: auto;
        -webkit-line-clamp: none;
        -webkit-box-orient: initial;
        box-sizing: border-box;
        padding: 0;
    }

    .project-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
        width: 100%;
        max-width: 100%;
    }

    .project-tag {
        padding: 5px 12px;
        font-size: 12px;
        border-radius: 15px;
        flex-shrink: 0;
    }

    .project-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        width: auto;
        max-width: 100%;
        word-break: break-word;
    }

    .project-link svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .pagination-section {
        padding: 40px 0;
    }

    .pagination-section .container {
        padding: 0 15px;
    }

    .pagination {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-button,
    .pagination-number {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .page-intro h1 {
        font-size: 24px;
    }

    .page-intro p {
        font-size: 13px;
    }

    .filter-tab {
        padding: 6px 14px;
        font-size: 12px;
    }

    .stats-number {
        font-size: 24px;
    }

    .stats-label {
        font-size: 12px;
    }

    .project-image {
        height: 180px;
    }

    .project-info {
        padding: 15px 12px;
    }

    .project-card .project-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .project-description {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .project-meta {
        font-size: 11px;
        gap: 8px;
    }

    .project-meta-item {
        font-size: 11px;
    }

    .project-tag {
        padding: 4px 10px;
        font-size: 11px;
    }

    .project-link {
        font-size: 13px;
    }

    .pagination-button,
    .pagination-number {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }
.project-card:nth-child(9) { animation-delay: 0.9s; }
.project-card:nth-child(10) { animation-delay: 1.0s; }
.project-card:nth-child(11) { animation-delay: 1.1s; }
.project-card:nth-child(12) { animation-delay: 1.2s; }
.project-card:nth-child(13) { animation-delay: 1.3s; }
.project-card:nth-child(14) { animation-delay: 1.4s; }
.project-card:nth-child(15) { animation-delay: 1.5s; }

