.lm-home-portal {
    box-sizing: border-box;
    --lm-home-ink: #162938;
    --lm-home-muted: #506476;
    --lm-home-line: #e3eaf0;
    --lm-home-link: #006eaa;
    --lm-home-surface: #f5f7f9;
}

.lm-home-portal .mn, .lm-home-portal .sd { min-width: 0; }
.lm-home-portal .slide-pic { overflow: hidden; }
/* The assembly banner already includes its title. Other rotation captions remain visible. */
.lm-home-portal #slide-pic img[src$="/template/one_simple/assets/common/banner/12.jpg"] + .mask-wrap { display: none; }

.lm-home-news-card {
    box-sizing: border-box;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--lm-home-line);
    border-radius: 12px;
}

.lm-home-news { margin-top: 16px; }
.lm-home-news .huodong h2 {
    margin: 0;
    color: #494b4d;
    font: inherit;
}
.lm-home-news-body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 16px;
    min-height: 112px;
}
.lm-home-news-single { grid-template-columns: minmax(0, 1fr); }
.lm-home-news-lead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lm-home-news-lead img {
    flex: 0 0 auto;
    width: min(132px, 35%);
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--lm-home-surface);
}
.lm-home-news-copy { min-width: 0; }
.lm-home-news-copy h3, .lm-home-news-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
}
.lm-home-news-copy h3 { margin: 0; color: inherit; font-size: 15px; line-height: 1.45; }
.lm-home-news-copy p { margin: 5px 0; color: var(--lm-home-muted); font-size: 13px; line-height: 1.5; }
.lm-home-news-copy time { display: inline-block; margin-top: 3px; }
.lm-home-news time { flex: 0 0 auto; color: var(--lm-home-muted); font-size: 12px; white-space: nowrap; }
.lm-home-news-lead, .lm-home-news-list a { color: var(--lm-home-ink); }
.lm-home-news-lead:hover, .lm-home-news-list a:hover { color: var(--lm-home-link); }
.lm-home-news-list { display: grid; align-content: start; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--lm-home-line); list-style: none; }
.lm-home-news-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.lm-home-news-list li + li { border-top: 1px solid var(--lm-home-line); }
.lm-home-news-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.lm-home-news-empty { margin: 0; color: var(--lm-home-muted); font-size: 13px; }

.lm-home-events .huodong1, .lm-home-events .activity-item { padding: 0; background: transparent; }
.lm-home-events .activity-item { display: flex; flex-direction: column; border-radius: 0; }
.lm-home-events .activity-item + .activity-item { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--lm-home-line); }
.lm-home-events .activity-cover { height: auto; }
.lm-home-events .activity-cover img {
    display: block;
    width: 100%;
    height: 159px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}
.lm-home-events .activity-content {
    box-sizing: border-box;
    flex: initial;
    min-width: 0;
    padding: 12px 17px 10px;
    border: 1px solid var(--lm-home-line);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #fff;
    justify-content: flex-start;
}
.lm-home-events .activity-content:first-child {
    border-top: 1px solid var(--lm-home-line);
    border-radius: 12px;
}
.lm-home-events .activity-content:has(.lm-home-awards) { min-height: 257px; }
.lm-home-events .activity-content > .activity-bottom {
    box-sizing: border-box;
    min-height: 35px;
    margin-top: auto;
    padding-top: 8px;
}
.lm-home-events .activity-title a {
    display: block;
    color: var(--lm-home-ink);
    font-size: 18px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.lm-home-events .activity-title a:hover, .lm-home-events .ds a:hover { color: var(--lm-home-link); }
.lm-home-events #activityFormInfo, .lm-home-events .activityFormInfo {
    margin: 0;
    padding: 0;
    color: var(--lm-home-muted);
    font-size: 13px;
}
.lm-home-events #formSubmitCount, .lm-home-events .formSubmitCount {
    color: var(--lm-home-ink);
    font-weight: 700;
    font-size: 14px;
}
.lm-home-events .activity-bottom, .lm-home-activity-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}
.lm-home-events .countdown {
    height: auto;
    margin: 0;
    padding: 3px 7px;
    background: #eaf5fc;
    color: var(--lm-home-link);
    line-height: 1.55;
    font-size: 12px;
    white-space: nowrap;
}
.lm-home-events .countdown.end { background: var(--lm-home-surface); color: var(--lm-home-muted); }
.lm-home-events .ds { margin-left: auto; padding: 0; background: transparent; }
.lm-home-events .ds a {
    display: inline-block;
    padding: 5px 0 5px 4px;
    background: transparent;
    color: var(--lm-home-muted);
    font-size: 12px;
    font-weight: 400;
}
.lm-home-events .ds a:hover, .lm-home-events .ds a:focus-visible { text-decoration: underline; }

