/***
作者：onlyScv
日期：2025-12-12
描述：电子礼簿系统-电脑版
联系：200980998@qq.com
***/

/* 引入字体 */
@font-face {
    font-family: 'FangZhengKaiTiJianTi';
    src: url('../static/FangZhengKaiTiJianTi.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fa;
    min-height: 100vh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}
/* 打赏功能专属样式 */


.reward-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 备份还原按钮样式 */
.backup-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.backup-buttons .success-confirm-btn {
    width: 100%;
}

#backupDataBtn {
    background: #4CAF50;
    color: white;
}

#backupDataBtn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

#importDataBtn {
    background: #2196F3;
    color: white;
}

/* 统计弹窗样式 */
.stat-modal .modal-buttons {
    margin-top: 60px;
    justify-content: center;
}

.stat-modal .modal-buttons .cancel-btn {
    flex: 0 0 200px;
}

/* 账本标题弹窗样式 */
#newRemark {
    height: 60px;
    font-size: 24px;
    resize: none;
    margin-top: 30px;
}

/* 导出确认弹窗样式 */
.export-confirm-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.export-confirm-buttons .success-confirm-btn {
    flex: 1;
}

.export-confirm-buttons .success-confirm-btn.cancel {
    background: #f0f0f0;
    color: #333;
}

/* 删除确认弹窗样式 */
.delete-confirm-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.delete-confirm-buttons .success-confirm-btn {
    flex: 1;
}

.delete-confirm-buttons .success-confirm-btn.cancel {
    background: #f0f0f0;
    color: #333;
}

#deleteConfirmMessage {
    text-align: center;
    line-height: 1.8;
}

/* 隐藏文件输入 */
#importFileInput {
    display: none;
}

