/* 前台全局样式 */
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Hero区域 */
.hero-section {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 内容HTML渲染区域 */
.content-html img {
    max-width: 100%;
    height: auto;
}

.content-html table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.content-html table th,
.content-html table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.content-html blockquote {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid #0066cc;
    background: #f8f9fa;
}

/* 卡片悬停效果 */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 导航栏 */
.navbar-brand img {
    max-height: 40px;
}

/* 子栏目卡片行 */
.child-cards-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.child-cards-row > .col {
    padding: 0 10px;
    flex: 1 1 0;
    min-width: 200px;
    margin-bottom: 20px;
}

/* 子栏目卡片 */
.child-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.child-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.child-card.active {
    border-color: #0066cc;
    background-color: #f0f7ff;
}

/* 子栏目内容展开区域 */
.child-content-wrapper {
    animation: fadeIn 0.3s ease;
}

@@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 导航高亮 */
.nav-link.active-nav {
    color: #0066cc !important;
    font-weight: 600;
    border-bottom: 2px solid #0066cc;
}

/* 页脚 */
footer {
    margin-top: auto;
}
