﻿#Win_Body {
    background-color: white;
    display: flex;
    flex-direction: row; /* 默认大屏：横向排列 Lable左 Input右 */
    vertical-align: top;
    gap: 12px;
}

.BodyLeft {
    display: inline-block;
    width: 300px;
    vertical-align: top;
    margin-right:5px;
    /*background-color: red;*/
}

.BodyRight {
    display: inline-block;
    vertical-align: top;
    /*background-color: blue;*/
}

#WinDiv_Pagination {
    padding: 3px 8px;
}

/* 频道页语义标题与介绍（GEO 需要，视觉保持克制） */
.Channel_H1 {
    margin: 8px 0 4px;
    padding: 0 5px;
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    color: #222;
}

.Channel_Intro {
    margin: 0 5px 10px;
    padding: 10px 12px;
    border-left: 4px solid #d9d9d9;
    background: rgba(240, 240, 240, 0.5);
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    word-wrap: break-word;
}

.ListStyle a span {
    display: inline-block;
}

/* 列表方式*/
.ListStyle0 {
    display: block;
    padding: 5px;
    border-top: solid 1px rgba(0, 112, 107, 0.8);
}
    .ListStyle0 .BorderBottom {
        border-bottom: solid 1px rgba(0, 112, 107, 0.8);
    }
    .ListStyle0 a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 5px 0px;
        line-height: 22px;
        font-size: 14px;
        border-bottom: solid 2px rgba(200, 200, 200, 0);
    }
        .ListStyle0 a:hover {
            border-bottom: solid 2px rgba(200, 200, 200, 0.9);
        }
        .ListStyle0 a .Channel {
            flex: 0 0 auto;
            white-space: nowrap; /* 左侧标签文字不换行，宽度跟随自身文字长度 */
        }
        .ListStyle0 a .Icon {
            display: none;
        }
        .ListStyle0 a .Title {
            flex: 1 1 auto; /* 核心：吃掉左边、右边剩下的全部可用宽度 */
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap; /* 单行，超长显示省略号 */
        }
        .ListStyle0 a .Datetime {
            flex: 0 0 auto;
            white-space: nowrap; /* 日期禁止换行 */
        }
        .ListStyle0 a .SubTitle {
            display: none;
        }

/* 图库方式1：以图片为主、文字为辅的图库网格 */
.ListStyle1 {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 16px;
    padding: 5px;
    border-top: solid 1px rgba(0, 112, 107, 0.8);
}
    .ListStyle1 .BorderBottom {
        display: none; /* 分隔块不影响网格 */
    }
    .ListStyle1 a {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        width: calc((100% - 32px) / 3); /* 桌面三列 */
        background-color: #ffffff;
        border: 1px solid #eef1f0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        transition: box-shadow 0.25s ease, transform 0.25s ease;
    }
        .ListStyle1 a:hover {
            box-shadow: 0 8px 20px rgba(0, 112, 107, 0.15);
            transform: translateY(-3px);
        }
        .ListStyle1 a .Channel {
            display: none;
        }
        .ListStyle1 a .Icon {
            display: block;
            width: 100%;
            aspect-ratio: 1 / 1; /* 方形图片，图片为主 */
            background: #f6f8f7; /* 无图时的浅色占位 */
            overflow: hidden;
        }
            .ListStyle1 a .Icon img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.35s ease;
            }
            .ListStyle1 a:hover .Icon img {
                transform: scale(1.06); /* 悬浮图片微放大 */
            }
            /* 空图片不显示破图图标 */
            .ListStyle1 a .Icon img[src=""],
            .ListStyle1 a .Icon img[src="#"] {
                display: none;
            }
        .ListStyle1 a .Title {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap; /* 单行，超长隐藏 */
            padding: 9px 10px 10px;
            font-size: 13px;
            line-height: 20px;
            color: #666666;
            text-align: left;
        }
        .ListStyle1 a:hover .Title {
            color: #00706b;
        }
        .ListStyle1 a .Datetime {
            display: none;
        }
        .ListStyle1 a .SubTitle {
            display: none;
        }


/* 视频列表方式：左图右文，无图留白 */
.ListStyle2 {
    display: block;
    padding: 5px;
    border-top: solid 1px rgba(0, 112, 107, 0.8);
}
    .ListStyle2 .BorderBottom {
        display: none; /* 分隔块不影响列表 */
    }
    .ListStyle2 a {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        grid-template-rows: auto auto;
        grid-template-areas:
            "icon title"
            "icon datetime";
        column-gap: 20px;
        row-gap: 4px;
        align-items: start;
        padding: 14px 0;
        border-bottom: solid 1px #eef2f1;
        transition: background-color 0.2s ease;
    }
    .ListStyle2 a:hover {
        background-color: #f5f9f8;
    }
        .ListStyle2 a .Channel {
            display: none;
        }
        .ListStyle2 a .Icon {
            grid-area: icon;
            align-self: center;
            aspect-ratio: 16 / 9;
            background-color: #ffffff; /* 无图留白 */
            border: 1px solid #ecefef;
            border-radius: 8px;
            overflow: hidden;
        }
            .ListStyle2 a .Icon img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            /* 空图片不显示破图图标，保持留白 */
            .ListStyle2 a .Icon img[src=""],
            .ListStyle2 a .Icon img[src="#"] {
                display: none;
            }
        .ListStyle2 a .Title {
            grid-area: title;
            min-width: 0;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
            font-size: 16px;
            line-height: 26px;
            font-weight: 500;
            color: #333333;
        }
        .ListStyle2 a:hover .Title {
            color: #00706b;
        }
        .ListStyle2 a .Datetime {
            grid-area: datetime;
            color: #999999;
            font-size: 13px;
            line-height: 20px;
            white-space: nowrap;
        }
        .ListStyle2 a .SubTitle {
            display: none;
        }

