/* ============================================================
   Xcloud 资讯页样式 (news.css)
   服务于 new_Smell.html（资讯列表）与 newsDetail.html（资讯详情）
   沿用 page.css 设计令牌：
   --primary-color(主色)  --gradient-color(辅色)  Song 字体
   卡片：白底 + 1px #eee 边框 + 圆角 + 分层阴影 + hover 主色描边
   ============================================================ */

/* 详情页小型面包屑 hero */
.A9-subhero.A9-subhero-sm {
    padding: 28px 0 30px;
}
.A9-subhero.A9-subhero-sm::after {
    display: none;
}

/* ============ 布局 ============ */
.A9-news-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.A9-news-main {
    flex: 1;
    min-width: 0;
}
.A9-news-side {
    width: 320px;
    flex-shrink: 0;
}

/* ============ 分类标签 ============ */
.A9-news-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.A9-news-tab {
    padding: 9px 22px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 999px;
    color: #555;
    font-size: 15px;
    cursor: pointer;
    transition: all .25s ease;
    user-select: none;
}
.A9-news-tab:hover {
    border-color: var(--primary-color, #0052D9);
    color: var(--primary-color, #0052D9);
}
.A9-news-tab.A9-active {
    background: linear-gradient(120deg, var(--primary-color, #0052D9), var(--gradient-color, #00A870));
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

/* ============ 资讯列表 ============ */
.A9-news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.A9-news-item {
    display: flex;
    gap: 22px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all .25s ease;
}
.A9-news-item:hover {
    border-color: var(--primary-color, #0052D9);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .1);
}
.A9-news-thumb {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 82, 217, .12), rgba(0, 168, 112, .12));
    display: flex;
    align-items: center;
    justify-content: center;
}
.A9-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.A9-news-thumb .A9-news-thumb-ico {
    width: 46px;
    height: 46px;
    color: var(--primary-color, #0052D9);
    opacity: .7;
}
.A9-news-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.A9-news-cat {
    display: inline-block;
    align-self: flex-start;
    font-size: 12px;
    color: var(--primary-color, #0052D9);
    background: rgba(0, 82, 217, .08);
    border-radius: 4px;
    padding: 3px 10px;
    margin-bottom: 10px;
}
.A9-news-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.4;
    font-family: 'Song', sans-serif;
    transition: color .2s ease;
}
.A9-news-item:hover .A9-news-title {
    color: var(--primary-color, #0052D9);
}
.A9-news-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #777;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.A9-news-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #999;
}
.A9-news-meta .A9-news-source {
    color: #fff;
    background: var(--primary-color, #0052D9);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
}
.A9-news-meta .A9-news-views::before {
    content: "👁";
    margin-right: 4px;
    font-size: 12px;
}

/* ============ 分页 ============ */
.A9-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}
.A9-pager a,
.A9-pager span {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s ease;
}
.A9-pager a:hover {
    border-color: var(--primary-color, #0052D9);
    color: var(--primary-color, #0052D9);
}
.A9-pager .A9-current {
    background: linear-gradient(120deg, var(--primary-color, #0052D9), var(--gradient-color, #00A870));
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

/* ============ 侧栏卡片 ============ */
.A9-side-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 22px 20px;
    margin-bottom: 22px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .05);
}
.A9-side-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--primary-color, #0052D9);
    line-height: 1.3;
}
.A9-side-news {
    display: flex;
    flex-direction: column;
}
.A9-side-news a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px dashed #eee;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.5;
    transition: color .2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.A9-side-news a:last-child {
    border-bottom: none;
}
.A9-side-news a:hover {
    color: var(--primary-color, #0052D9);
}
.A9-side-news a::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color, #0052D9);
    margin-right: 8px;
    vertical-align: middle;
}

/* ============ 详情页 ============ */
.A9-detail-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.A9-article {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 36px 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}
.A9-article-title {
    font-family: 'Song', sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 18px;
}
.A9-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 26px;
    font-size: 13px;
    color: #999;
}
.A9-article-meta .A9-article-source {
    color: #fff;
    background: var(--primary-color, #0052D9);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 12px;
}
.A9-article-content {
    font-size: 15px;
    line-height: 1.95;
    color: #444;
}
.A9-article-content p {
    margin: 0 0 18px;
}
.A9-article-content h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin: 30px 0 14px;
    font-family: 'Song', sans-serif;
}
.A9-article-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 14px 0;
    display: block;
}
.A9-article-content blockquote {
    margin: 18px 0;
    padding: 14px 20px;
    background: #f6f8fc;
    border-left: 4px solid var(--primary-color, #0052D9);
    border-radius: 0 8px 8px 0;
    color: #555;
}

/* 分享 */
.A9-share {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #f0f0f0;
}
.A9-share .A9-share-label {
    font-size: 14px;
    color: #666;
}
.A9-share-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all .2s ease;
}
.A9-share-item:hover {
    background: var(--primary-color, #0052D9);
    border-color: var(--primary-color, #0052D9);
    color: #fff;
    transform: translateY(-2px);
}
.A9-share-item svg {
    width: 20px;
    height: 20px;
}

/* 上下篇 */
.A9-prevnext {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}
.A9-prevnext a {
    flex: 1;
    min-width: 0;
    background: #f6f8fc;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px 18px;
    text-decoration: none;
    color: #555;
    transition: all .2s ease;
}
.A9-prevnext a:hover {
    border-color: var(--primary-color, #0052D9);
    color: var(--primary-color, #0052D9);
}
.A9-prevnext .A9-pn-tag {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 6px;
}
.A9-prevnext .A9-pn-title {
    font-size: 15px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.A9-prevnext a.A9-next {
    text-align: right;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .A9-news-side {
        width: 280px;
    }
}
@media (max-width: 900px) {
    .A9-news-layout,
    .A9-detail-layout {
        flex-direction: column;
    }
    .A9-news-side {
        width: 100%;
    }
    .A9-news-thumb {
        width: 140px;
        height: 96px;
    }
}
@media (max-width: 768px) {
    .A9-section { padding: 44px 0; }
    .A9-article {
        padding: 24px 18px;
        border-radius: 12px;
    }
    .A9-article-title {
        font-size: 23px;
    }
    .A9-news-item {
        flex-direction: column;
        gap: 14px;
    }
    .A9-news-thumb {
        width: 100%;
        height: 170px;
    }
    .A9-prevnext {
        flex-direction: column;
    }
}
