/* 多公众号营销系统 · 官网前台（mp） */
:root {
    --bg: #fafbfc;
    --bg-elevated: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #0ea5e9;
    --accent-deep: #0284c7;
    --accent-glow: rgba(14, 165, 233, 0.35);
    --border: rgba(15, 23, 42, 0.08);
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
    --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-deep);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 251, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
}
.site-logo:hover {
    text-decoration: none;
    color: var(--accent-deep);
}

.site-logo__mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* 顶栏 Logo：背景图 + contain；槽宽略大于常见横条 Logo，过宽易在标题前留出大块空 */
.site-logo__brand {
    flex-shrink: 0;
    display: block;
    height: 38px;
    width: 108px;
    max-width: min(108px, 30vw);
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.site-nav a:hover {
    color: var(--text);
    background: rgba(15, 23, 42, 0.05);
    text-decoration: none;
}

.site-nav a.is-active {
    color: var(--text);
    background: rgba(15, 23, 42, 0.08);
    font-weight: 600;
}

@media (max-width: 640px) {
    #mp-site .site-logo {
        display: none;
    }

    #mp-site .site-header__inner {
        justify-content: center;
        padding: 12px 16px;
        gap: 0;
    }

    #mp-site .site-nav {
        justify-content: center;
        width: 100%;
    }
}

.mp-subpage {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 72px;
}

.mp-subpage__title {
    margin: 0 0 16px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.mp-subpage__lead {
    margin: 0 0 20px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.mp-subpage p {
    margin: 0 0 16px;
}

.mp-subpage__list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-muted);
}

.mp-subpage__list li {
    margin-bottom: 10px;
}

/* —— 子页（关于 / 公告）增强布局 —— */
.mp-page-hero {
    position: relative;
    padding: clamp(40px, 8vw, 72px) 24px clamp(36px, 6vw, 56px);
    background: linear-gradient(135deg, #0f172a 0%, #0c4a6e 40%, #075985 78%, #0c4a6e 120%);
    color: #f1f5f9;
    overflow: hidden;
}

.mp-page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 70% at 85% 0%, rgba(14, 165, 233, 0.28), transparent 52%),
        radial-gradient(ellipse 60% 50% at 10% 100%, rgba(56, 189, 248, 0.12), transparent 45%);
    pointer-events: none;
}

.mp-page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
}

.mp-page-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 12px;
}

.mp-page-hero__title {
    margin: 0 0 14px;
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #fff;
}

.mp-page-hero__lead {
    margin: 0;
    max-width: 640px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.9);
}

/* 公告详情：顶区无大标题，压缩留白 */
.mp-page-hero--detail {
    padding-top: clamp(28px, 5vw, 52px);
    padding-bottom: clamp(22px, 4vw, 40px);
}

.stats.mp-page-stats {
    position: relative;
    z-index: 2;
    margin: -40px auto 0;
    padding: 0 24px 24px;
    max-width: 1120px;
}

@media (max-width: 720px) {
    .stats.mp-page-stats {
        margin-top: -28px;
    }
}

.stat__num--word {
    font-size: clamp(1.2rem, 3.2vw, 1.5rem);
    letter-spacing: 0.06em;
}

.mp-info-strip {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    max-width: 760px;
    margin: 0 auto 40px;
    padding: 20px 22px;
    border-radius: var(--radius);
    border: 1px solid rgba(14, 165, 233, 0.22);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(2, 132, 199, 0.06));
}

/* 公告页：主栏 + 右侧排行 */
#mp-site .section--notices {
    max-width: 1180px;
}

.mp-notices-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px 36px;
    align-items: start;
    width: 100%;
}

.mp-notices-layout--solo {
    grid-template-columns: 1fr;
}

.mp-notices-layout__main {
    min-width: 0;
}

.mp-notices-layout__aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 88px;
}

.mp-notices-sidecard {
    margin: 0;
    padding: 18px 18px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 22px rgba(15, 23, 42, 0.05);
}

