/* s04 ml 页面：保留原有内容和链接，仅统一页面视觉。 */
* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
}

.s04-ml-header.bgThemColor,
.s04-ml-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 68px;
    border-bottom: 1px solid var(--s04-border) !important;
    background: rgba(11, 16, 32, .86) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
    backdrop-filter: blur(18px) saturate(140%);
}

.s04-ml-header .cont1300 {
    display: grid;
    width: min(1320px, calc(100% - 32px));
    height: 68px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
}

.s04-ml-header .icon,
.s04-ml-header .fuli {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--s04-border);
    border-radius: 11px;
    background: var(--s04-surface-raised);
    color: var(--s04-primary);
    font-size: 20px;
    font-weight: 700;
}

.s04-ml-header .icon a,
.s04-ml-header .fuli a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.s04-ml-header .icon:hover,
.s04-ml-header .fuli:hover {
    border-color: var(--s04-border-strong);
    background: rgba(105, 214, 246, .12);
    transform: translateY(-1px);
}

.s04-ml-header .fuli {
    justify-self: end;
    font-size: 13px;
}

.s04-ml-header .logo {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
}

.s04-ml-header .logo img {
    display: block;
    width: auto;
    max-width: 180px;
    height: 40px;
    object-fit: contain;
    border-radius: 9px;
}

.s04-ml-page {
    width: 100%;
    min-height: calc(100vh - 68px);
    color: var(--s04-text);
}

.s04-ml-page .m-app-pos {
    width: min(1320px, calc(100% - 32px));
    margin: 24px auto 0;
    padding: 0;
}

.s04-ml-page .m-app-pos .inner {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border: 1px solid var(--s04-border-strong);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(24, 35, 56, .96), rgba(18, 26, 42, .92));
    box-shadow: var(--s04-shadow);
}

.s04-ml-page .m-app-pos .info {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 24px;
}

.s04-ml-page .m-app-pos .img {
    display: grid;
    flex: 0 0 300px;
    width: 300px;
    height: 184px;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 5px;
    overflow: hidden;
    border: 1px solid var(--s04-border);
    border-radius: 14px;
    background: var(--s04-bg-deep);
}

.s04-ml-page .m-app-pos .img img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    opacity: .88;
    transition: opacity .2s ease, transform .2s ease;
}

.s04-ml-page .m-app-pos .img img:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.s04-ml-page .m-app-pos .img img:hover {
    opacity: 1;
    transform: scale(1.04);
}

.s04-ml-page .m-app-pos .detail {
    min-width: 0;
}

.s04-ml-page .m-app-pos .detail .title {
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--s04-text);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.s04-ml-page .m-app-pos .detail p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.s04-ml-page .m-app-pos .detail p span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 11px;
    border: 1px solid var(--s04-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: var(--s04-text-soft);
    font-size: 13px;
}

.s04-ml-page .m-app-pos .btn-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.s04-ml-page .m-app-pos .btn,
.s04-ml-page > nav a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--s04-primary) !important;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--s04-primary-strong), var(--s04-primary)) !important;
    box-shadow: 0 8px 18px rgba(50, 137, 237, .18);
    color: #fff !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.s04-ml-page .m-app-pos .btn:hover,
.s04-ml-page > nav a:hover {
    filter: brightness(1.08);
    box-shadow: 0 11px 24px rgba(50, 137, 237, .28);
    transform: translateY(-2px);
}

.s04-ml-page .m-app-pos .btn:active,
.s04-ml-page > nav a:active {
    filter: brightness(.96);
    transform: translateY(1px) scale(.985);
}

.s04-ml-page main {
    width: min(1320px, calc(100% - 32px));
    margin: 24px auto 0;
}

.s04-ml-page main article {
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--s04-border);
    border-radius: var(--s04-radius);
    background: linear-gradient(180deg, rgba(24, 35, 56, .96), rgba(18, 26, 42, .92));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}

.s04-ml-page main article > h1 {
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--s04-border);
    color: var(--s04-text);
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.3;
}

