/* ============================================
   微信对话生成器 - 复刻 jxriyang.com 版样式
   ============================================ */

@font-face {
    font-family: 'SF Pro';
    font-style: normal;
    font-weight: 600;
    src: url(../fonts/sf-pro-text_semibold.woff2) format("woff2")
}
@font-face {
    font-family: 'SF Pro';
    font-style: normal;
    font-weight: 500;
    src: url(../fonts/sf-pro-text_medium.woff2) format("woff2")
}
@font-face {
    font-family: 'SF Pro';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/sf-pro-text_regular.woff2) format("woff2")
}

* { box-sizing: border-box; }
body, html {
    height: 100%;
    font-family: 'SF Pro', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f5f7f9;
    margin: 0;
    padding: 0;
}
a, a:active, a:focus, a:hover { text-decoration: none; }
ul, li { list-style: none; margin: 0; padding: 0; }

.wrapper { position: relative; height: 100%; }

/* ---------------- 页面标题栏 ---------------- */
#pageHeader {
    background: #3385ff;
    color: #fff;
    font-size: 20px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 10px;
}
#pageHeader .header-actions {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
}
#pageHeader .header-actions .btn {
    color: #fff;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 4px;
    font-size: 13px;
    padding: 5px 12px;
    cursor: pointer;
    line-height: 1.4;
}
#pageHeader .header-actions .btn:hover { background: rgba(255,255,255,.3); }
#pageHeader .header-actions .btn-primary { background: #ff9800; border-color: #ff9800; }
#pageHeader .header-actions .btn-primary:hover { background: #f57c00; }

/* ---------------- 公告栏 ---------------- */
.announce-bar {
    max-width: 1100px;
    margin: 0 auto 10px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #ad6800;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 14px;
}
.announce-bar .ann-item { padding: 2px 0; }

/* ---------------- 编辑区布局 ---------------- */
.edit-content {
    display: flex;
    justify-content: center;
    padding: 0 20px 60px;
}
.tab { flex: 1; max-width: 560px; margin-right: 20px; }
.tab-content { flex: 1; }

