/* 首页样式 */

/* 主横幅样式 */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 3px;
}

.hero-content h3 {
    font-size: 28px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 切换按钮 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 状态指示器 */
.slider-status {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.current-slide {
    color: #ffd700;
}

.total-slides {
    opacity: 0.8;
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 统计数据区域 */
.stats-section {
    background: white;
    padding: 40px 0 60px 0;
    position: relative;
    z-index: 10;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.stats-header {
    text-align: center;
    margin-bottom: 30px;
}

.stats-header h2 {
    color: #d32f2f;
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(45deg, #d32f2f, #f44336);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 主体名录滚动表格 */
.entity-list-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.entity-list-wrapper {
    height: 400px;
    overflow-y: auto;
    position: relative;
}

.entity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

.entity-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.entity-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.entity-table tbody tr:hover {
    background-color: #f8f9fa;
}

.entity-table tbody tr:last-child td {
    border-bottom: none;
}

/* 自动滚动动画 */
@keyframes scrollTable {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* 鼠标悬停时暂停滚动 */
.entity-list-wrapper:hover .entity-list-content {
    animation-play-state: paused;
}

/* 统计数据 */
.stats-summary {
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 30px;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* 内容区域 */
.content-section {
    padding: 40px 0;
    background: white;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.content-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(45deg, #d32f2f, #f44336);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.more-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.more-link:hover {
    opacity: 1;
}

.card-content {
    padding: 20px;
}

.announcement-list,
.news-list,
.knowledge-list {
    list-style: none;
}

.announcement-list li,
.news-list li,
.knowledge-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.announcement-list li:hover,
.news-list li:hover,
.knowledge-list li:hover {
    background-color: #f8f9fa;
    padding-left: 10px;
    border-radius: 5px;
}

.announcement-list li:last-child,
.news-list li:last-child,
.knowledge-list li:last-child {
    border-bottom: none;
}

.announcement-text,
.news-text,
.knowledge-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.announcement-date,
.news-date,
.knowledge-date {
    font-size: 12px;
    color: #999;
    margin-left: 15px;
    white-space: nowrap;
}

/* 友情链接 */
.links-section {
    background: #f8f9fa;
    padding: 40px 0;
}

.links-header {
    text-align: center;
    margin-bottom: 30px;
}

.links-header h3 {
    color: #d32f2f;
    font-size: 24px;
    font-weight: 600;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.link-btn {
    background: linear-gradient(45deg, #1976d2, red);
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(25, 118, 210, 0.3);
}

.link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(25, 118, 210, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content h3 {
        font-size: 20px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .slider-status {
        font-size: 14px;
        padding: 6px 12px;
        bottom: 70px;
    }
    
    .entity-list-wrapper {
        height: 300px;
    }
    
    .entity-table {
        font-size: 12px;
    }
    
    .entity-table th,
    .entity-table td {
        padding: 10px 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .announcement-text,
    .news-text,
    .knowledge-text {
        font-size: 13px;
    }
    
    .announcement-date,
    .news-date,
    .knowledge-date {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .hero-content h3 {
        font-size: 16px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .slider-status {
        font-size: 12px;
        padding: 4px 8px;
        bottom: 60px;
    }
    
    .entity-list-wrapper {
        height: 250px;
    }
    
    .entity-table {
        font-size: 11px;
    }
    
    .entity-table th,
    .entity-table td {
        padding: 8px 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    animation: fadeInUp 0.6s ease;
}

.stat-item {
    animation: fadeInUp 0.6s ease;
} 

/* 统计数据区域（只针对首页第一个.stats-section） */
.stats-section.stats-summary-section {
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 主体名录区的.stats-section（第二个）去掉圆角和阴影，加margin-top */
.stats-section.entity-list-section {
    border-radius: 0;
    box-shadow: none;
    margin-top: 30px;
} 