﻿/* ==========================================================================
   gwcms-home-news-safe.css (50%对称贴底·极致轻盈精美版)
   ========================================================================== */

.gwcms-home-news {
    width: 100%;
}

/* ① 顶部头条区 */
.gwcms-nc-top {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    align-items: stretch;
}

.gwcms-nc-top-main {
    flex: 1 1 calc(50% - 12px);
    min-width: 0;
}

.gwcms-nc-top-side {
    flex: 1 1 calc(50% - 12px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gwcms-nc-top-big-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.gwcms-nc-top-big {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    text-decoration: none;
}

    .gwcms-nc-top-big img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.6s ease;
    }

    .gwcms-nc-top-big:hover img {
        transform: scale(1.04);
    }

/* 【核心修复：极致轻薄的毛玻璃底栏】 */
.gwcms-nc-top-card {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    /* 大幅缩小内边距，让它变薄 */
    padding: 12px 18px;
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px; /* 缩小标题和日期的间距 */
    z-index: 5;
}

.gwcms-nc-top-card-title-wrap {
    width: 100%;
    overflow: hidden;
}

.gwcms-nc-top-card-title-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    color: #fff;
    /* 【核心修复：字号克制，行高紧凑】 */
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.gwcms-nc-top-card-date {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px; /* 日期字号缩小 */
}

.gwcms-nc-top-card-date-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    border: 1.2px solid currentColor;
    border-radius: 2px;
    position: relative;
    box-sizing: border-box;
}

    .gwcms-nc-top-card-date-icon::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 2px;
        height: 1.2px;
        background: currentColor;
    }

    .gwcms-nc-top-card-date-icon::after {
        content: "";
        position: absolute;
        left: 2px;
        top: -2px;
        width: 1.2px;
        height: 2px;
        background: currentColor;
        box-shadow: 6px 0 0 currentColor;
    }

/* 右侧图文 */
.gwcms-nc-top-item {
    flex: 1;
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

    .gwcms-nc-top-item:hover {
        border-color: #a62126;
        box-shadow: 0 6px 20px rgba(166, 33, 38, 0.1);
        transform: translateY(-2px);
    }

.gwcms-nc-top-thumb {
    flex: 0 0 140px;
    width: 140px;
    height: 95px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

    .gwcms-nc-top-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.gwcms-nc-top-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 95px;
    padding: 4px 0;
}

.gwcms-nc-top-item-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.gwcms-nc-top-item:hover .gwcms-nc-top-item-title {
    color: #a62126;
}

.gwcms-nc-top-item-date {
    font-size: 12px;
    color: #999;
    font-family: Arial, sans-serif;
}

/* ② 分类新闻区 */
.gwcms-nc-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 30px;
}

.gwcms-nc-group {
    flex: 1 1 calc((100% - 24px) / 2);
    min-width: 320px;
    background: #fff;
    border-radius: 8px;
    padding: 25px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

    .gwcms-nc-group:hover {
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    }

.gwcms-nc-group-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

    .gwcms-nc-group-hd h3 {
        font-size: 18px;
        font-weight: bold;
        color: #222;
        margin: 0;
        padding-left: 36px;
        position: relative;
        line-height: 1.4;
    }

        .gwcms-nc-group-hd h3::before {
            display: none;
        }

        .gwcms-nc-group-hd h3 .gwcms-css-icon-title, .gwcms-nc-notice-hd h3 .gwcms-css-icon-title {
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            display: inline-block;
            width: 26px;
            height: 26px;
            background: linear-gradient(135deg, #e74c3c, #a62126);
            border-radius: 6px;
            box-shadow: 0 3px 6px rgba(166, 33, 38, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4);
        }

        .gwcms-nc-group-hd h3 .icon-list::after {
            content: '';
            position: absolute;
            left: 6px;
            top: 7px;
            width: 3px;
            height: 3px;
            background: #fff;
            border-radius: 1px;
            box-shadow: 0 4px 0 #fff, 0 8px 0 #fff, 7px 0 0 #fff, 7px 4px 0 #fff, 7px 8px 0 #fff;
        }

        .gwcms-nc-group-hd h3 .icon-list::before {
            content: '';
            position: absolute;
            left: 12px;
            top: 7px;
            width: 6px;
            height: 2px;
            background: #fff;
            box-shadow: 0 4px 0 #fff, 0 8px 0 #fff;
        }

.gwcms-nc-notice-hd h3 .icon-notice::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 6px;
    width: 10px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 1px;
    border-top-width: 3px;
}

.gwcms-nc-notice-hd h3 .icon-notice::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 11px;
    width: 4px;
    height: 2px;
    background: #fff;
    box-shadow: 0 3px 0 #fff;
}