.lm-home-awards { min-width: 0; margin-top: 10px; }
.lm-home-award-track {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.lm-home-award-track::-webkit-scrollbar { display: none; }
.lm-home-award-list { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lm-home-award-card {
    box-sizing: border-box;
    flex: 0 0 min(162px, 80%);
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--lm-home-line);
    border-radius: 8px;
    background: var(--lm-home-surface);
    color: var(--lm-home-ink);
    scroll-snap-align: start;
    overflow-wrap: anywhere;
}
.lm-home-award-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 6px; }
.lm-home-award-head strong { font-size: 13px; }
.lm-home-award-head span, .lm-home-award-group { color: var(--lm-home-muted); font-size: 11px; }
.lm-home-award-card p { margin: 4px 0 0; color: #354b5d; font-size: 12px; line-height: 1.5; white-space: pre-line; }
.lm-home-award-nav { display: flex; gap: 6px; }
.lm-home-award-nav[hidden] { display: none; }
.lm-home-award-nav button {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #dbe5ed;
    border-radius: 6px;
    background: #fff;
    color: #365b72;
    cursor: pointer;
}
.lm-home-award-nav button svg { display: block; width: 14px; height: 14px; pointer-events: none; }
.lm-home-award-nav button:hover:not(:disabled) { background: #edf6fc; }
.lm-home-award-nav button:disabled { background: var(--lm-home-surface); color: #667c8b; opacity: .65; cursor: default; }
.lm-home-award-nav button:focus-visible, .lm-home-award-track:focus-visible { outline: 2px solid var(--lm-home-link); outline-offset: 2px; }

.lm-home-community { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 2.6fr); gap: 16px; margin-top: 16px; }
.lm-home-community .item-signin, .lm-home-community .item-grid {
    float: none;
    box-sizing: border-box;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 64px;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--lm-home-line);
}
.lm-home-community .item-signin { display: grid; place-items: center; background: #eaf5fc; border-color: #d5eaf7; font-size: 14px; }
.lm-home-community .item-signin a { color: var(--lm-home-link); }
.lm-home-community .item-grid li a { height: auto; }
.lm-home-community .item-grid .num { margin: 0; font-size: 17px; font-weight: 600; }

@media (min-width: 1239px) {
    .lm-home-portal { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: stretch; gap: 20px; margin-bottom: 22px; }
    .lm-home-portal::after { display: none; }
    .lm-home-portal.ct2 .mn, .lm-home-portal.ct2 .sd { float: none; width: auto; margin: 0; }
    .lm-home-portal.ct2 .mn, .lm-home-portal.ct2 .sd, .lm-home-news { display: flex; flex-direction: column; }
    .lm-home-news, .lm-home-news-card { flex-grow: 1; }
    .lm-home-events { flex-grow: 1; }
    .lm-home-portal .slide-pic { width: 100%; }
}

@media (max-width: 600px) {
    .lm-home-news-card { padding: 13px; }
    .lm-home-events .activity-content { padding-right: 13px; padding-left: 13px; }
    .lm-home-news-body { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .lm-home-news-list { padding: 4px 0 0; border-left: 0; border-top: 1px solid var(--lm-home-line); }
}

@media (prefers-reduced-motion: reduce) {
    .lm-home-award-track { scroll-behavior: auto; }
}
