/* =====================================================================
   32-offline-mode.css
   线下模式 (Offline Mode) - 风格基准: 17-inline-chat-settings.css
   ===================================================================== */

/* ==================== 圆弧爆开动画 ==================== */
#om-burst {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9998;
    pointer-events: none;
    clip-path: circle(0% at 50% 50%);
    background: radial-gradient(circle, rgba(195,167,114,0.95) 0%, rgba(195,167,114,0.85) 50%, transparent 80%);
    transition: clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
#om-burst.show {
    clip-path: circle(150% at 50% 50%);
}

/* ==================== 容器 ==================== */
#om-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9990;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
#om-container.show { pointer-events: auto; }

.om-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #FAFAFA;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.om-layer.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==================== 背景装饰字 ==================== */
.om-bg-deco {
    position: absolute;
    top: 8%;
    right: -5%;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 140px;
    font-weight: 900;
    font-style: italic;
    color: rgba(0, 0, 0, 0.025);
    pointer-events: none;
    z-index: 0;
    user-select: none;
    letter-spacing: -5px;
}

/* ==================== 通用 Header ==================== */
.om-header {
    padding: calc(var(--safe-top, 0px) + 22px) 24px 18px;
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}
.om-title-en {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 900;
    color: #1C1C1E;
    letter-spacing: 1px;
    line-height: 1.1;
}
.om-title-cn {
    font-size: 12px;
    font-weight: 800;
    color: #A8A196;
    margin-top: 6px;
    letter-spacing: 4px;
}

/* ==================== 左下角返回按钮 (第①层用) ==================== */
.om-back-btn {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #1C1C1E;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}
.om-back-btn:active { transform: scale(0.92); }
.om-back-btn svg { width: 22px; height: 22px; }

/* ==================== 第①层: Offline Mode 选择 ==================== */
#om-layer-1 .om-choice-area {
    flex: 1;
    padding: 50px 24px 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
    overflow-y: auto;
}
.om-choice-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 24px;
    border: 0.5px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.om-choice-card:active {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.om-choice-icon {
    width: 56px; height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 100%);
    color: #C3A772;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.om-choice-icon svg { width: 28px; height: 28px; }
.om-choice-text {
    margin-bottom: 8px;
}
.om-choice-en {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 900;
    color: #1C1C1E;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.om-choice-cn {
    font-size: 11px;
    font-weight: 700;
    color: #A8A196;
    margin-top: 4px;
    letter-spacing: 2px;
}
.om-choice-desc {
    font-size: 10px;
    color: #8E8E93;
    line-height: 1.5;
    font-weight: 600;
    margin-top: 8px;
    padding: 0 4px;
}
.om-choice-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    color: rgba(0, 0, 0, 0.15);
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

/* ==================== 第②层: 配置页 ==================== */
#om-layer-2 .om-header {
    position: relative;
    padding: calc(var(--safe-top, 0px) + 16px) 60px 14px;
}
.om-back-btn-2 {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #1C1C1E;
}
.om-back-btn-2:active { background: rgba(0, 0, 0, 0.1); }
.om-back-btn-2 svg { width: 18px; height: 18px; }