.gwcms-nc-group-more {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .gwcms-nc-group-more:hover {
        color: #a62126;
    }

.gwcms-nc-group-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .gwcms-nc-group-list li {
        display: flex;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px dashed #f0f0f0;
        font-size: 14px;
    }

        .gwcms-nc-group-list li:last-child {
            border-bottom: none;
        }

        .gwcms-nc-group-list li a {
            flex: 1;
            min-width: 0;
            color: #333;
            text-decoration: none;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding-left: 14px;
            position: relative;
            transition: color 0.2s ease;
        }

            .gwcms-nc-group-list li a::before {
                content: "";
                position: absolute;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 0;
                height: 0;
                border-style: solid;
                border-width: 5px 0 5px 7px;
                border-color: transparent transparent transparent #a62126;
            }

            .gwcms-nc-group-list li a:hover {
                color: #a62126;
            }

/* ③ 通知公告条 */
.gwcms-nc-notice {
    background: #fff;
    border-radius: 8px;
    padding: 25px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.gwcms-nc-notice-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

    .gwcms-nc-notice-hd h3 {
        font-size: 18px;
        font-weight: bold;
        color: #222;
        margin: 0;
        padding-left: 36px;
        position: relative;
        line-height: 1.4;
    }

        .gwcms-nc-notice-hd h3::before {
            display: none;
        }

.gwcms-nc-notice-more {
    font-size: 13px;
    color: #999;
    text-decoration: none;
}

    .gwcms-nc-notice-more:hover {
        color: #a62126;
    }

.gwcms-nc-notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .gwcms-nc-notice-list li {
        display: flex;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px dashed #f0f0f0;
        font-size: 14px;
    }

        .gwcms-nc-notice-list li:last-child {
            border-bottom: none;
        }

        .gwcms-nc-notice-list li a {
            flex: 1;
            min-width: 0;
            color: #333;
            text-decoration: none;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding-left: 14px;
            position: relative;
            transition: color 0.2s ease;
        }

            .gwcms-nc-notice-list li a::before {
                content: "";
                position: absolute;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 0;
                height: 0;
                border-style: solid;
                border-width: 5px 0 5px 7px;
                border-color: transparent transparent transparent #a62126;
            }

            .gwcms-nc-notice-list li a:hover {
                color: #a62126;
            }

.gwcms-nc-date {
    flex-shrink: 0;
    margin-left: 12px;
    font-size: 13px;
    color: #999;
    font-family: Arial, sans-serif;
}

/* 响应式（平板和手机） */
@media (max-width: 1023px) {
    .gwcms-nc-top {
        flex-direction: column;
    }

    .gwcms-nc-top-main, .gwcms-nc-top-side {
        flex: none;
        width: 100%;
    }

    .gwcms-nc-top-big-wrap {
        min-height: 300px;
    }

    .gwcms-nc-top-side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .gwcms-nc-top-item {
        flex: 1 1 calc((100% - 15px) / 2);
    }

    .gwcms-nc-group {
        flex: 1 1 100%;
    }
}

@media (max-width: 767px) {
    .gwcms-nc-top {
        gap: 12px;
        margin-bottom: 20px;
    }

    .gwcms-nc-top-big-wrap {
        min-height: 220px;
        border-radius: 8px;
    }

    .gwcms-nc-top-card {
        padding: 10px 14px;
        gap: 4px;
    }

    .gwcms-nc-top-card-title-text {
        font-size: 14px;
        line-height: 1.35;
    }

    .gwcms-nc-top-card-date {
        font-size: 11px;
    }

    .gwcms-nc-top-side {
        gap: 10px;
    }

    .gwcms-nc-top-item {
        flex: 1 1 100%;
        padding: 12px;
        gap: 12px;
    }

    .gwcms-nc-top-thumb {
        flex: 0 0 110px;
        width: 110px;
        height: 76px;
        border-radius: 6px;
    }

    .gwcms-nc-top-info {
        height: 76px;
    }

    .gwcms-nc-top-item-title {
        font-size: 14px;
    }
}
