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

/* 导航栏样式 */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    color: #000 !important;
    font-weight: 300;
    letter-spacing: 2px;
}

.nav-link {
    color: #666 !important;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #000 !important;
}

/* 轮播图样式 */
.carousel {
    margin-top: 76px;
}

.carousel-item {
    height: 70vh;
    min-height: 400px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    bottom: 50px;
}

.carousel-caption h2 {
    font-weight: 300;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* 轮播图点击样式 */
.carousel-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.carousel-link:hover {
    text-decoration: none;
    color: inherit;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-link:hover .carousel-overlay {
    opacity: 1;
}

.read-more {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.carousel-link:hover .read-more {
    transform: translateY(0);
}

/* 文章卡片样式 */
.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

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

.article-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover img {
    transform: scale(1.05);
}

.article-card .card-body {
    padding: 25px;
}

.article-card .card-title {
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #000;
}

.article-card .card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-meta {
    font-size: 0.85rem;
    color: #999;
    margin-top: 15px;
}

/* 按钮样式 */
.btn-outline-dark {
    border-width: 2px;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: #000;
    border-color: #000;
    transform: translateY(-2px);
}

/* 标题样式 */
.fw-light {
    font-weight: 300 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 栏目预览卡片 */
.card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* 文章详情页样式 */
.article-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 100px 0 60px;
    margin-top: 76px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
}

/* 分页样式 */
.pagination {
    justify-content: center;
    margin-top: 50px;
}

.page-link {
    border: none;
    color: #666;
    padding: 12px 18px;
    margin: 0 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-item.active .page-link {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-item {
        height: 50vh;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    .read-more {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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