.mp-notices-sidecard__head {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.mp-notices-sidecard__title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.mp-notices-sidecard__hint {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.mp-notices-sidecard__empty {
    margin: 0;
    padding: 8px 0 4px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.mp-notices-rank {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: mp-rank;
}

.mp-notices-rank__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.875rem;
    line-height: 1.45;
}

.mp-notices-rank__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mp-notices-rank__num {
    flex: 0 0 1.25rem;
    width: 1.25rem;
    text-align: center;
    font-weight: 800;
    font-size: 0.75rem;
    color: #0ea5e9;
    line-height: 1.5;
}

.mp-notices-rank__link {
    flex: 1;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a.mp-notices-rank__link:hover {
    color: #0284c7;
    text-decoration: none;
}

/* 公告页：主栏列表全宽（不再单独居中窄栏） */
.mp-notices-stack {
    width: 100%;
    max-width: none;
    margin: 0;
}

@media (max-width: 960px) {
    .mp-notices-layout {
        grid-template-columns: 1fr;
    }

    .mp-notices-layout__aside {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .mp-notices-layout__aside .mp-notices-sidecard {
        flex: 1 1 calc(50% - 8px);
        min-width: min(280px, 100%);
    }
}

@media (max-width: 560px) {
    .mp-notices-layout__aside {
        flex-direction: column;
    }

    .mp-notices-layout__aside .mp-notices-sidecard {
        flex: 1 1 auto;
        min-width: 0;
    }
}

.mp-article-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mp-article-list__item {
    margin: 0;
    padding: 0;
}

.mp-article-card {
    margin: 0;
    padding: 20px 22px 22px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 22px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.mp-article-card:hover {
    border-color: rgba(14, 165, 233, 0.22);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.07);
}

a.mp-article-card--link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.mp-article-card--link:focus-visible {
    outline: 2px solid rgba(14, 165, 233, 0.85);
    outline-offset: 3px;
}

/* 公告详情：返回链接（#mp-site 压过全局 a:hover 下划线；不再用 border-bottom 避免「像下划线」） */
#mp-site a.mp-notice-detail__back,
#mp-site a.mp-notice-detail__back:hover,
#mp-site a.mp-notice-detail__back:focus,
#mp-site a.mp-notice-detail__back:active {
    text-decoration: none !important;
}

a.mp-notice-detail__back {
    display: inline-block;
    margin-top: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border: 0;
    box-shadow: none;
}

a.mp-notice-detail__back:hover {
    color: #fff;
    text-decoration: none !important;
}

a.mp-notice-detail__back:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 2px;
    text-decoration: none !important;
}

.mp-notice-detail {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px 48px;
    box-sizing: border-box;
}

/* 正文白底卡片（与列表侧栏卡片、文档主栏一致） */
.mp-notice-detail__card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 22px rgba(15, 23, 42, 0.05);
    padding: clamp(22px, 4vw, 32px) clamp(18px, 3vw, 28px) clamp(28px, 4vw, 40px);
    box-sizing: border-box;
    /* 短文也有稳定版面高度；正文变长时随内容增高（不设 max-height，不裁切） */
    min-height: clamp(410px, 58vh, 570px);
}

.mp-notice-detail__card--empty {
    min-height: auto;
}

/* 标题居中；日期单独一行靠右 */
.mp-notice-detail__head {
    margin: 0 0 24px;
}

.mp-notice-detail__title {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 3.4vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.35;
    text-align: center;
    color: var(--text);
}

.mp-notice-detail__meta-row {
    text-align: right;
    margin: 0 0 4px;
}

.mp-notice-detail__meta-row .mp-notice-detail__time {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.mp-notice-detail__title--solo {
    margin: 0 auto 14px;
    max-width: 100%;
    text-align: center;
    font-size: clamp(1.35rem, 3.4vw, 1.75rem);
}

.mp-notice-detail__empty {
    padding: 20px 8px 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.mp-article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    word-wrap: break-word;
}

.mp-article-body > *:first-child {
    margin-top: 0;
}

.mp-article-body > *:last-child {
    margin-bottom: 0;
}

.mp-article-body p {
    margin: 0 0 1em;
}

.mp-article-body h1,
.mp-article-body h2,
.mp-article-body h3,
.mp-article-body h4 {
    margin: 1.25em 0 0.5em;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
}

.mp-article-body h1:first-child,
.mp-article-body h2:first-child,
.mp-article-body h3:first-child {
    margin-top: 0;
}

.mp-article-body ul,
.mp-article-body ol {
    margin: 0 0 1em;
    padding-left: 1.35em;
}

.mp-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.mp-article-body a {
    color: #0ea5e9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mp-article-body a:hover {
    color: #0284c7;
}

.mp-article-body blockquote {
    margin: 1em 0;
    padding: 12px 16px;
    border-left: 4px solid rgba(14, 165, 233, 0.45);
    background: rgba(241, 245, 249, 0.65);
    color: var(--text-muted);
}

.mp-article-card__headline {
    margin-bottom: 10px;
    font-size: 1.125rem;
    line-height: 1.45;
}

.mp-article-card__title {
    display: inline;
    margin: 0;
    font-size: inherit;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.mp-article-card__time {
    display: inline;
    margin-left: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
    vertical-align: baseline;
}

.mp-article-card__summary {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.72;
    color: var(--text-muted);
}

/* 公告页分页外层：独立类名 mp-notices-pager-wrap，避免线上旧 CSS 里 mp-notices-footer-bar 的 flex/space-between 残留 */
#mp-site .mp-notices-pager-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 28px;
    padding: 0 16px;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

#mp-site .mp-notices-pager-wrap nav.mp-pagination {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    vertical-align: top;
    text-align: center;
}

#mp-site .mp-notices-pager-wrap .mp-pagination__inner {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
    vertical-align: middle;
}

/* 其它页若复用 mp-pagination，兜底样式（低于上一段优先级） */
#mp-site .mp-pagination__inner {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    max-width: 100%;
    padding: 6px 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
    vertical-align: middle;
}

