/* ==========================================================================
   hqfw（总务科（后勤服务））子站首页专属样式（hqfw-index.css）
   第一行：大轮播（左）+ 招标采购（右）
   第二行：规章制度 / 办事指南（两列，各占一半）
   主题色：#83A000（橄榄绿）
   加载顺序：bootstrap → common.css → hqfw.css → hqfw-index.css
   ========================================================================== */

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

/* ==================== 第一行：轮播 + 招标采购 ==================== */
.hqfw-top-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch;
}

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

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

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

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

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

#hqfwCarousel .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;
}

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

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

#hqfwCarousel .carousel-caption a:hover {
    color: #d7e88a;
}

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

/* 第一行右侧招标采购卡片 */
.hqfw-top-row .hqfw-card {
    flex: 1;
    min-width: 0;
    margin: 0;
}

/* ==================== 第二行：两列（规章制度 / 办事指南） ==================== */
.hqfw-bottom-row {
    display: flex;
    gap: 20px;
}

.hqfw-bottom-row .hqfw-card {
    flex: 1;
    min-width: 0;
}

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

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

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

.hqfw-card-head h2 a {
    text-decoration: none;
    color: #83A000;
}

.hqfw-card-head h2 a:hover {
    color: #a3c21a;
}

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

/* 三色主题 */
.color-1 .hqfw-card-head h2 { border-left-color: #83A000; }
.color-1 .hqfw-card-head h2 a { color: #83A000; }
.color-1 .hqfw-card-head h2 a:hover,
.color-1 .hqfw-more:hover { color: #a3c21a; }

.color-2 .hqfw-card-head h2 { border-left-color: #C25E00; }
.color-2 .hqfw-card-head h2 a { color: #C25E00; }
.color-2 .hqfw-card-head h2 a:hover,
.color-2 .hqfw-more:hover { color: #994a00; }

.color-3 .hqfw-card-head h2 { border-left-color: #2a7a9d; }
.color-3 .hqfw-card-head h2 a { color: #2a7a9d; }
.color-3 .hqfw-card-head h2 a:hover,
.color-3 .hqfw-more:hover { color: #1d5c78; }

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

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

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

.hqfw-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='%2383A000'/%3E%3C/svg%3E") left center no-repeat;
}

.hqfw-card-list li a:hover {
    color: #83A000;
}

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

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

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

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

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

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

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

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

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