/* ---------------- 标签页（精简 zui） ---------------- */
.nav { display: flex; padding-left: 0; margin-bottom: 0; }
.nav-tabs {
    border-bottom: 2px solid #e5e9ec;
    background: #fff;
    border-radius: 4px 4px 0 0;
}
.nav-tabs > li { margin-bottom: -2px; }
.nav-tabs > li > a {
    display: block;
    padding: 10px 24px;
    color: #4a4f55;
    font-size: 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.nav-tabs > li.active > a {
    color: #3385ff;
    border-bottom-color: #3385ff;
    font-weight: 600;
}
.tab-content { background: #fff; border-radius: 0 0 4px 4px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---------------- 外观设置 ---------------- */
.view-setting { padding: 20px 16px; }
.view-setting2 { padding: 20px 0; }
.view-set-item {
    min-height: 50px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.view-set-item > span { width: 100px; font-size: 14px; color: #333; flex-shrink: 0; }
.view-setting2 .view-set-item > span { width: 120px; }
.view-set-item select { width: 76px; margin-right: 5px; }
.view-set-item input[type=number],
.view-set-item input[type=text] { width: 200px; margin-right: 5px; }
.view-set-item input[type=range] { width: 180px; }
.view-set-item .battery-val { margin-left: 8px; font-size: 14px; color: #333; min-width: 36px; }

.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #fff;
    border: 1px solid #d9dee3;
    border-radius: 3px;
    outline: none;
}
.form-control:focus { border-color: #3280fc; }
select.form-control { height: 34px; }

.my-radio {
    display: flex;
    align-items: center;
    margin-right: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}
.my-radio input { margin: 0 4px 0 0; }

/* 聊天背景选择器 */
a.a-phone-set-bg, a.a-phone-set-bg:active, a.a-phone-set-bg:focus {
    width: 98px;
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px #ccc dotted;
    color: #ccc;
    text-decoration: none;
    font-size: 40px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
a.a-phone-set-bg font { position: absolute; z-index: 1; }
a.a-phone-set-bg span {
    font-size: 12px;
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    color: #fff;
    line-height: 20px;
    text-align: center;
    right: -10px;
    top: -10px;
    z-index: 3;
}
.a-phone-set-bg input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.img-phone-set-bg { width: 100%; position: relative; z-index: 1; }

/* ---------------- 对话设置 ---------------- */
.dialog-user { padding: 20px 16px; }
.dialog-user-items {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px #eee dotted;
}
.dialog-user-item { margin-right: 20px; margin-bottom: 20px; position: relative; }
.dialog-user-item-add, .dialog-user-item-add:active, .dialog-user-item-add:focus {
    width: 98px;
    height: 98px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px #ccc dotted;
    color: #ccc;
    font-size: 40px;
    text-decoration: none;
    cursor: pointer;
}
.dialog-user-item-add:hover { color: #999; border-color: #999; }
.dialog-user-face {
    align-items: center;
    display: flex;
    flex-direction: column;
    position: relative;
}
.dialog-user-face i {
    width: 60px;
    height: 60px;
    background: #eee;
    display: block;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}
.dialog-user-face .dialog-user-face-a { position: relative; display: block; }
.dialog-user-face input[type=text] {
    width: 80px;
    text-align: center;
    margin-top: 10px;
    border: 1px #eee solid;
    height: 30px;
    line-height: 30px;
    border-radius: 2px;
    font-size: 12px;
    outline: none;
}
.dialog-user-face input[type=file] {
    width: 60px;
    height: 60px;
    position: absolute;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    top: 0; left: 0;
}
.dialog-user-delete, .dialog-user-delete:hover {
    position: absolute;
    width: 20px;
    height: 20px;
    background: red;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    right: 0;
    top: -10px;
    cursor: pointer;
    font-size: 12px;
    z-index: 3;
}
.dialog-user-select {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    display: block;
    right: 0;
    bottom: 32px;
    text-indent: -9999px;
    border: 1px #eee solid;
    background: #fff;
    cursor: pointer;
    z-index: 3;
}
.dialog-user-selected {
    background-image: url(../images/user-checked.png);
    background-size: cover;
    background-position: center;
}
.dialog-user-title { font-size: 14px; padding: 0 0 20px 0; }
.dialog-user-title font { color: red; }
.dialog-user-content-title { font-size: 14px; padding-top: 20px; }
.dialog-user-content { padding: 10px 0; }
.dialog-user-content .btn-groups { display: flex; flex-direction: column; }
.dialog-user-content .btn-group { display: flex; flex: 1; margin-bottom: 10px; margin-right: 10px; max-width: 360px; }
.dialog-user-content .btn-group .btn { flex: 1; }
textarea.edit-dialog-text { height: 100px; resize: vertical; }

/* ---------------- 按钮（精简 zui） ---------------- */
.btn {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    background: #e8edf1;
    color: #333;
}
.btn:hover { filter: brightness(.96); }
.btn-primary { background: #3280fc; border-color: #3280fc; color: #fff; }
.btn-success { background: #38b03f; border-color: #38b03f; color: #fff; }
.btn-danger  { background: #ea644a; border-color: #ea644a; color: #fff; }
.btn-send-image { position: relative; overflow: hidden; }
.btn-send-image input {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0; top: 0;
    opacity: 0;
    cursor: pointer;
}
.btn-clear {
    background-color: #ea644a;
    border: 0;
    outline: none;
    padding: 5px 20px;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
}

/* ============================================
   手机预览（1125x2436 三倍分辨率，缩放到 375x812）
   ============================================ */
.phone-wrap { width: 375px; height: 812px; flex-shrink: 0; overflow: hidden; }
.phone-content {
    transform: scale(var(--phone-scale, .33333333));
    transform-origin: 0 0;
    border: 1px #f1f1f1 solid;
}
.phone {
    width: 1125px;
    height: 2436px;
    background-color: #ededed;
    position: relative;
    z-index: 998;
    font-size: 36px;
}

/* 导出用的脱离缩放克隆体（fixed 隐藏，html2canvas 截取） */
.iPhoneX, .phone.exporting {
    width: 1125px;
    height: 2436px;
    background-color: #ededed;
    position: fixed;
    left: -99999px;
    top: 0;
    z-index: -1;
}

/* ---------------- 顶部：状态栏 + 导航 ---------------- */
.phone-top { position: relative; z-index: 99999; background-color: #ededed; }
.phone-top:after {
    content: '';
    position: absolute;
    width: 100%;
    height: .67px;
    background: #d5d5d5;
    left: 0;
    bottom: 2px;
}
.phone-bar {
    height: 132px;
    align-items: center;
    display: flex;
    padding: 0 43px 0 95px;
}
.phone-nav {
    height: 132px;
    display: flex;
    align-items: center;
    padding: 0 50px;
    position: relative;
}
.phone-time { font-size: 45px; flex: 1; font-weight: 600; }

.phone-sigle {
    width: 54px;
    height: 36px;
    background: url(../images/bar/ios-single-4-dark.png) no-repeat;
    background-size: 100% 100%;
    margin-right: 6px;
    text-indent: -9999px;
}
.phone-sigle-v1 { background-image: url(../images/bar/ios-single-1-dark.png); }
.phone-sigle-v2 { background-image: url(../images/bar/ios-single-2-dark.png); }
.phone-sigle-v3 { background-image: url(../images/bar/ios-single-3-dark.png); }
.phone-sigle-v4 { background-image: url(../images/bar/ios-single-4-dark.png); }

.phone-wifi {
    width: 63px;
    height: 45px;
    background: url(../images/bar/ios-wifi-3-dark.png) no-repeat;
    background-size: 100% 100%;
    margin-right: 6px;
    text-indent: -9999px;
}
.phone-wifi-s1 { background-image: url(../images/bar/ios-wifi-1-dark.png); }
.phone-wifi-s2 { background-image: url(../images/bar/ios-wifi-2-dark.png); }
.phone-wifi-v2 {
    text-indent: 0;
    background-image: none;
    font-size: 36px;
    font-weight: 500;
    text-align: center;
    height: auto;
    width: 80px;
}

.phone-battery {
    width: 75px;
    height: 36px;
    background: url(../images/bar/ios-battery-dark.png) no-repeat;
    background-size: 100% 100%;
    position: relative;
    padding: 7px;
    padding-right: 16px;
}
.phone-battery.phone-battery-charge i {
    width: 18px;
    height: 36px;
    background: url(../images/bar/ios-battery-charge-dark.png) no-repeat;
    background-size: 100% 100%;
    position: absolute;
    left: 50%;
    margin-left: -9px;
    top: 50%;
    margin-top: -18px;
}
.phone-battery span { position: absolute; left: 7px; right: 16px; top: 0; bottom: 0; }
.phone-battery span font {
    height: 22px;
    background: #000;
    display: block;
    border-radius: 4px;
    text-indent: -9999px;
    position: absolute;
    top: 50%;
    margin-top: -11px;
}
.phone-battery.phone-battery-charge span font { background: #65c466; }

.phone-nav-left { width: 150px; position: relative; }
.phone-nav-left span {
    position: absolute;
    font-size: 36px;
    height: 72px;
    line-height: 72px;
    background: #d5d5d5;
    min-width: 72px;
    border-radius: 36px;
    text-align: center;
    padding: 0 24px;
    top: 50%;
    margin-top: -36px;
    left: 45px;
    font-weight: 600;
}
.phone-nav-center { flex: 1; display: flex; justify-content: center; }
.phone-nav-center span { font-size: 51px; display: flex; align-items: center; font-weight: 500; }
.phone-nav-center span i {
    width: 31px;
    height: 42px;
    background: url(../images/wechat-trans-earphone.png) no-repeat;
    background-size: 100% 100%;
    margin-left: 15px;
}
.phone-nav-right { width: 150px; display: flex; justify-content: flex-end; }
.phone-nav-back {
    width: 27px;
    height: 52px;
    background: url(../images/wechat-nav-back.png) no-repeat;
    background-size: 100% 100%;
    text-indent: -9999px;
}
.phone-nav-more {
    width: 70px;
    height: 12px;
    background: url(../images/wechat-nav-right.png) no-repeat;
    background-size: 100% 100%;
    text-indent: -9999px;
}

/* ---------------- 聊天背景 ---------------- */
.phone-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: absolute;
    top: 0;
    width: 100%;
    overflow: hidden;
}
.phone-bg img { width: 100%; flex: none; }
.phone-bg img.phone-bg-for-height { width: auto; max-width: none; height: 100%; }

/* ---------------- 消息区 ---------------- */
.phone-body {
    position: absolute;
    top: 264px;
    bottom: 269px;
    left: 0;
    right: 0;
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
}
.wechat-content { padding: 36px; }

.wechat-dialog {
    margin-bottom: 50px;
    position: relative;
    display: flex;
}
.wechat-dialog-face {
    width: 123px;
    height: 123px;
    background: #f1f1f1;
    border-radius: 15px;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wechat-dialog-face img { width: 100%; }
.wechat-dialog-right { justify-content: flex-end; }
.wechat-dialog-right .wechat-dialog-face { right: 0; }

.wechat-dialog-text {
    background: #fff;
    padding: 28px 38px;
    font-size: 48px;
    border-radius: 15px;
    margin-right: 140px;
    word-break: break-all;
    margin-left: 160px;
    display: inline-block;
    position: relative;
    line-height: normal;
    min-height: 123px;
    color: #111;
}
.wechat-dialog-right .wechat-dialog-text {
    background: #98e970;
    margin-left: 140px;
    margin-right: 160px;
}
.wechat-dialog-text:after {
    content: '';
    background: #fff;
    width: 24px;
    height: 24px;
    border-bottom-left-radius: 4px;
    top: 50px;
    left: -12px;
    position: absolute;
    transform: rotate(45deg);
}
.wechat-dialog-right .wechat-dialog-text:after {
    background: #98e970;
    left: auto;
    right: -10px;
    border-top-right-radius: 4px;
    border-bottom-left-radius: 0;
}

/* 时间 / 系统提示 */
.wechat-dialog-notice {
    font-size: 36px;
    color: #a6a6a6;
    display: flex;
    justify-content: center;
    flex: 1;
    align-items: center;
}
.wechat-dialog-notice span { display: flex; align-items: center; }
.wechat-dialog-notice span.wechat-dialog-notice-has-bg {
    background: rgba(255, 255, 255, .5);
    color: #151414;
    padding: 10px 17px;
    border-radius: 15px;
}
.wechat-dialog-notice span.wechat-dialog-notice-system { padding: 10px 30px; }
.wechat-dialog-notice span .wechat-dialog-notice-redp-icon {
    width: 45px;
    height: 51px;
    background: url(../images/wechat-redp-icon1.png) no-repeat;
    background-size: 100% 100%;
    margin-right: 18px;
}
.wechat-dialog-notice span em { font-style: normal; color: #ef9d49; }

/* 删除 / 领取（hover 显示） */
.a-wechat-dialog-del, .a-wechat-dialog-del:focus, .a-wechat-dialog-del:hover {
    width: 60px;
    height: 60px;
    background: red;
    border-radius: 30px;
    display: block;
    position: absolute;
    color: #fff;
    line-height: 60px;
    text-align: center;
    font-size: 30px;
    left: 90px;
    top: -30px;
    display: none;
    z-index: 999;
    cursor: pointer;
}
.a-wechat-dialog-menu {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 15px;
    background: #263238;
    top: -84px;
    display: none;
    z-index: 999;
}
.a-wechat-dialog-menu:after {
    content: '';
    width: 30px;
    height: 30px;
    background: #263238;
    position: absolute;
    transform: rotate(45deg) translateX(-50%);
    border-radius: 6px;
    left: 50%;
    margin-left: -5px;
    bottom: -20px;
}
.a-wechat-dialog-menu a {
    font-size: 36px;
    height: 90px;
    line-height: 90px;
    color: #fff;
    padding: 0 30px;
    border-right: 1px rgba(163, 175, 183, .9) solid;
    position: relative;
    z-index: 99999;
    cursor: pointer;
}
.a-wechat-dialog-menu a:last-child { border-right: none; }
.wechat-dialog-right .a-wechat-dialog-del { right: 90px; left: auto; }
/* 鼠标设备：hover 显示 删除/领取 菜单 */
@media (hover: hover) and (pointer: fine) {
    .wechat-dialog:hover .a-wechat-dialog-del { display: block; }
    .wechat-dialog:hover .a-wechat-dialog-menu { display: flex; }
}
/* 触屏设备：点击消息切换 .tap 显示菜单（JS 控制） */
.wechat-dialog.tap .a-wechat-dialog-del { display: block; }
.wechat-dialog.tap .a-wechat-dialog-menu { display: flex; }

/* 转账 / 红包卡片 */
.wechat-dialog .wechat-dialog-trans {
    background: #f79c46;
    width: 700px;
    padding-top: 0;
    padding-bottom: 0;
    color: #fff;
}
.wechat-dialog .wechat-dialog-trans:after { background: #f79c46; }
.wechat-dialog .wechat-dialog-trans-get, .wechat-dialog .wechat-dialog-trans-get:after { background: #f8e2c6; }
.wechat-dialog .wechat-dialog-trans-content {
    display: flex;
    height: 192px;
    align-items: center;
    position: relative;
}
.wechat-dialog .wechat-dialog-trans-content:after {
    content: '';
    background: #f0b36f;
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
}
.wechat-dialog .wechat-dialog-trans-get .wechat-dialog-trans-content:after { background: #f9e7d1; }
.wechat-dialog .wechat-dialog-trans-content i {
    width: 120px;
    height: 120px;
    background: url(../images/wechat-trans-icon1.png) no-repeat;
    background-size: 100% 100%;
}
.wechat-dialog .wechat-dialog-redp-content i {
    width: 102px;
    background-image: url(../images/wechat-trans-icon3.png);
    margin-left: 9px;
}
.wechat-dialog .wechat-dialog-trans-get .wechat-dialog-trans-content i {
    background-image: url(../images/wechat-trans-icon2.png);
}
.wechat-dialog .wechat-dialog-trans-get .wechat-dialog-trans-content.wechat-dialog-redp-content i {
    background-image: url(../images/wechat-trans-icon4.png);
}
.wechat-dialog-trans-content div {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 30px;
    overflow: hidden;
}
.wechat-dialog-trans-content.wechat-dialog-redp-content div { margin-left: 31px; }
.wechat-dialog-trans-content div span {
    font-size: 48px;
    color: #fff;
    margin-top: -9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wechat-dialog-trans-content div font {
    font-size: 36px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wechat-dialog-trans-bottom {
    height: 71px;
    align-items: center;
    display: flex;
}
.wechat-dialog-trans-bottom span { font-size: 36px; color: #faecda; }
.wechat-dialog-trans-get .wechat-dialog-trans-bottom span { color: #fff; }

/* 图片消息 */
.wechat-dialog-image {
    border: 1px #d5d5d5 solid;
    padding: 0;
    background: 0 0;
    overflow: hidden;
}
.wechat-dialog-image-noborder { border: none; }
.wechat-dialog-image img { max-width: 420px; max-height: 420px; display: block; }
.wechat-dialog-image:after { display: none; }

/* 语音消息 */
.wechat-dialog-voice { display: flex; align-items: center; }
.wechat-dialog-voice i {
    width: 34px;
    height: 49px;
    background: url(../images/wechat-voice-icon1.png) no-repeat;
    background-size: 100% 100%;
    margin-right: 30px;
    margin-left: 16px;
    flex-shrink: 0;
}
.wechat-dialog-voice span { font-size: 42px; padding-right: 20px; }
.wechat-dialog-voice em {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #e75e58;
    position: absolute;
    right: -61px;
    top: 50%;
    margin-top: -12px;
}
.wechat-dialog-right .wechat-dialog-voice i {
    background-image: url(../images/wechat-voice-icon2.png);
    margin-left: 30px;
    margin-right: 16px;
}
.wechat-dialog-right .wechat-dialog-voice span { text-align: right; padding-left: 20px; padding-right: 0; }

/* ---------------- 底部输入栏 ---------------- */
.phone-bottom { background: #f6f6f6; position: absolute; bottom: 0; width: 100%; z-index: 999; }
.phone-bottom-bar { height: 102px; display: flex; justify-content: center; }
.phone-bottom-bar i {
    width: 402px;
    height: 15px;
    background: url(../images/phone-bottom-bar.png) no-repeat;
    background-size: 100% 100%;
    margin-top: 63px;
    text-indent: -9999px;
}
.phone-bottom-chat { height: 167px; }
.wechat-bottom { display: flex; align-items: center; height: 100%; }
.wechat-bottom-icon { width: 80px; height: 80px; text-indent: -9999px; flex-shrink: 0; }
.wechat-voice-icon {
    background: url(../images/wechat-bottom-icon1.png) no-repeat;
    background-size: 100% 100%;
    margin-left: 32px;
}
.wechat-emoji-icon {
    background: url(../images/wechat-bottom-icon2.png) no-repeat;
    background-size: 100% 100%;
}
.wechat-more-icon {
    background: url(../images/wechat-bottom-icon3.png) no-repeat;
    background-size: 100% 100%;
    margin: 0 32px 0 39px;
}
.wechat-voice-say-icon {
    background: url(../images/wechat-bottom-icon4.png) no-repeat;
    background-size: 100% 100%;
}
.wechat-input {
    height: 120px;
    background: #fff;
    border-radius: 15px;
    flex: 1;
    text-indent: -9999px;
    margin: 0 32px;
    border: 1px solid #e0e0e0;
}
.wechat-input-say {
    color: #1a1a1a;
    font-size: 48px;
    text-indent: 0;
    text-align: center;
    line-height: 120px;
    font-weight: 500;
}

/* ---------------- 保存作品弹窗 ---------------- */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal {
    background: #fff;
    border-radius: 6px;
    width: 420px;
    max-width: 92vw;
    padding: 20px 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.modal-sm { width: 360px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.modal-close { border: 0; background: none; font-size: 22px; cursor: pointer; color: #999; }
.modal-body .field-row { display: flex; align-items: center; margin-bottom: 12px; }
.modal-body .field-row label { width: 76px; font-size: 14px; color: #333; }
.modal-body .field-row input { flex: 1; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.hint { font-size: 12px; color: #999; }

/* ---------------- 加载遮罩 / 轻提示 ---------------- */
.loading {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}
.loading:before {
    content: '';
    width: 36px;
    height: 36px;
    border: 4px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
    position: fixed;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.78);
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 100001;
    display: none;
}

/* ---------------- 导出图片预览（触屏设备长按保存） ---------------- */
.export-lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.86);
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
}
.export-lightbox-body {
    max-width: 92%;
    max-height: 92%;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.export-lightbox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    padding: 4px 6px 8px;
}
.export-lightbox-close {
    border: none;
    background: #eee;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    color: #555;
    cursor: pointer;
}
.export-lightbox img {
    max-width: 100%;
    max-height: calc(92vh - 60px);
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}
.export-lightbox .export-lightbox-dl {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 0;
    background: #3385ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}
.export-lightbox .export-lightbox-dl:active { background: #2b6fd6; }
.export-lightbox .export-lightbox-size {
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 6px 0 0;
}

/* ---------------- 底部备案信息 ---------------- */
.site-footer {
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding: 14px 16px 22px;
    text-align: center;
}
.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    font-size: 13px;
    color: #888;
}
.site-footer-inner a {
    color: #888;
    text-decoration: none;
}
.site-footer-inner a:hover { color: #3385ff; }

/* ---------------- 响应式（桌面双栏 → 平板/手机单列） ---------------- */
@media screen and (max-width: 1024px) {
    .edit-content { flex-direction: column; align-items: center; }
    .tab { min-width: 0; width: 100%; max-width: 680px; margin-right: 0; margin-bottom: 20px; }
    .phone-wrap { width: 100%; max-width: 375px; height: 812px; }
}
@media screen and (max-width: 767px) {
    #pageHeader { padding: 10px 12px 12px; flex-wrap: wrap; gap: 10px; }
    #pageHeader .header-actions {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    #pageHeader .header-actions .btn { padding: 8px 18px; font-size: 14px; }
    .container-fluid.page-content { padding: 0; }
    .edit-content { padding: 0 10px 30px; }
    .tab { max-width: none; }
    .nav-tabs > li > a { padding: 12px 14px; font-size: 14px; }
    .view-set-item { flex-wrap: wrap; align-items: center; }
    .view-set-item > span { min-width: 74px; }
    .view-setting2 .view-set-item select { margin: 3px 2px; }
    .btn-groups .btn-group { flex-wrap: wrap; }
    .btn-groups .btn { flex: 1; min-width: 31%; margin: 4px 0; }
    .dialog-user-items { display: flex; flex-wrap: wrap; }
    .dialog-user-item { width: 50%; box-sizing: border-box; margin-right: 0; }
    .dialog-user-item .dialog-user-face { flex-wrap: wrap; }
    .dialog-user-content .btn-group { max-width: none; margin-right: 0; }
    .hint { font-size: 13px; }
    .modal { max-width: 92%; }
}
