/* xhjs.css - 协会介绍专属样式 */

.breadcrumb-nav {
    width: 100%;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-nav a {
    color: #1C983E;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.content-area {
    display: flex;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.sidebar {
    width: 200px;
    flex-shrink: 0;
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.nav-title {
    font-size: 16px;
    font-weight: bold;
    color: #1C983E;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1C983E;
    text-align: center;
}

.xhjs-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: stretch; /* 关键！让子项撑满宽度 */
}

.xhjs-nav-item {
    margin: 0;
}

.xhjs-nav-link {
    display: block;
    padding: 12px 15px;
    text-decoration: none !important;
    color: #333;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    text-align: center;
    font-size: 14px;
    white-space: nowrap;
    width: 100%; /* 显式设置宽度 */
}

.xhjs-nav-link.active {
    background-color: #1C983E;
    color: white;
    border-color: #1C983E;
    text-decoration: none !important;
}

.xhjs-nav-link:hover {
    background-color: #e9ecef;
    color: #1C983E;
    text-decoration: none !important;
}

.content-panel {
    flex: 1;
    background-color: white;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.content-title {
    font-size: 22px;
    font-weight: bold;
    color: #1C983E;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1C983E;
}

.content-text {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.sub-content-section {
    display: none;
}

.sub-content-section.active {
    display: block;
}

/* 响应式 */
@media (max-width: 768px) {
    .content-area {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .content-panel {
        padding: 20px;
    }

    .content-title {
        font-size: 18px;
    }
}