/* 自定义页面共享样式 */

/* 页面基础样式 */
.custom-page { 
    background-color: #f5f7fa;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 页面容器通用样式 */
.custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 页面头部通用样式 */
.custom-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.custom-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.custom-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 网格布局样式 */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 卡片通用样式 */
.section-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 移除悬浮效果 */
.section-card:hover {
    /* 保持原有样式，不添加任何悬浮效果 */
}

.section-card-header {
    background-color: #2a7f62;
    padding: 18px 20px;
}

.section-card-header h2 {
    color: white;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 500;
}

.section-card-content {
    padding: 30px 35px;
    flex-grow: 1;
}

.section-card-content p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

/* 详情链接容器样式 */
.section-link-container {
    margin-top: 20px;
    text-align: center;
}

/* 详情链接样式 */
.section-link, .view-details {
    display: inline-block;
    background-color: #2a7f62;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-align: center;
    font-weight: 500;
    width: 100%;
    max-width: 150px;
}

.section-link:hover, .view-details:hover {
    background-color: #226650;
    color: white;
    text-decoration: none;
}

/* 组织架构特有样式 */
.structure-chart {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.org-chart {
    width: 100%;
    margin: 30px 0;
    text-align: center;
}

.org-chart-box {
    display: inline-block;
    padding: 15px 25px;
    margin: 10px;
    background-color: #2a7f62;
    color: white;
    border-radius: 6px;
    min-width: 150px;
    position: relative;
}

.org-chart-box.main {
    background-color: #1a5c46;
}

.org-chart-box.sub {
    background-color: #3a9f82;
}

.org-chart-level {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    position: relative;
}

.org-chart-level:after {
    content: "";
    position: absolute;
    width: 2px;
    background-color: #2a7f62;
    top: 100%;
    height: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.org-chart-level:last-child:after {
    display: none;
}

/* 描述文本样式 */
.structure-description {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.structure-description p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    padding: 0 15px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .custom-container {
        padding: 30px 15px;
    }
    
    .sections-grid {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .custom-container {
        padding: 20px 15px;
    }
    
    .custom-header h1 {
        font-size: 2rem;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .structure-chart {
        padding: 20px;
    }
    
    .org-chart-box {
        min-width: 120px;
        padding: 10px 15px;
        margin: 5px;
    }
    
    .section-card-content {
        padding: 25px 30px;
    }
}

@media (max-width: 480px) {
    .custom-header {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .custom-header h1 {
        font-size: 1.8rem;
    }
    
    .section-card h2 {
        font-size: 1.2rem;
    }
}