/* 重置默认样式 */ 
* { 
    box-sizing: border-box; 
} 

/* 通用样式 */
body {
    padding-top: 0; /* 不再需要，因为导航栏不再固定 */
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主内容区域 */
main {
    flex: 1;
}

/* 页脚样式 */
footer {
    margin-top: auto !important;
    background-color: #212529 !important;
    color: #fff !important;
    padding: 20px 0 !important;
    width: 100% !important;
    clear: both !important;
    display: block !important;
    box-sizing: border-box !important;
} 

/* 导航栏样式 - 带背景图 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0;
    width: 100%;
    background-image: url('/static/images/back_groud_top.jpg') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #28a745 !important;
    height: 80px;
    display: flex;
    align-items: center;
}

/* 导航栏容器 - 居中对齐 */
.navbar .container {
    max-width: 1200px !important;
    display: flex;
    align-items: center;
    padding: 0 20px !important;
    margin: 0 auto !important;
}

/* 导航栏品牌 - 显示 */
.navbar-brand {
    display: flex !important;
    align-items: center;
    margin-right: auto !important;
    opacity: 1 !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 导航链接容器 - 靠右 */
.navbar-collapse {
    flex-grow: 0 !important;
    display: flex;
    justify-content: flex-end !important;
}

/* 导航链接样式 */
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 20px !important;
    margin: 0;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transform: translateY(-2px);
}

/* 导航栏品牌标识 */
.navbar-brand {
    margin-right: auto !important;
    font-size: 1.5rem;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

/* 导航链接容器 */
.navbar-collapse {
    flex-grow: 0 !important;
    width: auto;
    display: flex !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
}

/* 导航链接 */
.navbar-nav {
    display: flex;
    justify-content: flex-end !important;
    width: auto;
    margin: 0 !important;
}

.navbar-nav .nav-item {
    margin: 0 10px;
}

/* 移除导航栏阴影 */
.navbar {
    box-shadow: none !important;
} 

/* 简约大气的首页背景区域 */
.hero-section {
    height: 400px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: #28a745;
    background-image: url('/static/images/backgroud.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 100%;
    margin: 0;
    padding: 0 20px;
    text-align: right;
}

.hero-content h1 {
    color: #fff;
    font-size: 2rem;
    margin: 0;
    font-weight: bold;
}

.hero-content p {
    color: #fff;
    font-size: 1.25rem;
    margin: 0;
} 

/* 欢迎区域样式 */ 
.welcome-section { 
    padding: 40px 0; 
    background-color: #f8f9fa; 
    text-align: center; 
} 

.welcome-section h2 { 
    color: #212529; 
    font-weight: 700; 
    margin-bottom: 10px; 
    font-size: 2rem; 
} 

/* 标语样式 */ 
.slogan { 
    color: #6c757d; 
    font-size: 1.25rem; 
    margin-bottom: 20px; 
    font-style: italic; 
} 

.welcome-section h3 { 
    color: #495057; 
    font-weight: 600; 
    margin-bottom: 20px; 
    font-size: 1.5rem; 
} 

.welcome-section p.lead {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
} 

/* 公示信息区样式 */ 
.notices-section { 
    padding: 50px 0; 
    background-color: #fff; 
} 

.section-title { 
    color: #212529; 
    font-weight: 700; 
    margin-bottom: 30px; 
    padding-bottom: 10px; 
    border-bottom: 2px solid #0d6efd; 
    display: inline-block; 
} 

/* 公示信息行容器，使用flex确保卡片等高 */ 
.notices-row { 
    display: flex; 
    flex-wrap: wrap; 
    margin: 0 -15px; 
} 

.notices-row > [class*="col-"] { 
    display: flex; 
    padding: 0 15px; 
    margin-bottom: 30px; 
} 

.notice-item { 
    background-color: #f8f9fa; 
    padding: 25px; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); 
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
    flex: 1; /* 确保卡片占满整个列高 */ 
    display: flex; 
    flex-direction: column; 
    min-height: 500px; /* 设置最小高度，确保卡片有足够空间 */ 
} 

.notice-item:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); 
} 

.notice-title { 
    color: #212529; 
    font-size: 1.25rem; 
    font-weight: 600; 
    margin-bottom: 10px; 
} 

.notice-date { 
    color: #6c757d; 
    font-size: 0.9rem; 
    margin-bottom: 15px; 
} 

.notice-content { 
    color: #495057; 
    margin-bottom: 20px; 
    flex: 1; /* 让内容区域占满剩余空间，确保卡片高度一致 */ 
} 

/* 图片预览样式 */ 
.notice-image-preview img, 
.notice-image img { 
    max-height: 200px; 
    object-fit: cover; 
    border-radius: 4px; 
    width: 100%; /* 确保图片宽度一致 */ 
} 

.notice-image-preview img { 
    max-height: 150px; 
    cursor: pointer; 
} 

.read-more { 
    color: #0d6efd; 
    text-decoration: none; 
    font-weight: 500; 
    display: inline-flex; 
    align-items: center; 
    margin-top: auto; /* 确保查看详情链接在卡片底部 */ 
} 

.read-more:hover { 
    text-decoration: underline; 
} 

/* 卡片样式 */ 
.card { 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
} 

/* 图片展示区样式 */
.image-gallery-section {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.gallery-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

/* 页脚样式 */
footer {
    margin-top: 50px !important;
    background-color: #212529 !important;
    color: #fff !important;
    padding: 20px 0 !important;
    width: 100% !important;
    clear: both !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* 页脚内部容器样式 */
footer .container {
    padding: 0 20px !important;
    margin: 0 auto !important;
}

/* 页脚内部文字样式 */
footer p {
    margin: 5px 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
}