/* ============================================
   機構頁面樣式
   ============================================ */

.organization-page {
    background-color: #fff;
    padding: 30px 0;
}
.organization-page .block-header{
    margin-bottom: 10px;
}
.page-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
    /* font-family: 'GovWF_FZ', "Microsoft YaHei", "SimHei", Arial, sans-serif; */
}
.content-section{
    margin-bottom: 10px;
}
.content-section:first-child {
    margin-bottom: 40px;
}

/* 主要職責 */
.responsibilities-content {
    color: #333333;
    font-size: 20px;
    position: relative;
    line-height: 1.9;
}
.departments-group-title{
    font-size: 20px;
    color: #333;
    padding-bottom: 40px;
    padding-top: 15px;
    line-height: 1;
    border-bottom: 1px solid #E3E3E3;
}
.more-link {
    position: absolute;
    right: 0;
    bottom: 0;
    background: #fff;
}
.more-link a{
    color: #EA0000;
    font-size: 20px;
}

.view-more {
    color: #115A94;
    text-decoration: none;
    margin-left: 10px;
    transition: color 0.3s;
}

.view-more:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* 領導網頁 */
.leadership-container {
    display: flex;
    align-items: flex-start;
    padding-top: 10px;
    justify-content: space-between;
}

.leadership-left {
    flex: 0 0 52%;
    display: flex;
    flex-direction: column;
    margin-top: -5px;
}

.leadership-right {
    flex: 0 0 47%;

}

.leadership-right img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
}

.leader-item-simple {
    /* padding: 12px 0; */
    line-height: 1.5;
    margin-bottom: 9px;
}
.leader-item-simple:last-child{
    margin-bottom: 0;
}

.leader-item-simple a {
    display: flex;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.leader-item-simple a:hover {
    color: #115A94;
}

.leader-item-simple .leader-name {
    font-size: 20px;
    color: #115A94;
    font-weight: normal;
    flex-shrink: 0;
    font-weight: bold;
}

.leader-item-simple .leader-position {
    font-size: 20px;
    color: #333;
}

.leadership-section{
    margin-bottom: 20px ;
    padding-bottom: 20px;
    border-bottom: 1px solid #E3E3E3;
}

.leadership-grid {
    /* display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px; */
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #E3E3E3;
    /* padding-bottom: 20px; */
}
.leadership-grid:last-child{
    border-bottom: none;
}
.leadership-grid-bottom{
    justify-content: flex-start;
    
}
.leadership-grid-bottom .leader-item{
    width: 28%;
    padding-bottom: 16px;
}
.leader-item {
    padding: 34px 0;
    transition: all 0.3s ease;
}
.leader-item-top{
    padding: 6px 0 0;
}

.leader-item a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
}

.leader-name {
    font-size: 20px;
    color: #333;
}

.leader-position {
    font-size: 18px;
    color: #333;
}
.leader-item-top .leader-position{
    padding-top: 6px;
    line-height: 1;
}

/* 機構設置 */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0 5px;
}

.department-item {
    /* background-color: #fff;
    border: 1px solid #e0e0e0; */
    border-radius: 4px;
    padding: 15px 0;
    line-height: 1;
    text-align: left;
    transition: all 0.3s ease;
}

.department-item:hover {
    /* background-color: #f0f7ff; */
    border-color: #115A94;
    /* transform: translateY(-2px); */
}

.department-item a {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    display: block;
}

.department-item:hover a {
    color: #115A94;
}

/* 部屬行政機構 */
.agencies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.agency-item {
    flex: 1;
    min-width: 250px;
    /* background-color: #fff; */
    /* border: 1px solid #e0e0e0; */
    padding: 10px 0;
    transition: all 0.3s ease;
}

.agency-item:hover {
    /* background-color: #f0f7ff; */
    border-color: #115A94;
    /* transform: translateY(-2px); */
}

.agency-item a {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    display: block;
}

.agency-item:hover a {
    color: #115A94;
}
.content-section-box{
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    display: grid;
    border-top: 1px solid #E3E3E3;
}
.content-section-box .content-section-box-item{
    border-radius: 4px;
    padding: 35px 0 15px;
    text-align: left;
    transition: all 0.3s ease;
}
.content-section-box-item a{
    color: #333;
    font-size: 20px;
    display: block;
    padding: 10px 0;
    transition: all 0.3s ease;
}
.content-section-box-header{
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}
.content-section-box .content-section-box-item a:hover {
    /* border-color: #115A94; */
    /* transform: translateY(-2px); */
    color: #115A94;
}

.block-header-bottom15{
    margin-bottom: 15px !important;
}
.block-header-bottom35{
    margin-bottom: 35px;
}
.agencies-section{
    margin-bottom: 0;
    padding-bottom: 25px;
}

/* 響應式設計 - 平板 */
@media screen and (max-width: 1024px) {
    .leadership-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .departments-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0 12px;
    }
    .department-item{
        padding: 10px 0;
    }
    .department-item a,.content-section-box-header,.agency-item a{
        font-size: 18px;
    }
    .agencies-section{
        padding-bottom: 0;
    }
}

/* 響應式設計 - 移動端 */
@media screen and (max-width: 768px) {
    .organization-page {
        padding: 20px 0 0px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .leadership-container {
        flex-direction: column;
        gap: 20px;
    }

    .leadership-left,
    .leadership-right {
        flex: 0 0 100%;
    }

    .leader-item-simple .leader-name,
    .leader-item-simple .leader-position {
        font-size: 18px;
    }

    .leadership-grid,
    .departments-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        flex-wrap: wrap;
        padding: 10px 0;
    }
    .leader-item{
        padding: 6px 0;
    }
    .content-section:first-child{
        margin-bottom: 20px;
    }
    .content-section-box .content-section-box-item{
        padding: 15px 0;
    }
    .content-section-box{
        gap: 0;
    }
    .department-item{
        padding: 8px 0;
    }
    .department-item a,.agency-item a,.content-section-box-item a,.responsibilities-content,.more-link a{
        font-size: 18px;
    }
    .departments-group-title{
        padding-bottom: 20px;
    }

    .agencies-list,
    .enterprises-list,
    .organizations-list {
        flex-direction: column;
    }

    .agency-item,
    .enterprise-item,
    .organization-item {
        min-width: 100%;
    }

}

