/* assets/css/style.css */
:root {
    --hj-red: #C00000;
    --hj-gray: #333333;
    --hj-cream: #F8F9FA;
}

body {
    background-color: var(--hj-cream);
    color: var(--hj-gray);
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.bg-hj-red { background-color: var(--hj-red) !important; }
.text-hj-red { color: var(--hj-red) !important; }
.btn-hj-red {
    background-color: var(--hj-red);
    color: white;
    border: none;
}
.btn-hj-red:hover {
    background-color: #990000;
    color: white;
}

/* 导航栏 */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.navbar-brand {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.navbar-nav .nav-link {
    font-size: 1.6rem;
    font-weight: 700;
    margin-left: 45px;
    padding: 0.5rem 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    letter-spacing: 2px;
}
.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
    border-radius: 2px;
}
.navbar-nav .nav-link:hover {
    color: #fff !important;
    transform: translateY(-3px) scale(1.05);
    text-shadow: 0 5px 15px rgba(255,255,255,0.4);
}
.navbar-nav .nav-link:hover:after {
    width: 100%;
}
@media (max-width: 991.98px) {
    .navbar-nav .nav-link { margin-left: 0; margin-bottom: 10px; font-size: 1.15rem; }
}

/* 时间轴 (Timeline) */
.timeline {
    position: relative;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--hj-red);
    transform: translateX(-50%);
}
.timeline-item {
    margin-bottom: 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    padding-right: 40px;
    text-align: right;
    left: 0;
}
.timeline-item:nth-child(even) {
    padding-left: 40px;
    left: 50%;
}
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--hj-red);
    border-radius: 50%;
    top: 5px;
    z-index: 10;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }

/* 响应式时间轴 */
@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .timeline-item { width: 100% !important; padding-left: 45px !important; text-align: left !important; left: 0 !important; }
    .timeline-dot { left: 12px !important; }
}

/* 首页卡片与列表卡片通用增强 */
.hj-card {
    border: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 1rem;
    overflow: hidden;
}
.hj-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(192, 0, 0, 0.1);
}

/* 列表页文字优化 */
.hj-article-title {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}
.hj-article-excerpt {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #666;
}

/* 增强分页效果 */
.pagination .page-item {
    margin: 0 5px;
}
.pagination .page-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    color: var(--hj-gray);
}
.pagination .page-item.active .page-link {
    background: var(--hj-red);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 10px 20px rgba(192, 0, 0, 0.3);
}
.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: #fff;
    color: var(--hj-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    background: #eee;
}

/* 页脚 */
footer {
    background-color: var(--hj-gray);
    color: #aaa;
    padding: 40px 0;
}
