/**
 * 森然装修日志 — 移动端改版
 * 竖屏：≤768px；横屏手机：高度≤520px 且宽度≤1024px
 */

@media (max-width: 768px), ((max-height: 520px) and (orientation: landscape) and (max-width: 1024px)) {
    /* 页面容器：去掉主题留白，全宽贴顶（与 public.css 全局规则互补） */
    body.srl-renovation-log-page .wb-ocw,
    body.page-id-2124 .wb-ocw,
    body.srl-renovation-log-page #OCW_Wp,
    body.page-id-2124 #OCW_Wp,
    body.srl-renovation-log-page .ocw-mask {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }

    /* ========== 主题顶栏融入 Hero 青绿区（Hero 内透明，滚出后白底） ========== */
    body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) #header.ct-header,
    body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) #header.ct-header > [data-device="mobile"],
    body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) #header.ct-header [data-device="mobile"] .ct-sticky-container,
    body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) #header.ct-header [data-device="mobile"] [data-sticky],
    body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) #header.ct-header [data-device="mobile"] [data-row="middle"],
    body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) #header.ct-header [data-device="mobile"] [data-row="middle"] .ct-container {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    body.page-id-2124.srl-hero-merged-header #header.ct-header {
        position: relative;
        z-index: 50;
    }

    body.page-id-2124.srl-hero-merged-header #header.ct-header > [data-device="mobile"] {
        position: relative;
        z-index: 1;
    }

    body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) #header.ct-header > [data-device="mobile"]::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(160deg, #234b4e 0%, #3f6669 52%, #4a7578 100%);
        z-index: -1;
        pointer-events: none;
        transition: opacity 0.22s ease;
    }

    body.page-id-2124.srl-hero-merged-header.srl-hero-header-scrolled #header.ct-header > [data-device="mobile"]::before {
        opacity: 0;
    }

    body.page-id-2124.srl-hero-merged-header #header [data-device="mobile"] .ct-sticky-container {
        height: auto !important;
        min-height: 0 !important;
        transition: background-color 0.22s ease, box-shadow 0.22s ease;
    }

    body.page-id-2124.srl-hero-merged-header #header [data-device="mobile"] [data-row="top"] {
        display: none !important;
    }

    body.page-id-2124.srl-hero-merged-header #header [data-device="mobile"] [data-row="middle"] .ct-container {
        padding-top: env(safe-area-inset-top, 0px);
        min-height: 44px;
        transition: background-color 0.22s ease;
    }

    body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) #header [data-device="mobile"] .site-logo-container img {
        max-height: 26px;
        width: auto;
        filter: brightness(0) invert(1);
        opacity: 0.96;
        transition: filter 0.22s ease, opacity 0.22s ease;
    }

    body.page-id-2124.srl-hero-merged-header #header [data-device="mobile"] [data-column="end"] [data-items="primary"] {
        display: flex;
        align-items: center;
        gap: 2px;
    }

    body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) #header [data-device="mobile"] a,
    body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) #header [data-device="mobile"] button.ct-header-trigger {
        color: #fff !important;
        transition: color 0.22s ease;
    }

    body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) #header [data-device="mobile"] svg.ct-icon,
    body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) #header [data-device="mobile"] svg.ct-icon path,
    body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) #header [data-device="mobile"] .ct-header-trigger svg rect {
        fill: currentColor !important;
    }

    body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) #header [data-device="mobile"] .ct-dynamic-count-cart,
    body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) #header [data-device="mobile"] .ct-dynamic-count-wishlist {
        background: rgba(255, 255, 255, 0.92) !important;
        color: var(--srl-teal-mid, #3d686b) !important;
    }

    /* 滚出 Hero：恢复白底顶栏 */
    body.page-id-2124.srl-hero-merged-header.srl-hero-header-scrolled #header.ct-header,
    body.page-id-2124.srl-hero-merged-header.srl-hero-header-scrolled #header.ct-header > [data-device="mobile"],
    body.page-id-2124.srl-hero-merged-header.srl-hero-header-scrolled #header.ct-header [data-device="mobile"] .ct-sticky-container,
    body.page-id-2124.srl-hero-merged-header.srl-hero-header-scrolled #header.ct-header [data-device="mobile"] [data-sticky],
    body.page-id-2124.srl-hero-merged-header.srl-hero-header-scrolled #header.ct-header [data-device="mobile"] [data-row="middle"],
    body.page-id-2124.srl-hero-merged-header.srl-hero-header-scrolled #header.ct-header [data-device="mobile"] [data-row="middle"] .ct-container {
        background: #fff !important;
        background-color: #fff !important;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 14px rgba(31, 69, 72, 0.08) !important;
        border: none !important;
    }

    body.page-id-2124.srl-hero-merged-header.srl-hero-header-scrolled #header [data-device="mobile"] .site-logo-container img {
        max-height: 28px;
        width: auto;
        filter: none;
        opacity: 1;
    }

    body.page-id-2124.srl-hero-merged-header.srl-hero-header-scrolled #header [data-device="mobile"] a,
    body.page-id-2124.srl-hero-merged-header.srl-hero-header-scrolled #header [data-device="mobile"] button.ct-header-trigger {
        color: #1f2937 !important;
    }

    body.page-id-2124.srl-hero-merged-header.srl-hero-header-scrolled #header [data-device="mobile"] svg.ct-icon,
    body.page-id-2124.srl-hero-merged-header.srl-hero-header-scrolled #header [data-device="mobile"] svg.ct-icon path,
    body.page-id-2124.srl-hero-merged-header.srl-hero-header-scrolled #header [data-device="mobile"] .ct-header-trigger svg rect {
        fill: currentColor !important;
    }

    body.page-id-2124.srl-hero-merged-header.srl-hero-header-scrolled #header [data-device="mobile"] .ct-dynamic-count-cart,
    body.page-id-2124.srl-hero-merged-header.srl-hero-header-scrolled #header [data-device="mobile"] .ct-dynamic-count-wishlist {
        background: var(--srl-teal-mid, #3d686b) !important;
        color: #fff !important;
    }

    /* 合并顶栏前默认占位，避免 JS 测量前首屏闪烁 */
    body.page-id-2124 {
        --srl-theme-header-h: 52px;
    }

    body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) .srl-mobile-enabled .srl-mobile-hero {
        margin-top: 0;
        padding-top: calc(var(--srl-theme-header-h, 52px) + 4px + env(safe-area-inset-top, 0px));
        padding-right: 16px;
        padding-bottom: 24px;
        padding-left: 16px;
    }

    body.page-id-2124.srl-hero-merged-header.srl-hero-header-scrolled .srl-mobile-enabled .srl-mobile-hero {
        margin-top: 0;
    }

    .srl-project-detail.srl-mobile-enabled {
        --srl-teal-dark: #1f4548;
        --srl-teal-mid: #3d686b;
        --srl-teal-light: #4f7f82;
        --srl-teal-accent: #6B8E6B;
        --srl-orange: #E8913A;
        --srl-green: #3d8b5f;
        --srl-bg: #f3f5f6;
        --srl-card: #ffffff;
        --srl-text: #1f2937;
        --srl-muted: #6b7280;
        --srl-bottom-nav-h: 64px;
        --srl-fab-offset: calc(var(--srl-bottom-nav-h) + 18px);
        --srl-stage-shell-gap: 6px;
        --srl-stage-shell-inset: 6px;
        --srl-stage-shell-pad-x: 18px;
        background: var(--srl-bg);
        margin: 0;
        padding: 0 0 calc(var(--srl-bottom-nav-h) + 20px);
        min-height: 100dvh;
        width: 100%;
        max-width: 100%;
    }

    .srl-mobile-enabled .srl-project-header-detail,
    .srl-mobile-enabled .srl-email-notify-mobile {
        display: none !important;
    }

    /* ========== Hero 顶栏 ========== */
    .srl-mobile-hero {
        display: none;
    }

    .srl-mobile-enabled .srl-mobile-hero {
        display: block;
        background: linear-gradient(160deg, #234b4e 0%, #3f6669 52%, #4a7578 100%);
        color: #fff;
        padding: calc(16px + env(safe-area-inset-top)) 16px 24px;
        margin: 0;
        border-radius: 0 0 24px 24px;
        box-shadow: 0 8px 24px rgba(31, 69, 72, 0.22);
    }

    .srl-mobile-hero-inner {
        width: 100%;
    }

    .srl-mobile-hero-heading-row {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 8px;
        min-width: 0;
    }

    .srl-mobile-back {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        color: #fff;
        text-decoration: none;
        flex-shrink: 0;
        margin: 0;
        opacity: 0.95;
    }

    .srl-mobile-hero-heading-row .srl-mobile-hero-heading {
        flex: 1;
        min-width: 0;
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .srl-mobile-switch-site {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 28px;
        padding: 0 10px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.32);
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        cursor: pointer;
        backdrop-filter: blur(4px);
        -webkit-tap-highlight-color: transparent;
    }

    .srl-mobile-switch-site:active {
        background: rgba(255, 255, 255, 0.22);
    }

    .srl-project-switch-sheet {
        position: fixed;
        inset: 0;
        z-index: 13000;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .srl-project-switch-sheet[hidden] {
        display: none !important;
    }

    .srl-project-switch-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
    }

    .srl-project-switch-panel {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 520px;
        max-height: min(85vh, 560px);
        background: #fff;
        border-radius: 20px 20px 0 0;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
        box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
        animation: srl-sheet-up 0.28s ease-out;
    }

    @keyframes srl-sheet-up {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .srl-project-switch-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #eef1f2;
    }

    .srl-project-switch-head h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: #1e293b;
    }

    .srl-project-switch-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: none;
        border-radius: 50%;
        background: #f1f5f9;
        color: #64748b;
        cursor: pointer;
        padding: 0;
    }

    .srl-project-switch-list {
        list-style: none;
        margin: 0;
        padding: 0 0 8px;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .srl-project-switch-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        padding: 14px 12px;
        border-radius: 12px;
        text-decoration: none;
        color: #334155;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.35;
        box-sizing: border-box;
    }

    a.srl-project-switch-item:active {
        background: #f8fafc;
    }

    .srl-project-switch-item.is-current {
        background: #eef6f6;
        color: #234b4e;
    }

    .srl-project-switch-name {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .srl-project-switch-badge {
        flex-shrink: 0;
        font-size: 11px;
        font-weight: 700;
        color: #234b4e;
        background: rgba(35, 75, 78, 0.12);
        padding: 3px 8px;
        border-radius: 999px;
    }

    .srl-project-switch-arrow {
        flex-shrink: 0;
        color: #94a3b8;
    }

    body.srl-project-switch-open {
        overflow: hidden;
    }

    body.srl-project-switch-open .srl-mobile-fab,
    body.srl-project-switch-open .srl-mobile-bottom-nav,
    body.srl-project-switch-open .srl-lottery-records-btn,
    body.srl-project-switch-open .srl-lottery-entry-btn {
        visibility: hidden;
        pointer-events: none;
    }

    .srl-mobile-hero-titles {
        flex: 1;
        min-width: 0;
        padding-right: 4px;
    }

    .srl-mobile-project-name {
        font-size: 17px;
        font-weight: 700;
        line-height: 1.35;
        letter-spacing: 0.01em;
    }

    .srl-mobile-project-sub {
        font-size: 12px;
        opacity: 0.82;
        margin-top: 3px;
        line-height: 1.4;
    }

    .srl-mobile-day-badge {
        flex-shrink: 0;
        font-size: 11px;
        padding: 5px 11px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.22);
        backdrop-filter: blur(4px);
        white-space: nowrap;
        margin-top: 2px;
    }

    .srl-mobile-hero-main {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

    .srl-mobile-hero-copy {
        flex: 1;
        min-width: 0;
    }

    .srl-mobile-hero-heading {
        font-size: 24px;
        font-weight: 800;
        color: #fff;
        line-height: 1.15;
        letter-spacing: 0.02em;
    }

    .srl-mobile-hero-meta {
        margin: 0;
        padding-left: 38px;
        font-size: 12px;
        line-height: 1.55;
        opacity: 0.88;
    }

    .srl-mobile-progress-ring {
        position: relative;
        width: 72px;
        height: 72px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .srl-mobile-progress-ring svg {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
    }

    .srl-mobile-progress-ring .srl-ring-bg {
        stroke: rgba(255, 255, 255, 0.22);
    }

    .srl-mobile-progress-ring .srl-ring-fill {
        stroke: #fff;
        stroke-linecap: round;
        transition: stroke-dashoffset 0.6s ease;
    }

    .srl-ring-label {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        font-weight: 800;
        line-height: 1;
        gap: 1px;
    }

    .srl-mobile-day-ring .srl-ring-number {
        font-size: 18px;
        font-weight: 800;
    }

    .srl-mobile-day-ring .srl-ring-unit {
        font-size: 11px;
        font-weight: 700;
        opacity: 0.9;
        margin-top: 2px;
    }

    .srl-mobile-metric-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .srl-mobile-metric {
        background: rgba(255, 255, 255, 0.16);
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 12px;
        padding: 11px 6px 10px;
        text-align: center;
        color: #fff;
        backdrop-filter: blur(6px);
    }

    .srl-mobile-metric-value {
        font-size: 20px;
        font-weight: 800;
        line-height: 1.15;
        color: #fff;
    }

    .srl-mobile-metric-label {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.82);
        margin-top: 3px;
    }

    /* ========== 阶段导航 + 分项芯片（白底卡片，上下等距） ========== */
    .srl-mobile-enabled .srl-stage-capsule-shell {
        position: relative;
        z-index: 1;
        margin: var(--srl-stage-shell-gap) var(--srl-stage-shell-inset) 0;
        padding: 16px var(--srl-stage-shell-pad-x) 14px;
        background: var(--srl-card);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 4px 18px rgba(31, 69, 72, 0.07);
        border: 1px solid rgba(0, 0, 0, 0.04);
        border-bottom: none;
    }

    .srl-mobile-enabled .srl-stage-chips-shell {
        margin: 0 var(--srl-stage-shell-inset) var(--srl-stage-shell-gap);
        padding: 0 var(--srl-stage-shell-pad-x) 14px;
        background: var(--srl-card);
        border-radius: 0 0 16px 16px;
        box-shadow: 0 4px 18px rgba(31, 69, 72, 0.07);
        border: 1px solid rgba(0, 0, 0, 0.04);
        border-top: none;
    }

    .srl-mobile-enabled .srl-stage-chips-shell:not(:has(.srl-mobile-nav-panel:not([hidden]))) {
        display: none;
    }

    .srl-mobile-enabled .srl-stage-capsule-shell:not(:has(+ .srl-desktop-main .srl-stage-chips-shell .srl-mobile-nav-panel:not([hidden]))) {
        margin-bottom: var(--srl-stage-shell-gap);
        border-radius: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .srl-mobile-enabled .srl-stage-chips-shell .srl-mobile-nav-panel {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .srl-mobile-nav-panel {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #eef1f2;
    }

    .srl-mobile-nav-panel[hidden] {
        display: none !important;
    }

    .srl-mobile-enabled .srl-time-capsule-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding: 0 4px;
        margin: 0;
        max-width: none;
        justify-content: space-between;
        align-items: flex-start;
        background: transparent;
        border: none;
        scroll-snap-type: x proximity;
        position: relative;
    }

    .srl-mobile-enabled .srl-time-capsule-nav::before {
        content: '';
        position: absolute;
        left: 8%;
        right: 8%;
        top: 20px;
        height: 0;
        border-top: 2px dashed #cfd8dc;
        z-index: 0;
        pointer-events: none;
    }

    .srl-mobile-enabled .srl-time-capsule-nav::-webkit-scrollbar {
        display: none;
    }

    .srl-mobile-enabled .srl-progress-line {
        display: none;
    }

    .srl-mobile-enabled .srl-stage-nav-item {
        flex: 1 0 18%;
        min-width: 62px;
        max-width: none;
        scroll-snap-align: center;
        transform: none !important;
        padding: 0 3px;
        position: relative;
        z-index: 1;
    }

    @keyframes srl-circle-breathe {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.1);
        }
    }

    .srl-mobile-enabled .srl-stage-nav-item:hover {
        transform: none !important;
    }

    .srl-mobile-enabled .srl-stage-nav-item:hover .circle-wrapper {
        animation: srl-circle-breathe 1.8s ease-in-out infinite !important;
    }

    .srl-mobile-enabled .srl-stage-nav-item:hover .stage-info,
    .srl-mobile-enabled .srl-stage-nav-item:hover .stage-mobile-label,
    .srl-mobile-enabled .srl-stage-nav-item:hover .stage-name,
    .srl-mobile-enabled .srl-stage-nav-item:hover .stage-desc {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .srl-mobile-enabled .srl-stage-nav-item:hover .srl-stage-icon-svg {
        animation: none !important;
        transform: none !important;
    }

    .srl-mobile-enabled .circle-wrapper {
        width: 40px;
        height: 40px;
        margin: 0 auto;
        animation: none !important;
    }

    .srl-mobile-enabled .circle-ring {
        display: none !important;
    }

    .srl-mobile-enabled .srl-stage-nav-item .circle,
    .srl-mobile-enabled .stage-1 .circle,
    .srl-mobile-enabled .stage-2 .circle,
    .srl-mobile-enabled .stage-3 .circle,
    .srl-mobile-enabled .stage-4 .circle,
    .srl-mobile-enabled .stage-5 .circle {
        width: 40px !important;
        height: 40px !important;
        animation: none !important;
        box-shadow: none !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        border-radius: 50% !important;
        background: #b8d4e6 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: 2px solid #94bdd4 !important;
        color: #fff;
        transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    }

    .srl-mobile-enabled .srl-stage-nav-item.active .circle {
        background: #234b4e !important;
        border-color: #234b4e !important;
        color: #fff !important;
        box-shadow: 0 4px 14px rgba(35, 75, 78, 0.32) !important;
        transform: none !important;
        animation: none !important;
    }

    .srl-mobile-enabled .srl-stage-icon-emoji {
        display: none !important;
    }

    .srl-mobile-enabled .srl-stage-icon-svg {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        animation: none !important;
    }

    .srl-mobile-enabled .srl-stage-icon-svg svg {
        width: 20px;
        height: 20px;
    }

    .srl-mobile-enabled .circle-title,
    .srl-mobile-enabled .circle-subtitle {
        display: none !important;
    }

    .srl-mobile-enabled .stage-info {
        display: block !important;
        text-align: center;
        margin-top: 6px;
    }

    .srl-mobile-enabled .stage-mobile-label {
        display: block;
        font-size: 10px;
        font-weight: 500;
        color: #94a3b8;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .srl-mobile-enabled .srl-stage-nav-item.active .stage-mobile-label {
        color: var(--srl-teal-mid);
        font-weight: 700;
    }

    .srl-mobile-enabled .stage-name,
    .srl-mobile-enabled .stage-desc {
        display: none !important;
    }

    .srl-mobile-chip-track {
        background: #f3f5f6;
        border-radius: 12px;
        padding: 8px 10px;
    }

    .srl-mobile-enabled .srl-mobile-nav-panel:not([hidden]) {
        animation: srl-chips-panel-in 0.38s ease-out;
    }

    @keyframes srl-chips-panel-in {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }

    @keyframes srl-chip-pop {
        0% {
            transform: scale(0.94);
        }
        65% {
            transform: scale(1.04);
        }
        100% {
            transform: scale(1);
        }
    }

    @keyframes srl-chip-stagger {
        from {
            opacity: 0;
            transform: translateY(6px);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }

    .srl-mobile-phase-chips {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        align-content: center;
        gap: 6px 8px;
        overflow: visible;
        padding: 2px 4px;
    }

    .srl-mobile-phase-chips::-webkit-scrollbar {
        display: none;
    }

    .srl-mobile-chip {
        flex: 0 1 auto;
        border: none;
        border-radius: 999px;
        padding: 8px 14px;
        font-size: 11px;
        font-weight: 600;
        background: transparent;
        color: #64748b;
        cursor: pointer;
        transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
        text-align: center;
        line-height: 1.25;
        white-space: nowrap;
        animation: srl-chip-stagger 0.42s ease-out backwards;
    }

    .srl-mobile-phase-chips .srl-mobile-chip:nth-child(1) { animation-delay: 0.04s; }
    .srl-mobile-phase-chips .srl-mobile-chip:nth-child(2) { animation-delay: 0.08s; }
    .srl-mobile-phase-chips .srl-mobile-chip:nth-child(3) { animation-delay: 0.12s; }
    .srl-mobile-phase-chips .srl-mobile-chip:nth-child(4) { animation-delay: 0.16s; }
    .srl-mobile-phase-chips .srl-mobile-chip:nth-child(5) { animation-delay: 0.20s; }
    .srl-mobile-phase-chips .srl-mobile-chip:nth-child(6) { animation-delay: 0.24s; }
    .srl-mobile-phase-chips .srl-mobile-chip:nth-child(7) { animation-delay: 0.28s; }
    .srl-mobile-phase-chips .srl-mobile-chip:nth-child(8) { animation-delay: 0.32s; }
    .srl-mobile-phase-chips .srl-mobile-chip:nth-child(9) { animation-delay: 0.36s; }

    .srl-mobile-chip:hover {
        background: rgba(61, 104, 107, 0.1);
        color: var(--srl-teal-mid);
        transform: translateY(-1px);
    }

    .srl-mobile-chip.is-active {
        background: #fff;
        color: var(--srl-teal-mid);
        box-shadow: 0 2px 10px rgba(31, 69, 72, 0.12);
        animation: srl-chip-pop 0.32s ease-out;
    }

    /* ========== 阶段内容 ========== */
    .srl-mobile-enabled .srl-stage-content {
        margin: 0;
        padding: 0 var(--srl-stage-shell-inset) 0;
    }

    .srl-mobile-enabled .srl-stage-header,
    .srl-mobile-enabled .srl-stage-stats,
    .srl-mobile-enabled .srl-construction-subnav-public,
    .srl-mobile-enabled .srl-log-phase-section > .srl-log-phase-heading,
    .srl-mobile-enabled .srl-phase-empty {
        display: none !important;
    }

    .srl-mobile-enabled .srl-log-phase-section {
        border: none;
        margin: 0;
        padding: 0;
    }

    .srl-mobile-enabled .srl-logs-list > h3 {
        display: none;
    }

    .srl-mobile-enabled .srl-construction-share-bar {
        margin: 0 0 14px;
        padding: 12px;
        border-radius: 14px;
    }

    .srl-mobile-enabled .srl-construction-share-copy strong {
        font-size: 14px;
    }

    .srl-mobile-enabled .srl-share-button-stage {
        padding: 9px 12px;
        white-space: nowrap;
    }

    .srl-mobile-enabled .srl-doc-library {
        margin: 0 0 12px;
        padding: 14px;
        border-radius: 14px;
    }

    .srl-mobile-enabled .srl-doc-library .srl-doc-search-wrap .srl-doc-search {
        min-height: 44px;
        font-size: 15px;
        border-radius: 14px;
        padding-top: 12px;
        padding-bottom: 12px;
        padding-left: 48px;
        padding-right: 48px;
    }

    .srl-mobile-enabled .srl-doc-library .srl-doc-search-icon {
        left: 18px;
        width: 20px;
        height: 20px;
        font-size: 15px;
    }

    .srl-mobile-enabled .srl-doc-search-clear {
        width: 32px;
        height: 32px;
    }

    .srl-mobile-enabled .srl-doc-folder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .srl-mobile-enabled .srl-doc-item {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .srl-mobile-enabled .srl-doc-item-body {
        flex: 1 1 calc(100% - 52px);
        min-width: 0;
    }

    .srl-mobile-enabled .srl-doc-item-category-edit {
        width: 100%;
        order: 3;
        margin-top: 8px;
    }

    .srl-mobile-enabled .srl-doc-category-select {
        max-width: none;
    }

    .srl-mobile-enabled .srl-doc-item-actions {
        flex: 1 1 100%;
        order: 2;
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #eef1f2;
    }

    .srl-mobile-enabled .srl-doc-item-actions .srl-doc-preview-btn,
    .srl-mobile-enabled .srl-doc-item-actions .srl-doc-download-btn,
    .srl-mobile-enabled .srl-doc-item-actions .srl-attachment-preview-btn,
    .srl-mobile-enabled .srl-doc-item-actions .srl-attachment-download {
        min-width: 64px;
        min-height: 36px;
        padding: 0 14px;
        font-size: 13px;
    }

    /* ========== 施工时间轴 ========== */
    .srl-mobile-enabled .srl-logs-list {
        margin: 0;
        position: relative;
    }

    .srl-mobile-enabled .srl-log-entry {
        position: relative;
        display: grid;
        grid-template-columns: 46px 1fr;
        gap: 0 10px;
        background: transparent;
        border: none;
        padding: 0 0 18px;
        margin: 0;
    }

    .srl-mobile-enabled .srl-log-entry::before {
        content: '';
        position: absolute;
        left: 21px;
        top: 14px;
        bottom: -4px;
        width: 2px;
        background: #c9d6d7;
        z-index: 0;
    }

    .srl-mobile-enabled .srl-log-entry:last-child::before {
        bottom: 60%;
    }

    .srl-mobile-enabled .srl-log-entry.srl-log-hidden {
        display: none !important;
    }

    .srl-mobile-timeline-side {
        position: relative;
        z-index: 1;
        padding-top: 0;
        text-align: center;
    }

    .srl-mobile-timeline-time {
        display: block;
        font-size: 11px;
        font-weight: 700;
        color: var(--srl-teal-dark);
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .srl-mobile-timeline-dot {
        display: block;
        width: 10px;
        height: 10px;
        margin: 0 auto;
        border-radius: 50%;
        background: var(--srl-teal-mid);
        box-shadow: 0 0 0 3px #e8f0f1;
    }

    .srl-mobile-timeline-card {
        position: relative;
        z-index: 1;
        background: var(--srl-card);
        border-radius: 14px;
        padding: 12px 12px 10px;
        box-shadow: 0 2px 12px rgba(31, 69, 72, 0.07);
        border: 1px solid #e7ecec;
    }

    /* 置顶：仅高亮右侧卡片，不染色时间轴列 */
    .srl-mobile-enabled .srl-log-entry.srl-log-pinned {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .srl-mobile-enabled .srl-log-entry.srl-log-pinned .srl-mobile-timeline-card {
        border: 2px solid #f0ad4e;
        background: linear-gradient(145deg, #fff8e1, #ffffff);
        box-shadow: 0 2px 8px rgba(240, 173, 78, 0.18);
    }

    .srl-mobile-enabled .srl-log-entry.srl-log-pinned .srl-mobile-timeline-dot {
        background: #f0ad4e;
        box-shadow: 0 0 0 3px rgba(240, 173, 78, 0.22);
    }

    .srl-mobile-enabled .srl-log-meta {
        display: none;
    }

    .srl-mobile-enabled .srl-log-title {
        margin: 0;
    }

    .srl-mobile-enabled .srl-log-title h4 {
        margin: 0;
    }

    .srl-mobile-card-head {
        margin-bottom: 8px;
    }

    .srl-mobile-card-head-main {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        min-width: 0;
    }

    .srl-mobile-status-tag {
        flex-shrink: 0;
        display: inline-block;
        font-size: 10px;
        font-weight: 700;
        padding: 3px 8px;
        border-radius: 6px;
        line-height: 1.3;
        white-space: nowrap;
        margin-top: 2px;
    }

    .srl-mobile-status-tag.srl-status-phase {
        background: rgba(61, 104, 107, 0.12);
        color: var(--srl-teal-mid);
    }

    .srl-mobile-status-tag.srl-status-active {
        background: rgba(232, 145, 58, 0.16);
        color: var(--srl-orange);
    }

    .srl-mobile-status-tag.srl-status-done {
        background: rgba(61, 139, 95, 0.14);
        color: var(--srl-green);
    }

    .srl-mobile-card-title {
        margin: 0;
        font-size: 15px;
        font-weight: 800;
        color: var(--srl-text);
        line-height: 1.35;
        flex: 1;
        min-width: 0;
    }

    .srl-mobile-log-foot-weather-item .srl-mobile-weather-text {
        font-weight: 500;
        color: #64748b;
    }

    .srl-mobile-log-foot .srl-share-actions-foot {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
        width: auto;
        margin: 0;
    }

    .srl-mobile-log-foot .srl-share-actions-foot .srl-share-button,
    .srl-mobile-log-foot .srl-share-actions-foot .srl-share-revoke-button {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        padding: 0 5px;
        min-height: 18px;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.3;
        border-radius: 4px;
        box-shadow: none;
        transform: none;
        white-space: nowrap;
    }

    .srl-mobile-log-foot .srl-share-actions-foot .srl-share-button:hover,
    .srl-mobile-log-foot .srl-share-actions-foot .srl-share-button:focus-visible,
    .srl-mobile-log-foot .srl-share-actions-foot .srl-share-revoke-button:hover,
    .srl-mobile-log-foot .srl-share-actions-foot .srl-share-revoke-button:focus-visible {
        transform: none;
        box-shadow: none;
    }

    .srl-mobile-log-foot .srl-share-actions-foot .srl-share-icon {
        font-size: 11px;
        line-height: 1;
    }

    .srl-mobile-log-foot .srl-share-actions-foot .srl-share-button-member {
        background: rgba(107, 142, 107, 0.1);
        color: #5f805f;
        border-color: rgba(107, 142, 107, 0.22);
    }

    .srl-mobile-log-foot .srl-share-actions-foot .srl-share-button-public {
        background: rgba(107, 142, 107, 0.88);
        color: #fff;
        border-color: rgba(107, 142, 107, 0.35);
    }

    .srl-mobile-log-foot .srl-share-actions-foot .srl-share-revoke-button {
        background: rgba(198, 40, 40, 0.08);
        color: #b71c1c;
        border-color: rgba(198, 40, 40, 0.22);
    }

    .srl-mobile-enabled .srl-construction-share-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .srl-mobile-enabled .srl-share-actions-stage {
        width: 100%;
        justify-content: flex-end;
    }

    .srl-mobile-log-excerpt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 6;
        overflow: hidden;
        font-size: 13px;
        line-height: 1.6;
        color: var(--srl-muted);
        margin: 0 0 8px;
        word-break: break-word;
        cursor: pointer;
    }

    .srl-mobile-log-excerpt a {
        color: var(--srl-teal-mid);
        text-decoration: underline;
        word-break: break-all;
    }

    .srl-mobile-timeline-card.is-log-expanded .srl-mobile-log-excerpt {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .srl-mobile-log-videos {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin: 0 0 10px;
    }

    .srl-mobile-log-video {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: min(420px, 58vh);
        height: auto;
        margin: 0 auto;
        border-radius: 10px;
        background: #0f172a;
        object-fit: contain;
    }

    .srl-mobile-log-embed {
        width: 100%;
        border-radius: 10px;
        overflow: hidden;
        background: #0f172a;
    }

    .srl-mobile-log-embed .video-container {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 56.25% !important;
        margin: 0 !important;
        background: #0f172a;
    }

    .srl-mobile-log-embed .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

    .srl-mobile-log-panoramas {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 0 0 10px;
    }

    .srl-mobile-panorama-item {
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #dce7ea;
        background: #f3f7f8;
    }

    .srl-mobile-panorama-item .srl-mobile-log-embed {
        border-radius: 0;
    }

    .srl-mobile-panorama-intro {
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1.6;
        color: var(--srl-muted);
        border-bottom: 1px solid #dce7ea;
        word-break: break-word;
    }

    .srl-mobile-panorama-intro a {
        color: var(--srl-teal-mid);
        text-decoration: underline;
        word-break: break-all;
    }

    .srl-mobile-panorama-item .srl-mobile-log-embed > iframe,
    .srl-mobile-panorama-item .srl-mobile-log-embed iframe {
        width: 100% !important;
        max-width: 100%;
        height: 220px !important;
        min-height: 220px;
        border: 0;
        display: block;
        background: #0f172a;
    }

    .srl-mobile-panorama-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-align: center;
        padding: 14px 12px;
        min-height: 48px;
        font-size: 14px;
        font-weight: 700;
        color: var(--srl-teal-mid);
        text-decoration: none;
        background: #eef4f5;
        border-top: 1px solid #dce7ea;
        -webkit-tap-highlight-color: transparent;
    }

    .srl-mobile-panorama-link-icon {
        font-size: 16px;
        line-height: 1;
    }

    .srl-mobile-panorama-link:active {
        background: #dcecef;
    }

    .srl-mobile-panorama-link:hover {
        background: #e2eef0;
        color: var(--srl-teal-dark, #0d6b6f);
    }

    .srl-mobile-enabled .srl-log-content {
        display: none;
    }

    .srl-mobile-log-foot {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        color: #9ca3af;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .srl-mobile-log-foot-sep {
        opacity: 0.75;
    }

    .srl-mobile-log-foot-weather-item {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        color: #64748b;
    }

    .srl-mobile-log-foot-weather-item .srl-mobile-weather-icon {
        font-size: 12px;
        line-height: 1;
    }

    .srl-mobile-log-foot-weather-item .srl-mobile-weather-text {
        font-weight: 500;
        color: #64748b;
    }

    .srl-mobile-enabled .srl-log-gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 0;
        margin: 0;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .srl-mobile-enabled .srl-gallery-item {
        width: 100%;
        height: 76px;
        border-radius: 8px;
        border: none;
        box-shadow: none;
        overflow: hidden;
    }

    .srl-mobile-enabled .srl-gallery-item:hover {
        transform: none;
        box-shadow: none;
    }

    .srl-mobile-enabled .srl-log-attachments .srl-attachments-list {
        display: none;
    }

    /* ========== FAB ========== */
    .srl-mobile-fab {
        display: none;
        position: fixed;
        right: 18px;
        bottom: var(--srl-fab-offset);
        z-index: 1200;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(145deg, var(--srl-teal-light), var(--srl-teal-dark));
        color: #fff;
        box-shadow: 0 8px 22px rgba(31, 69, 72, 0.38);
        cursor: pointer;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        line-height: 1;
    }

    .srl-mobile-enabled .srl-mobile-fab {
        display: flex;
    }

    a.srl-mobile-fab {
        text-decoration: none;
        color: #fff;
    }

    a.srl-mobile-fab:hover,
    a.srl-mobile-fab:focus {
        color: #fff;
    }

    .srl-lottery-entry-btn {
        bottom: calc(var(--srl-bottom-nav-h) + 12px);
    }

    .srl-lottery-records-btn {
        bottom: calc(var(--srl-bottom-nav-h) + 58px);
    }

    .srl-mobile-fab-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
    }

    .srl-mobile-fab-icon svg {
        width: 22px;
        height: 22px;
    }

    .srl-mobile-fab-text {
        font-size: 9px;
        margin-top: 2px;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    /* ========== 底部 Tab ========== */
    .srl-mobile-bottom-nav {
        display: none;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        min-height: var(--srl-bottom-nav-h);
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #e8ecec;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
        padding-bottom: env(safe-area-inset-bottom, 0);
        backdrop-filter: blur(8px);
    }

    .srl-mobile-enabled .srl-mobile-bottom-nav {
        display: flex;
        align-items: stretch;
        justify-content: space-around;
    }

    .srl-mobile-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 11px;
        color: #9ca3af;
        text-decoration: none;
        background: none;
        border: none;
        padding: 8px 4px 6px;
        cursor: pointer;
        font-family: inherit;
    }

    .srl-mobile-tab.is-active {
        color: var(--srl-teal-mid);
        font-weight: 700;
    }

    .srl-mobile-tab-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        line-height: 1;
    }

    .srl-mobile-tab-icon svg {
        width: 22px;
        height: 22px;
    }

    .srl-mobile-enabled .srl-comments-section {
        margin-top: 20px;
        padding-top: 16px;
        border-top: 8px solid #e8ecec;
    }

    .srl-mobile-enabled .srl-ticket-header {
        background: var(--srl-teal-mid);
        border-radius: 12px 12px 0 0;
    }

    .srl-mobile-enabled .srl-feedback-ticket {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    /* 文件预览弹窗：避免移动端按钮重叠/变形 */
    #srl-file-preview-modal.srl-modal {
        z-index: 100001;
        padding: 0;
    }

    #srl-file-preview-modal .srl-modal-content.srl-file-preview-modal-content {
        width: 100% !important;
        max-width: none !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .srl-file-preview-modal-content .srl-modal-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title close"
            "actions actions";
        gap: 10px 12px;
        padding: 12px 14px;
        align-items: center;
    }

    .srl-file-preview-modal-content .srl-modal-header h3 {
        grid-area: title;
        font-size: 15px;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .srl-file-preview-modal-content .srl-modal-close {
        grid-area: close;
    }

    .srl-file-preview-modal-content .srl-file-preview-actions {
        grid-area: actions;
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .srl-file-preview-modal-content .srl-maximize-btn,
    .srl-file-preview-modal-content .srl-download-btn {
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
        margin-right: 0 !important;
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
        white-space: nowrap;
    }

    .srl-file-preview-modal-content .srl-modal-body {
        padding: 12px;
        max-height: calc(100vh - 132px);
    }

    .srl-file-preview-modal-content .srl-pdf-canvas-viewer {
        max-height: calc(100vh - 150px);
    }

    .srl-file-preview-modal-content.maximized .srl-modal-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100003;
        background: transparent !important;
        border: none !important;
        padding: 10px 12px;
        pointer-events: none;
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
    }

    .srl-file-preview-modal-content.maximized .srl-modal-header h3,
    .srl-file-preview-modal-content.maximized .srl-download-btn {
        display: none !important;
    }

    .srl-file-preview-modal-content.maximized .srl-modal-header > * {
        pointer-events: auto;
    }

    .srl-file-preview-modal-content.maximized .srl-file-preview-actions {
        width: auto;
        margin-left: auto;
    }

    .srl-file-preview-modal-content.maximized .srl-modal-body {
        padding: 0 !important;
        max-height: none !important;
        height: 100vh !important;
    }

    .srl-file-preview-modal-content.maximized .srl-file-preview-container,
    .srl-file-preview-modal-content.maximized #srl-file-preview-content {
        height: 100vh !important;
        max-height: 100vh !important;
        min-height: 100vh !important;
        border-radius: 0;
    }

    .srl-file-preview-modal-content.maximized .srl-pdf-canvas-viewer,
    .srl-file-preview-modal-content.maximized .srl-preview-frame-wrap,
    .srl-file-preview-modal-content.maximized .srl-preview-frame-wrap iframe {
        height: 100vh !important;
        max-height: 100vh !important;
        min-height: 100vh !important;
        border-radius: 0;
        padding-bottom: 72px;
        box-sizing: border-box;
    }

    .srl-pdf-canvas-viewer {
        touch-action: pan-x pan-y;
    }

    .srl-pdf-zoom-layer {
        touch-action: pan-x pan-y;
        width: max-content;
        min-width: 100%;
        margin: 0 auto;
    }

    .srl-pdf-canvas-viewer.is-pinching .srl-pdf-zoom-layer {
        touch-action: none;
    }

    .srl-pdf-canvas-viewer.is-zoomed {
        touch-action: none;
        overscroll-behavior: contain;
    }

    .srl-pdf-canvas-viewer.is-pinching {
        touch-action: none;
    }

    .srl-file-preview-modal-content .srl-modal-body.has-pdf-canvas-preview,
    .srl-file-preview-container.has-pdf-canvas-preview {
        overflow: hidden;
    }

    .srl-file-preview-modal-content .srl-modal-body.has-pdf-canvas-preview {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .srl-file-preview-container.has-pdf-canvas-preview {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    #srl-file-preview-content.has-pdf-canvas-preview {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        height: 100%;
    }

    #srl-file-preview-content.has-pdf-canvas-preview .srl-pdf-canvas-viewer {
        flex: 1;
        min-height: 0;
        max-height: none;
    }

    .srl-file-preview-modal-content.maximized .srl-pdf-zoom-toolbar {
        position: fixed;
        left: 50%;
        bottom: 16px;
        top: auto;
        transform: translateX(-50%);
        border-radius: 999px;
        padding: 10px 14px;
        z-index: 100004;
        width: calc(100% - 32px);
        max-width: 360px;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    }

    /* ========== 手机横屏：紧凑布局（矮视口） ========== */
    @media (max-height: 520px) and (orientation: landscape) {
        body.page-id-2124.srl-hero-merged-header:not(.srl-hero-header-scrolled) .srl-mobile-enabled .srl-mobile-hero {
            padding-bottom: 10px;
            border-radius: 0 0 14px 14px;
        }

        .srl-mobile-enabled .srl-mobile-hero {
            padding-bottom: 10px;
            border-radius: 0 0 14px 14px;
        }

        .srl-mobile-enabled .srl-mobile-hero-main {
            margin-bottom: 6px;
        }

        .srl-mobile-enabled .srl-mobile-hero-announcement {
            margin-bottom: 8px;
            padding: 6px 10px;
        }

        .srl-mobile-enabled .srl-mobile-hero-announcement-text {
            font-size: 11px;
        }

        .srl-mobile-enabled .srl-mobile-hero-heading {
            font-size: 18px;
        }

        .srl-mobile-enabled .srl-mobile-hero-meta {
            display: none;
        }

        .srl-mobile-enabled .srl-mobile-progress-ring {
            width: 54px;
            height: 54px;
        }

        .srl-mobile-enabled .srl-mobile-metric-cards {
            gap: 6px;
        }

        .srl-mobile-enabled .srl-mobile-metric {
            padding: 7px 4px 6px;
            border-radius: 10px;
        }

        .srl-mobile-enabled .srl-mobile-metric-value {
            font-size: 16px;
        }

        .srl-mobile-enabled .srl-mobile-metric-label {
            font-size: 10px;
            margin-top: 2px;
        }

        .srl-project-detail.srl-mobile-enabled {
            --srl-bottom-nav-h: 50px;
            --srl-fab-offset: calc(var(--srl-bottom-nav-h) + 10px);
            --srl-stage-shell-inset: 8px;
            padding-bottom: calc(var(--srl-bottom-nav-h) + 12px);
        }

        .srl-mobile-enabled .srl-stage-capsule-shell {
            padding: 8px var(--srl-stage-shell-pad-x) 6px;
        }

        .srl-mobile-enabled .srl-stage-chips-shell {
            padding: 0 var(--srl-stage-shell-pad-x) 8px;
        }

        .srl-mobile-enabled .circle-wrapper {
            width: 34px;
            height: 34px;
        }

        .srl-mobile-enabled .srl-stage-nav-item .circle,
        .srl-mobile-enabled .stage-1 .circle,
        .srl-mobile-enabled .stage-2 .circle,
        .srl-mobile-enabled .stage-3 .circle,
        .srl-mobile-enabled .stage-4 .circle,
        .srl-mobile-enabled .stage-5 .circle {
            width: 34px !important;
            height: 34px !important;
        }

        .srl-mobile-enabled .srl-stage-icon-svg,
        .srl-mobile-enabled .srl-stage-icon-svg svg {
            width: 16px;
            height: 16px;
        }

        .srl-mobile-enabled .srl-time-capsule-nav::before {
            top: 17px;
        }

        .srl-mobile-enabled .srl-stage-nav-item {
            min-width: 54px;
            padding: 0 2px;
        }

        .srl-mobile-enabled .stage-mobile-label {
            font-size: 9px;
            margin-top: 4px;
        }

        .srl-mobile-enabled .stage-info {
            margin-top: 4px;
        }

        .srl-mobile-chip-track {
            padding: 6px 8px;
        }

        .srl-mobile-chip {
            padding: 6px 10px;
            font-size: 10px;
        }

        .srl-mobile-enabled .srl-doc-library {
            padding: 12px;
        }

        .srl-mobile-enabled .srl-doc-library-head {
            margin-bottom: 8px;
        }

        .srl-mobile-enabled .srl-doc-library-title {
            font-size: 17px;
        }

        .srl-mobile-enabled .srl-doc-library-desc {
            display: none;
        }

        .srl-mobile-enabled .srl-doc-folder-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
        }

        .srl-mobile-enabled .srl-doc-folder {
            padding: 9px 8px;
        }

        .srl-mobile-enabled .srl-doc-folder-icon {
            font-size: 18px;
        }

        .srl-mobile-enabled .srl-doc-folder-name {
            font-size: 12px;
        }

        .srl-mobile-enabled .srl-doc-library .srl-doc-search-wrap .srl-doc-search {
            min-height: 40px;
            padding-top: 10px;
            padding-bottom: 10px;
        }

        .srl-mobile-enabled .srl-mobile-fab {
            width: 50px;
            height: 50px;
            right: 14px;
        }

        .srl-mobile-tab {
            padding: 4px 2px;
            font-size: 10px;
            gap: 2px;
        }

        .srl-mobile-tab-icon,
        .srl-mobile-tab-icon svg {
            width: 20px;
            height: 20px;
        }

        .srl-lottery-entry-btn {
            font-size: 12px;
            padding: 7px 11px;
            bottom: calc(var(--srl-bottom-nav-h) + 8px);
        }

        .srl-lottery-records-btn {
            font-size: 11px;
            padding: 6px 10px;
            bottom: calc(var(--srl-bottom-nav-h) + 48px);
        }

        .srl-file-preview-modal-content .srl-modal-body {
            max-height: calc(100dvh - 96px);
        }

        .srl-file-preview-modal-content .srl-pdf-canvas-viewer {
            max-height: calc(100dvh - 110px);
        }

        body.admin-bar.page-id-2124 .srl-mobile-enabled .srl-mobile-hero {
            padding-top: calc(var(--srl-theme-header-h, 44px) + env(safe-area-inset-top, 0px));
        }
    }
}

