    body { background: #f2f2f2; }
    .layui-layout-admin .layui-logo {
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 1px;
    }
    .admin-main {
        padding: 20px;
        min-height: calc(100vh - 60px);
        position: relative;
        z-index: 1;
    }
    .layui-body .layui-btn { cursor: pointer; }
    .admin-card {
        background: #fff;
        border-radius: 6px;
        padding: 20px;
        box-shadow: 0 1px 4px rgba(0,0,0,.06);
    }
    .admin-card-title {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f0f0f0;
    }
    .admin-toolbar { margin-bottom: 16px; }
    .msg-row {
        border: 1px solid #e8e8e8;
        border-radius: 6px;
        padding: 14px;
        margin-bottom: 12px;
        background: #fafafa;
    }
    .msg-row:hover { border-color: #16baaa; }
    /* 头像预览：固定小正方形，非 100% 宽 */
    .admin-img-preview-box {
        flex: none;
        width: 48px;
        height: 48px;
        margin-top: 4px;
        overflow: hidden;
        border-radius: 6px;
        border: 1px solid #e8e8e8;
        background: #f5f5f5;
    }
    .admin-img-preview {
        display: block;
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
        object-fit: cover;
        border-radius: 0;
        border: none;
        background: transparent;
    }
    .admin-img-preview.is-empty,
    .admin-img-preview.is-error {
        opacity: 0.35;
    }
    /* 分享图预览：白底图需边框/棋盘格才能看清 */
    .admin-share-field {
        align-items: flex-start;
    }
    .admin-share-tip {
        flex: 1 1 auto;
        font-size: 13px;
        color: #999;
        line-height: 48px;
    }
    .admin-share-preview-box {
        background-color: #fff;
        background-image:
            linear-gradient(45deg, #e8e8e8 25%, transparent 25%),
            linear-gradient(-45deg, #e8e8e8 25%, transparent 25%),
            linear-gradient(45deg, transparent 75%, #e8e8e8 75%),
            linear-gradient(-45deg, transparent 75%, #e8e8e8 75%);
        background-size: 8px 8px;
        background-position: 0 0, 0 4px, 4px -4px, -4px 0;
        border: 1px solid #ccc;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    }
    .admin-share-preview {
        object-fit: contain;
        background: transparent;
    }
    .share-link-input { font-size: 12px; height: 32px; }
    .share-link-actions { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
    .qr-popup { text-align: center; padding: 8px 12px 16px; }
    .qr-popup-canvas { display: inline-block; padding: 12px; background: #fff; border: 1px solid #eee; border-radius: 4px; }
    .qr-popup-canvas img { display: block; }
    .qr-popup-url { font-size: 12px; color: #999; word-break: break-all; margin: 12px 0; line-height: 1.5; }
    .login-wrap {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    }
    .login-card {
        width: 400px;
        background: #fff;
        border-radius: 10px;
        padding: 40px 36px;
        box-shadow: 0 8px 32px rgba(0,0,0,.2);
    }
    .login-card h1 {
        text-align: center;
        font-size: 22px;
        margin-bottom: 8px;
        color: #333;
    }
    .login-card .sub {
        text-align: center;
        color: #999;
        font-size: 13px;
        margin-bottom: 28px;
    }

    /* 移动端侧边栏遮罩 */
    .admin-side-mask {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1000;
    }
    .layui-layout-admin.admin-side-open .admin-side-mask {
        display: block;
    }

    /* 移动端菜单按钮（默认隐藏，小屏显示） */
    .admin-menu-toggle {
        display: none;
        position: absolute;
        left: 12px;
        top: 0;
        height: 60px;
        line-height: 60px;
        padding: 0 8px;
        color: #fff;
        cursor: pointer;
        font-size: 20px;
        z-index: 2;
    }
    .admin-menu-toggle:active {
        opacity: 0.75;
    }

    .admin-pagination {
        margin-top: 16px;
        overflow-x: auto;
    }
    .admin-row-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    /* 按钮组：胶囊主按钮 + 圆形图标按钮 */
    .admin-btn-group {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    .admin-btn-pill {
        width: auto !important;
        min-width: auto !important;
        flex: none !important;
        height: 32px;
        line-height: 32px;
        padding: 0 14px !important;
        border-radius: 16px !important;
        font-size: 13px;
        margin: 0 !important;
    }
    .admin-btn-pill.layui-btn-xs {
        height: 28px;
        line-height: 28px;
        padding: 0 12px !important;
        font-size: 12px;
        border-radius: 14px !important;
    }
    .admin-btn-pill.layui-btn-sm {
        height: 30px;
        line-height: 30px;
        padding: 0 13px !important;
    }
    .admin-btn-primary.admin-btn-pill {
        padding: 0 16px !important;
    }
    .admin-btn-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        flex: none !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
    }
    .admin-btn-icon.layui-btn-xs {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        line-height: 30px !important;
    }
    .admin-btn-icon .layui-icon {
        font-size: 16px;
        margin: 0;
    }

    /* 表单上传行 */
    .admin-field-upload {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    .admin-field-upload .admin-input-flex {
        flex: 1 1 200px;
        min-width: 0;
        max-width: 400px;
    }
    .admin-field-upload .admin-img-preview-box {
        flex-basis: auto;
    }
    .admin-form-actions {
        margin-left: 0 !important;
    }

    /* 消息行布局 */
    .msg-row-fields {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    .msg-row-fields .layui-input {
        flex: 1 1 auto;
        min-width: 0;
    }
    .msg-row-fields input[type="date"] {
        flex: 0 0 140px;
        max-width: 160px;
    }
    .msg-row-fields input[type="time"] {
        flex: 0 0 110px;
        max-width: 120px;
    }
    .msg-row-fields .msg-image-input {
        flex: 1 1 180px;
        min-width: 120px;
    }
    .msg-row-actions {
        flex: none;
    }
    .msg-content-input {
        margin-top: 10px;
    }

    /* ========== 手机端适配 ========== */
    @media screen and (max-width: 768px) {
        .admin-menu-toggle {
            display: block;
        }
        .layui-layout-admin .layui-side {
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            z-index: 1001;
            transform: translateX(-100%);
            transition: transform 0.28s ease;
            box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
        }
        .layui-layout-admin.admin-side-open .layui-side {
            transform: translateX(0);
        }
        .layui-layout-admin .layui-body {
            left: 0 !important;
        }
        .layui-layout-admin .layui-header .layui-logo {
            left: 48px;
            width: auto;
            padding: 0 12px;
            font-size: 15px;
        }
        .layui-layout-admin .layui-header .layui-nav {
            padding-right: 8px;
        }
        .admin-main {
            padding: 12px;
            min-height: calc(100vh - 60px);
        }
        .admin-card {
            padding: 14px;
            border-radius: 8px;
        }
        .admin-card-title {
            font-size: 16px;
            margin-bottom: 12px;
            padding-bottom: 10px;
        }
        /* 列表：表格转卡片 */
        .admin-table-wrap {
            margin: 0 -4px;
        }
        .admin-table-responsive thead {
            display: none;
        }
        .admin-table-responsive,
        .admin-table-responsive tbody,
        .admin-table-responsive tr,
        .admin-table-responsive td {
            display: block;
            width: 100%;
        }
        .admin-table-responsive tr {
            margin-bottom: 12px;
            padding: 12px;
            background: #fafafa;
            border: 1px solid #eee;
            border-radius: 8px;
            box-sizing: border-box;
        }
        .admin-table-responsive tr:hover {
            background: #fafafa;
        }
        .admin-table-responsive td {
            position: relative;
            padding: 8px 0 8px 88px;
            min-height: 36px;
            border: none;
            text-align: left;
            line-height: 1.5;
            box-sizing: border-box;
        }
        .admin-table-responsive td::before {
            content: attr(data-label);
            position: absolute;
            left: 0;
            top: 8px;
            width: 80px;
            font-weight: 600;
            color: #666;
            font-size: 13px;
        }
        .admin-table-responsive td[data-label="分享链接"] {
            padding-left: 0;
            padding-top: 28px;
        }
        .admin-table-responsive td[data-label="分享链接"]::before {
            top: 8px;
            left: 0;
        }
        .admin-table-responsive td[data-label="分享链接"] .share-link-input {
            width: 100%;
            font-size: 12px;
        }
        .admin-table-responsive td[data-label="分享链接"] .share-link-actions {
            margin-top: 8px;
        }
        .admin-table-responsive td[data-label="操作"] {
            padding-left: 0;
            padding-top: 28px;
            border-top: 1px dashed #e8e8e8;
            margin-top: 4px;
        }
        .admin-table-responsive td[data-label="操作"]::before {
            top: 10px;
        }
        .admin-table-responsive td[data-label="操作"] .admin-row-actions {
            justify-content: flex-start;
        }

        /* 分页 */
        .admin-pagination .layui-laypage {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 4px;
        }
        .admin-pagination .layui-laypage a,
        .admin-pagination .layui-laypage span {
            margin: 2px;
            padding: 0 10px;
            height: 32px;
            line-height: 32px;
            font-size: 13px;
        }

        /* 表单页 */
        .admin-form-card .layui-form-label {
            width: 100%;
            text-align: left;
            padding: 9px 0 4px;
            float: none;
        }
        .admin-form-card .layui-input-block {
            margin-left: 0;
        }
        .admin-form-card .admin-field-upload .admin-input-flex {
            flex: 1 1 100%;
            max-width: 100%;
        }
        .admin-form-card .msg-row-fields input[type="date"],
        .admin-form-card .msg-row-fields input[type="time"] {
            flex: 1 1 calc(50% - 4px);
            max-width: none;
        }
        .admin-form-card .msg-row-fields .msg-image-input {
            flex: 1 1 100%;
        }
        .admin-form-card .msg-row-actions {
            margin-left: auto;
        }

        /* 登录页 */
        .login-wrap {
            padding: 16px;
            align-items: flex-start;
            padding-top: 12vh;
        }
        .login-card {
            width: 100%;
            max-width: 400px;
            padding: 28px 20px;
        }
    }

    @media screen and (max-width: 480px) {
        .layui-layout-admin .layui-header .layui-logo {
            font-size: 14px;
            max-width: 140px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    }
