/* 瞬间页采用微信朋友圈式布局，所有规则限定在 momos 页面内。 */
.momos-page {
    min-height: 100vh;
    padding: 0;
    color: #191919;
    background: #fff;
}

.momos-page .momos-wechat-shell {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #fff;
}

.momos-page .momos-cover {
    position: relative;
    min-height: clamp(420px, 62vh, 720px);
    background-color: #536b82;
    background: var(--main-bg-image);
}

.momos-page .momos-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .02) 46%, rgba(0, 0, 0, .62));
}

.momos-page .momos-profile {
    position: absolute;
    z-index: 1;
    right: max(24px, calc((100vw - 1120px) / 2));
    bottom: -34px;
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.momos-page .momos-profile-copy {
    padding-bottom: 42px;
    color: #fff;
    text-align: right;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .65);
}

.momos-page .momos-profile-copy h1 {
    max-width: min(520px, 58vw);
    margin: 0 0 5px;
    overflow-wrap: anywhere;
    color: inherit;
    font-size: 24px;
    font-weight: 700;
}

.momos-page .momos-profile-copy a { color: #fff; font-size: 14px; }
.momos-page .momos-profile-copy a:hover { color: #fff; text-decoration: none; }

.momos-page .momos-profile img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    background: #fff;
    border: 4px solid #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}

.momos-page .momos-feed {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding-top: 54px;
    background: #fff;
}

.momos-page .momos-intro {
    margin: 0 24px 14px;
    padding: 13px 16px;
    color: #576b95;
    background: #f7f7f7;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.75;
}

.momos-page .momos-intro > :last-child { margin-bottom: 0; }

#momos-app { color: #191919; }
#momos-app [hidden] { display: none !important; }

#momos-app .momos-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 66px;
    padding: 12px 24px;
    border-bottom: 1px solid #e5e5e5;
}

#momos-app .momos-toolbar-title { display: block; color: #191919; font-size: 16px; font-weight: 600; }
#momos-app .momos-muted { margin-top: 3px; color: #b2b2b2; font-size: 12px; line-height: 1.5; }
#momos-app .momos-toolbar-actions { display: flex; align-items: center; gap: 10px; }
#momos-app .momos-count { white-space: nowrap; color: #b2b2b2; font-size: 12px; }
#momos-app .momos-count strong { color: #576b95; font-weight: 600; }

#momos-app #momos-refresh {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    color: #576b95;
    background: #f3f3f3;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
}

#momos-app #momos-refresh:disabled { color: #b2b2b2; cursor: not-allowed; }
#momos-app .momos-list { position: relative; }
#momos-app .momos-list:empty { display: none; }

#momos-app .momos-month {
    margin: 0;
    padding: 10px 24px 5px 84px;
    color: #b2b2b2;
    background: #fff;
    font-size: 11px;
    letter-spacing: .02em;
}

#momos-app .momos-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    margin: 0 24px;
    padding: 18px 0 20px;
    border-bottom: 1px solid #e5e5e5;
}

#momos-app .momos-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    overflow: hidden;
    place-items: center;
    color: #fff;
    background: #07c160;
    border-radius: 3px;
    font-size: 20px;
    font-weight: 600;
}

#momos-app .momos-avatar img { width: 100%; height: 100%; object-fit: cover; }
#momos-app .momos-card-content { min-width: 0; }
#momos-app .momos-author { display: block; margin: -2px 0 5px; color: #576b95; font-size: 15px; font-weight: 600; line-height: 1.45; }

#momos-app .momos-body {
    color: #191919;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

#momos-app .momos-body > :first-child { margin-top: 0; }
#momos-app .momos-body > :last-child { margin-bottom: 0; }
#momos-app .momos-body p { margin: 0 0 8px; font: inherit; }
#momos-app .momos-body h1,
#momos-app .momos-body h2,
#momos-app .momos-body h3 { margin: 12px 0 7px; color: #191919; font-size: 17px; }
#momos-app .momos-body a { color: #576b95; }
#momos-app .momos-body blockquote { margin: 10px 0; padding: 8px 12px; color: #737373; background: #f7f7f7; border-left: 3px solid #d9d9d9; }
#momos-app .momos-body pre { margin: 10px 0; padding: 12px; overflow-x: auto; background: #f7f7f7; border-radius: 3px; }
#momos-app .momos-body table { display: block; max-width: 100%; overflow-x: auto; }
#momos-app .momos-body th,
#momos-app .momos-body td { padding: 6px 9px; border: 1px solid #e5e5e5; }
#momos-app .momos-body img { display: block; max-width: 100%; max-height: 520px; margin: 8px 0; border-radius: 2px; cursor: zoom-in; }