.reward-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.reward-modal {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.reward-modal-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.reward-qrcode {
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.fullscreen-container {
    width: 100vw;
    min-height: 100vh;
    padding: 40px 20px;
    /* background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%); */
    position: relative;
    padding-top: 0;
}

.menu-container {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 1000;
}

.menu-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, #D32F2F, #C62828);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.3);
    border: 2px solid #FFD700;
}

.menu-btn:hover {
    background: linear-gradient(135deg, #C62828, #B71C1C);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
    transform: translateY(-2px);
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 2px solid #FFD700;
}

.menu-container:hover .menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-dropdown a.main-btn {
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* 喜事/奠事下菜单内链接与按钮同色（覆盖浏览器 a:link 默认蓝） */
.main-all-happy .menu-dropdown a.main-btn,
.main-all-happy .menu-dropdown a.main-btn:link,
.main-all-happy .menu-dropdown a.main-btn:visited,
.main-all-happy .menu-dropdown a.main-btn:hover,
.main-all-happy .menu-dropdown a.main-btn:active {
    color: #ffd700;
}

.main-all-funeral .menu-dropdown a.main-btn,
.main-all-funeral .menu-dropdown a.main-btn:link,
.main-all-funeral .menu-dropdown a.main-btn:visited,
.main-all-funeral .menu-dropdown a.main-btn:hover,
.main-all-funeral .menu-dropdown a.main-btn:active {
    color: #444444;
}

/* 电脑端：左侧固定菜单常显；右侧保留打赏/全屏 */
@media (min-width: 1200px) {
    .content-layout {

        max-width: 1600px;
        margin: 0 auto;
        display: flex;
        align-items: stretch;
        gap: 0;
    }

    .menu-container {
        position: inherit;
        width: 256px;
        flex: 0 0 256px;
        z-index: 2;
        border: 1px solid #efefef;
        background: #fff;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
        padding: 18px 14px 20px;
        overflow-y: auto;
        border-radius: 10px 0 0 10px;
        margin-right: 15px;
    }
    .menu-container::before {
        content: '🔘 功能菜单';
        display: block;
        margin: 2px 6px 14px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(216, 31, 38, 0.16);
        font-size: 22px;
        letter-spacing: 2px;
        color: #D81F26;
        font-weight: 800;
    }
    .menu-container::after {
        display: none;
    }

    .menu-btn {
        display: none;
    }

    .menu-dropdown {
        position: static;
        margin-top: 0;
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        min-width: 0;
        padding: 0;
        gap: 10px;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .menu-dropdown .main-btn {
        font-weight: normal;
        line-height: normal;
        display: flex;
        margin-bottom: 8px;
    }

    .menu-dropdown .main-btn:hover {
        transform: translateY(-2px);
    }

    

    .main-all-funeral .menu-container {
        background: #fff;
        border-color: #e2e2e2;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    }
    .main-all-funeral .menu-container::before {
        color: #666;
        border-bottom-color: rgba(0, 0, 0, 0.16);
    }
    .main-all-funeral .menu-dropdown .main-btn {
        background: #F8F8F8;
        color: #444444;
        border: 1px solid #DDDDDD;
        box-shadow: none;
    }
    .main-all-funeral .menu-dropdown .main-btn:hover {
        color: #444444;
        border-color: #444444;
        background: #f4f4f4;
        box-shadow: none;
    }

    .record-list {
        display: flex;
        flex-direction: column;
        border-radius: 0 10px 10px 0;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    }
    .main-record {
        flex: 1;
    }
}

/* 小屏电脑：退回悬浮菜单，避免遮挡内容 */
@media (max-width: 1199px) {
    .fullscreen-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* 奠事风格菜单样式 */
.main-all-funeral .menu-btn {
    background: #444444;
    border: 2px solid #666666;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.main-all-funeral .menu-btn:hover {
    background: #555555;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}



.main-all-funeral .menu-dropdown .main-btn {
    background: #F8F8F8;
    color: #444444;
    border: 1px solid #DDDDDD;
    cursor: pointer;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 20px;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.main-all-funeral .menu-dropdown .main-btn:hover {
    background: #F0F0F0;
    border-color: #444444;
}


.main-all-happy .main-btn{
    background: linear-gradient(135deg, #D81F26, #9E0000);
    color: #FFD700;
    border: 2px solid #FFD700;
    cursor: pointer;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 20px;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-btn {
    background-color: #27ae60;
}

.manage-btn {
    background-color: #db1c91;
}

.stat-btn {
    background-color: #f39c12;
}

.header {
    text-align: center;
    margin-bottom: 10px;
    padding-top: 20px;
}

.main-title {
    font-size: 72px;
    color: #2c3e50;
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: 'FangZhengKaiTiJianTi', "楷体", KaiTi, "Kaiti SC", serif;
}
.main-all-happy {
    /* 暖米色底 + 低透明度祥云暗纹，喜庆但不刺眼 */
    background: #FFF8F0 url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23D81F26' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: #8B0000;
    /* 统一为深枣红文字 */
    font-family: "Microsoft Yahei", "SimHei", sans-serif;
    /* 保留原有字体 */
    /* 可选：添加轻微的纹理质感，增强喜庆氛围 */
    background-repeat: repeat;
    background-attachment: fixed;
    /* 滚动时背景固定，体验更好 */
}
.main-all-happy .record-list {
    background-color: #FFFFFF;
    /* 纯白底，和背景形成对比 */
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.1);
    /* 轻微阴影，增强立体感 */
}
.main-all-happy .main-title{
        color: #D81F26;
        text-shadow: 3px 3px 0 #FFD700, 6px 6px 0 rgba(139, 0, 0, 0.2);
        position: relative;
        display: inline-block;
        padding: 0 60px;
} 
.main-all-happy .main-title::before,
.main-all-happy .main-title::after{
    content: "★";
    color: #FFD700;
    font-size: 36px;
    margin: 0 20px;
}
.main-all-happy .main-title:hover {
    color: #fc0303;
}
.main-title:hover {
    color: #3498db;
}

.subtitle {
    font-size: 24px;
    color: #7f8c8d;
    letter-spacing: 2px;
    cursor: default;
    font-weight: 900;
    font-family: 'FangZhengKaiTiJianTi', "楷体", KaiTi, "Kaiti SC", serif;
}
.main-all-happy .subtitle {
    color: #7A0000;
}

.record-list {
    width: 100%;
    background: white;
    
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-weight: 900;
    font-family: 'FangZhengKaiTiJianTi', "楷体", KaiTi, "Kaiti SC", serif;
}

.record-header {
    display: flex;
    background-color: #2c3e50;
    color: white;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 5px;
}
.main-all-happy .record-header {
    background: linear-gradient(90deg, #FF1744, #C62828);
    border-bottom: 4px solid #FFD700;
    box-shadow: 0 4px 12px rgba(255, 23, 68, 0.3);
}

.record-header>div {
    padding: 25px;
    text-align: center;
}

.col-name {
    width: 50%;
    text-align: left !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}

.col-amount {
    width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left !important;

}

.col-method {
    width: 25%;
    text-align: right !important;
    justify-content: end;
}

.record-item {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    font-size: 26px;
    color: #34495e;
    transition: background 0.3s ease;
    position: relative;
}
.main-all-happy .record-item {
    background-color: #FFFAFA;
    border-bottom: 2px dotted #F08080;
}
.main-all-happy .record-item:nth-child(even) {
    background-color: #FFF5EE;
}
.main-all-happy .record-item:hover {
    background-color: #FFEEEE;
    transform: scale(1.005);
}

.record-item:hover {
    background-color: #f8f9fa;
}

.record-item>div {
    padding: 25px;
    display: flex;
    align-items: center;
}

.name-container {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    position: relative;
}

.name-text {
    font-size: 88px;
    font-weight: 900;
    color: #2c3e50;
    letter-spacing: 20px;
    display: inline-block;
    min-width: 120px;
    max-width: 100%;
    text-align: left;
    cursor: default;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.main-all-happy .name-text {
    color: #8B0000;
}

/* 操作按钮容器 - 全局唯一，hover时动态定位 */
.action-text-group {
    display: flex;
    gap: 8px;
    position: absolute;
    top: 80%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 99;
    display: none;
    /* 默认隐藏 */
    transition: opacity 0.3s ease 0.3s,
        visibility 0s linear 0.3s;
}

.desktop-hover-action {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    transform: translateY(-50%);
    z-index: 10020;
    display: none;
    pointer-events: auto;
}

.desktop-hover-action .sort-reorder-btn,
.desktop-hover-action .remark-btn,
.desktop-hover-action .edit-text,
.desktop-hover-action .delete-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'FangZhengKaiTiJianTi', "楷体", KaiTi, "Kaiti SC", serif;
    display: inline-block;
}

.remark-btn {
    font-size: 16px;
    color: #9b59b6;
    cursor: pointer;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 6px;
    background-color: #f5f0fa;
    border: 1px solid #e8d9f5;
    margin-right: 5px;
    font-family: 'FangZhengKaiTiJianTi', "楷体", KaiTi, "Kaiti SC", serif;
}

.remark-btn:hover {
    background-color: #e8d9f5;
}

.sort-reorder-btn {
    font-size: 16px;
    color: #1a7f5a;
    cursor: pointer;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 6px;
    background-color: #e8f7f0;
    border: 1px solid #b8e6d3;
    margin-right: 5px;
    font-family: 'FangZhengKaiTiJianTi', "楷体", KaiTi, "Kaiti SC", serif;
}

.sort-reorder-btn:hover {
    background-color: #d4f0e4;
}

.reorder-pop {
    position: absolute;
    background: #fff;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    min-width: 240px;
    z-index: 10000;
}

.reorder-pop-title {
    font-weight: 900;
    font-size: 20px;
    color: #1a7f5a;
    margin-bottom: 6px;
}

.reorder-pop-tip {
    margin: 0 0 10px;
    font-size: 16px;
    color: #444;
    line-height: 1.4;
}

.reorder-pop-pos {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 15px;
}

.reorder-target-wrap {
    position: relative;
    margin-bottom: 12px;
    z-index: 2;
}

.reorder-target-trigger {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 28px 6px 8px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 8px center;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reorder-target-trigger:hover {
    border-color: #1a7f5a;
}

.reorder-target-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    max-height: 260px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reorder-target-hint {
    display: none;
    font-size: 13px;
    line-height: 1.4;
    color: #b71c1c;
    background: #ffebee;
    padding: 6px 8px;
    border-bottom: 1px solid #ffcdd2;
    flex-shrink: 0;
}

.reorder-target-hint.reorder-target-hint--show {
    display: block;
}

.reorder-target-search {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    margin: 0;
    font-size: 15px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 6px 6px 0 0;
    font-family: inherit;
    flex-shrink: 0;
}

.reorder-target-search:focus {
    outline: none;
    background: #f9fffc;
}

.reorder-target-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 200px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.reorder-target-item {
    padding: 8px 10px;
    font-size: 15px;
    cursor: pointer;
    color: #222;
    line-height: 1.35;
}

.reorder-target-item:hover {
    background: #e8f7f0;
}

.reorder-target-item.reorder-target-item--active {
    background: #d4f0e4;
    font-weight: 700;
}

.reorder-target-item.reorder-target-item--empty {
    cursor: default;
    color: #888;
}

.reorder-target-item.reorder-target-item--empty:hover {
    background: transparent;
}

.reorder-radio {
    cursor: pointer;
    user-select: none;
}

.reorder-radio input {
    margin-right: 4px;
    vertical-align: middle;
}

.reorder-pop-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.reorder-pop-cancel {
    background: #888 !important;
    border-color: #666 !important;
    color: #fff !important;
}

.edit-text {
    color: #3498db;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
    display: inline-block;
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
}

.delete-text {
    color: #e74c3c;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
    display: inline-block;
    background-color: #fef2f2;
    border: 1px solid #f8d7da;
}

.edit-text:hover {
    background-color: #bbdefb;
}

.delete-text:hover {
    background-color: #f8d7da;
}

/* 仅name-container hover时显示操作按钮 */
.record-item .name-container:hover .action-text-group {
    display: flex !important;
    transition-delay: 0.8s, 0s;
}

.record-item .name-container:hover .desktop-hover-action {
    display: none !important;
}


/* 备注弹窗 - 全局唯一 */
.remark-pop {
    position: absolute;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: none;
    min-width: 180px;
    flex-direction: row;
    padding: 10px;
}

.remark-input {
    width: 200px;
    height: 36px;
    font-size: 16px;
    padding: 0 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    outline: none;
    max-length: 8;
    font-weight: 900;
    font-family: 'FangZhengKaiTiJianTi', "楷体", KaiTi, "Kaiti SC", serif;
}

.remark-input:focus {
    border-color: #3498db;
}

.remark-confirm-btn {
    height: 36px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-left: 5px;
    padding: 0 10px;
}

.remark-confirm-btn:hover {
    background-color: #219653;
}

.remark-text {
    font-size: 20px;
    color: #9b59b6;
    margin: 5px 0 0 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
    font-family: 'FangZhengKaiTiJianTi', "楷体", KaiTi, "Kaiti SC", serif;
    display: block;
    position: absolute;
    bottom: -20px;
    left: 0;
}

.amount-wrapper {
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.amount-text {
    font-size: 36px;
    font-weight: 900;
    text-align: left;
    max-width: calc(100% - 40px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.main-all-happy .amount-wrapper{
    color: #8B0000;
}

.amount-unit {
    font-size: 36px;
    font-weight: normal;
    text-align: right;
    min-width: 40px;
}

.uppercase-text {
    font-size: 24px;
    color: #7f8c8d;
    text-align: left;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 8px;
}
.main-all-happy .uppercase-text {
    color: #8B0000;
}

.main-all-happy .method-text {
    color: #8B0000;
}

.method-text {
    font-size: 26px;
    color: #34495e;
    text-align: right;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-color: #e8f4f8;
        padding: 4px 12px;
        border-radius: 12px;
}

.wechat-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: url('wechat.svg') no-repeat center center;
    background-size: contain;
    vertical-align: middle;
}

.cash-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: url('cash.svg') no-repeat center center;
    background-size: contain;
    vertical-align: middle;
}

.alipay-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: url('alipay.svg') no-repeat center center;
    background-size: contain;
    vertical-align: middle;
}

.empty-tip {
    text-align: center;
    font-size: 48px;
    color: #bdc3c7;
    padding: 150px 0;
    width: 100%;
}
.col-method span {
    margin-right: 4px;
    /* Emoji和文字间距 */
    font-size: 1.1em;
    /* Emoji稍大一点，更醒目 */
}
.modal-overlay {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

/* 标题修改弹窗层级更高 */
#titleModal {
    z-index: 99999;
}
.modal {
    background: #FFF8F8;
    border: 4px solid #FFD700;
    border-radius: 20px;
    padding: 60px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(211, 47, 47, 0.3);
    margin: 20px auto;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* 云存储码和云恢复数据弹窗样式 */
.modal-content {
    background: #FFF8F8;
    border: 4px solid #FFD700;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(211, 47, 47, 0.3);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    color: #D81F26;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #D81F26;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-body p {
    color: #333;
    line-height: 1.5;
    margin: 10px 0;
}

.modal-body strong {
    color: #333;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-primary {
    background-color: #D81F26;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #9E0000;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #333;
    border: 1px solid #d1d5db;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.modal-title {
    font-size: 48px;
    color: #D32F2F;
    text-align: center;
    margin-bottom: 40px;
    font-weight: normal;
}

.amount-uppercase-group {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.amount-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 50%;
}

.uppercase-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 50%;
}

.modal-form-group {
    width: 100%;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.modal-label {
    font-size: 32px;
    color: #D32F2F;
    font-weight: normal;
    margin-bottom: 15px;
    display: block;
    text-align: left;
}

.underline-input {
    height: 100px;
    font-size: 64px;
    font-weight: 900;
    border: none;
    border-bottom: 4px solid #D32F2F;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #D32F2F;
    letter-spacing: 2px;
    autocomplete: off;
    autocorrect: off;
    autocapitalize: off;
    spellcheck: false;
    width: 100%;
    box-sizing: border-box;
    font-family: 'FangZhengKaiTiJianTi', "楷体", KaiTi, "Kaiti SC", serif;
}

.fullscreen-input-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #FFF8F8;
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.fullscreen-name-display {
    font-size: 180px;
    font-weight: 900;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 5px;
    width: 100%;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'FangZhengKaiTiJianTi', "楷体", KaiTi, "Kaiti SC", serif;
}
.main-all-happy .fullscreen-name-display{
color: #D32F2F;
}

.fullscreen-input-container {
    position: relative;
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
}

.fullscreen-input-label {
    position: absolute;
    left: 0;
    bottom: 30px;
    font-size: 60px;
    color: #D32F2F;
    font-weight: normal;
    letter-spacing: 8px;
    z-index: 10;
}

.fullscreen-input {
    width: 100%;
    height: 50vh;
    font-size: 300px !important;
    font-weight: 900;
    text-align: center;
    border: none;
    outline: none;
    letter-spacing: 10px;
    background: transparent;
    padding: 0 0 0 20px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
    font-family: 'FangZhengKaiTiJianTi', "楷体", KaiTi, "Kaiti SC", serif;
}
.main-all-happy .fullscreen-input {
    color: #D32F2F;
    border-bottom: 15px solid #D32F2F;
    caret-color: #D32F2F;
}

.fullscreen-input-tip {
    font-size: 60px;
    color: #D32F2F;
    margin-top: 80px;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

/* 手机端只显示手机提示 */
.mobile-tip {
    display: block;
}

.desktop-tip {
    display: none;
}

/* 电脑端只显示电脑提示 */
@media (min-width: 768px) {
    .mobile-tip {
        display: none;
    }
    
    .desktop-tip {
        display: block;
    }
}

/* 喜事风格 - 全屏输入提示文字 */
.main-all-happy .fullscreen-input-tip {
    color: #D32F2F;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.underline-input:focus {
    border-color: #27ae60;
}

#modalAmount,
#editModalAmount {
    max: 999999.99;
}

.uppercase-display {
    height: 100px;
    font-size: 48px;
    font-weight: 900;
    padding: 0 10px;
    color: #D32F2F;
    display: flex;
    align-items: flex-end;
    border-bottom: 4px solid #D32F2F;
    width: 100%;
    box-sizing: border-box;
    font-family: 'FangZhengKaiTiJianTi', "楷体", KaiTi, "Kaiti SC", serif;
}

.modal-payment {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    margin-bottom: 40px;
    padding-left: 10px;
}

.modal-payment-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    outline: none;
    padding: 5px 10px;
    border-radius: 8px;
}

.modal-payment-item:focus-within,
.modal-payment-item.active {
    outline: 2px solid #3498db;
    outline-offset: -2px;
    border-radius: 8px;
}

.modal-payment-item input {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    flex-shrink: 0;
}

.modal-payment-item span {
    font-size: 48px;
    color: #D32F2F;
}

.modal-buttons {
    display: flex;
    gap: 30px;
}

.modal-btn {
    flex: 1;
    height: 80px;
    font-size: 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    font-weight: normal;
    outline: none;
}

.modal-btn:focus {
    outline: 3px solid #3498db;
}

.confirm-btn {
    background-color: #27ae60;
}

.cancel-btn {
    background-color: #e74c3c;
}

.manage-modal {
    background: white;
    border-radius: 20px;
    padding: 60px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: 20px auto;
    box-sizing: border-box;
    overflow: hidden;
}

.manage-title {
    font-size: 48px;
    color: #2c3e50;
    margin-bottom: 50px;
    font-weight: bold;
}

.manage-buttons {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.cont-scv {
    font-size: 22px;
}

.manage-btn-option {
    flex: 1;
    height: 80px;
    font-size: 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    font-weight: 600;
}

.export-btn {
    background-color: #3498db;
}

.clear-btn {
    background-color: #e74c3c;
}

.stat-modal {
    background: white;
    border-radius: 20px;
    padding: 60px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: 20px auto;
    box-sizing: border-box;
    overflow: hidden;
}

.stat-modal-title {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: bold;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.stat-card:nth-child(1),
.stat-card:nth-child(2) {
    grid-column: span 1;
}
.stat-card:nth-child(3){
    background: none;
}
.stat-card:nth-child(3),
.stat-card:nth-child(4),
.stat-card:nth-child(5) {
    grid-column: span 1;
}

.stat-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    padding: 30px 20px;
    border-radius: 20px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.stat-label {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.stat-value {
    font-size: 24px;
    color: #2c3e50;
    font-weight: bold;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-title-modal {
    background: white;
    border-radius: 20px;
    padding: 60px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: 20px auto;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 92vh;
}

/* 搜索框容器：和姓名表头对齐，一体化设计 */
.name-search-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 15px;
    vertical-align: middle;
    width: 180px;
}

/* 搜索输入框核心样式 */
.name-search-input {
    width: 100%;
    height: 36px;
    padding: 0 35px 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    font-size: 14px;
    color: #333;
    background: #f8f9fa;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* 聚焦态：高亮边框+背景+阴影 */
.name-search-input:focus {
    border-color: #409eff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.1);
}

/* 空值态：提示文字样式 */
.name-search-input::placeholder {
    color: #999;
    font-size: 13px;
}

/* 清除按钮：默认隐藏，有内容时显示 */
.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: none;
    border: none;
    padding: 0;
}

/* 有内容时显示清除按钮 */
.name-search-input:not(:placeholder-shown)+.search-clear-btn {
    opacity: 1;
}

/* 清除按钮 hover 态：变色+放大 */
.search-clear-btn:hover {
    color: #409eff;
    transform: translateY(-50%) scale(1.1);
}

/* 配合表头的整体样式优化 */
.record-header .col-name {
    display: flex;
    align-items: center;
    padding-left: 40px;
}

.color-red {
    color: #e74c3c;
}

.tips {
    color: #3498db;
    font-size: 16px;
}

.hide {
    display: none !important;
}

#recordListContent {
    width: 100%;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    font-family: 'FangZhengKaiTiJianTi', "楷体", KaiTi, "Kaiti SC", serif;
    height: calc(100vh - 290px);
    overflow: hidden;
    position: relative;
    overflow-y: auto;
}
html.is-mac #recordListContent {
    max-height: calc(100vh - 320px) !important;
}
/* 1. Chrome/Safari/Edge 等 Webkit 内核浏览器 */
.main-all-happy #recordListContent::-webkit-scrollbar {
    width: 6px;
    /* 滚动条宽度6px */
    height: 6px;
}

/* 滚动条轨道 */
.main-all-happy #recordListContent::-webkit-scrollbar-track {
    background: #FFFAFA;
    /* 浅红底，匹配账本背景 */
    border-radius: 3px;
    /* 圆角，和宽度匹配 */
}

/* 滚动条滑块 */
.main-all-happy #recordListContent::-webkit-scrollbar-thumb {
    background: #D81F26;
    /* 主红色，匹配喜庆风 */
    border-radius: 3px;
    /* 圆角，更圆润 */
    transition: background 0.2s ease;
}

/* 滑块hover效果 */
.main-all-happy #recordListContent::-webkit-scrollbar-thumb:hover {
    background: #8B0000;
    /* 暗红hover，增加交互 */
}

/* 2. Firefox 浏览器（适配方式） */
.main-all-happy #recordListContent {
    scrollbar-width: thin;
    /* 窄滚动条 */
    scrollbar-color: #D81F26 #FFFAFA;
    /* 滑块颜色 轨道颜色 */
}

/* 3. IE/Edge 旧版本（兜底兼容，已基本淘汰） */
.main-all-happy #recordListContent {
    -ms-overflow-style: -ms-autohiding-scrollbar;
    /* 自动隐藏滚动条 */
    scrollbar-width: 6px;
}

/* 打赏和全屏按钮容器 */
.reward-fullscreen-container {
    display: flex;
    gap: 10px;
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 999;
    align-items: center;
    justify-content: flex-start;
}

/* 打赏按钮 */
.reward-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #D81F26;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 5px 15px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.reward-btn:hover {
    background-color: #8B0000;
}

/* 全屏按钮 */
.fullscreen-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #D81F26;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 5px 15px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.fullscreen-btn:hover {
    background-color: #8B0000;
}

/* 奠事风格按钮颜色 */
.main-all-funeral .reward-btn {
    background-color: #666666;
}

.main-all-funeral .reward-btn:hover {
    background-color: #444444;
}

.main-all-funeral .fullscreen-btn {
    background-color: #888888;
}

.main-all-funeral .fullscreen-btn:hover {
    background-color: #666666;
}

/* Emoji 样式 */
.emoji {
    font-size: 20px;
    line-height: 1;
}

/* 奠事风格核心样式（对应 .main-all-happy） */
.main-all-funeral {
    /* 基础背景：浅灰白+暗纹，替代喜庆的红金底 */
    background: #F5F5F5 url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23333333' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: #333333;
    font-family: "SimHei", "Microsoft Yahei", "STSong", serif;
}

/* 奠事风格 - 全局按钮样式（替代喜庆红） */
.main-all-funeral .main-btn {
    background: linear-gradient(135deg, #666666, #444444);
    color: #FFFFFF;
    border: 2px solid #999999;
    box-shadow: 0 4px 0 #333333;
}

.main-all-funeral .main-btn:hover {
    background: linear-gradient(135deg, #777777, #555555);
    box-shadow: 0 6px 0 #333333;
}

.main-all-funeral .main-btn:active {
    box-shadow: 0 2px 0 #333333;
}



.main-all-funeral .modal-title {
    color: #222222;
}

.main-all-funeral .modal-label {
    color: #444444;
}

.main-all-funeral .underline-input {
    border-bottom: 4px solid #444444;
    color: #444444;
}

.main-all-funeral .uppercase-display {
    color: #444444;
    border-bottom: 4px solid #444444;
}

.main-all-funeral .modal-payment-item span {
    color: #444444;
}

/* 确保奠事风格下支付方式水平排列 */
.main-all-funeral .modal-payment {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    margin-top: 20px;
    margin-bottom: 40px;
    padding-left: 10px;
}

.main-all-funeral .confirm-btn {
    background: #444444;
    color: #FFFFFF;
    border-color: #666666;
}

.main-all-funeral .confirm-btn:hover {
    background: #555555;
}

.main-all-funeral .cancel-btn {
    background: #F8F8F8;
    color: #444444;
    border-color: #999999;
}

.main-all-funeral .cancel-btn:hover {
    background: #F0F0F0;
}

/* 奠事风格 - 支付方式选项（替代喜庆红选中态） */
.main-all-funeral .modal-payment-item {
    border-color: #DDDDDD;
    color: #444444;
}

.main-all-funeral .modal-payment-item.active {
    border-color: #666666;
    background-color: #F8F8F8;
    color: #222222;
}

.main-all-funeral .modal-payment-item:hover {
    border-color: #444444;
    background-color: #F0F0F0;
}

/* 奠事风格 - 账本标题/副标题 */
.main-all-funeral .main-title {
    color: #222222;
    text-shadow: 2px 2px 0 #E0E0E0, 4px 4px 0 rgba(0, 0, 0, 0.1);
}
.main-all-funeral .main-title::before,
.main-all-funeral .main-title::after {
    content: "◆";
    color: #666666;
    font-size: 36px;
    margin: 0 20px;
}

.main-all-funeral .subtitle {
    color: #555555;
}

/* 奠事风格 - 记录列表样式 */
.main-all-funeral .record-header {
    background: linear-gradient(90deg, #444444, #666666);
    color: #FFFFFF;
    border-bottom: 4px solid #999999;
}

.main-all-funeral .record-item {
    border-bottom: 1px solid #DDDDDD;
}

.main-all-funeral .record-item:nth-child(even) {
    background-color: #F8F8F8;
    /* 浅灰奇偶行区分 */
}

.main-all-funeral .record-item:hover {
    background-color: #F0F0F0;
}

/* 奠事风格 - 金额样式（替代喜庆红） */
.main-all-funeral .amount-text {
    color: #222222;
}

.main-all-funeral .uppercase-text {
    color: #555555;
}

/* 奠事风格 - 统计卡片样式 */
.main-all-funeral .stat-card {
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.main-all-funeral .stat-label {
    color: #555555;
}

.main-all-funeral .stat-label.color-red {
    color: #222222;
    /* 深灰替代红色 */
}

.main-all-funeral .stat-value {
    color: #333333;
}
.main-all-funeral .name-search-input::placeholder {
    color: #888888;
}

/* 奠事风格 - 备注弹窗样式 */
.main-all-funeral .remark-pop {
    background: #FFFFFF;
    border: 2px solid #666666;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-all-funeral .remark-input {
    border-color: #999999;
    color: #333333;
}

.main-all-funeral .remark-confirm-btn {
    background: #444444;
    color: #FFFFFF;
    border-color: #666666;
}

/* 奠事风格 - 导出成功弹窗 */
.main-all-funeral .success-modal-content {
    background: #FFFFFF;
    border: 2px solid #666666;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.main-all-funeral .success-title {
    color: #222222;
}

.main-all-funeral .success-desc {
    color: #555555;
}

.main-all-funeral .success-confirm-btn {
    background: #444444;
    color: #FFFFFF;
    border-color: #666666;
}

/* 奠事风格 - 全屏输入样式 */
.main-all-funeral .fullscreen-input-wrapper {
    background: #000000;
}

.main-all-funeral .fullscreen-input {
    border-color: #666666;
    color: #fff;
    border-bottom: 15px solid #Fff;
    caret-color: #fff;
}

.main-all-funeral .fullscreen-input-label,
.main-all-funeral .fullscreen-name-display,
.main-all-funeral .fullscreen-input-tip {
    color: #FFFFFF;
}



/* 奠事风格 - 滚动条样式（匹配整体色调） */
.main-all-funeral ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.main-all-funeral ::-webkit-scrollbar-track {
    background: #F8F8F8;
    border-radius: 3px;
}

.main-all-funeral ::-webkit-scrollbar-thumb {
    background: #666666;
    border-radius: 3px;
}

.main-all-funeral ::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

.main-all-funeral {
    scrollbar-width: thin;
    scrollbar-color: #666666 #F8F8F8;
}

#emptyRow {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    font-size: 26px;
    color: #bdc3c7;
    min-height: 120px;
    align-items: center;
}

#emptyRow>div {
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#emptyRow .col-name {
    width: 40%;
    padding-left: 40px !important;
}

#emptyRow .col-amount {
    width: 35%;
    padding-left: 40px !important;
}

#emptyRow .col-method {
    width: 25%;
}

/* 账本管理弹窗整体样式 */
#ledgerModal .modal {
    width: 90%;
    max-width: 800px;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #f0f0f0;
}

/* 账本弹窗标题栏 */
#ledgerModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

#ledgerModal .modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

#ledgerModal .ledger-modal-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: flex-end;
}

/* 账本列表容器 */
#ledgerList {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 25px;
    padding: 10px;
}

/* 账本项样式（大气版） */
.ledger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    cursor: default;
    transition: all 0.2s ease;
    position: relative;
    overflow: visible;
    cursor: pointer;
}