#mp-site .mp-pagination__edge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

#mp-site a.mp-pagination__edge:hover {
    color: var(--accent-deep);
    background: rgba(14, 165, 233, 0.1);
    text-decoration: none;
}

#mp-site .mp-pagination__edge--disabled {
    opacity: 0.38;
    cursor: default;
    pointer-events: none;
}

#mp-site .mp-pagination__pages {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 4px;
    padding: 0 10px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

#mp-site .mp-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25em;
    height: 36px;
    padding: 0 2px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    user-select: none;
}

#mp-site a.mp-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#mp-site a.mp-pagination__page:hover {
    color: var(--accent-deep);
    background: rgba(14, 165, 233, 0.1);
    text-decoration: none;
}

#mp-site .mp-pagination__page.is-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    box-shadow: 0 4px 16px var(--accent-glow);
}

@media (max-width: 640px) {
    #mp-site .mp-notices-pager-wrap {
        padding: 0 12px;
    }

    #mp-site .mp-notices-pager-wrap nav.mp-pagination {
        width: 100%;
        max-width: 100%;
    }

    #mp-site .mp-notices-pager-wrap .mp-pagination__inner {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 6px;
        max-width: 100%;
        padding: 6px 8px;
        box-sizing: border-box;
    }

    #mp-site .mp-notices-pager-wrap .mp-pagination__edge--skip-mobile {
        display: none;
    }

    #mp-site .mp-notices-pager-wrap .mp-pagination__edge {
        padding: 7px 11px;
        font-size: 0.75rem;
    }

    #mp-site .mp-notices-pager-wrap .mp-pagination__pages {
        margin: 0 2px;
        padding: 0 6px;
        gap: 2px;
    }

    #mp-site .mp-notices-pager-wrap a.mp-pagination__page,
    #mp-site .mp-notices-pager-wrap .mp-pagination__page.is-current {
        min-width: 34px;
        height: 34px;
        font-size: 0.8125rem;
    }

    #mp-site .mp-notices-pager-wrap .mp-pagination__ellipsis {
        height: 34px;
        font-size: 0.8125rem;
    }
}

.mp-info-strip__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--accent-deep);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.15);
}

.mp-info-strip__icon svg {
    width: 22px;
    height: 22px;
}

.mp-info-strip__body {
    min-width: 0;
}

.mp-info-strip__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.mp-info-strip__text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.mp-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 8px;
}

@media (max-width: 800px) {
    .mp-split {
        grid-template-columns: 1fr;
    }
}

.mp-prose-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 26px;
    height: 100%;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.04);
}

