/* 文明培育：独立样式，避免影响首页其他栏目 */
.wmpy-switch {
    width: 1200px;
}

/* 原首页使用 * { margin: 0 auto; }，此处仅在栏目内部取消自动外边距 */
.wmpy-switch * {
    margin-right: 0;
    margin-left: 0;
}

.wmpy-switch__header {
    display: flex;
    align-items: flex-end;
    height: 54px;
    border-bottom: 1px solid #e5e5e5;
}

.wmpy-switch__title {
    position: relative;
    flex: 0 0 auto;
    height: 54px;
    margin-right: 36px;
    color: #c8161d;
    font-size: 30px;
    font-weight: bold;
    line-height: 48px;
    white-space: nowrap;
    text-decoration: none;
}

.wmpy-switch__title::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: #c8161d;
    content: "";
}

.wmpy-switch__title:hover {
    text-decoration: none;
}

.wmpy-switch__tabs {
    display: flex;
    flex: 1;
    align-items: flex-end;
    height: 54px;
}

.wmpy-switch__tab {
    position: relative;
    display: block;
    flex: 0 0 auto;
    height: 46px;
    margin-right: 42px;
    color: #333;
    font-size: 20px;
    line-height: 38px;
    text-align: left;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.wmpy-switch__tab:last-child {
    margin-right: 0;
}

.wmpy-switch__tab::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: transparent;
    content: "";
}

.wmpy-switch__tab:hover,
.wmpy-switch__tab:focus,
.wmpy-switch__tab.is-active {
    color: #c8161d;
    text-decoration: none;
    outline: none;
}

.wmpy-switch__tab.is-active::after {
    background: #c8161d;
}

.wmpy-switch__panel {
    display: none;
}

.wmpy-switch__panel.is-active {
    display: block;
}

.wmpy-switch__content {
    display: grid;
    grid-template-columns: 650px 530px;
    column-gap: 20px;
    margin-top: 24px;
}

.wmpy-switch__lead {
    display: contents;
}

.wmpy-switch__headline-box {
    grid-column: 2;
    grid-row: 1;
    box-sizing: border-box;
    height: 116px;
    padding: 2px 12px 14px 0;
    border-bottom: 1px dotted #777;
}

.wmpy-switch__headline {
    display: -webkit-box;
    overflow: hidden;
    color: #c8161d;
    font-size: 22px;
    font-weight: bold;
    line-height: 34px;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wmpy-switch__headline:hover {
    text-decoration: underline;
}

.wmpy-switch__media {
    grid-column: 1;
    grid-row: 1 / span 8;
    display: block;
    overflow: hidden;
    width: 650px;
    height: 360px;
    border-radius: 8px;
    background: #f3f3f3;
}

.wmpy-switch__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.25s ease;
}

.wmpy-switch__media:hover img {
    transform: scale(1.02);
}

.wmpy-switch__news {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow: hidden;
    width: 530px;
    height: 40px;
    padding-right: 12px;
    color: #333;
    font-size: 16px;
    line-height: 24px;
    text-align: left;
    white-space: nowrap;
    text-decoration: none;
}

.wmpy-switch__news::before {
    flex: 0 0 auto;
    margin-right: 10px;
    color: #d43333;
    font-size: 15px;
    content: "●";
}

.wmpy-switch__news span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.wmpy-switch__news:hover {
    color: #c8161d;
}
