/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* 顶部头部 */
.site-header {
    background: #fff;
    border-bottom: 2px solid #0d6efd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 头部操作区域 */
.header-actions {
    margin-bottom: 10px;
}

.apply-btn {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.apply-btn:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    color: white;
    text-decoration: none;
}

.header-logo,
.header-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-logo-placeholder {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.header-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
    margin: 0;
}

.header-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

.header-time {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* 导航栏 */
.site-nav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 0;
}

.nav-item {
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 4px;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: #0d6efd;
}

/* 主要内容 */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 300px);
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 中央标题框 */
.main-title-box {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.3);
}

.main-title {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 内容网格 */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* 左侧栏 */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 大图区域 */
.feature-banner {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.feature-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.feature-banner:hover img {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
    padding: 2rem;
    color: white;
}

.banner-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.banner-content p {
    margin: 0;
    opacity: 0.9;
}

/* 内容卡片 */
.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #1e40af;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.party-card .card-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #1e40af;
}

.rights-card .card-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #1e40af;
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.2;
}

.card-header h3 i {
    font-size: 1.5rem;
    vertical-align: middle;
    display: inline-block;
}

.party-card .card-header h3 i {
    color: #dc3545 !important;
}

.rights-card .card-header h3 i {
    color: #28a745 !important;
}

.card-body {
    padding: 1.5rem;
}

.card-body p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.card-features {
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #555;
}

.feature-item i {
    color: #28a745;
    font-size: 1.1rem;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-more:hover {
    gap: 0.75rem;
    color: #0a58ca;
}

/* 右侧栏 */
.right-column {
    display: flex;
    flex-direction: column;
}

.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 100%;
    min-height: 600px; /* 确保最小高度 */
}

.grid-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 280px; /* 确保每个模块的最小高度 */
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.grid-header {
    padding: 1rem 1rem;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 56px;
    height: 56px;
}

.news-item .grid-header {
    border-bottom-color: #0d6efd;
}

.notice-item .grid-header {
    border-bottom-color: #ffc107;
}

.industry-item .grid-header {
    border-bottom-color: #dc3545;
}

.education-item .grid-header {
    border-bottom-color: #28a745;
}

.grid-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    flex: 1;
    line-height: 1.2;
}

.grid-header h4 i {
    font-size: 1.25rem;
    vertical-align: middle;
}

.news-item .grid-header h4 i { color: #0d6efd; }
.notice-item .grid-header h4 i { color: #ff8c00; }
.industry-item .grid-header h4 i { color: #dc3545; }
.education-item .grid-header h4 i { color: #28a745; }

.more-link {
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.more-link:hover {
    color: #0d6efd;
}

.grid-content {
    padding: 0.75rem 1rem;
    flex: 1;
    overflow: hidden;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item-li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.news-item-li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-link {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.news-link:hover {
    color: #0d6efd;
}

.news-title {
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 0.75rem;
    color: #999;
}

.news-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.tag-new {
    background: #dc3545;
    color: white;
}

.tag-important {
    background: #ffc107;
    color: #333;
}

/* 统计数据 */
.stats-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 3rem 0;
    margin-top: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    color: white;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.stat-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* 底部 */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.footer-info h5 {
    margin-bottom: 0.75rem;
    color: #0d6efd;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: all 0.3s;
}

.footer-links a:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.footer-copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0a58ca;
    transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 0 1rem;
    }
    
    .nav-wrapper {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-item {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .grid-2x2 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-banner {
        height: 250px;
    }
}

/* 动画增强 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card,
.grid-item {
    animation: fadeInUp 0.6s ease-out;
}