.ledger-item {
    transition: all 0.3s ease;
}

.ledger-item:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ledger-item.active {
    background: linear-gradient(135deg, #edfff6, #f0fdf4);
    border-color: #43e97b;
    box-shadow: 0 4px 16px rgba(67, 233, 123, 0.2);
    padding-left: 30px;
}

.ledger-item.active::before {
    content: '✓';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    background: #27ae60;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.ledger-item.active .ledger-name {
    color: #059669;
    font-weight: 700;
}

.ledger-item.active .ledger-switch{
    background: linear-gradient(135deg, #27ae60, #1e854a);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
    transform: scale(1.05);
}

/* 账本名称区域 */
.ledger-name {
    flex: 1;
    font-size: 18px;
    color: #1f2937;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ledger-name small {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
    margin-top: 4px;
    display: block;
}

/* 同步状态区域（人情管理：状态 + 云存储有效期 + 备份提示同一行，过长横向滚动） */
.ledger-sync-status.ledger-sync-status--compact {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px 6px;
    margin: 8px 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ledger-sync-status--compact .sync-status-tag {
    flex-shrink: 0;
}

.ledger-sync-inline-sep {
    color: #94a3b8;
    font-weight: 700;
    flex-shrink: 0;
}

.ledger-sync-expiry-inline {
    font-size: 12px;
    color: #475569;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.ledger-sync-backup-inline {
    font-size: 11px;
    color: #b45309;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 同步状态标签 */
.sync-status-tag {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px dashed rgba(3, 105, 161, 0.45);
}

/* 已同步状态 */
.sync-status-synced {
    background-color: rgba(22, 163, 74, 0.18);
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.45);
}

/* 未同步状态 */
.sync-status-unsynced {
    background-color: rgba(153, 153, 153, 0.2);
    color: #999;
}

/* 最后同步时间 */
.sync-time {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

.ledger-cloud-code {
    display: inline-flex;
    align-items: center;
    padding: 1px 5px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #0369a1;
    background: rgba(14, 165, 233, 0.12);
    border: 1px dashed rgba(3, 105, 161, 0.45);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.ledger-cloud-code:hover {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(3, 105, 161, 0.7);
}

.ledger-cloud-code.copied {
    color: #047857;
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(4, 120, 87, 0.45);
}

.ledger-item.active .ledger-name small {
    color: #059669;
}

/* 账本操作按钮组 */
.ledger-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 切换账本按钮 */
.ledger-switch {
    padding: 10px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.ledger-item.active .ledger-switch {
    cursor: default;
}

.ledger-switch:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(5, 150, 105, 0.3);
}

/* 删除账本按钮 */
.ledger-edit {
    padding: 10px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ledger-edit:hover {
    background: #1976D2;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.ledger-delete {
    padding: 10px;
    background: #bdbdbdee;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ledger-delete:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.ledger-item.active .ledger-delete {
    background: #ef4444;
    cursor: pointer;
    opacity: 1;
}

.ledger-item.active .ledger-delete:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

/* 导出账本按钮 */
.ledger-export {
    padding: 10px;
    background: #FF9800;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0 5px;
}

.ledger-export:hover {
    background: #F57C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

/* 人情管理：协作链接（与导出区分色，仅图标） */
.ledger-invite-link-btn {
    padding: 10px 12px;
    min-width: 44px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.ledger-invite-link-btn:hover {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 148, 136, 0.35);
}

.main-all-funeral .ledger-invite-link-btn {
    background: #5b6b8a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.main-all-funeral .ledger-invite-link-btn:hover {
    background: #6b7c9c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.22);
}

/* 空账本提示 */
.empty-tip {
    text-align: center;
    color: #9ca3af;
    font-size: 20px;
    padding: 60px 20px;
}

/* 新建账本按钮 */
#createLedgerBtn {
    width: 720px;
    padding: 16px;
    background: linear-gradient(135deg, #D32F2F, #C62828);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.3);
    margin-left: 10px;
    border: 2px solid #FFD700;
}

#createLedgerBtn:hover {
    background: linear-gradient(135deg, #C62828, #B71C1C);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
    border-color: #FFED4E;
}

#createLedgerBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

/* 账本创建弹窗样式（配套大气版） */
#ledgerInitModal .modal {
    width: 90%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #f0f0f0;
}

#ledgerInitModal .modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

#ledgerTitle,
#ledgerRemark {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.2s ease;
}

#ledgerTitle:focus,
#ledgerRemark:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#ledgerTitle {
    margin-bottom: 15px;
}

#ledgerRemark {
    min-height: 100px;
    resize: vertical;
    margin-bottom: 20px;
}

#confirmLedgerInit {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#confirmLedgerInit:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

#cancelLedgerInit {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#cancelLedgerInit:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
}
/* 账本切换过渡容器 */
#recordListContent {
    transition: all 0.3s ease-in-out;
    /* 过渡动画 */
}

/* 切换中的列表区域（蒙层 + 轻微压暗，不用 opacity 控制提示层） */
.record-list-loading {
    pointer-events: none;
    filter: saturate(0.92) brightness(0.96);
    transition: filter 0.25s ease;
}
.record-list-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.42);
    pointer-events: none;
}