#momos-app .momos-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: min(100%, 420px);
    margin-top: 9px;
}

#momos-app .momos-gallery.is-single { grid-template-columns: minmax(0, 1fr); width: min(100%, 270px); }
#momos-app .momos-gallery.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 340px); }
#momos-app .momos-photo { min-width: 0; margin: 0; overflow: hidden; background: #f3f3f3; }
#momos-app .momos-photo img { display: block; width: 100%; height: 132px; object-fit: cover; cursor: zoom-in; }
#momos-app .momos-gallery.is-single img { height: auto; max-height: 420px; object-fit: contain; }
#momos-app .momos-media-player { display: block; width: min(100%, 440px); max-height: 420px; margin-top: 10px; border-radius: 3px; }
#momos-app .momos-body .momos-media-player { margin-bottom: 8px; }

#momos-app .momos-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
#momos-app .momos-tag { padding: 3px 7px; color: #576b95; background: #f3f3f3; border-radius: 2px; font-size: 12px; }

#momos-app .momos-card-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
}

#momos-app .momos-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; color: #b2b2b2; font-size: 11px; }
#momos-app .momos-time { color: #b2b2b2; }
#momos-app .momos-time:hover { color: #576b95; text-decoration: none; }
#momos-app .momos-location { color: #576b95; }
#momos-app .momos-location i { margin-right: 4px; }
#momos-app .momos-source::before { content: '来自 '; }

#momos-app .momos-action {
    display: grid;
    flex: 0 0 auto;
    width: 32px;
    height: 20px;
    place-items: center;
    color: #576b95;
    background: #f3f3f3;
    border-radius: 3px;
    font-size: 13px;
}

#momos-app .momos-error { margin: 14px 24px 0; padding: 12px 14px; color: #fa5151; background: #fff5f5; border-radius: 3px; font-size: 13px; }
#momos-app .momos-status { padding: 24px; color: #b2b2b2; text-align: center; font-size: 13px; line-height: 1.7; }
#momos-app .momos-pagination { padding: 0 24px 28px; text-align: center; }
#momos-app #momos-more { min-width: 132px; padding: 9px 18px; color: #576b95; background: #f3f3f3; border: 0; border-radius: 3px; cursor: pointer; }
#momos-app #momos-more:disabled { color: #b2b2b2; cursor: wait; }
#momos-app button:focus-visible,
#momos-app a:focus-visible { outline: 2px solid #07c160; outline-offset: 2px; }

@media (max-width: 767.98px) {
    .momos-page .momos-cover { min-height: 56vh; background: var(--phone-bg-image); }
    .momos-page .momos-profile { right: 16px; }
    .momos-page .momos-profile-copy h1 { max-width: 230px; font-size: 21px; }
    #momos-app .momos-toolbar { padding-right: 16px; padding-left: 16px; }
    #momos-app .momos-month { padding-left: 74px; }
    #momos-app .momos-card { margin: 0 16px; }
}

@media (max-width: 420px) {
    .momos-page .momos-cover { min-height: 52vh; }
    .momos-page .momos-profile { bottom: -30px; }
    .momos-page .momos-profile img { width: 74px; height: 74px; }
    .momos-page .momos-profile-copy { padding-bottom: 36px; }
    .momos-page .momos-feed { padding-top: 48px; }
    .momos-page .momos-intro { margin-right: 16px; margin-left: 16px; }
    #momos-app .momos-toolbar-title { font-size: 15px; }
    #momos-app .momos-count { display: none; }
    #momos-app .momos-card { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; }
    #momos-app .momos-avatar { width: 42px; height: 42px; }
    #momos-app .momos-month { padding-left: 68px; }
    #momos-app .momos-photo img { height: 92px; }
}
