/* ==================== 企业文化页面专用样式 ==================== */
:root {
    --right-width: 420px;
}

/* ============================================================
   1. Container / 页面容器
   ============================================================ */

.qywh-container {
    max-width: var(--portal-container-width, 1200px);
    margin: 0 auto;
    padding: 30px 20px;
}


/* ============================================================
   2. Section Title / 通用区块标题
   ============================================================ */

.qywh-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 32px;
    color: #2A64D0;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.qywh-section-more {
    font-size: 13px;
    font-weight: 400;
    color: var(--portal-text-muted, #999);
    letter-spacing: 0;
    transition: color 0.2s;
}

.qywh-section-more:hover {
    color: #2A64D0;
}


/* ============================================================
   3. Top Row / 上方双列区域
   ============================================================ */

.qywh-top-row {
    display: flex;
    gap: 30px;
    margin-bottom: 36px;
}


/* ============================================================
   4. Promo / 企业宣传片（左列）
   ============================================================ */

.qywh-promo {
    flex: 1;
    flex-shrink: 0;
}

.qywh-promo-video {
    width: 100%;
    height: 450px;
    border-radius: 6px;
    display: block;
    object-fit: contain;
    background: #000;
}


/* ============================================================
   5. Articles / 职工文苑（右列）
   ============================================================ */

.qywh-articles {
    width: var(--right-width);
    min-width: 0;
}

.qywh-article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qywh-article-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed var(--portal-border, #e0e0e0);
}

.qywh-article-item:last-child {
    border-bottom: none;
}

.qywh-article-link {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--portal-text, #333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 16px;
    position: relative;
    transition: color 0.2s;
}

.qywh-article-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 1px;
}

.qywh-article-link:hover {
    color: #2A64D0;
}

.qywh-article-date {
    flex-shrink: 0;
    margin-left: 16px;
    font-size: 13px;
    color: var(--portal-text-muted, #999);
}


/* ============================================================
   6. Bottom Row / 下方双列区域
   ============================================================ */

.qywh-bottom-row {
    display: flex;
    gap: 30px;
}


/* ============================================================
   7. Highlights / 员工风采（左列）
   ============================================================ */

.qywh-highlights {
    flex: 1;
    flex-shrink: 0;
}

.qywh-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.qywh-highlight-card {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.qywh-highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.qywh-highlight-img {
    position: relative;
    overflow: hidden;
}

.qywh-highlight-img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.qywh-highlight-card:hover .qywh-highlight-img img {
    transform: scale(1.05);
}

.qywh-highlight-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    font-size: 13px;
    color: #fff;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.6);
    cursor: default;
}


/* ============================================================
   8. Album / 企业画册（右列）
   ============================================================ */

.qywh-album {
    width: var(--right-width);
    flex-shrink: 0;
}

.qywh-album-card {
    display: block;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    height: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.qywh-album-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.qywh-album-bg {
    width: 100%;
    height: 100%;
}

.qywh-album-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ============================================================
   9. H5 Responsive / 响应式适配
   ============================================================ */

/* 平板端（≤1200px） */
@media (max-width: 1200px) {
    .qywh-promo {
        width: 60%;
    }

    .qywh-promo-video {
        height: 280px;
    }

    .qywh-highlights {
        width: 60%;
    }

    .qywh-album {
        width: 30%;
    }

    .qywh-album-card {
        height: 260px;
    }

    .qywh-highlight-img img {
        height: 120px;
    }
}

/* H5端（≤768px） */
@media (max-width: 768px) {
    .qywh-container {
        padding: 20px 16px;
    }

    /* 区块标题缩小 */
    .qywh-section-title {
        font-size: 18px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    /* 上方区域纵向堆叠 */
    .qywh-top-row {
        flex-direction: column;
        gap: 24px;
    }

    .qywh-promo {
        width: 100%;
    }

    .qywh-highlights {
        width: 100%;
    }

    /* 文章列表间距微调 */
    .qywh-article-item {
        padding: 8px;
    }

    .qywh-article-link {
        font-size: 13px;
        padding-left: 14px;
    }

    .qywh-article-link::before {
        width: 5px;
        height: 5px;
    }

    .qywh-article-date {
        font-size: 12px;
        margin-left: 12px;
    }

    /* 下方区域纵向堆叠 */
    .qywh-bottom-row {
        flex-direction: column;
        gap: 24px;
    }

    .qywh-highlights {
        width: 100%;
    }

    /* 员工风采卡片 2列 */
    .qywh-highlight-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .qywh-highlight-img img {
        height: 130px;
    }

    .qywh-highlight-caption {
        padding: 8px 10px;
        font-size: 12px;
    }

    /* 企业画册全宽 */
    .qywh-album {
        width: 100%;
    }

    .qywh-album-card {
        height: 220px;
    }
}

/* 小屏手机（≤480px） */
@media (max-width: 480px) {
    .qywh-container {
        padding: 16px 12px;
    }

    .qywh-section-title {
        font-size: 16px;
    }

    .qywh-promo-video {
        height: 180px;
    }

    .qywh-article-link {
        font-size: 12px;
    }

    .qywh-article-date {
        font-size: 11px;
    }
}