/* 账本切换提示：默认隐藏，.show 用 display:flex（不用 opacity） */
.ledger-switch-tip {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.ledger-switch-tip.show {
    display: flex;
}
.ledger-switch-tip__panel {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: min(420px, 92vw);
    padding: 18px 26px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.ledger-switch-tip--busy .ledger-switch-tip__panel {
    background: linear-gradient(145deg, #1e3a5f 0%, #0f2744 100%);
    color: #e8f4ff;
}
.ledger-switch-tip--done .ledger-switch-tip__panel {
    background: linear-gradient(145deg, #0d9488 0%, #0f766e 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}
.ledger-switch-tip__spinner {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-top-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    animation: ledger-switch-spin 0.7s linear infinite;
}
.ledger-switch-tip--done .ledger-switch-tip__spinner {
    display: none;
}
.ledger-switch-tip__text {
    text-align: left;
}

@keyframes ledger-switch-spin {
    to {
        transform: rotate(360deg);
    }
}
#noLedgerTip.no-ledger-tip-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    min-width: 280px;
    max-width: 92vw;
    padding: 28px 32px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
    text-align: center;
    box-sizing: border-box;
    min-width: 450px;
}
#noLedgerTip .no-ledger-tip-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}
#noLedgerTip .no-ledger-tip-desc {
    margin: 0 0 22px;
    font-size: 15px;
    color: #888;
    line-height: 1.5;
}
#noLedgerTip .no-ledger-tip-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#noLedgerTip .no-ledger-tip-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    box-sizing: border-box;
}
#noLedgerTip .no-ledger-tip-btn-primary {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
}
#noLedgerTip .no-ledger-tip-btn-primary:hover {
    filter: brightness(1.05);
}
#noLedgerTip .no-ledger-tip-btn-secondary {
    background: #f5f5f5;
    color: #444;
    border: 1px solid #ddd;
}
#noLedgerTip .no-ledger-tip-btn-secondary:hover {
    background: #eee;
}
#noLedgerTip .no-ledger-tip-btn-accent {
    background: #fff;
    color: #c62828;
    border: 2px solid #e53935;
}
#noLedgerTip .no-ledger-tip-btn-accent:hover {
    background: #fff5f5;
}