/* 图库方式3：图片在上、标题在下的卡片网格 */
.ListStyle3 {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 20px;
    padding: 5px;
    border-top: solid 1px rgba(0, 112, 107, 0.8);
}
    /* 服务端每5条插入的分隔块不参与网格布局 */
    .ListStyle3 .BorderBottom {
        display: none;
    }
        .ListStyle3 a {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        position: relative; /* 分类徽章定位锚点 */
        width: calc((100% - 40px) / 3); /* 一行三列 */
        background-color: #ffffff;
        border: 1px solid #e6ebe9;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    }
        .ListStyle3 a:hover {
            border-color: rgba(0, 112, 107, 0.5);
            box-shadow: 0 10px 24px rgba(0, 112, 107, 0.18);
            transform: translateY(-3px);
        }
        /* 分类徽章：悬浮于图片左上角，仅商品展示样式显示 */
        .ListStyle3 a .Channel {
            position: absolute;
            top: 8px;
            left: 8px;
            z-index: 2;
            max-width: calc(100% - 16px);
            box-sizing: border-box;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding: 2px 9px;
            background-color: rgba(0, 112, 107, 0.92);
            color: #ffffff;
            font-size: 11px;
            line-height: 18px;
            border-radius: 4px;
        }
        .ListStyle3 a .Icon {
            display: block;
            width: 100%;
            min-height: 120px; /* 不支持 aspect-ratio 的旧浏览器回退高度 */
            aspect-ratio: 4 / 3;
            background: linear-gradient(180deg, #f5f8f7, #e9efed);
            overflow: hidden;
        }
            .ListStyle3 a .Icon img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
            }
            /* 空图片不显示破图图标 */
            .ListStyle3 a .Icon img[src=""],
            .ListStyle3 a .Icon img[src="#"] {
                display: none;
            }
        .ListStyle3 a .Title {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap; /* 单行，超长隐藏省略 */
            padding: 12px 14px 0;
            font-size: 14px;
            line-height: 22px;
            font-weight: 600;
            color: #333333;
            text-align: left;
        }
        .ListStyle3 a:hover .Title {
            color: #00706b;
        }
        /* 副标题：商品卖点/简介，最多两行 */
        .ListStyle3 a .SubTitle {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
            padding: 4px 14px 0;
            font-size: 12px;
            line-height: 18px;
            color: #888888;
            text-align: left;
        }
        .ListStyle3 a .SubTitle:empty {
            display: none; /* 无副标题不占位 */
        }
        .ListStyle3 a .Datetime {
            margin-top: auto; /* 日期沉底，卡片信息区底部对齐 */
            padding: 10px 14px 12px;
            border-top: 1px dashed #eef1f0;
            font-size: 11px;
            line-height: 16px;
            color: #b0b8b6;
            text-align: left;
            white-space: nowrap;
        }

@media screen and (max-width: 800px) {
    #Win_Body {
        flex-direction: column-reverse; /* 纵向，并且顺序反转：Input在上，Lable在下 */
        align-items: flex-start;
    }

    .BodyLeft {
        display: block;
        width: 100%;
        margin-top: 10px;
    }
    .BodyRight {
        display: block;
        width: 100%;
    }
    .ListStyle3 a {
        width: calc((100% - 20px) / 2); /* 平板两列 */
    }

    .ListStyle2 a {
        grid-template-columns: 150px minmax(0, 1fr);
        column-gap: 14px;
        padding: 10px 0;
    }
    .ListStyle2 a .Title {
        font-size: 15px;
        line-height: 24px;
    }

    .ListStyle1 a {
        width: calc((100% - 16px) / 2); /* 平板两列 */
    }
}

@media screen and (max-width: 480px) {
    .ListStyle3 a {
        width: 100%; /* 手机单列 */
    }

    .ListStyle2 a {
        grid-template-columns: 104px minmax(0, 1fr);
        column-gap: 10px;
        padding: 8px 0;
    }
    .ListStyle2 a .Title {
        font-size: 14px;
        line-height: 22px;
    }
    .ListStyle2 a .Datetime {
        font-size: 12px;
    }

    .ListStyle1 a {
        width: calc((100% - 16px) / 2); /* 手机两列 */
    }
}