﻿
/* FAQ 外层容器 */
.faq-wrapper {
    border-top: 1px solid #eee; /* 顶部第一条线 */
}

/* 每一行的问题区域 */
.faq-item {
    border-bottom: 1px solid #eee; /* 每一行下面的分割线 */
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10px; /* 增加上下内边距，一行行非常清晰 */
    cursor: pointer;
    transition: all 0.3s ease;
}

    .faq-header:hover {
        background-color: #fcfcfc;
    }

/* 问题文字 */
.faq-question {
    font-size: 19px;
    font-weight: 500;
    color: #333;
    margin: 0;
    transition: color 0.3s;
}

/* 右侧图标 */
.faq-icon {
    font-size: 14px;
    color: #999;
    transition: transform 0.3s ease;
}

/* 展开状态的样式控制 */
.faq-header:not(.collapsed) .faq-question {
    color: #ff5e14; /* 展开时标题变色 */
}

.faq-header:not(.collapsed) .faq-icon {
    transform: rotate(45-deg); /* 展开时图标旋转，变叉号或斜向 */
    color: #ff5e14;
}

/* 答案区域样式 */
.faq-answer {
    padding: 0 10px 30px 10px; /* 左右保持一致，底部留白 */
}

    .faq-answer p {
        font-size: 16px;
        line-height: 1.8;
        color: #666;
        margin: 0;
    }

/* 标题下面的线（复用之前的样式） */
.section-title.text-center .title-line {
    width: 50px;
    height: 3px;
    background: #ff5e14;
    margin: 20px auto 0;
}


/* 容器及标题 */
.section-title.text-center .title-line {
    width: 50px;
    height: 3px;
    background: #ff5e14; /* 品牌主色 */
    margin: 20px auto 0;
}

/* 新闻行基础布局 */
.news-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0; /* 增加上下内边距，保持行距 */
    border-bottom: 1px solid #eaeaea; /* 每行一条分割线 */
    transition: all 0.3s ease;
}

    /* 最后一行的分割线去掉，或者保留，看个人喜好 */
    .news-row:last-child {
        border-bottom: 1px solid #eaeaea;
    }

/* 左侧文字区 */
.news-text-box {
    flex: 1;
    padding-right: 40px; /* 文字与图片的间距 */
}

.news-title {
    font-size: 22px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s;
}

.news-date {
    font-size: 14px;
    color: #999;
    letter-spacing: 1px;
}

/* 右侧图片盒：增加精致边框 */
.news-img-box {
    flex-shrink: 0; /* 禁止图片被压缩 */
    width: 190px;
    height: 120px;
    padding: 5px; /* 内衬间距 */
    border: 1px solid #ddd; /* 外边框 */
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .news-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 2px;
    }

/* 悬停交互效果：让页面“活”起来 */
.news-row:hover {
    background-color: #fafafa; /* 悬停时轻微变色 */
    padding-left: 20px; /* 侧滑效果 */
}

    .news-row:hover .news-title {
        color: #ff5e14;
    }

    .news-row:hover .news-img-box {
        border-color: #ff5e14; /* 边框高亮 */
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

/* 移动端适配 */
@media (max-width: 768px) {
    .news-row {
        padding: 25px 0;
        flex-direction: column-reverse; /* 手机端图片在上或在下，这里演示图片在下 */
        align-items: flex-start;
    }

    .news-text-box {
        padding-right: 0;
        margin-top: 15px;
    }

    .news-title {
        font-size: 18px;
    }
}

#co-institution .card-img-wrapper {
    width: 100%;
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#co-institution .card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#co-institution .card {
    border-radius: .75rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

    #co-institution .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,.1);
    }
/* 三行文本截断 + 两端对齐 + 唯一／最后一行左对齐 */
#line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    /* 下面两行实现：多行时每一行都两端对齐，唯一一行或最后一行左对齐 */
    text-align: justify;
    text-align-last: left;
}

#co-institution .line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-align: justify; /* 多行时两端对齐 */
    text-align-last: left; /* 尝试让最后一行左对齐（部分浏览器可能不生效） */
}

    #co-institution .line-clamp-3.single-line {
        text-align: left !important; /* 单行时强制左对齐 */
    }

.demo1 {
    float: right;
}

.col-lg-4f {
    width: 24%;
    flex: 0 0 auto;
}

.blog-post-thumb .tag {
    right: 51px;
    margin-bottom: -12px;
}

.blog-post-item {
    position: relative;
}

#co-institution .blog-post-thumb:hover:before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #808080;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

#co-institution .blog-post-thumb:hover:after {
    content: attr(data-title);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    background: #e9e9e9;
    color: #333;
    border: 1px solid #808080;
    padding: 10px;
    font-size: 14px;
    width: 500px;
    text-align: justify;
    border-radius: 10px;
    z-index: 10000;
    transform: translateX(-50%)
}

#co-institution .blog-post-thumb[data-title='']:hover:after {
    display: none;
}

#co-institution .blog-post-thumb[data-title='']:hover:before {
    display: none;
}

.carousel-item.active {
    display: flex;
}

.detection-process {
    margin-bottom: 30px;
}

    .detection-process img {
        border-radius: 10px;
    }

.detection-process-msg {
    text-align: center;
    margin-top: 5px;
    font-family: 'DM Sans', sans-serif;
    font-weight: bold;
    color: #444;
}

.detection-process-box {
    overflow: hidden;
    position: relative;
}

.detection-process-tag {
    position: absolute;
    left: -70px;
    top: 15px;
    width: 200px;
    text-align: center;
    transform: rotate(-45deg);
    font-family: 'DM Sans', sans-serif;
    background-color: #AC010A;
    color: #fff;
    font-size: 14px;
}

.detection-process-detail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: #AC010A;
    padding: 5px 20px;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    display: none;
}

.detection-process-box:hover .detection-process-detail {
    display: block;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
    text-align: justify; /* 两端对齐，视觉更整齐 */
}

.about-img img {
    border-radius: 10px; /* 如果需要圆角可以添加 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* 增加一点轻微投影提升质感 */
}