/* 导出成功弹窗全局遮罩 */
.export-success-modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* 存储空间状态条 */
.storage-status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 999;
    cursor: pointer;
}

.storage-status-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.storage-status-left {
    display: flex;
    align-items: center;
    flex: 1;
    background: #fff;
    padding: 5px 18px;
    border-radius: 18px;
}

.storage-status-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-right: 10px;
}

.storage-status-text #storageRemainingRecordsDisplay {
    font-weight: 600;
    color: #D32F2F;
    margin: 0 5px;
}

.storage-status-progress {
    flex: 1;
    height: 6px;
    background-color: #0000005c;
    border-radius: 3px;
    margin: 0 10px;
    overflow: hidden;
}

.renqing-shengyu {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

/* 手机版二维码弹窗（pc 菜单） */
.mobile-qr-modal-body {
    text-align: center;
}
.mobile-qr-modal-tip {
    margin: 0 0 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}
.mobile-qr-host {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    margin: 8px auto;
    line-height: 0;
    width: 100%;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
}
.mobile-qr-host table {
    margin: 0 auto;
}
.mobile-qr-host img {
    display: block;
    margin: 0 auto;
}
.mobile-qr-url-text {
    margin: 14px 0 0;
    font-size: 13px;
    word-break: break-all;
    color: #333;
    text-align: left;
}
.mobile-qr-fallback {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.cloud-collab-method-selector {
    margin-bottom: 12px;
}
.cloud-collab-method-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}
.cloud-collab-method-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cloud-collab-method-btn {
    width: 100%;
    text-align: left;
    padding: 9px 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 8px;
    color: #4b5563;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cloud-collab-method-btn.is-active {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #166534;
}
.cloud-collab-method-btn.is-active::after {
    content: "已选择";
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
}
.cloud-collab-panel {
    margin-bottom: 12px;
}
.cloud-collab-tip {
    margin: 0 0 8px;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}
.collaborate-share-success {
    margin: 0 0 8px;
    color: #16a34a;
    font-size: 13px;
}

#storageCodeValue {
    font-weight: bold;
    margin-left: 4px;
    cursor: pointer;
    color: #007bff;
}

