/* --- 基础变量 (沿用你的设置) --- */
:root {
    --ybu-red: #c91a22;
    --ybu-gold: #e9d195;
    --text-dark: #2d2926;
    --bg-soft: #fcfcfc;
}

body {
    font-family: "微软雅黑", sans-serif;
    background-color: var(--bg-soft);
}

/* --- [修正] Hero & Logo 部分 (完全保留你提供的原始样式，确保不乱) --- */
.hero-wrapper { position: relative; }

.header-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; z-index: 100;
    padding-top: 20px;
}

.main-logo-v2 {
    height: 55px;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

.hero-main {
    height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; text-align: center; }

.line-1-v2, .line-2-v2 {
    font-size: 3.8rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1.5rem;
    color: var(--ybu-gold);
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.line-divider-v2 {
    height: 2px; width: 150px;
    background: var(--ybu-gold);
    margin: 40px auto;
}

.line-3-v2 {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--ybu-gold);
    letter-spacing: 0.6rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* --- Navigation --- */
.sticky-nav {
    background: var(--ybu-red);
    border-bottom: 4px solid var(--ybu-gold);
    position: sticky; top: 0; z-index: 1000;
}
.sticky-nav .nav-link {
    color: white; font-weight: bold; font-size: 1.5rem;
    padding: 15px 55px;
}
.sticky-nav .nav-link.active, .sticky-nav .nav-link:hover {
    background: white; color: var(--ybu-red);
}

/* --- Section Headers --- */
.custom-section-title {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 40px; position: relative;
}
.title-text { font-size: 2rem; font-weight: 800; color: var(--ybu-red); margin: 0 25px; }
.title-deco-left { height: 35px; transform: scaleX(-1); }
.title-deco-right { height: 35px; }
.more-link { position: absolute; right: 0; bottom: 5px; color: #999; text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.more-link:hover { color: var(--ybu-red); }

/* --- [修正] 学习动态对齐 --- */
.interactive-module { border-radius: 10px; background: white; overflow: hidden; }

.preview-box { 
    position: relative; 
    height: 450px; /* 强制高度与右侧列表一致 */
    overflow: hidden; 
}
.preview-box img#dynamic-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 核心：确保图片填满容器且不变形 */
}

.preview-info {
    position: absolute; bottom: 0; width: 100%; padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white;
}

.nav-scroller { 
    height: 450px; 
    display: flex;
    flex-direction: column; /* 变为垂直布局 */
}

.news-tab { 
    flex: 1; /* 核心：五个标题块平分高度，实现完美对齐 */
    padding: 0 30px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer; 
    border-bottom: 1px solid #f0f0f0; 
    transition: 0.3s; 
}
.news-tab:last-child { border-bottom: none; }
.news-tab.active, .news-tab:hover { background: #fdf2f2; border-left: 6px solid var(--ybu-red); }
.tab-date { color: var(--ybu-gold); font-weight: bold; font-size: 0.85rem; }
.tab-title { font-size: 1rem; margin-top: 5px; font-weight: 500; color: #333; line-height: 1.4; font-family:微软雅黑}

/* --- [修正] 下方两板块对齐 --- */
.modern-header {
    font-size: 1.6rem; font-weight: 800; color: var(--ybu-red);
    padding-left: 15px; border-left: 5px solid var(--ybu-red);
}
.section-top-bar { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.text-more { font-size: 0.8rem; color: #bbb; text-decoration: none; letter-spacing: 1px; }

.platform-list, .editorial-list {
    display: flex;
    flex-direction: column;
    height: 100%; /* 撑满父容器 */
}

.platform-item, .editorial-card-item {
    flex: 1; /* 核心：让每个条目等高平分空间，实现左右对齐 */
    display: flex;
    align-items: center; /* 垂直居中内容 */
    background: white;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: 0.3s;
}
.platform-item:last-child, .editorial-card-item:last-child { margin-bottom: 0; }

.platform-item:hover, .editorial-card-item:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
    border-color: var(--ybu-gold); 
}

/* 学习平台细节 */
.p-date {
    background: #f8f8f8; color: #999; font-size: 0.8rem;
    text-align: center; width: 55px; height: 55px;
    display: flex; flex-direction: column; justify-content: center; border-radius: 6px;
    margin-right: 20px; flex-shrink: 0;
}
.p-date span { font-size: 1.3rem; font-weight: bold; color: var(--ybu-red); line-height: 1; }
.p-content a { color: var(--text-dark); font-weight: 600; text-decoration: none; display: block; }
.p-content p { font-size: 0.85rem; color: #777; margin: 5px 0 0; }

/* 评论解读细节 */
.editorial-card-item {
    position: relative;
    padding-left: 25px;
    gap: 15px;
}
.editorial-card-item::before {
    content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 3px; background: #eee;
}
.editorial-card-item:hover::before { background: var(--ybu-red); }
.e-icon { font-size: 1.4rem; color: #e0e0e0; flex-shrink: 0; transition: 0.3s; }
.editorial-card-item:hover .e-icon { color: var(--ybu-red); }
.e-body { flex: 1; }
.e-title { font-size: 1rem; font-weight: 500; color: #444; text-decoration: none; display: block; margin-bottom: 3px; }
.e-date { font-size: 0.8rem; color: #bbb; }

/* --- Footer --- */
.footer-dark { background: #8b1116; color: rgba(255,255,255,0.6); border-top: 6px solid var(--ybu-gold); }

/* --- Mobile --- */
@media (max-width: 768px) {
    .line-1-v2, .line-2-v2 { font-size: 2.2rem; letter-spacing: 0.5rem; }
    .line-3-v2 { font-size: 1.2rem; }
    .hero-main { height: 400px; }
    .preview-box, .nav-scroller { height: auto; }
}

/* =========================================================list=============================================== */
/* --- 列表页专项样式 --- */

/* 1. 子页 Hero 高度微调 */
.sub-hero {
    height: 400px !important; /* 二级页不需要首页那么大的 Banner */
}

/* 2. 面包屑导航样式 */
.custom-breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.95rem;
}
.custom-breadcrumb .breadcrumb-item a {
    color: #666;
    text-decoration: none;
}
.custom-breadcrumb .breadcrumb-item a:hover {
    color: var(--ybu-red);
}
.custom-breadcrumb .breadcrumb-item.active {
    color: var(--ybu-red);
    font-weight: 600;
}
.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #ccc;
}

/* 3. 列表容器 */
.list-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border-top: 4px solid var(--ybu-red);
}
.list-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    background: #fcfcfc;
}
.list-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ybu-red);
    margin: 0;
    position: relative;
    padding-left: 15px;
}
.list-title::before {
    content: "";
    position: absolute;
    left: 0; top: 5px; bottom: 5px;
    width: 4px; background: var(--ybu-red);
}

/* 4. 列表条目交互 */
.list-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    text-decoration: none !important;
    color: #444;
    border-bottom: 1px dashed #eee;
    transition: all 0.3s;
}
.list-item-link:last-child {
    border-bottom: none;
}
.list-item-link:hover {
    background: #fff9f9;
    padding-left: 40px; /* 悬停时文字向右微移 */
}
.list-item-link .item-text {
    font-size: 1.1rem;
    /* font-weight: 500; */
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 20px;
}
.list-item-link:hover .item-text {
    color: var(--ybu-red);
}
.list-item-link .item-date {
    color: #999;
    font-size: 0.9rem;
    font-family: Arial, sans-serif;
}

/* 5. 分页组件美化 */
.list-pagination .page-link {
    color: #666;
    border: 1px solid #eee;
    margin: 0 3px;
    border-radius: 4px;
    padding: 8px 16px;
}
.list-pagination .page-item.active .page-link {
    background-color: var(--ybu-red);
    border-color: var(--ybu-red);
    color: #fff;
}
.list-pagination .page-link:hover:not(.active) {
    background-color: #f8f8f8;
    color: var(--ybu-red);
}

/* ==============================================================内容页============================================================ */
/* --- 内容详情页专项样式 --- */

/* 1. 文章容器样式 */
.article-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border-top: 5px solid var(--ybu-red);
}

/* 2. 标题排版 */
.article-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 0;
}
.article-meta {
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
}
.article-meta i {
    color: var(--ybu-red);
    margin-right: 5px;
}

/* 3. 正文排版 (关键：提升可读性) */
.article-content {
    font-size: 1.15rem; /* 稍微大一点的字号，适合阅读 */
    line-height: 1.85;  /* 增加行高，防止视觉拥挤 */
    color: #333;
    text-align: justify; /* 两端对齐 */
}

/* 导语样式 */
.lead-text {
    font-weight: 500;
    color: #555;
    background: #fdf5f5;
    padding: 25px;
    border-left: 5px solid var(--ybu-red);
    margin-bottom: 30px;
    border-radius: 4px;
}

.article-content p {
    margin-bottom: 25px;
    text-indent: 2em; /* 首行缩进 */
}

/* 小标题样式 */
.sub-heading-red {
    color: var(--ybu-red);
    font-weight: 700;
    font-size: 1.4rem;
    margin: 40px 0 20px;
    padding-left: 0;
    text-indent: 0; /* 标题不缩进 */
}

/* 插图样式 */
.image-caption {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

/* 4. 脚部区域 */
.article-footer {
    border-top: 1px solid #f0f0f0;
}
.article-nav a:hover {
    color: var(--ybu-red) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-main-title { font-size: 1.6rem; }
    .article-content { font-size: 1.05rem; }
    .sub-heading-red { font-size: 1.2rem; }
    .article-content p { text-indent: 0; } /* 移动端不缩进，保持对齐感 */
}