/* i8HOME-Next 案例、视频、下载、招聘页样式 */

.page-head {
    padding: 24px 0 12px;
}

.page-head h1 {
    font-size: 22px;
    margin: 0 0 6px;
    color: #111;
}

.breadcrumb {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #0a7a35;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.filter-item {
    padding: 6px 14px;
    font-size: 14px;
    color: #555;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    transition: all 0.2s;
}

.filter-item:hover {
    border-color: #0a7a35;
    color: #0a7a35;
}

.filter-item.active {
    background: #0a7a35;
    border-color: #0a7a35;
    color: #fff;
}

/* ---------- 案例网格 ---------- */

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.gallery-cover {
    aspect-ratio: 4 / 3;
    background: #f6f7f9;
    overflow: hidden;
}

.gallery-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-info {
    padding: 16px;
}

.gallery-info h3 {
    font-size: 16px;
    margin: 0 0 8px;
    color: #222;
    line-height: 1.4;
}

.gallery-card:hover h3 {
    color: #0a7a35;
}

.gallery-info .summary {
    font-size: 13px;
    color: #888;
    margin: 0 0 10px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-info .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #aaa;
}

.gallery-info .meta span::before {
    content: "· ";
}

.gallery-info .meta span:first-child::before {
    content: "";
}

/* 案例详情 */
.gallery-detail {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 24px;
}

.detail-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.detail-header h1 {
    font-size: 22px;
    line-height: 1.4;
    margin: 0 0 12px;
    color: #111;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #666;
}

.detail-meta strong {
    color: #999;
    font-weight: 400;
}

.detail-summary {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin: 0 0 24px;
    padding: 16px 20px;
    background: #fafbfc;
    border-left: 4px solid #0a7a35;
    border-radius: 4px;
}

.gallery-images {
    margin: 24px 0;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.image-item {
    margin: 0;
    background: #f6f7f9;
    border-radius: 8px;
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.image-item figcaption {
    padding: 10px 14px;
    font-size: 13px;
    color: #666;
    background: #fff;
}

.detail-content {
    padding: 24px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 24px;
}

/* ---------- 视频网格 ---------- */

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.video-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.video-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    overflow: hidden;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding-left: 4px;
    transition: background 0.2s;
}

.video-card:hover .play-icon {
    background: #0a7a35;
}

.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-info {
    padding: 14px 16px;
}

.video-info h3 {
    font-size: 15px;
    margin: 0 0 6px;
    color: #222;
    line-height: 1.4;
}

.video-card:hover h3 {
    color: #0a7a35;
}

.video-info .summary {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 视频详情 */
.video-detail {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.video-player {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
}

.video-player video,
.video-player iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
}

.video-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #999;
}

.video-placeholder img {
    max-height: 60%;
    opacity: 0.7;
    margin-bottom: 12px;
}

.video-placeholder p {
    margin: 0;
    font-size: 14px;
}

/* ---------- 下载列表 ---------- */

.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.download-item:hover {
    border-color: #0a7a35;
}

.download-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    color: #fff;
}

.icon-pdf { background: #e03e2d; }
.icon-doc { background: #2b579a; }
.icon-xls { background: #217346; }
.icon-ppt { background: #d24726; }
.icon-zip { background: #f0a500; }
.icon-file { background: #666; }

.download-info {
    flex: 1;
    min-width: 0;
}

.download-info h3 {
    font-size: 15px;
    margin: 0 0 6px;
    color: #222;
}

.download-info h3 a:hover {
    color: #0a7a35;
}

.download-info .summary {
    font-size: 13px;
    color: #888;
    margin: 0 0 8px;
    line-height: 1.5;
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #aaa;
}

.download-action {
    flex: 0 0 auto;
}

.btn-download {
    display: inline-block;
    padding: 8px 18px;
    background: #0a7a35;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-download:hover {
    background: #086c2e;
}

/* ---------- 招聘列表 ---------- */

.job-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.job-item:hover {
    border-color: #0a7a35;
}

.job-main h3 {
    font-size: 17px;
    margin: 0 0 10px;
    color: #222;
}

.job-main h3 a:hover {
    color: #0a7a35;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-tags .tag {
    padding: 3px 10px;
    font-size: 12px;
    color: #666;
    background: #f6f7f9;
    border-radius: 4px;
}

.job-tags.big .tag {
    padding: 5px 12px;
    font-size: 13px;
}

.job-side {
    display: flex;
    align-items: center;
    gap: 16px;
}

.job-side .salary {
    color: #c00;
    font-weight: 700;
    font-size: 16px;
}

.btn-apply {
    display: inline-block;
    padding: 8px 18px;
    background: #0a7a35;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
}

.btn-apply:hover {
    background: #086c2e;
}

/* 招聘详情 */
.job-detail {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 24px;
}

.job-salary {
    font-size: 22px;
    color: #c00;
    font-weight: 700;
    margin-top: 12px;
}

.detail-block {
    margin-top: 28px;
}

.detail-block h2 {
    font-size: 17px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0a7a35;
    display: inline-block;
    color: #222;
}

.contact-block {
    padding: 20px;
    background: #fafbfc;
    border-radius: 8px;
    margin-top: 28px;
}

.contact-block p {
    margin: 8px 0;
    font-size: 15px;
    color: #333;
}

.contact-block strong {
    color: #0a7a35;
}

/* 富文本 */
.rich-content {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
}

.rich-content p {
    margin: 0 0 12px;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    margin: 12px 0;
    border-radius: 6px;
}

.rich-content ul, .rich-content ol {
    padding-left: 24px;
    margin: 12px 0;
}

.rich-content li {
    margin: 4px 0;
}

/* 相关区块 */
.related-section {
    margin-top: 32px;
    margin-bottom: 24px;
}

.related-section h2 {
    font-size: 18px;
    margin: 0 0 16px;
    color: #222;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 32px 0;
    font-size: 14px;
}

.pagination a {
    padding: 8px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    color: #333;
}

.pagination a:hover {
    border-color: #0a7a35;
    color: #0a7a35;
}

.pagination .current {
    color: #888;
}

/* PC 增强 */
@media (min-width: 768px) {
    .page-head h1 {
        font-size: 28px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-detail,
    .video-detail,
    .job-detail {
        padding: 40px 48px;
    }

    .detail-header h1 {
        font-size: 28px;
    }

    .job-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .job-main {
        flex: 1;
    }

    .job-side {
        flex: 0 0 auto;
    }

    .download-item {
        padding: 22px 24px;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}