#storageCodeValue:hover {
    color: #4CAF50;
}

.storage-status-progress-bar {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.main-all-funeral .storage-status-text {
    color: #999;
}

.main-all-funeral .storage-status-text #storageRemainingRecordsDisplay {
    color: #999;
}

.main-all-funeral .storage-status-progress {
    background-color: #444;
}

.main-all-funeral .storage-status-progress-bar {
    background-color: #666;
}

.main-all-funeral .ledger-link-btn {
    color: #444;
    background: #f0f0f0;
    border: 1px solid #9a9a9a;
}

.main-all-funeral .ledger-link-btn:hover {
    background: #e8e8e8;
    border-color: #707070;
}

/* 弹窗内容容器 */
.success-modal-content {
    width: 85%;
    max-width: 550px;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease-in-out;
}

/* 成功图标 */
.success-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

/* 标题 */
.success-title {
    font-size: 32px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
    text-align: center;
}

/* 描述文本 */
.success-desc {
    font-size: 18px;
    color: #df0606;
    margin-bottom: 30px;
    text-align: left;
        line-height: 1.8;
}

/* 使用技巧弹窗：正文用常规色，避免与导出警告混用同一套红色 */
#tipsModal .tips-modal-desc,
#tipsModal .success-desc.tips-modal-desc {
    color: #374151;
}