.mp-prose-box h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 700;
}

.mp-prose-box p {
    margin: 0 0 12px;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.mp-prose-box p:last-child {
    margin-bottom: 0;
}

.mp-prose-box ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.mp-prose-box li {
    margin-bottom: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
}
.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    box-shadow: 0 12px 32px var(--accent-glow);
}
.btn--primary:hover {
    box-shadow: 0 16px 40px rgba(14, 165, 233, 0.45);
}

.btn--ghost {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.btn--ghost:hover {
    border-color: rgba(14, 165, 233, 0.35);
    color: var(--accent-deep);
}

.hero {
    position: relative;
    overflow: hidden;
    display: flow-root;
    /* 与首屏背景层共用；顶部留白适中，正文块内加大元素间距 */
    --hero-min-h: clamp(320px, min(42vh, 400px), 480px);
    min-height: var(--hero-min-h);
    padding-top: clamp(20px, 3.5vw, 40px);
    padding-inline: 20px;
    padding-bottom: clamp(22px, 3.5vw, 44px);
    text-align: center;
    isolation: isolate;
}

/* 背景与遮罩统一在脱离文档流的层内，避免被其它样式冲掉 position 后整块掉进正文流 */
.hero__layers {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* 首屏背景轮播（铺满 layers） */
.hero__bg-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: auto;
    min-height: var(--hero-min-h);
}

/* 四张叠在同一矩形内，用 opacity + is-active 切换（不拉横向 400% 轨道） */
.hero__bg-stack[data-carousel-track] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: var(--hero-min-h);
}

.hero__bg-slide {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background-color: #e2e8f0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.65s cubic-bezier(0.25, 0.9, 0.32, 1);
}

.hero__bg-slide.is-active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

/* 站内 SVG/JPEG，叠一层轻罩保证与全局 hero__scrim 协调 */
.hero__bg-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        168deg,
        rgba(248, 250, 252, 0.25) 0%,
        rgba(248, 250, 252, 0.06) 48%,
        rgba(255, 255, 255, 0.35) 100%
    );
}

/* 轻罩层：保证标题与按钮可读 */
.hero__layers .hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.42) 0%,
        rgba(248, 250, 252, 0.08) 42%,
        rgba(252, 252, 253, 0.62) 100%
    );
}

.hero__layers .hero__grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.028) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 72%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 3;
    max-width: 820px;
    margin: 0 auto;
    padding-top: 0;
}

/* 首屏背景左右切换 */
.hero__bg-nav {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.hero__bg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 999px;
    color: rgba(15, 23, 42, 0.72);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.hero__bg-arrow:hover {
    color: #0369a1;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.2);
}

.hero__bg-arrow--prev {
    left: clamp(10px, 3vw, 28px);
}

.hero__bg-arrow--next {
    right: clamp(10px, 3vw, 28px);
}

@media (max-width: 520px) {
    .hero__bg-arrow {
        width: 38px;
        height: 38px;
    }
    .hero__bg-arrow--prev {
        left: 6px;
    }
    .hero__bg-arrow--next {
        right: 6px;
    }
}

/* 背景轮播指示点：小号圆点、低对比，避免白长条抢眼 */
.hero__bg-dots {
    position: absolute;
    left: 50%;
    bottom: clamp(8px, 2vw, 16px);
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    pointer-events: auto;
}

.hero__bg-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.32);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hero__bg-dot:hover {
    background: rgba(255, 255, 255, 0.48);
}

