/* ==========================================================================
   glgcx（管理工程系）子站首页专属样式（glgcx-index.css）
   第一行：大轮播（左）+ 系部动态（右）
   第二行：专业设置 / 特色场馆（两列各占一半；均为新增栏目暂无文章）
   主题色：#207F60（管理工程系墨绿）
   加载顺序：bootstrap → common.css → glgcx.css → glgcx-index.css
   ========================================================================== */

/* ==================== 容器 ==================== */
.glgcx-main {
    width: 100%;
    max-width: 1100px;
    margin: 15px auto 30px;
}

/* ==================== 第一行：轮播 + 系部动态 ==================== */
.glgcx-top-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch;
}

#glgcxSlide {
    flex: 1;
    min-width: 0;
}

#glgcxCarousel {
    border: 1px solid #ddd;
    overflow: hidden;
    height: 100%;
}

#glgcxCarousel .carousel-inner {
    height: 100%;
}

#glgcxCarousel .carousel-item {
    height: 100%;
}

#glgcxCarousel .carousel-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

#glgcxCarousel .carousel-caption {
    right: 0;
    left: 0;
    bottom: 0;
    padding: 10px 20px 28px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    text-align: center;
    text-shadow: none;
}

#glgcxCarousel .carousel-caption p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

#glgcxCarousel .carousel-caption a {
    color: #fff;
    font-size: 16px;
}

#glgcxCarousel .carousel-caption a:hover {
    color: #b3e0d0;
}

#glgcxCarousel .carousel-indicators {
    margin-bottom: 6px;
}

/* 第一行右侧系部动态卡片 */
.glgcx-top-row .glgcx-card {
    flex: 1;
    min-width: 0;
    margin: 0;
}

/* ==================== 第二行：两列 ==================== */
.glgcx-bottom-row {
    display: flex;
    gap: 20px;
}

.glgcx-bottom-row .glgcx-card {
    flex: 1;
    min-width: 0;
    min-height: 260px;
}

/* 空栏目内容垂直居中填充 */
.glgcx-bottom-row .glgcx-card-list {
    display: flex;
    flex-direction: column;
}

.glgcx-bottom-row .glgcx-card-list li.glgcx-empty {
    flex: 1;
    align-items: center;
}

/* ==================== 卡片通用 ==================== */
.glgcx-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

/* ==================== 卡片标题栏 ==================== */
.glgcx-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.glgcx-card-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    padding-left: 10px;
    border-left: 4px solid #207F60;
    line-height: 20px;
}

.glgcx-card-head h2 a {
    text-decoration: none;
    color: #207F60;
}

.glgcx-card-head h2 a:hover {
    color: #3fa482;
}

.glgcx-more {
    font-size: 13px;
    color: #999;
    text-decoration: none;
}

/* 三色主题 */
.color-1 .glgcx-card-head h2 { border-left-color: #207F60; }
.color-1 .glgcx-card-head h2 a { color: #207F60; }
.color-1 .glgcx-card-head h2 a:hover,
.color-1 .glgcx-more:hover { color: #3fa482; }

.color-2 .glgcx-card-head h2 { border-left-color: #A67300; }
.color-2 .glgcx-card-head h2 a { color: #A67300; }
.color-2 .glgcx-card-head h2 a:hover,
.color-2 .glgcx-more:hover { color: #c08f2b; }

.color-3 .glgcx-card-head h2 { border-left-color: #2E86C1; }
.color-3 .glgcx-card-head h2 a { color: #2E86C1; }
.color-3 .glgcx-card-head h2 a:hover,
.color-3 .glgcx-more:hover { color: #21618c; }

/* ==================== 卡片列表 ==================== */
.glgcx-card-list {
    list-style: none;
    margin: 0;
    padding: 8px 16px 12px;
    flex: 1;
}

.glgcx-card-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
}

.glgcx-card-list li:last-child {
    border-bottom: none;
}

.glgcx-card-list li a {
    flex: 1;
    min-width: 0;
    color: #444;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' viewBox='0 0 6 6'%3E%3Crect width='6' height='6' fill='%23207F60'/%3E%3C/svg%3E") left center no-repeat;
}

.glgcx-card-list li a:hover {
    color: #207F60;
}

.glgcx-date {
    flex-shrink: 0;
    margin-left: 12px;
    color: #999;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
}

.glgcx-empty {
    justify-content: center;
    color: #999;
    padding: 24px 0;
    background: none;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 767px) {
    .glgcx-main {
        margin: 10px auto 20px;
        padding: 0 10px;
    }

    .glgcx-top-row {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }

    #glgcxCarousel .carousel-item img {
        min-height: 200px;
        height: 200px;
    }

    #glgcxCarousel .carousel-caption p,
    #glgcxCarousel .carousel-caption a {
        font-size: 13px;
    }

    .glgcx-bottom-row {
        flex-direction: column;
        gap: 12px;
    }

    .glgcx-bottom-row .glgcx-card {
        min-height: 160px;
    }

    .glgcx-card-head h2 {
        font-size: 16px;
    }

    .glgcx-card-list li {
        font-size: 13px;
    }
}