#tipsModal .tips-modal-desc p {
    color: #4b5563;
    margin-bottom: 12px;
}

#tipsModal .tips-modal-desc strong {
    color: #1f2937;
    font-weight: 700;
}

.main-all-funeral #tipsModal .tips-modal-desc,
.main-all-funeral #tipsModal .success-desc.tips-modal-desc {
    color: #444444;
}

.main-all-funeral #tipsModal .tips-modal-desc p {
    color: #555555;
}

.main-all-funeral #tipsModal .tips-modal-desc strong {
    color: #222222;
}

/* 确认按钮 */
.success-confirm-btn {
    width: 100%;
    height: 60px;
    background: #07C160;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    flex: 1;
}

.success-confirm-btn:hover {
    background: #06b058;
}

.success-confirm-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* 弹窗淡入动画 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 存储空间管理样式 */
.storage-item {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.storage-label {
    font-weight: 500;
    color: #333;
}

.storage-value {
    font-weight: 600;
    color: #D32F2F;
}

.storage-progress {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.storage-progress-bar {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.storage-tips {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.storage-tips p {
    margin: 8px 0;
}

/* 奠事风格的存储空间管理样式 */
.main-all-funeral .storage-label {
    color: #333;
}

.main-all-funeral .storage-value {
    color: #666;
}

.main-all-funeral .storage-progress-bar {
    background-color: #666;
}

.main-all-funeral .storage-tips {
    color: #666;
    border-top-color: #333;
}

/* 通用提示弹窗 */
.alert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.alert-modal {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-in-out;
}

.alert-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #D81F26;
    margin-bottom: 20px;
}

.alert-modal-content {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.5;
}

.alert-modal-buttons {
    display: flex;
    justify-content: center;
}

.alert-modal-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #D81F26, #9E0000);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #FFD700;
}

.alert-modal-btn:hover {
    background: linear-gradient(135deg, #9E0000, #8B0000);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 31, 38, 0.3);
}

#ledgerLockModal {
    z-index: 100020;
    display: none;
    align-items: center;
    justify-content: center;
}
.ledger-lock-modal {
    max-width: 520px;
    width: 92%;
    text-align: left;
}
.ledger-lock-modal .modal-title {
    text-align: center;
    margin-bottom: 12px;
}
.ledger-lock-modal-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.55;
    margin: 0 0 16px;
}
.ledger-lock-input {
    letter-spacing: 6px;
    font-size: 22px;
    text-align: center;
    margin-top: 8px;
}
.ledger-pin-block {
    margin-top: 16px;
}
.ledger-pin-block-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    text-align: left;
}
.ledger-pin-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.ledger-pin-box {
    flex: 1;
    min-width: 0;
    max-width: 58px;
    height: 58px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    border: 1px solid #e0d6cc;
    border-radius: 10px;
    background: #fafafa;
    color: #222;
    outline: none;
    caret-color: #c41e3a;
}
.ledger-pin-box:focus {
    background: #fff;
    border-color: #c41e3a;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.16);
}
.ledger-pin-box.is-filled {
    background: #fff;
    border-color: #c41e3a;
}
.main-all-funeral .ledger-pin-box {
    caret-color: #333;
}
.main-all-funeral .ledger-pin-box:focus,
.main-all-funeral .ledger-pin-box.is-filled {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}
.ledger-lock-create-fields {
    display: none;
    text-align: left;
}
.custom-title-modal .modal-buttons {
    flex-wrap: wrap;
}
.ledger-lock-create-tip {
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    background: #fff9f5;
    border-left: 3px solid #c41e3a;
    padding: 10px 12px;
    border-radius: 8px;
    margin: 8px 0 4px;
}
.ledger-lock-create-status {
    min-height: 24px;
    margin: 10px 0 2px;
    line-height: 24px;
    font-size: 14px;
    text-align: left;
}
.ledger-lock-create-status .ledger-lock-error {
    min-width: 0;
}
.ledger-lock-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 24px;
    margin: 12px 0 8px;
    line-height: 24px;
    font-size: 14px;
}
.ledger-lock-error {
    flex: 0 1 auto;
    min-width: 4.5em;
    color: #c41e3a;
    margin: 0;
    visibility: hidden;
}
.ledger-lock-error.is-on {
    visibility: visible;
}
.ledger-lock-error.is-busy {
    color: #888;
}
.ledger-lock-hint-line {
    flex: 1 1 auto;
    margin: 0;
    text-align: right;
    color: #666;
    visibility: hidden;
}
.ledger-lock-hint-line.is-on {
    visibility: visible;
}
.ledger-lock-modal-buttons {
    justify-content: center;
}
.ledger-lock-modal-buttons .confirm-btn[hidden] {
    display: none !important;
}
.ledger-lock-modal-buttons .cancel-btn {
    flex: 0 1 auto;
    min-width: 180px;
    height: 52px;
    font-size: 20px;
}
.custom-title-modal {
    max-height: 92vh;
    overflow-y: auto;
}
/* 风格选择容器（和支付方式布局一致） */
.modal-style-select {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* 风格选项（和支付方式按钮样式完全一致） */
.style-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    background-color: #fff;
    transition: all 0.2s ease;
    position: relative;
    min-width: 180px;
}