.hero__bg-dot.is-active {
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.92);
    transform: scale(1.35);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.35),
        0 1px 6px rgba(15, 23, 42, 0.12);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero__title {
    /* margin: 0 0 24px; */
    font-size: clamp(1.6rem, 4.2vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.28;
    color: #fff;
    text-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
}

.hero__title span {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #fff;
    color: #fff;
    text-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
}

.hero__lead {
    margin: 0 auto 20px;
    max-width: 560px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.85;
    text-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.hero__note {
    margin-top: 28px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.stats {
    max-width: 1120px;
    /* 与首屏拉开：用较大 margin，避免与轮播/圆点区视觉重叠 */
    margin: clamp(48px, 7vw, 80px) auto 0;
    padding: 0 24px 64px;
    position: relative;
    z-index: 2;
}

.stats__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 28px 32px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

@media (max-width: 720px) {
    .stats__row {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.stat {
    padding: 8px 0;
}

.stat__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stat__ico {
    display: flex;
    color: var(--accent-deep);
    opacity: 0.9;
}
.stat__ico svg {
    width: 28px;
    height: 28px;
}

.stat__num {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--accent-deep);
    letter-spacing: -0.02em;
}
.stat__label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 24px;
}

.section__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section__eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-bottom: 12px;
}

.section__title {
    margin: 0 0 16px;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section__desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.02rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
}
.card:hover {
    border-color: rgba(14, 165, 233, 0.25);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.06);
}

.card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin: 0 0 18px;
    color: var(--accent-deep);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(2, 132, 199, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.card__icon .icon-svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.card__title {
    margin: 0 0 10px;
    width: 100%;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
}

.card__text {
    margin: 0;
    width: 100%;
    align-self: stretch;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
    text-align: left;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px 40px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
}

.site-footer__line {
    margin: 0 0 10px;
    line-height: 1.65;
}

.site-footer__line:last-child {
    margin-bottom: 0;
}

.site-footer__icp {
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer__icp:hover {
    color: var(--accent-deep);
    text-decoration: underline;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .btn:hover {
        transform: none;
    }
    .hero__bg-slide {
        transition-duration: 0.01ms !important;
    }
}

/* ========== mp 使用文档（本地壳页 docs.php）========== */
.mp-docs-body {
    background: var(--bg);
}

/* 文档页：整列占满视口剩余高度，避免短文时公共页脚「顶到中间」 */
#mp-site.mp-docs-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#mp-site.mp-docs-body > .site-header,
#mp-site.mp-docs-body > .mp-docs-hero,
#mp-site.mp-docs-body > .mp-docs-tabs-wrap,
#mp-site.mp-docs-body > .site-footer {
    flex-shrink: 0;
}

#mp-site.mp-docs-body > .mp-docs-layout {
    flex: 1 1 auto;
    align-items: start;
    min-height: 0;
}

.mp-docs-hero {
    padding: clamp(28px, 5vw, 48px) 20px clamp(22px, 4vw, 36px);
    background: linear-gradient(135deg, #0f172a 0%, #0c4a6e 42%, #075985 100%);
    color: #f1f5f9;
}

.mp-docs-hero__inner {
    max-width: 1120px;
    margin: 0 auto;
}

.mp-docs-hero__eyebrow {
    margin: 0 0 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.mp-docs-hero__title {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.mp-docs-hero__lead {
    margin: 0;
    max-width: 640px;
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.9);
}

.mp-docs-tabs-wrap {
    position: sticky;
    top: 56px;
    z-index: 90;
    background: rgba(250, 251, 252, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.mp-docs-tabs {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.mp-docs-tab {
    flex: 0 0 auto;
    padding: 14px 16px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.mp-docs-tab:hover {
    color: var(--text);
}

.mp-docs-tab.is-active {
    color: #0284c7;
    border-bottom-color: #0ea5e9;
}

.mp-docs-layout {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 16px 40px;
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 28px 36px;
    /* 主栏高度跟正文走，不把侧栏剩余高度撑进正文白底 */
    align-items: start;
    justify-items: stretch;
    box-sizing: border-box;
}

.mp-docs-sidebar {
    position: sticky;
    top: 112px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 4px 4px 12px 0;
}

/* 全局 a:hover 带下划线；侧栏链接仅有 text-decoration:none 时特异性不够，hover 仍会出横线 */
.mp-docs-sidebar a,
.mp-docs-sidebar a:hover,
.mp-docs-sidebar a:focus,
.mp-docs-sidebar a:active {
    text-decoration: none;
}

/* 文档顶 Tab 同为 <a>，一并去掉 hover 下划线 */
.mp-docs-tabs a:hover,
.mp-docs-tabs a:focus,
.mp-docs-tabs a:active {
    text-decoration: none;
}

/* 侧栏分组：原生 <details> 手风琴，与常见文档站「文件夹展开」一致 */
.mp-docs-nav-details {
    margin: 0 0 6px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(248, 250, 252, 0.65);
}

.mp-docs-nav-details + .mp-docs-nav-details {
    margin-top: 10px;
}

.mp-docs-nav-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    user-select: none;
    outline: none;
}

.mp-docs-nav-summary::-webkit-details-marker {
    display: none;
}

.mp-docs-nav-summary::marker {
    content: '';
}

.mp-docs-nav-summary__text {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

/* 一级分组可绑定 doc：标题为链接，点击不触发展开（由箭头区域折叠） */
.mp-docs-nav-summary-link {
    display: block;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-decoration: none;
    cursor: pointer;
}

.mp-docs-nav-summary-link:hover {
    color: #0284c7;
    text-decoration: none;
}

.mp-docs-nav-summary.is-active {
    background: rgba(14, 165, 233, 0.12);
    border-radius: 8px;
}

.mp-docs-nav-summary.is-active .mp-docs-nav-summary-link {
    color: #0369a1;
}

/* 仅一级、无子项：整块与分组卡片风格一致 */
.mp-docs-nav-flat {
    margin: 0 0 6px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(248, 250, 252, 0.65);
    overflow: hidden;
}

.mp-docs-nav-flat + .mp-docs-nav-flat,
.mp-docs-nav-flat + .mp-docs-nav-details,
.mp-docs-nav-details + .mp-docs-nav-flat {
    margin-top: 10px;
}

.mp-docs-nav-flat__link {
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 0;
    text-decoration: none;
}

.mp-docs-nav-flat__link:hover {
    text-decoration: none;
}

/* 右侧 V 形箭头：折叠 ▾ / 展开 ▴ */
.mp-docs-nav-summary::after {
    content: '';
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-top: 2px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.mp-docs-nav-details[open] > .mp-docs-nav-summary::after {
    transform: rotate(-135deg);
    margin-top: 6px;
}

.mp-docs-nav-summary:hover::after {
    border-color: #0ea5e9;
}

.mp-docs-nav-summary:focus-visible {
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.35);
    border-radius: 8px;
}

.mp-docs-nav-details[open] > .mp-docs-nav-summary {
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.mp-docs-nav-list {
    list-style: none;
    margin: 0;
    padding: 6px 6px 10px 8px;
}

.mp-docs-nav-list li {
    margin: 0 0 4px;
}

.mp-docs-nav-link {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    line-height: 1.45;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.mp-docs-nav-link:hover {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.15);
    text-decoration: none;
}

.mp-docs-nav-link.is-active {
    background: rgba(14, 165, 233, 0.16);
    border-color: rgba(14, 165, 233, 0.35);
    color: #0369a1;
    font-weight: 600;
}

#mp-site .mp-docs-main a {
    color: #0284c7;
    text-decoration: none;
}

#mp-site .mp-docs-main a:hover {
    color: #0369a1;
    text-decoration: none;
}

/* 后台富文本可能带内联 underline，统一去掉 */
#mp-site .mp-docs-main .mp-docs-body-html a,
#mp-site .mp-docs-main .mp-docs-body-html a:hover {
    text-decoration: none !important;
}

.mp-docs-main {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

/* 正文容器：高度随内容，整页滚动（不再 max-height + 内部滚动） */
.mp-docs-main-inner {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding: 24px 22px 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 22px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
}

.mp-docs-article {
    scroll-margin-top: 72px;
    flex: 0 0 auto;
}

.mp-docs-empty {
    margin: 24px 0;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.mp-docs-empty code {
    font-size: 0.85em;
    color: var(--text);
}

.mp-docs-article h2 {
    margin: 0 0 14px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* 后台「教程文档」录入的 HTML 正文 */
.mp-docs-body-html {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.mp-docs-body-html > :first-child {
    margin-top: 0;
}

.mp-docs-body-html h3 {
    margin: 1.25em 0 0.5em;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text);
}

.mp-docs-body-html p {
    margin: 0 0 1em;
}

.mp-docs-body-html ul,
.mp-docs-body-html ol {
    margin: 0 0 1em;
    padding-left: 1.25em;
}

.mp-docs-body-html img {
    max-width: 100%;
    height: auto;
    cursor: zoom-in;
    border-radius: 6px;
    vertical-align: middle;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mp-docs-body-html img:hover {
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

/* 教程正文：点击图片放大预览 */
.mp-docs-img-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    box-sizing: border-box;
}

.mp-docs-img-lightbox.is-open {
    display: flex;
    overflow: hidden;
}

.mp-docs-img-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
}

/* 固定「舞台」尺寸，内部用 translate 平移大图，避免 flex+scroll 导致拖不全 */
.mp-docs-img-lightbox__frame {
    position: relative;
    z-index: 1;
    width: min(96vw, 1400px, 100%);
    height: min(88vh, 900px);
    max-width: min(96vw, 1400px, 100%);
    max-height: min(88vh, 900px);
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
    overscroll-behavior: contain;
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
}

.mp-docs-img-lightbox__frame.mp-docs-img-lightbox__frame--grabbing {
    cursor: grabbing;
}

.mp-docs-img-lightbox__scroller {
    position: absolute;
    left: 0;
    top: 0;
    line-height: 0;
    will-change: transform;
}

.mp-docs-img-lightbox__img {
    max-width: 100%;
    max-height: min(88vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    pointer-events: auto;
    cursor: default;
}

/* 预览打开后由 JS 写入具体宽高，便于滚轮放大后在本区域内滚动查看 */
.mp-docs-img-lightbox.is-open .mp-docs-img-lightbox__img {
    max-width: none;
    max-height: none;
}

.mp-docs-img-lightbox__close {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    z-index: 2;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.mp-docs-img-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

html.mp-docs-img-lightbox-open,
body.mp-docs-img-lightbox-open {
    overflow: hidden;
    overscroll-behavior: none;
}

body.mp-docs-img-lightbox-open {
    touch-action: none;
}

.mp-docs-body-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1em;
    font-size: 0.9rem;
    color: var(--text);
}

.mp-docs-body-html th,
.mp-docs-body-html td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    vertical-align: top;
}

.mp-docs-body-html th {
    background: rgba(15, 23, 42, 0.04);
    font-weight: 600;
}

.mp-docs-body-html .ql-align-center {
    text-align: center;
}

.mp-docs-body-html .ql-align-right {
    text-align: right;
}

.mp-docs-body-html .ql-align-justify {
    text-align: justify;
}

.mp-docs-article p,
.mp-docs-article li {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.mp-docs-article p {
    margin: 0 0 1em;
}

.mp-docs-article ul,
.mp-docs-article ol {
    margin: 0 0 1em;
    padding-left: 1.25em;
}

.mp-docs-steps {
    padding-left: 1.1em;
}

.mp-docs-callout {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid rgba(14, 165, 233, 0.35);
    background: rgba(14, 165, 233, 0.08);
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
}

.mp-docs-callout--warn {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.1);
}

.mp-docs-figure {
    margin: 20px 0;
}

.mp-docs-figure__placeholder {
    min-height: 200px;
    border-radius: var(--radius);
    border: 1px dashed rgba(148, 163, 184, 0.65);
    background: linear-gradient(160deg, rgba(241, 245, 249, 0.9), rgba(226, 232, 240, 0.75));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.mp-docs-figure__placeholder--annotated {
    position: relative;
    min-height: 220px;
}

.mp-docs-figure__badge {
    position: absolute;
    inset: 18% 12% 28% 18%;
    border: 2px solid rgba(239, 68, 68, 0.75);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.35);
}

.mp-docs-figure figcaption {
    margin-top: 10px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.mp-docs-code {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.8125rem;
    line-height: 1.55;
    overflow-x: auto;
}

.mp-docs-table-wrap {
    margin: 16px 0;
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.mp-docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.mp-docs-table th,
.mp-docs-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.mp-docs-table th {
    background: rgba(241, 245, 249, 0.65);
    font-weight: 700;
    color: var(--text);
}

.mp-docs-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 900px) {
    .mp-docs-layout {
        grid-template-columns: 1fr;
        padding-top: 20px;
    }

    .mp-docs-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px 20px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
    }

    .mp-docs-nav-details + .mp-docs-nav-details {
        margin-top: 0;
    }

    .mp-docs-main-inner {
        max-height: none;
        overflow-y: visible;
    }
}
