/* 芯晟汇AI 新闻中心 样式（基于 newsportaltemp 开源模板扩展） */

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #1f2933;
}

.site-wrap {
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 24px rgba(16, 42, 67, 0.08);
    padding: 0 1.5rem 1.5rem;
}

/* 导航 */
.brand {
    color: #0f2a43;
    font-weight: 700;
}
.brand-sub {
    color: #6b7a8d;
    font-weight: 400;
    font-size: 0.72rem;
}
.navbar-light .nav-link.active {
    color: #1a6dff;
    font-weight: 600;
}

/* 滚动新闻条 */
.ticker-wrap {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: 0 1px 6px rgba(16, 42, 67, 0.06);
}
.ticker-label {
    flex: 0 0 auto;
    background: #1a6dff;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 0.9rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}
.ticker::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48px;
    background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
    z-index: 2;
}
.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker-scroll 45s linear infinite;
}
.ticker-wrap:hover .ticker-track {
    animation-play-state: paused;
}
.ticker-item {
    padding: 0.55rem 1.4rem 0.55rem 0;
    margin-left: 1.4rem;
    font-size: 0.88rem;
    color: #1f2933;
    border-right: 1px dashed #d5dbe1;
}
.ticker-item:last-child {
    border-right: none;
}
.ticker-item .ticker-date {
    color: #9aa5b1;
    font-size: 0.78rem;
    margin-right: 6px;
}
.ticker-item:hover {
    color: #1a6dff;
    text-decoration: none;
}
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
}

/* Hero（企业形象横幅背景 + 深色遮罩保证文字可读） */
.hero {
    background:
        linear-gradient(100deg, rgba(10, 25, 42, 0.88) 0%, rgba(15, 42, 67, 0.72) 45%, rgba(26, 109, 255, 0.35) 100%),
        url("img/banner.png") center / cover no-repeat;
    color: #fff;
    border-radius: 14px;
    padding: 4.5rem 2.5rem;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}
.hero-title {
    font-weight: 700;
    letter-spacing: 2px;
}
.hero-hr {
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}
.hero-desc {
    color: rgba(255, 255, 255, 0.85);
}
.btn-hero {
    background: #1a6dff;
    border: none;
    padding: 0.5rem 1.4rem;
}
.btn-hero:hover {
    background: #155ad4;
}

/* 分区标题 */
.section-title h4 {
    color: #0f2a43;
    font-weight: 700;
    display: inline-block;
    padding-left: 0.6rem;
    border-left: 4px solid #1a6dff;
}

/* 新闻卡片 */
.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.news-card-link:hover {
    text-decoration: none;
}
.news-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(16, 42, 67, 0.14);
}
.news-card .card-title {
    color: #0f2a43;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.5;
}
.news-card .card-text {
    color: #52606d;
    font-size: 0.88rem;
    text-align: justify;
}
.news-date {
    float: right;
    color: #9aa5b1;
    font-size: 0.8rem;
    margin-top: 2px;
}
.read-more {
    color: #1a6dff;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 标签徽章 */
.badge {
    font-size: 0.72rem;
    padding: 0.35em 0.7em;
    border-radius: 999px;
}
.badge-product  { background: #e1effe; color: #1a56db; }
.badge-company  { background: #e3f7ec; color: #0e7a3d; }
.badge-event    { background: #fdf1e0; color: #b45309; }
.badge-insight  { background: #f3e8ff; color: #7c3aed; }

/* 新闻列表行 */
.news-row-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.news-row-link:hover {
    text-decoration: none;
}
.news-row {
    display: flex;
    align-items: flex-start;
    padding: 1.1rem 1rem;
    border-bottom: 1px solid #e3e8ee;
    transition: background 0.15s ease;
}
.news-row:hover {
    background: #f0f5ff;
}
.news-row-date {
    flex: 0 0 130px;
    color: #6b7a8d;
    font-size: 0.85rem;
    padding-top: 3px;
}
.news-row-body {
    flex: 1;
}
.news-row-title {
    color: #0f2a43;
    font-weight: 700;
    font-size: 0.98rem;
    margin: 4px 0;
    line-height: 1.5;
}
.news-row-summary {
    color: #52606d;
    font-size: 0.86rem;
    margin: 0;
    text-align: justify;
}
.news-row-arrow {
    color: #9aa5b1;
    font-size: 1.2rem;
    padding-top: 6px;
    padding-left: 8px;
}

/* 页脚 */
.footer {
    background: #0f2a43;
    color: #cbd2d9;
    border-radius: 14px;
    padding: 2rem 1.8rem 1rem;
    margin-top: 2.5rem;
}
.footer-title {
    color: #fff;
    font-weight: 600;
}
.footer-text {
    font-size: 0.88rem;
    line-height: 1.8;
}
.footer-text a {
    color: #7fb0ff;
}
.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #9aa5b1;
}

/* 新闻图片轮播 */
.news-carousel {
    position: relative;
    margin-top: 1rem;
    border-radius: 14px;
    overflow: hidden;
    background: #0f2a43;
    box-shadow: 0 4px 18px rgba(16, 42, 67, 0.12);
}
.carousel-stage {
    position: relative;
    height: 460px;
}
.carousel-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}
.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}
/* 原图完整显示（contain），同图模糊放大铺底，避免留白 */
.carousel-backdrop {
    position: absolute;
    inset: -14px;
    z-index: 0;
    background-position: center;
    background-size: cover;
    filter: blur(18px) brightness(0.38);
    transform: scale(1.06);
}
.carousel-slide img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.carousel-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(8, 20, 35, 0.88) 0%, rgba(8, 20, 35, 0.15) 55%, rgba(8, 20, 35, 0) 100%);
}
.carousel-caption {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 1.1rem 5rem 1.2rem 1.5rem;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.carousel-tag {
    display: inline-block;
    background: rgba(26, 109, 255, 0.9);
    border-radius: 999px;
    padding: 0.15em 0.7em;
    font-size: 0.72rem;
    margin-right: 0.6rem;
    vertical-align: 1px;
}
.carousel-date {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    margin-top: 0.3rem;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.carousel-arrow:hover {
    background: rgba(26, 109, 255, 0.9);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
    position: absolute;
    right: 1.2rem;
    bottom: 1rem;
    z-index: 3;
    display: flex;
    gap: 6px;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}
.carousel-dot.active {
    width: 20px;
    background: #fff;
}

/* 响应式：小屏收起日期列 */
@media (max-width: 576px) {
    .news-row-date {
        flex-basis: auto;
        width: 100%;
        margin-bottom: 4px;
    }
    .news-row {
        flex-wrap: wrap;
    }
    .hero {
        padding: 2rem 1.4rem;
    }
    .carousel-stage {
        height: 320px;
    }
    .carousel-caption {
        padding: 0.8rem 3.4rem 1rem 1rem;
        font-size: 0.78rem;
    }
    .carousel-dots {
        right: 0.8rem;
        bottom: 0.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-slide { transition: none; }
}