/* 选中状态（和支付方式 active 样式一致） */
.style-item.active {
    border-color: #D81F26;
    background-color: #FFF5F5;
    color: #D81F26;
    font-weight: bold;
}

/* 隐藏原生单选框（和支付方式处理一致） */
.style-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* hover 效果（和支付方式一致） */
.style-item:hover {
    border-color: #B71C1C;
    background-color: #FFEbee;
}

/* 聚焦样式（适配键盘操作，和支付方式一致） */
.style-item:focus-within {
    outline: 2px solid #D81F26;
    outline-offset: 2px;
}

/* 账本列表风格标识样式（可选，美化显示） */
.ledger-name [style-text] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 8px;
    font-weight: normal;
}

.ledger-name [style-text="喜事"] {
    background-color: #FFF5F5;
    color: #D81F26;
    border: 1px solid #FADBD8;
}

.ledger-name [style-text="奠事"] {
    background-color: #F5F5F5;
    color: #424242;
    border: 1px solid #E0E0E0;
}

/* 备份选项样式 */
.backup-options {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9fafb;
    border-radius: 8px;
}

.backup-options h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 10px;
}

.backup-option {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color:#1e40af;
}

.backup-option input[type="radio"] {
    margin-right: 8px;
}

.ledger-selection {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    max-height: 200px;
    overflow-y: auto;
}

.ledger-selection h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #374151;
}

.ledger-checkbox-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color:#1f2937;
}

.ledger-checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.ledger-checkbox-item label {
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
}

/* 滚动条样式 */
.ledger-selection::-webkit-scrollbar {
    width: 6px;
}

.ledger-selection::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ledger-selection::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.ledger-selection::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 云同步成功提示 */
.sync-success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    animation: fadeInOut 3s ease-in-out;
}

.sync-success-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sync-success-icon {
    font-size: 18px;
}

.sync-success-text {
    font-size: 14px;
    font-weight: 500;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(20px);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
    90% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

/* 账本链接（状态条入口，含默认展示的存储码） */
.storage-status-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 12px;
    margin-left: 12px;
    flex: 0 1 auto;
}

.current-ledger-sync-strip {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    max-width: min(360px, 40vw);
    font-size: 11px;
    color: #334155;
    background-color: rgba(255, 255, 255, 0.92);
    padding: 5px 11px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.08);
    line-height: 1.35;
}

.current-ledger-sync-strip__status {
    font-weight: 600;
    white-space: nowrap;
}

.current-ledger-sync-strip--synced .current-ledger-sync-strip__status {
    color: #15803d;
}

.main-all-funeral .current-ledger-sync-strip--synced .current-ledger-sync-strip__status {
    color: #166534;
}

.current-ledger-sync-strip__sep {
    color: #94a3b8;
    font-weight: 600;
}

.current-ledger-sync-strip__time {
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

.main-all-funeral .current-ledger-sync-strip {
    background: #f8f8f8;
    color: #444;
    border-color: #ddd;
}

.main-all-funeral .current-ledger-sync-strip__time {
    color: #666;
}

.cloud-ledger-link {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    max-width: min(520px, 46vw);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    color: #333;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    margin-left: 0;
    user-select: none;
}

.cloud-ledger-link__sep {
    color: #94a3b8;
    font-weight: 600;
}

.cloud-ledger-link__code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11px;
    font-weight: 600;
    color: #0369a1;
    background: rgba(14, 165, 233, 0.12);
    padding: 2px 6px;
    border-radius: 6px;
    word-break: break-all;
    line-height: 1.35;
}

.cloud-collab-link-label {
    margin: 10px 0 4px;
}

.cloud-ledger-link:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cloud-ledger-link.ledger-link-bar--disabled,
.cloud-ledger-link-mobile.ledger-link-bar--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.cloud-ledger-link.ledger-link-bar--disabled:hover,
.cloud-ledger-link-mobile.ledger-link-bar--disabled:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


/* 云恢复数据按钮 */
.cloud-restore-btn {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #0ea5e9;
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    cursor: pointer;
    margin-right: 0;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cloud-restore-btn:hover {
    background: linear-gradient(135deg, #0284c7, #075985);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.cloud-restore-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.28);
}

.cloud-restore-btn:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.main-all-funeral .cloud-restore-btn {
    border-color: #7a7a7a;
    background: linear-gradient(135deg, #666666, #4b4b4b);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.main-all-funeral .cloud-restore-btn:hover {
    background: linear-gradient(135deg, #737373, #525252);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

/* 账本链接弹窗 */
.cloud-code-info {
    margin: 20px 0;
}

.cloud-code-info p {
    margin: 10px 0;
    line-height: 1.5;
}

/* 多人协作等：单独展示的链接块 */
.modal-ledger-link-url {
    font-size: 13px;
    font-weight: 500;
    color: #0369a1;
    background-color: #f0f9ff;
    padding: 10px 12px;
    border-radius: 8px;
    word-break: break-all;
    line-height: 1.45;
    border: 1px solid #bae6fd;
}

/* 账本链接弹窗：链接与「复制链接」嵌套在同一蓝框内，单行不换行（过长横向滚动） */
.modal-ledger-link-inline {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    margin: 6px 0 14px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #0369a1;
    background-color: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #bae6fd;
    line-height: 1.35;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.modal-ledger-link-url-text {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.modal-ledger-link-inline .ledger-link-modal-copy {
    flex: 0 0 auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1.2;
}

.modal-footer--single {
    justify-content: flex-end;
}

.modal-footer--single .btn-secondary {
    flex: 0 0 auto;
    min-width: 100px;
}

.ledger-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #0369a1;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(3, 105, 161, 0.35);
    cursor: pointer;
    user-select: none;
}

.ledger-link-btn:hover {
    background: rgba(14, 165, 233, 0.22);
}

.ledger-sync-expiry {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    margin-left: 4px;
    white-space: nowrap;
}

/* 云恢复数据弹窗 */
.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    margin: 10px 0;
}

.form-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.error-message {
    margin-top: 5px;
}
.cloud-restore-preview {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #f3d2d2;
    background: #fff7f7;
}
.cloud-restore-preview-title {
    font-size: 14px;
    font-weight: 700;
    color: #a30000;
    margin-bottom: 8px;
}
.cloud-restore-preview p {
    margin: 6px 0;
    color: #333;
}
.cloud-restore-preview-tip {
    margin-top: 8px;
    color: #7a0000;
    font-size: 12px;
}
.color-red {
    color: #a30000!important;
}