/* ==================== 文章详情页样式 ==================== */

/* 主内容区域 */
.news-detail-section {
    padding: 50px 0 80px;
    background: #f7fafc;
}

/* 两栏布局：左侧文章 + 右侧侧边栏 */
.detail-layout {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
}

/* ===== 左侧：文章主体 ===== */
.article-main {
    flex: 1;
    min-width: 0;           /* 防止内容撑破布局 */
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 文章头部 */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.article-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag-policy { background: #e6f7ff; color: #1890ff; }
.tag-school  { background: #f6ffed; color: #52c41a; }
.tag-info    { background: #fff7e6; color: #fa8c16; }
.tag-guide   { background: #f9f0ff; color: #722ed1; }

.article-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.4;
    margin-bottom: 18px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 18px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-meta i {
    color: #667eea;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #718096;
    flex-wrap: wrap;
}

.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.share-btn:hover          { transform: scale(1.15); }
.share-btn.wechat         { background: #07c160; }
.share-btn.weibo          { background: #ff4e00; }
.share-btn.qq             { background: #12b7f5; }

/* 摘要 */
.article-summary {
    background: #f7fafc;
    border-left: 4px solid #667eea;
    padding: 18px 22px;
    margin-bottom: 28px;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    color: #2d3748;
    line-height: 1.8;
}
.article-summary strong { color: #667eea; }

/* 正文 */
.article-content {
    color: #2d3748;
    line-height: 1.9;
    font-size: 1rem;
}

.article-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4f8;
}

.article-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2d3748;
    margin: 22px 0 12px;
}

.article-content p {
    margin-bottom: 14px;
    text-align: justify;
}

.article-content ul,
.article-content ol {
    margin: 12px 0;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
    color: #718096;
    line-height: 1.8;
}

.article-content ul li {
    list-style: none;
    position: relative;
    padding-left: 16px;
}
.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
}

.article-content ol {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}
.article-content ol li {
    counter-increment: item;
    position: relative;
    padding-left: 36px;
}
.article-content ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 3px;
    width: 22px;
    height: 22px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 政策高亮框 */
.policy-highlight {
    background: #f0f5ff;
    border-left: 4px solid #667eea;
    padding: 18px 22px;
    margin: 18px 0;
    border-radius: 0 8px 8px 0;
}
.policy-highlight h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.policy-highlight h4 i { color: #667eea; }
.policy-highlight p {
    color: #718096;
    font-size: 0.93rem;
    margin: 0;
    line-height: 1.7;
}

/* 文章底部 */
.article-footer {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.article-author img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}
.author-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}
.author-title {
    font-size: 0.82rem;
    color: #a0aec0;
}

.article-tags-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tag-label {
    font-size: 0.88rem;
    color: #718096;
}
.article-tag {
    padding: 5px 14px;
    background: #f7fafc;
    color: #2d3748;
    border-radius: 20px;
    font-size: 0.83rem;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}
.article-tag:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}


/* ===== 右侧：侧边栏 ===== */
.detail-sidebar {
    width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 侧边栏每个卡片 */
.sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f4f8;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-card h3 i { color: #667eea; }

/* 相关推荐 */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.related-article {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 10px;
    transition: all 0.2s;
    align-items: flex-start;
    text-decoration: none;
}
.related-article:hover {
    background: #eef2ff;
    transform: translateX(4px);
}

.ra-image {
    position: relative;
    flex-shrink: 0;
    width: 110px;
    height: 74px;
    border-radius: 8px;
    overflow: hidden;
}
.ra-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ra-image .tag {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 7px;
    font-size: 0.68rem;
    border-radius: 4px;
    z-index: 1;
    font-weight: 600;
}

.ra-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.ra-content h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ra-content span {
    font-size: 0.78rem;
    color: #a0aec0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 热门文章 */
.hot-articles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hot-article-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #f7fafc;
    border-radius: 8px;
    transition: background 0.2s;
}
.hot-article-item:hover { background: #eef2ff; }

.hot-article-item .rank {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #667eea;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.hot-article-item:nth-child(1) .rank { background: #ff4d4f; }
.hot-article-item:nth-child(2) .rank { background: #ff7a45; }
.hot-article-item:nth-child(3) .rank { background: #ffa940; }

.hot-article-item a {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    color: #2d3748;
    line-height: 1.45;
    word-break: break-word;
    display: block;
}
.hot-article-item a:hover { color: #667eea; }

/* 招生热线卡片 */
.hotline-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff;
    text-align: center;
}
.hotline-card h3 {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,0.25) !important;
}
.hotline-card h3 i { color: #fff !important; }

.hotline-number {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 12px 0 6px;
    color: #fff;
}
.hotline-time {
    font-size: 0.88rem;
    opacity: 0.85;
    margin-bottom: 18px;
    color: #fff;
}
.hotline-card .btn-consult {
    width: 100%;
    padding: 13px;
    background: #fff !important;
    color: #667eea !important;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.hotline-card .btn-consult:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* 推荐学校 */
.recommended-schools {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rec-school {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 10px;
    transition: all 0.2s;
    text-decoration: none;
}
.rec-school:hover {
    background: #eef2ff;
    transform: translateX(4px);
}
.rec-school img {
    width: 68px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.rec-info { flex: 1; min-width: 0; }
.rec-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rec-meta {
    font-size: 0.78rem;
    color: #a0aec0;
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
    .detail-sidebar { width: 300px; }
}

@media (max-width: 900px) {
    .detail-layout {
        flex-direction: column;
    }
    .article-main {
        width: 100%;
    }
    .detail-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .article-main { padding: 20px; }
    .article-title { font-size: 1.4rem; }
    .article-meta  { flex-direction: column; gap: 8px; }
    .article-footer { flex-direction: column; align-items: flex-start; }
    .detail-sidebar { grid-template-columns: 1fr; }
}