#om-layer-2 .om-config-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 30px;
    position: relative;
    z-index: 1;
    scrollbar-width: thin;
}
.om-section {
    margin-bottom: 28px;
}
.om-section-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13px;
    font-weight: 900;
    color: #1C1C1E;
    letter-spacing: 1.5px;
    border-left: 3px solid #C3A772;
    padding-left: 10px;
    margin-bottom: 10px;
}
.om-section-hint {
    font-size: 10px;
    color: #A8A196;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.om-input,
.om-textarea {
    width: 100%;
    background: #FFFFFF;
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 13px;
    color: #1C1C1E;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}
.om-input:focus,
.om-textarea:focus {
    border-color: #C3A772;
}
.om-textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
    font-weight: 500;
}

.om-num-input {
    width: 100%;
    background: #F4F3F0;
    border: none;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #1C1C1E;
    outline: none;
    box-sizing: border-box;
    -moz-appearance: textfield;
}
.om-num-input::-webkit-outer-spin-button,
.om-num-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 模式按钮 */
.om-mode-row {
    display: flex;
    gap: 12px;
}
.om-mode-btn {
    flex: 1;
    background: #FFFFFF;
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.om-mode-btn.active {
    background: #1C1C1E;
    border-color: #1C1C1E;
    color: #FFFFFF;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.om-mode-btn-en {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
}
.om-mode-btn-cn {
    font-size: 10px;
    font-weight: 800;
    margin-top: 4px;
    opacity: 0.7;
    letter-spacing: 2px;
}
.om-mode-btn-desc {
    font-size: 9px;
    margin-top: 8px;
    line-height: 1.4;
    opacity: 0.6;
    font-weight: 500;
}
.om-mode-btn.active .om-mode-btn-cn,
.om-mode-btn.active .om-mode-btn-desc {
    opacity: 0.8;
}

/* 字数 */
.om-range-row {
    display: flex;
    gap: 12px;
}
.om-range-item {
    flex: 1;
}
.om-range-label {
    font-family: 'Courier New', monospace;
    font-size: 8px;
    font-weight: 800;
    color: #A8A196;
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-align: center;
}

/* 视角代词 */
.om-persp-row {
    display: flex;
    gap: 10px;
}
.om-persp-btn {
    flex: 1;
    background: #FFFFFF;
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.om-persp-btn.active {
    background: #C3A772;
    border-color: #C3A772;
    color: #FFF;
    box-shadow: 0 6px 15px rgba(195, 167, 114, 0.3);
}
.om-persp-cn {
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 4px;
}
.om-persp-en {
    font-family: 'Courier New', monospace;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* 世界书触发 */
.om-wb-trigger {
    background: #F4F3F0;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #1C1C1E;
    transition: background 0.2s ease;
}
.om-wb-trigger:active { background: #E8E5E0; }
.om-wb-arrow {
    color: #A8A196;
    font-size: 18px;
    line-height: 1;
}

/* 记忆策略 */
.om-mem-row {
    background: #F9F9F7;
    border-radius: 16px;
    padding: 4px;
}
.om-mem-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.04);
}
.om-mem-item:last-child { border-bottom: none; }
.om-mem-text { flex: 1; }
.om-mem-label {
    font-size: 13px;
    font-weight: 800;
    color: #1C1C1E;
    margin-bottom: 3px;
}
.om-mem-hint {
    font-size: 10px;
    color: #A8A196;
    font-weight: 600;
    line-height: 1.4;
}

/* 配置页底部按钮 */
.om-config-footer {
    padding: 16px 24px calc(20px + var(--safe-bottom, 0px));
    background: linear-gradient(to top, #FAFAFA 60%, rgba(250, 250, 250, 0));
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.om-enter-btn {
    width: 100%;
    background: linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 100px;
    padding: 18px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 4px;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease;
}
.om-enter-btn:active { transform: scale(0.98); }

/* ==================== 第③层: 剧情页 ==================== */
.om-scene-bg {
    background: #FAFAFA;
}
.om-scene-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(195, 167, 114, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(195, 167, 114, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.om-scene-header {
    padding: calc(var(--safe-top, 0px) + 14px) 24px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}
.om-close-x {
    width: 36px; height: 36px;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1C1C1E;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.om-close-x:active { background: rgba(0, 0, 0, 0.1); }
.om-close-x svg { width: 18px; height: 18px; }
.om-scene-title-block {
    text-align: center;
    flex: 1;
}
.om-scene-title-en {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 900;
    color: #1C1C1E;
    letter-spacing: 2px;
    line-height: 1;
}
.om-scene-title-cn {
    font-size: 10px;
    font-weight: 800;
    color: #A8A196;
    margin-top: 4px;
    letter-spacing: 3px;
}
.om-scene-title-user {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 11px;
    color: #C3A772;
    margin-top: 6px;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.om-spacer { width: 36px; flex-shrink: 0; }

/* 舞台 */
.om-scene-stage {
    flex: 1;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.om-stage-bg-decoration {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}
.om-stage-bg-circle {
    position: absolute;
    border-radius: 50%;
    border: 0.5px solid rgba(195, 167, 114, 0.1);
}
.om-stage-bg-circle-1 {
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    animation: omRotateSlow 60s linear infinite;
}
.om-stage-bg-circle-2 {
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    border-style: dashed;
    animation: omRotateSlow 80s linear infinite reverse;
}
.om-stage-bg-circle-3 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-color: rgba(195, 167, 114, 0.06);
    animation: omRotateSlow 100s linear infinite;
}
@keyframes omRotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.om-dialogue-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow-y: auto;
    padding: 20px 24px 20px;
    box-sizing: border-box;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}
.om-dialogue-box {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 空状态 */
.om-stage-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}
.om-stage-empty-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, #C3A772, transparent);
    margin: 6px 0;
}
.om-stage-empty-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 11px;
    font-weight: 900;
    color: #C3A772;
    letter-spacing: 4px;
    margin: 8px 0;
}
.om-stage-empty-hint {
    font-size: 11px;
    color: #A8A196;
    font-weight: 600;
    margin-top: 16px;
    letter-spacing: 0.5px;
}

/* 消息气泡 */
.om-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: omMsgIn 0.3s ease-out;
}
@keyframes omMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.om-msg-user {
    align-self: flex-end;
    align-items: flex-end;
}
.om-msg-ai {
    align-self: flex-start;
    align-items: flex-start;
}
.om-msg-meta {
    font-family: 'Courier New', monospace;
    font-size: 8px;
    font-weight: 800;
    color: #A8A196;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.om-msg-ai .om-msg-meta {
    color: #C3A772;
}
.om-msg-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
}
.om-msg-user .om-msg-bubble {
    background: #1C1C1E;
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.om-msg-ai .om-msg-bubble {
    background: #FFFFFF;
    color: #1C1C1E;
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    font-family: 'Playfair Display', 'Songti SC', Georgia, serif;
}
.om-msg-line {
    margin: 2px 0;
}
.om-msg-line + .om-msg-line {
    margin-top: 6px;
}

/* Loading */
.om-msg-loading .om-msg-bubble {
    padding: 14px 18px;
}
.om-loading-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}
.om-loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C3A772;
    animation: omLoadingDot 1.4s infinite ease-in-out both;
}
.om-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.om-loading-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes omLoadingDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* 输入栏 */
.om-input-bar {
    padding: 12px 16px calc(12px + var(--safe-bottom, 0px));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 0.5px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.om-input-wrap {
    background: #F4F3F0;
    border-radius: 24px;
    padding: 8px 8px 8px 16px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    border: 0.5px solid rgba(0, 0, 0, 0.04);
}
.om-input-area {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: #1C1C1E;
    font-family: inherit;
    line-height: 1.5;
    padding: 8px 0;
    resize: none;
    max-height: 100px;
    min-height: 20px;
    overflow-y: auto;
}
.om-input-area::placeholder { color: #A8A196; }
.om-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1C1C1E;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.om-send-btn:active { transform: scale(0.92); }
.om-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.om-send-btn svg { width: 16px; height: 16px; }
.om-input-helper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    font-family: 'Courier New', monospace;
    font-size: 8px;
    font-weight: 800;
    color: #A8A196;
    letter-spacing: 2px;
}
.om-input-helper-dot { opacity: 0.5; }

/* ==================== Action Sheet (通用弹层) ==================== */
.om-action-sheet-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.om-action-sheet-overlay.show {
    opacity: 1;
    visibility: visible;
}
.om-action-sheet {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 420px;
    border-radius: 24px 24px 0 0;
    padding: 16px 20px calc(20px + var(--safe-bottom, 0px));
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.om-action-sheet-overlay.show .om-action-sheet {
    transform: translateY(0);
}
.om-action-sheet-small {
    max-width: 380px;
}
.om-sheet-header {
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 14px;
}
.om-sheet-title {
    font-size: 15px;
    font-weight: 900;
    color: #1C1C1E;
    letter-spacing: 0.5px;
}
.om-sheet-sub {
    font-family: 'Courier New', monospace;
    font-size: 8px;
    color: #A8A196;
    letter-spacing: 2px;
    margin-top: 4px;
    font-weight: 800;
}
.om-sheet-body {
    flex: 1;
    overflow-y: auto;
    max-height: 50vh;
    margin-bottom: 12px;
}
.om-sheet-footer {
    display: flex;
    gap: 10px;
    padding-top: 10px;
    border-top: 0.5px solid rgba(0, 0, 0, 0.05);
}
.om-sheet-btn-cancel,
.om-sheet-btn-confirm {
    flex: 1;
    padding: 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    letter-spacing: 2px;
    transition: transform 0.2s ease;
}
.om-sheet-btn-cancel {
    background: rgba(0, 0, 0, 0.04);
    color: #8E8E93;
}
.om-sheet-btn-confirm {
    background: #1C1C1E;
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.om-sheet-btn-cancel:active,
.om-sheet-btn-confirm:active { transform: scale(0.97); }

/* World Book 列表项 */
.om-wb-item {
    background: #F9F9F7;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    border: 1.5px solid transparent;
}
.om-wb-item.selected {
    background: #FFFFFF;
    border-color: #C3A772;
    box-shadow: 0 4px 12px rgba(195, 167, 114, 0.15);
}
.om-wb-item-check {
    padding-top: 2px;
    flex-shrink: 0;
}
.om-wb-item-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1.5px solid #D4D0CC;
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #FFF;
    transition: all 0.2s ease;
}
.om-wb-item-checkbox.on {
    background: #C3A772;
    border-color: #C3A772;
}
.om-wb-item-body { flex: 1; min-width: 0; }
.om-wb-item-title {
    font-size: 13px;
    font-weight: 800;
    color: #1C1C1E;
    margin-bottom: 4px;
    word-break: break-word;
}
.om-wb-item-meta {
    display: flex;
    gap: 4px;
    font-family: 'Courier New', monospace;
    font-size: 8px;
    font-weight: 800;
    color: #A8A196;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.om-wb-item-content {
    font-size: 11px;
    color: #8E8E93;
    line-height: 1.4;
    font-weight: 500;
}

/* 退出/结束选项 */
.om-close-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}
.om-close-option {
    background: #F9F9F7;
    border-radius: 16px;
    padding: 16px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
    border: 1.5px solid transparent;
    text-align: left;
}
.om-close-option:active {
    background: #FFFFFF;
    border-color: #1C1C1E;
}
.om-close-option-danger:active {
    background: #FFFFFF;
    border-color: #D32F2F;
}
.om-close-option-en {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 12px;
    font-weight: 900;
    color: #1C1C1E;
    letter-spacing: 2px;
    display: inline-block;
    padding: 2px 8px;
    background: #1C1C1E;
    color: #FFF;
    border-radius: 4px;
    margin-bottom: 6px;
}
.om-close-option-danger .om-close-option-en {
    background: #D32F2F;
}
.om-close-option-cn {
    font-size: 14px;
    font-weight: 900;
    color: #1C1C1E;
    margin-bottom: 4px;
}
.om-close-option-desc {
    font-size: 10px;
    color: #A8A196;
    line-height: 1.4;
    font-weight: 600;
}

/* 记入记忆确认 */
.om-confirm-body {
    text-align: center;
    padding: 20px 0;
}
.om-confirm-icon {
    font-size: 32px;
    color: #C3A772;
    margin-bottom: 12px;
}
.om-confirm-text {
    font-size: 14px;
    font-weight: 800;
    color: #1C1C1E;
    margin-bottom: 6px;
}
.om-confirm-hint {
    font-size: 11px;
    color: #8E8E93;
    line-height: 1.5;
    font-weight: 600;
}
.om-confirm-footer {
    display: flex;
    gap: 10px;
}

/* ==================== Bug 修复补丁 ==================== */

/* 1. 保证 layer 切换时彻底隐藏 */
.om-layer:not(.show) {
    display: none !important;
}
.om-layer.show {
    display: flex !important;
}

/* 2. 圆弧遮罩顶层 */
#om-burst {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 10000 !important;
    pointer-events: none;
    clip-path: circle(0% at 50% 50%);
    background: radial-gradient(circle, rgba(195,167,114,0.92) 0%, rgba(195,167,114,0.78) 50%, rgba(195,167,114,0.5) 80%, transparent 100%);
    transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.35, 1);
    visibility: hidden;
    opacity: 0;
}
#om-burst.show {
    clip-path: circle(150% at 50% 50%);
    visibility: visible;
    opacity: 1;
}

/* 3. 容器层级 */
#om-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9995;
    pointer-events: none;
}
#om-container.show { pointer-events: auto; }

/* 4. 弹层 z-index 最高 */
.om-action-sheet-overlay {
    z-index: 10001;
}