/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    position: relative;
    overflow-x: hidden;
}

/* 全局装饰元素 */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.05;
}

body::before {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    top: -100px;
    left: -100px;
}

body::after {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    bottom: -100px;
    right: -100px;
}

a {
    color: #0d6efd;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0a58ca;
}

/* 全局动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* 全局色彩变量 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --gradient-primary: linear-gradient(to right, #3498db, #2980b9);
    --gradient-secondary: linear-gradient(to right, #2ecc71, #27ae60);
    --gradient-accent: linear-gradient(to right, #e74c3c, #c0392b);
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
}

/* 头部样式 */
.site-header {
    background-color: #fff;
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color);
    position: relative;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.navbar-brand:hover::after {
    width: 100%;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* 主内容区域 */
.site-main {
    min-height: 70vh;
    padding: 2rem 0;
    position: relative;
}

/* 全局卡片样式 */
.card {
    border: none;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

.card-title {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--dark-color);
}

/* 全局按钮样式 */
.btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: var(--gradient-secondary);
    border: none;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.btn-accent {
    background: var(--gradient-accent);
    border: none;
    color: white;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* 全局标题样式 */
.section-title {
    position: relative;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100%;
}

/* 新闻卡片 */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.news-image {
    height: 100%;
    object-fit: cover;
}

.news-meta {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.news-meta span {
    margin-right: 1rem;
}

/* 新闻详情页 */
.news-detail h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.news-summary {
    font-size: 1.1rem;
    color: #555;
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.news-content p {
    margin-bottom: 1.5rem;
}

.news-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.25rem;
}

.news-tags .badge {
    margin-right: 0.5rem;
    font-weight: 500;
}

.news-actions {
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.news-share a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #555;
    transition: all 0.3s ease;
}

.news-share a:hover {
    background-color: #0d6efd;
    color: #fff;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #f0f0f0;
    border-radius: 0.25rem;
    color: #555;
    transition: all 0.3s ease;
}

.tag-item:hover, .tag-item.active {
    background-color: #0d6efd;
    color: #fff;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #0d6efd;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-current {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.pagination .disabled {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.page-dots {
    display: inline-block;
    padding: 0.5rem 0.75rem;
}

/* 页脚 */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer a {
    color: #ecf0f1;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #3498db;
    text-decoration: none;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
}

.footer-desc {
    color: #bdc3c7;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links li a {
    position: relative;
    padding-left: 15px;
    display: block;
}

.footer-links li a:before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #3498db;
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: #bdc3c7;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.footer-bottom-links li {
    position: relative;
}

.footer-bottom-links li:not(:last-child):after {
    content: '|';
    position: absolute;
    right: -0.9rem;
    top: 0;
    color: rgba(255, 255, 255, 0.3);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    color: #ecf0f1;
    transition: all 0.3s ease;
}

.tag-item:hover, .tag-item.active {
    background-color: #3498db;
    color: #fff;
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .news-detail h1 {
        font-size: 1.5rem;
    }
    
    .news-content {
        font-size: 1rem;
    }
    
    .news-card .card-title {
        font-size: 1.1rem;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 新闻分类选择器样式 */
.category-filter {
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.category-tabs-container {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.category-tabs-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-nav {
    display: flex;
    flex-wrap: nowrap;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.category-nav .nav-item {
    margin-right: 0.5rem;
}

.category-nav .nav-link {
    color: var(--text-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.category-nav .nav-link:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.category-nav .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.3);
    transform: translateY(-2px);
}

.category-nav .badge {
    margin-left: 5px;
    font-size: 0.7rem;
    background-color: rgba(255, 255, 255, 0.3);
    color: inherit;
}

.category-nav .nav-link.active .badge {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.category-news-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.category-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-news-image-container {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.category-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-news-card:hover .category-news-image {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    z-index: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-nav .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .category-news-image-container {
        height: 140px;
    }
} 