/* 主要样式文件 - FreshTheme */
body {
    font-family: 'Noto Sans', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

html, body {
    overflow-x: hidden;
}

/* 导航栏 */
header {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    padding: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
    box-shadow: none;
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    display: flex;
    align-items: center;
}

.site-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.site-logo-text:hover {
    color: #a5d8ff;
}

.navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.navbar-nav .dropdown-item {
    transition: all 0.2s ease;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.navbar-nav .dropdown-item:hover {
    background-color: #e8f0fe;
    padding-left: 1.75rem;
}

/* 搜索栏 */
.search-form {
    position: relative;
    width: 100%;
    max-width: 200px;
}

.search-input {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4a90e2, #5c6bc0);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: linear-gradient(135deg, #5c6bc0, #4a90e2);
    transform: translateY(-50%) scale(1.05);
}

/* 内容卡片 */
.content-section {
    margin: 2rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a237e;
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    background: linear-gradient(to bottom, #4a90e2, #5c6bc0);
    border-radius: 3px;
}

.section-more {
    color: #5c6bc0;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.3rem 1rem;
    border-radius: 4px;
}

.section-more:hover {
    background-color: #e8f0fe;
}

.content-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    background-color: #fff;
    border: none;
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 140%; /* 比例 */
}

.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.content-card:hover .card-img-top {
    transform: scale(1.1);
}

.content-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    height: 3rem;
}

.card-text {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* 顶部通知条 */
.notification-bar {
    width: 100%;
    padding: 0.75rem 0;
    text-align: center;
    background: linear-gradient(135deg, #5c6bc0, #4a90e2);
    color: #fff;
    font-weight: 500;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification-bar a {
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.notification-bar a:hover {
    text-decoration: underline;
}

/* 底部滚动区域 */
.marquee-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 0.5rem 0;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.marquee {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.marquee a {
    color: #fff;
    text-decoration: none;
    margin: 0 1.5rem;
    padding: 0.2rem 1rem;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.marquee a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 2rem 0 4rem;
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    margin-top: 3rem;
}

footer p {
    margin: 0.5rem 0;
}

/* 分页 */
.pagination {
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}

.pagination .page-item {
    margin: 0.2rem;
}

.pagination .page-link {
    color: #1a237e;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #1a237e, #283593);
    border-color: #1a237e;
    color: white;
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
}

.pagination .page-item .page-link:hover {
    background-color: #e8f0fe;
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.25rem;
    }

    .card-title {
        font-size: 0.9rem;
        height: 2.7rem;
    }

    .content-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }

    .search-input {
        padding: 0.6rem 1rem;
    }

    .search-button {
        width: 35px;
        height: 35px;
    }
}