.s04-ml-page .single-excerpt {
    margin-bottom: 22px;
    padding: 16px 18px;
    border-left: 3px solid var(--s04-primary);
    border-radius: 0 10px 10px 0;
    background: var(--s04-surface-soft);
    color: var(--s04-text-soft);
    line-height: 1.8;
}

.s04-ml-page .single-excerpt p {
    margin: 5px 0;
}

.s04-ml-page .single-excerpt a,
.s04-ml-page article a {
    color: var(--s04-primary);
    text-decoration: none;
}

.s04-ml-page .single-excerpt a:hover,
.s04-ml-page article a:hover {
    color: var(--s04-primary-strong);
    text-decoration: underline;
}

.s04-ml-page .detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.s04-ml-page .detail-list a {
    display: block;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--s04-border);
    border-radius: 10px;
    background: var(--s04-surface-raised);
    color: var(--s04-text-soft);
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.s04-ml-page .detail-list a:hover {
    border-color: var(--s04-border-strong);
    background: rgba(105, 214, 246, .09);
    transform: translateY(-1px);
}

.s04-ml-page .detail-list h1 {
    margin: 0;
    overflow: hidden;
    color: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.s04-ml-page article img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.s04-ml-page .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    width: min(1320px, 100%);
    margin: 14px auto 0;
    padding: 0 4px 8px;
    color: var(--s04-muted);
    font-size: 12px;
}

.s04-ml-page > nav {
    display: flex;
    width: min(1320px, calc(100% - 32px));
    justify-content: center;
    gap: 10px;
    margin: 24px auto 0;
}

.s04-ml-page > nav a {
    min-width: 110px;
    padding: 0 18px;
}

.s04-ml-page footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    width: min(1320px, calc(100% - 32px));
    margin: 24px auto 0;
    padding: 20px 0;
    border-top: 1px solid var(--s04-border);
    color: var(--s04-muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.s04-ml-page footer a {
    color: var(--s04-muted);
    text-decoration: none;
}

.s04-ml-page footer a:hover {
    color: var(--s04-primary);
}

body.theme-white .s04-ml-header {
    background: rgba(255, 255, 255, .88) !important;
}

body.theme-white .s04-ml-page .m-app-pos .inner,
body.theme-white .s04-ml-page main article {
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(238, 244, 251, .94));
}

body.theme-white .s04-ml-page .single-excerpt {
    background: rgba(255, 255, 255, .72);
}

body.theme-white .s04-ml-page .detail-list a {
    background: #fff;
}

@media screen and (max-width: 900px) {
    .s04-ml-page .m-app-pos .info {
        align-items: flex-start;
    }

    .s04-ml-page .m-app-pos .img {
        flex-basis: 240px;
        width: 240px;
        height: 160px;
    }
}

@media screen and (max-width: 640px) {
    .s04-ml-header .cont1300,
    .s04-ml-page .m-app-pos,
    .s04-ml-page main,
    .s04-ml-page > nav,
    .s04-ml-page footer {
        width: calc(100% - 20px);
    }

    .s04-ml-header .cont1300 {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 8px;
    }

    .s04-ml-header .logo img {
        max-width: 150px;
        height: 34px;
    }

    .s04-ml-page .m-app-pos .inner {
        min-height: 0;
        padding: 18px;
    }

    .s04-ml-page .m-app-pos .info {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .s04-ml-page .m-app-pos .img {
        width: 100%;
        height: 190px;
        flex-basis: auto;
    }

    .s04-ml-page .m-app-pos .detail .title {
        font-size: 26px;
    }

    .s04-ml-page .m-app-pos .btn-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .s04-ml-page main article {
        padding: 20px 16px;
    }

    .s04-ml-page .detail-list {
        grid-template-columns: 1fr;
    }

    .s04-ml-page > nav {
        gap: 7px;
    }

    .s04-ml-page > nav a {
        min-width: 0;
        flex: 1 1 0;
        padding: 0 8px;
        font-size: 13px;
    }
}

@media screen and (max-width: 380px) {
    .s04-ml-page .m-app-pos .btn-group {
        grid-template-columns: 1fr;
    }

    .s04-ml-page .m-app-pos .img {
        height: 160px;
    }
}
