 body {
     margin: 0;
     padding: 0;
     /* background-color: #000; */
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
     overflow: hidden;
 }

 /* 手机桌面样式 - 核心更新：随机壁纸+图层优化 */
 .phone-desktop {
     position: fixed;
     top: 0;
     left: 0;
     width: 100vw;
     height: 100vh;
     z-index: 200;
     display: none;
     flex-direction: column;
     transition: opacity 0.3s ease;
     /* 背景图片样式：覆盖+居中+固定 */
     background-size: cover;
     background-position: center;
     background-attachment: fixed;
 }

 /* 新增暗化图层，让图标文字更清晰 */
 .phone-desktop::before {
     content: "";
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.4);
     /* 可调整透明度 */
     z-index: -1;
 }

 .phone-desktop.show {
     display: flex;
 }

 /* 手机状态栏 */
 .desktop-status-bar {
     height: 44px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 0 16px;
     color: white;
     font-size: 14px;
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
 }

 /* 桌面应用图标容器 */
 .desktop-apps {
     flex: 1;
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 40px;
     padding: 20px;
 }

 /* 应用图标样式 */
 .app-icon {
     display: flex;
     flex-direction: column;
     align-items: center;
     cursor: pointer;
     transition: transform 0.2s ease;
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
 }

 .app-icon:hover {
     transform: scale(1.1);
 }

 .app-icon .icon-wrapper {
     width: 60px;
     height: 60px;
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
     margin-bottom: 8px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
 }

 .douyin-icon {
     /*background: linear-gradient(135deg, #fe2c55 0%, #f77062 100%);*/
     background: url('../assets/3d4249f60691e8e04fe95264954bc356.png');
     background-size: 100% 100%;
 }

 .keling-icon {
     /*background: linear-gradient(135deg, #4facfe 0%, #74FF52 100%);*/
     background: url('../assets/418a48eaf700199b66e03991737c6329.png');
     background-size: 100% 100%;
 }

 .doulami-icon {
     /*background: linear-gradient(135deg, #4facfe 0%, #74FF52 100%);*/
     background: url('../assets/a382a055862c90d4a1548919db105260.jpg');
     background-size: 100% 100%;
 }

 .app-icon i {
     font-size: 40px;
     color: white;
 }

 .app-icon span {
     color: white;
     font-size: 14px;
     font-weight: 500;
 }

 /* ========== 新增：千问主页样式 ========== */
 .keling-home {
     position: fixed;
     top: 0;
     left: 0;
     width: 100vw;
     height: 100vh;
     height: 100dvh;
     z-index: 250;
     display: none;
     flex-direction: column;
     overflow: hidden;
     background-color: #fff;
 }

 .keling-home.show {
     display: flex;
 }

 .keling-home.chat-mode {
     background-color: #fff;
 }

 .keling-fixed-image {
     display: block;
     width: 100%;
     height: auto;
     flex: 0 0 auto;
 }

 .keling-bottom-image {
     flex: 0 0 auto;
 }

 .keling-bottom-fixed {
     width: 100%;
     flex: 0 0 auto;
     background: #fff;
     z-index: 20;
 }

 .chat-composer {
     padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
     background: #fff;
 }

 .composer-box {
     min-height: 56px;
     padding: 0 14px;
     border: 1px solid #dedede;
     border-radius: 16px;
     box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
     display: flex;
     align-items: center;
     gap: 20px;
     box-sizing: border-box;
     transition: border-radius 0.2s ease, min-height 0.2s ease;
 }

 .chat-composer.expanded .composer-box {
     min-height: 108px;
     padding: 12px 14px 10px;
     border-radius: 20px;
     flex-direction: column;
     align-items: stretch;
 }

 #chatInput {
     flex: 1;
     width: 100%;
     min-width: 0;
     height: 28px;
     padding: 2px 0;
     border: 0;
     outline: 0;
     resize: none;
     overflow: hidden;
     background: transparent;
     color: #222;
     font: inherit;
     font-size: 18px;
     line-height: 24px;
     box-sizing: border-box;
 }

 #chatInput::placeholder {
     color: #999;
 }

 .chat-composer.expanded #chatInput {
     flex: 1 1 auto;
     min-height: 42px;
     overflow-y: auto;
 }

 .composer-actions {
     display: contents;
 }

 .chat-composer:not(.expanded) .composer-voice {
     order: -1;
 }

 .chat-composer.expanded .composer-actions {
     width: 100%;
     display: flex;
     align-items: center;
     gap: 14px;
 }

 .composer-icon {
     width: 30px;
     height: 30px;
     flex: 0 0 30px;
     padding: 0;
     border: 0;
     background: transparent;
     cursor: pointer;
 }

 .composer-icon img {
     display: block;
     width: 100%;
     height: 100%;
     object-fit: contain;
 }

 .composer-spacer {
     display: none;
 }

 .chat-composer.expanded .composer-spacer {
     display: block;
     flex: 1;
 }

 .composer-send {
     display: none;
 }

 .chat-composer.has-text .composer-camera {
     display: none;
 }

 .chat-composer.has-text .composer-send {
     display: block;
 }

 .composer-disclaimer {
     padding-top: 8px;
     color: #c8c8c8;
     font-size: 12px;
     line-height: 18px;
     text-align: center;
 }

 .keling-home .config {
     position: absolute;
     top: 0;
     left: 0;
     width: 15%;
     height: 50px;
     z-index: 1001;
     background-color: none;
 }

 .keling-home.chat-mode .config {
     position: fixed;
 }

 .restart-btn {
     position: absolute;
     top: 0;
     right: 16px;
     width: 40px;
     height: 40px;
     display: flex;
     align-items: center;
     justify-content: center;
     z-index: 1001;
     cursor: pointer;
     transition: all 0.2s ease;
 }

 .keling-home.chat-mode .restart-btn {
     position: fixed;
 }

 /* 千问主页顶部栏 */
 .keling-header {
     height: 44px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 0 16px;
     background-color: rgba(255, 255, 255, 0.8);
     /* 半透明背景保证可读性 */
     backdrop-filter: blur(8px);
     /* 毛玻璃效果 */
     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
 }

 .keling-header .title {
     font-size: 17px;
     font-weight: 600;
     color: #1d1d1f;
 }

 .keling-header .icon {
     font-size: 20px;
     color: #007aff;
 }

 /* 千问主页内容区 - 修复隐藏问题 */
 .keling-content {
     flex: 1;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     padding: 20px;
     /* 添加文字阴影确保在背景图上清晰可见 */
     text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
     visibility: hidden;
 }

 .keling-logo {
     width: 120px;
     height: 120px;
     border-radius: 30px;
     background: linear-gradient(135deg, #4facfe 0%, #74FF52 100%);
     display: flex;
     align-items: center;
     justify-content: center;
     margin-bottom: 20px;
     box-shadow: 0 8px 24px rgba(79, 172, 254, 0.3);
 }

 .keling-logo i {
     font-size: 60px;
     color: white;
 }

 .keling-slogan {
     font-size: 20px;
     font-weight: 500;
     color: white;
     /* 改为白色确保在背景图上可见 */
     margin-bottom: 40px;
     text-align: center;
 }

 .keling-btn {
     width: 80%;
     padding: 14px 0;
     border-radius: 12px;
     background-color: rgba(116, 255, 82, 0.9);
     /* 适配新绿色系 */
     color: white;
     font-size: 17px;
     font-weight: 500;
     text-align: center;
     cursor: pointer;
     box-shadow: 0 4px 12px rgba(116, 255, 82, 0.2);
     transition: all 0.2s ease;
 }

 .keling-btn:hover {
     background-color: #74FF52;
     transform: translateY(-2px);
 }

 /* ========== 新增：即梦风格视频生成界面 (深色系) ========== */
 .video-create {
     position: fixed;
     top: 0;
     left: 0;
     width: 100vw;
     height: 100vh;
     z-index: 350;
     display: none;
     flex-direction: column;
     background: linear-gradient(180deg, #121212 0%, #1a1a1a 100%);
     color: white;
     overflow-y: auto;
     padding-bottom: 80px;
     /* 为底部固定按钮预留空间 */
 }

 .video-create.show {
     display: flex;
 }

 /* 生成界面顶部栏 */
 .create-header {
     height: 44px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 8px 16px;
     background-color: rgba(18, 18, 18, 0.95);
     backdrop-filter: blur(8px);
     border-bottom: 1px solid rgba(255, 255, 255, 0.1);
     position: sticky;
     top: 0;
     z-index: 10;
 }

 .create-header .back-btn {
     color: #74FF52;
     font-size: 20px;
     cursor: pointer;
 }

 .create-header .title {
     font-size: 17px;
     font-weight: 600;
     color: white;
 }

 .create-header .help-btn {
     color: #999;
     font-size: 18px;
     cursor: pointer;
 }

 /* 生成界面内容区 */
 .create-content {
     flex: 1;
     padding: 20px 16px;
 }

 /* 模块标题 */
 .module-title {
     font-size: 18px;
     font-weight: 600;
     margin-bottom: 16px;
     display: flex;
     align-items: center;
     gap: 8px;
 }

 .module-title i {
     color: #74FF52;
 }

 /* 上传区域通用样式 - 【核心修复】虚线边框问题 */
 .upload-wrapper {
     margin-bottom: 24px;
     width: 100%;
     box-sizing: border-box;
     /* 确保padding不会超出宽度 */
 }

 .upload-area {
     border: 1px dashed rgba(255, 255, 255, 0.2);
     border-radius: 12px;
     padding: 24px;
     text-align: center;
     cursor: pointer;
     transition: all 0.2s ease;
     background-color: rgba(255, 255, 255, 0.05);
     width: 100%;
     /* 强制宽度100% */
     box-sizing: border-box;
     /* 边框计入宽度 */
     display: block;
     /* 确保是块级元素 */
     margin: 0 0 16px 0;
     /* 统一margin写法 */
 }

 .upload-area:hover {
     border-color: #74FF52;
     background-color: rgba(116, 255, 82, 0.05);
     /* 适配新绿色系 */
 }

 .upload-area .upload-icon {
     font-size: 40px;
     color: #999;
     margin-bottom: 12px;
 }

 .upload-area .upload-text {
     font-size: 15px;
     color: #ccc;
     margin-bottom: 8px;
 }

 .upload-area .upload-tip {
     font-size: 12px;
     color: #666;
 }

 /* 预览区域 - 【优化】与上传框对齐 */
 .preview-area {
     border-radius: 8px;
     overflow: hidden;
     display: none;
     width: 100%;
     /* 宽度100% */
     box-sizing: border-box;
 }

 .preview-area.show {
     display: block;
 }

 .preview-img {
     width: 100%;
     height: 200px;
     object-fit: cover;
     border-radius: 8px;
 }

 .preview-video {
     width: 100%;
     height: 200px;
     object-fit: cover;
     border-radius: 8px;
     background-color: #000;
 }

 /* 创意描述区域 */
 .desc-area {
     margin-bottom: 24px;
 }

 .desc-input {
     width: 100%;
     min-height: 120px;
     background-color: rgba(255, 255, 255, 0.05);
     border: 1px solid rgba(255, 255, 255, 0.1);
     border-radius: 12px;
     padding: 16px;
     color: white;
     font-size: 16px;
     resize: none;
     box-sizing: border-box;
     font-family: inherit;
 }

 .desc-input:focus {
     outline: none;
     border-color: #74FF52;
     box-shadow: 0 0 0 2px rgba(116, 255, 82, 0.2);
     /* 适配新绿色系 */
 }

 /* 生成按钮 - 固定在底部 */
 .generate-btn {
     position: fixed;
     bottom: 20px;
     /* 距离底部20px */
     left: 16px;
     /* 左右边距和内容区一致 */
     right: 16px;
     width: calc(100% - 32px);
     /* 减去左右边距 */
     padding: 16px 0;
     border-radius: 12px;
     background: #74FF52;
     color: white;
     font-size: 17px;
     font-weight: 600;
     text-align: center;
     cursor: pointer;
     box-shadow: 0 6px 16px rgba(116, 255, 82, 0.3);
     /* 适配新绿色系 */
     transition: all 0.2s ease;
     border: none;
     z-index: 100;
     /* 确保按钮在最上层 */
 }

 .generate-btn:hover {
     transform: translateY(-2px);
     box-shadow: 0 8px 20px rgba(116, 255, 82, 0.4);
     /* 适配新绿色系 */
 }

 /* 生成中状态 */
 .generate-btn.loading {
     background: linear-gradient(135deg, #333 0%, #444 100%);
     cursor: not-allowed;
     transform: none;
     box-shadow: none;
 }

 .generate-btn.loading i {
     animation: spin 1s linear infinite;
     margin-right: 8px;
 }

 @keyframes spin {
     0% {
         transform: rotate(0deg);
     }

     100% {
         transform: rotate(360deg);
     }
 }

 /* 生成结果区域 */
 .result-area {
     margin-top: 24px;
     margin-bottom: 80px;
     /* 为底部按钮预留空间 */
     display: none;
 }

 .result-area.show {
     display: block;
 }

 .keling-content.show {
     visibility: visible;
 }

 .result-title {
     font-size: 16px;
     font-weight: 500;
     margin-bottom: 12px;
     color: #74FF52;
 }

 .result-video {
     width: 100%;
     border-radius: 12px;
     background-color: #000;
 }

 /* 操作按钮组 */
 .action-btns {
     display: flex;
     gap: 12px;
     margin-top: 16px;
 }

 .action-btn {
     flex: 1;
     padding: 12px 0;
     border-radius: 8px;
     font-size: 15px;
     font-weight: 500;
     text-align: center;
     cursor: pointer;
     transition: all 0.2s ease;
     border: none;
 }

 .action-btn.primary {
     background: linear-gradient(135deg, #fe2c55 0%, #f77062 100%);
     color: white;
 }

 .action-btn.secondary {
     background-color: rgba(255, 255, 255, 0.1);
     color: white;
 }

 .action-btn:hover {
     transform: translateY(-2px);
 }

 /* 顶部TAB栏 - 透明无背景 融入视频 */
 .top-tab {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 44px;
     display: none;
     justify-content: space-between;
     align-items: center;
     padding: 0 16px;
     background-color: transparent;
     z-index: 90;
 }

 .top-tab.show {
     display: flex;
 }

 .top-tab .tab-center {
     display: flex;
     justify-content: center;
     gap: 12px;
     flex: 1;
 }

 .top-tab .tab-item {
     color: rgba(255, 255, 255, 0.7);
     font-size: 16px;
     font-weight: 400;
     padding: 0 4px;
     text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
     transition: all 0.2s ease;
 }

 .top-tab .tab-item.active {
     color: white;
     font-weight: bold;
 }

 .top-tab .icon {
     color: white;
     font-size: 20px;
     text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
     width: 24px;
     height: 24px;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
 }

 .menu-icon {
     display: flex;
     flex-direction: column;
     gap: 3px;
     align-items: flex-start;
 }

 .menu-icon .bar {
     height: 2px;
     background-color: white;
     border-radius: 1px;
 }

 .menu-icon .bar-1 {
     width: 18px;
 }

 .menu-icon .bar-2 {
     width: 14px;
 }

 .menu-icon .bar-3 {
     width: 10px;
 }

 /* 底部TAB栏 - 增大上下padding */
 .bottom-tab {
     position: fixed;
     bottom: 0;
     left: 0;
     width: 100%;
     height: 60px;
     display: none;
     justify-content: space-around;
     align-items: center;
     background-color: #000;
     border-top: 1px solid rgba(255, 255, 255, 0.1);
     padding: 8px 0;
     box-sizing: border-box;
     z-index: 90;
 }

 .bottom-tab.show {
     display: flex;
 }

 .bottom-tab .tab-item {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     color: #999;
     font-size: 16px;
 }

 .bottom-tab .tab-item.active {
     color: white;
 }

 .bottom-tab .tab-item i {
     font-size: 20px;
     margin-bottom: 2px;
 }

 .bottom-tab .add-btn {
     width: 48px;
     height: 32px;
     border-radius: 8px;
     border: 2px solid white;
     background: transparent;
     display: flex;
     align-items: center;
     justify-content: center;
     color: white;
     font-size: 24px;
     font-weight: 300;
 }

 .bottom-tab .add-btn::before {
     content: "+";
 }

 /* 视频容器适配 */
 .video-container {
     position: relative;
     width: 100vw;
     height: 100vh;
     padding-bottom: 60px;
     box-sizing: border-box;
     display: none;
 }

 .video-container.show {
     display: block;
 }

 .video-player {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .share-modal,
 .edit-modal {
     position: fixed;
     bottom: 0;
     left: 0;
     width: 100%;
     background-color: #f3f3f4;
     border-radius: 16px 16px 0 0;
     transform: translateY(100%);
     transition: transform 0.3s ease;
     z-index: 100;
     padding: 20px 0;
 }

 .share-modal.show,
 .edit-modal.show {
     transform: translateY(0);
 }

 .user-list {
     display: flex;
     gap: 12px;
     padding: 0 16px 16px;
     overflow-x: auto;
     -webkit-overflow-scrolling: touch;
 }

 .user-list::-webkit-scrollbar {
     display: none;
 }

 .user-item {
     display: flex;
     flex-direction: column;
     align-items: center;
     flex-shrink: 0;
 }

 .user-item img {
     width: 56px;
     height: 56px;
     border-radius: 50%;
     margin-bottom: 4px;
 }

 .user-item span {
     font-size: 12px;
     color: #333;
     max-width: 60px;
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
 }

 .share-list {
     display: flex;
     overflow-x: auto;
     -webkit-overflow-scrolling: touch;
 }

 .share-list::-webkit-scrollbar {
     display: none;
 }

 .gridItem {
     display: flex;
     flex-direction: column;
     align-items: center;
     flex-shrink: 0;
     width: 100%;
 }

 .gridItem img {
     width: 100%;
     height: auto;
     margin-bottom: 8px;
 }

 .gridItem2 {
     display: flex;
     flex-direction: column;
     align-items: center;
     flex-shrink: 0;
     width: 20.5%;
 }

 .gridItem2 img {
     width: 100%;
     height: auto;
     margin-bottom: 8px;
 }

 .modal-mask {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.5);
     z-index: 99;
     display: none;
 }

 .modal-mask.show {
     display: block;
 }

 .icon-btn {
     transition: all 0.2s ease;
 }

 .icon-btn.active {
     color: #ff274b;
     transform: scale(1.1);
 }

 /* Toast提示样式 */
 .toast {
     position: fixed;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%) scale(0.8);
     background-color: rgba(0, 0, 0, 0.8);
     color: white;
     padding: 12px 24px;
     border-radius: 8px;
     font-size: 14px;
     z-index: 101;
     opacity: 0;
     transition: all 0.2s ease;
     pointer-events: none;
 }

 .toast.show {
     opacity: 1;
     transform: translate(-50%, -50%) scale(1);
 }

 /* 编辑弹窗样式 */
 .edit-modal {
     padding: 24px 16px;
     max-height: 80vh;
     overflow-y: auto;
 }

 .edit-modal .form-item {
     margin-bottom: 20px;
 }

 .edit-modal label {
     display: block;
     font-size: 14px;
     color: #333;
     margin-bottom: 8px;
     font-weight: 500;
 }

 .edit-modal input,
 .edit-modal textarea {
     width: 100%;
     padding: 12px 16px;
     border: 1px solid #e5e7eb;
     border-radius: 8px;
     font-size: 16px;
     box-sizing: border-box;
 }

 .edit-modal textarea {
     min-height: 80px;
     resize: none;
 }

 .edit-modal .video-upload {
     border: 1px dashed #d1d5db;
     border-radius: 8px;
     padding: 24px;
     text-align: center;
     cursor: pointer;
     transition: all 0.2s ease;
 }

 .edit-modal .video-upload:hover {
     border-color: #9ca3af;
 }

 .edit-modal .video-upload i {
     font-size: 32px;
     color: #6b7280;
     margin-bottom: 8px;
 }

 .edit-modal .video-upload span {
     font-size: 14px;
     color: #6b7280;
 }

 .edit-modal .btn-group {
     display: flex;
     gap: 12px;
     margin-top: 24px;
 }

 .edit-modal .btn {
     flex: 1;
     padding: 12px 0;
     border-radius: 8px;
     font-size: 16px;
     font-weight: 500;
     text-align: center;
     border: none;
     cursor: pointer;
 }

 .edit-modal .btn.cancel {
     background-color: #f3f4f6;
     color: #374151;
 }

 .edit-modal .btn.confirm {
     background-color: #ff274b;
     color: white;
 }

 /* 作者名可点击样式 */
 #authorName {
     cursor: pointer;
     text-decoration: underline;
     text-decoration-style: dotted;
 }

 /* ========== iOS粘贴权限提示框 - 高度还原样式 ========== */
 .ios-paste-prompt {
     position: fixed;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%) scale(0.95);
     width: 280px;
     background-color: #f1f1f1;
     border-radius: 16px;
     box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
     padding: 20px;
     z-index: 300;
     display: none;
     opacity: 0;
     transition: all 0.2s ease;
     font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
 }

 .ios-paste-prompt.show {
     display: block;
     opacity: 1;
     transform: translate(-50%, -50%) scale(1);
 }

 /* 标题样式 */
 .prompt-title {
     font-size: 17px;
     font-weight: 600;
     color: #1d1d1f;
     margin-bottom: 8px;
     text-align: center;
 }

 /* 描述样式 */
 .prompt-desc {
     font-size: 14px;
     color: #86868b;
     margin-bottom: 20px;
     text-align: center;
     line-height: 1.4;
 }

 /* 按钮容器 - iOS风格的分割线+按钮布局 */
 .prompt-buttons {
     display: flex;
     border-top: 1px solid #e5e5e5;
 }

 /* 按钮样式 - 高度还原iOS系统按钮 */
 .prompt-btn {
     flex: 1;
     padding: 12px 0;
     text-align: center;
     font-size: 17px;
     font-weight: 500;
     cursor: pointer;
     transition: background-color 0.1s ease;
 }

 /* 分割线 */
 .prompt-btn:not(:last-child) {
     border-right: 1px solid #e5e5e5;
 }

 /* 允许按钮 - 黑色文字（修改后） */
 .prompt-btn.allow {
     color: #000000;
     /* 改为黑色 */
 }

 .prompt-btn.allow:hover {
     background-color: #f8f8f8;
 }

 /* 不允许按钮 - 蓝色文字 */
 .prompt-btn.deny {
     color: #007aff;
 }

 .prompt-btn.deny:hover {
     background-color: #f8f8f8;
 }

 /* 提示框遮罩（独立于原有mask，层级更高） */
 .prompt-mask {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.6);
     z-index: 299;
     display: none;
     backdrop-filter: blur(2px);
     /* iOS模糊效果 */
 }

 .prompt-mask.show {
     display: block;
 }

 /* 提示框遮罩（独立于原有mask，层级更高） */
 .prize-mask {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.6);
     z-index: 299;
     display: none;
     backdrop-filter: blur(2px);
     /* iOS模糊效果 */
 }

 .prize-mask.show {
     display: block;
 }

 .ios-prize-prompt {
     position: fixed;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%) scale(0.95);
     width: 280px;
     background-color: #fff;
     border-radius: 16px;
     box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
     padding: 20px;
     z-index: 300;
     display: none;
     opacity: 0;
     transition: all 0.2s ease;
     font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
 }

 .ios-prize-prompt.show {
     display: block;
     opacity: 1;
     /* transform: translate(-50%, -50%) scale(1); */
 }

 .t {
     -webkit-animation: big 1s ease 0s;
     animation: big 1s ease 0s;
     /* z-index: 200; */
 }

 @-webkit-keyframes big {
     0% {
         -moz-transform: translate(-50%, -50%) scale(0.2, 0.2);
         -webkit-transform: translate(-50%, -50%) scale(0.2, 0.2);
         -o-transform: translate(-50%, -50%) scale(0.2, 0.2);
         transform-origin: center;
     }

     50% {
         -moz-transform: translate(-50%, -50%) scale(1.1, 1.1);
         -webkit-transform: translate(-50%, -50%) scale(1.1, 1.1);
         -o-transform: translate(-50%, -50%) scale(1.1, 1.1);
         transform-origin: center;
     }

     100% {
         -moz-transform: translate(-50%, -50%) scale(1, 1);
         -webkit-transform: translate(-50%, -50%) scale(1, 1);
         -o-transform: translate(-50%, -50%) scale(1, 1);
         transform-origin: center;
     }
 }

 .prizepic {
     width: 100%;
     height: auto;
     max-height: 80vw;
     object-fit: contain;
     border-radius: 4vw;
 }

 .prize-buttons {
     display: flex;
     /* border-top: 1px solid #e5e5e5; */
     margin-top: 4vw;
 }

 /* 按钮样式 - 高度还原iOS系统按钮 */
 .prize-btn {
     flex: 1;
     padding: 12px 0;
     text-align: center;
     font-size: 17px;
     font-weight: 500;
     cursor: pointer;
     transition: background-color 0.1s ease;
     border-radius: 2vw;
 }

 /* 分割线 */
 .prize-btn:not(:last-child) {
     border-right: 1px solid #e5e5e5;
 }

 /* 允许按钮 - 黑色文字（修改后） */
 .prize-btn.gosee {
     background: #0011FE;
     color: #fff;
     /* 改为黑色 */
 }

 .prize-btn.gosee:hover {
     /* background-color: #f8f8f8; */
 }

 /* 不允许按钮 - 蓝色文字 */
 .prize-btn.quxiao {
     color: #000;
     background: #F1F1F1;
     margin-right: 4vw;
 }

 .prize-btn.quxiao:hover {
     /* background-color: #f8f8f8; */
 }


 .wrapper {
     width: 94vw;
     margin: 0 auto;
     background: white;
     padding: 2vw;
     border-radius: 2vw;

 }

 .xzlabel {
     width: 90vw;
     margin: 4vw auto;
     padding: 1vw 2vw;
     background: white;
     border-radius: 4px;
     /*border: 2px solid whitesmoke;*/
     box-shadow: 0 2px 4px 1px rgba(158, 196, 251, .2);
     /*display: flex;*/
     /*justify-content: space-between;	*/
     /*box-shadow: 6px 8px 16px 0px rgba(201, 211, 220, 0.3), -6px -8px 16px 0px #FFFFFF;*/
 }

 .leftspan {
     line-height: 40px;
     vertical-align: middle;
     background: linear-gradient(90deg, #81a0ff, #4a77f5);
     padding: 2vw;
     color: white;
     border-radius: 4px;
     font-size: 12px;
     /*width: 30vw;*/
     /*margin-right: 2vw;*/
 }

 .gopay {
     margin: 6vw auto;
     width: 90vw;
     line-height: 12vw;
     font-size: 20px;
     font-weight: bold;
     background: linear-gradient(180deg, #81a0ff, #4a77f5);
     background-size: 100% 100%;
     text-align: center;
     color: #fff;
     /*animation: btn_animation 0.5s infinite alternate;*/
     z-index: 9;
     display: block;
     border-radius: 2vw;
 }

 .gopay2 {
     margin: 6vw auto;
     width: 90vw;
     line-height: 12vw;
     font-size: 20px;
     font-weight: bold;
     background: linear-gradient(180deg, #ff4049, #ff5555);
     background-size: 100% 100%;
     text-align: center;
     color: #fff;
     /*animation: btn_animation 0.5s infinite alternate;*/
     z-index: 9;
     display: block;
     border-radius: 2vw;
 }

 .upload {

     position: relative;
     margin: 4vw auto;
     width: 90vw;
     line-height: 12vw;
     font-size: 20px;
     font-weight: bold;
     background: limegreen;
     background-size: 100% 100%;
     text-align: center;
     color: #fff;
     /*animation: btn_animation 0.5s infinite alternate;*/
     z-index: 9;
     display: block;
     border-radius: 2vw;
 }

 @keyframes btn_animation {
     from {
         transform: scale(1);
     }

     to {
         transform: scale(1.1);
     }
 }

 .nickname,
 .birthday,
 .gerencardid {
     line-height: 40px;
     font-size: 16px;
     vertical-align: middle;
     border: none;
     width: 50vw;
     margin-left: 2vw;

 }

 .uploadicon {
     position: absolute;
     left: 0;
     top: 0;
     width: 100%;
     height: 100%;
     z-index: 1;
     opacity: 0;
 }

 .radio-group {
     display: inline-flex;
     gap: 15px;
     margin-left: 2vw;
 }

 .radio-label {
     display: flex;
     align-items: center;
     gap: 5px;
     font-size: 14px;
     color: #333;
     cursor: pointer;
 }

 .radio-label input[type="radio"] {
     width: 16px;
     height: 16px;
     cursor: pointer;
 }

 .message-list {
     width: 90vw;
     margin: 4vw auto;
     background: #f8f8f8;
     border-radius: 8px;
     padding: 2vw;
 }

 .message-list-title {
     font-size: 14px;
     font-weight: bold;
     color: #333;
     margin-bottom: 10px;
 }

 .message-items {
     max-height: 40vh;
     overflow-y: auto;
 }

 .message-item {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 10px;
     background: white;
     border-radius: 4px;
     margin-bottom: 8px;
     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
     cursor: pointer;
     transition: all 0.2s ease;
 }

 .message-item:hover {
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
 }

 .message-item.editing {
     border: 2px solid #4a77f5;
     background: #f0f4ff;
 }

 .message-item-info {
     flex: 1;
     font-size: 12px;
     color: #666;
 }

 .message-item-info .source {
     color: #4a77f5;
     font-weight: bold;
     margin-right: 8px;
 }

 .message-item-info .content {
     color: #333;
     margin-top: 4px;
 }

 .message-item-info .date {
     font-size: 10px;
     color: #999;
     margin-top: 2px;
 }

 .message-item .delete-btn {
     padding: 5px 10px;
     background: #ff5555;
     color: white;
     border: none;
     border-radius: 4px;
     font-size: 12px;
     cursor: pointer;
 }

 .section-title {
     display: flex;
     align-items: center;
     gap: 8px;
     font-size: 16px;
     font-weight: bold;
     color: #333;
     padding: 12px 0;
     margin-bottom: 10px;
     border-bottom: 2px solid #4a77f5;
 }

 .section-title i {
     color: #4a77f5;
 }

 .prize-section,
 .message-section {
     background: #f8f9fa;
     border-radius: 12px;
     padding: 15px;
     margin-bottom: 20px;
 }

 .form-row {
     display: flex;
     align-items: center;
     margin-bottom: 12px;
 }

 .form-row:last-child {
     margin-bottom: 0;
 }

 .form-row label {
     width: 100px;
     font-size: 14px;
     color: #666;
     flex-shrink: 0;
 }

 .input-field {
     flex: 1;
     height: 40px;
     padding: 0 12px;
     border: 1px solid #ddd;
     border-radius: 8px;
     font-size: 14px;
     outline: none;
     transition: border-color 0.3s;
 }

 .input-field:focus {
     border-color: #4a77f5;
 }

 .prize-card {
     display: flex;
     align-items: center;
     background: #fff;
     border-radius: 8px;
     padding: 12px 16px;
     margin-top: 12px;
     gap: 10px;
 }

 .prize-card--stackable {
     display: block;
     padding: 14px 12px 10px;
     background: #fff;
 }

 .stackable-prize-main {
     display: flex;
     align-items: center;
     min-height: 54px;
     gap: 3vw;
     min-width: 0;
 }

 .stackable-coupon-icon {
     position: relative;
     width: 36px;
     height: 44px;
     flex: 0 0 36px;
     overflow: hidden;
     border-radius: 3px;
     background: linear-gradient(180deg, #ff372c 0%, #ff1f16 100%);
     box-shadow: inset 0 -4px 10px rgba(194, 0, 0, 0.12);
 }

 .stackable-coupon-icon::before {
     content: '';
     position: absolute;
     top: 24px;
     left: -7px;
     width: 50px;
     height: 16px;
     border-top: 2px solid #fff;
     border-radius: 50%;
 }

 .stackable-coupon-icon span {
     position: absolute;
     top: 20px;
     left: 50%;
     width: 12px;
     height: 12px;
     border-radius: 50%;
     background: #ffe27e;
     transform: translateX(-50%);
     box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
 }

 .prize-card--stackable .prize-info {
     min-width: 0;
     padding-left: 0;
 }

 .prize-card--stackable .prize-name {
     color: #61291f;
     font-size: 17px;
 }

 .prize-card--stackable .prize-desc {
     display: flex;
     align-items: center;
     gap: 4px;
     color: #6e4a42;
     font-size: 11px;
     white-space: nowrap;
     min-width: 0;
     overflow: hidden;
 }

 .stackable-tag {
     display: block;
     width: auto;
     height: 17px;
     flex: 0 0 auto;
     object-fit: contain;
 }

 /* .prize-card--stackable .prize-action-btn {
     width: 70px;
     padding: 8px 5px;
     border-radius: 18px;
     color: #7a391f;
     background: #ffebc5;
     font-size: 13px;
 } */

 .stackable-prize-footer {
     display: flex;
     align-items: center;
     gap: 18px;
     margin-top: 11px;
     padding-top: 9px;
     border-top: 1px dashed #e8e8e8;
     color: #8e645d;
     font-size: 11px;
 }

 .stackable-prize-countdown {
     width: 54px;
     flex: 0 0 54px;
     font-variant-numeric: tabular-nums;
     white-space: nowrap;
 }

 .prize-price {
     font-size: 20px;
     font-weight: bold;
     color: #b36e37;
     flex-shrink: 0;
 }

 .prize-info {
     flex: 1;
     min-width: 0;
     padding-left: 16px;
     box-sizing: border-box;
     overflow: hidden;
 }

 .prize-name {
     font-size: 14px;
     font-weight: bold;
     color: #333;
 }

 .prize-desc {
     font-size: 11px;
     color: #999;
     margin-top: 2px;
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
 }

 .prize-action-btn {
     padding: 4px 10px;
     border-radius: 14px;
     color: #b36e37;
     font-size: 12px;
     white-space: nowrap;
     background-color: #f9e6c3;
     text-align: center;
     font-weight: bold;
     flex: 0 0 auto;
 }

 .prize-desc-text {
     min-width: 0;
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
 }

 .message-content-row {
     align-items: flex-start;
 }

 .message-content-row label {
     margin-top: 8px;
 }

 .message-content-row textarea {
     width: 100%;
     min-height: 80px;
     padding: 10px 12px;
     border: 1px solid #ddd;
     border-radius: 8px;
     font-size: 14px;
     font-family: inherit;
     resize: vertical;
     outline: none;
     box-sizing: border-box;
 }

 .message-content-row textarea:focus {
     border-color: #4a77f5;
 }

 .blue-text-input {
     color: #4a77f5;
 }

 .blue-text-input::placeholder {
     color: #81a0ff;
 }

 .blue-text {
     color: #4a77f5;
     display: inline;
     margin-left: 4px;
 }

 .radio-group {
     display: flex;
     gap: 20px;
 }

 .radio-label {
     display: flex;
     align-items: center;
     gap: 6px;
     font-size: 14px;
     color: #333;
     cursor: pointer;
 }

 .radio-label input[type="radio"] {
     width: 18px;
     height: 18px;
     cursor: pointer;
 }

 .prize-input-section {
     padding: 10px;
     background: #fff;
     border-radius: 8px;
     margin-top: 10px;
     border: 1px dashed #4a77f5;
 }

 .prize-input-section .form-row {
     margin-bottom: 8px;
 }

 .prize-input-section .form-row:last-child {
     margin-bottom: 0;
 }

 .prize-type-options {
     flex-wrap: wrap;
     margin-left: 0;
 }

 .prize-type-options .radio-label {
     width: auto;
     white-space: nowrap;
 }

 .add-btn {
     width: 100%;
     height: 44px;
     background: linear-gradient(135deg, #81a0ff, #4a77f5);
     color: white;
     border: none;
     border-radius: 8px;
     font-size: 15px;
     font-weight: bold;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     margin-top: 15px;
 }

 .add-btn:active {
     opacity: 0.8;
 }

 .add-btn:disabled {
     cursor: not-allowed;
     opacity: 0.45;
 }

 .preview-btn {
     width: 100%;
     height: 50px;
     background: linear-gradient(135deg, #ff6b6b, #ff5555);
     color: white;
     border: none;
     border-radius: 10px;
     font-size: 16px;
     font-weight: bold;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     margin-top: 20px;
 }

 .preview-btn:active {
     opacity: 0.8;
 }

 .chat-preview {
     position: fixed;
     left: 0;
     top: 0;
     width: 100%;
     height: 100%;
     z-index: 999;
     background: #f5f5f5;
     display: none;
     flex-direction: column;
 }

 .chat-preview.show {
     display: flex;
 }

 .chat-header {
     height: 50px;
     background: white;
     display: flex;
     align-items: center;
     padding: 0 15px;
     border-bottom: 1px solid #eee;
     flex-shrink: 0;
 }

 .chat-header .back-btn {
     width: 30px;
     height: 30px;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
 }

 .chat-header .title {
     flex: 1;
     text-align: center;
     font-size: 16px;
     font-weight: bold;
     color: #333;
 }

 .chat-header .header-icon {
     width: 30px;
     height: 30px;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .chat-messages {
     position: relative;
     width: 100%;
     min-height: 0;
     flex: 1 1 auto;
     overflow-y: auto;
     overscroll-behavior: contain;
     padding: 15px 20px;
     display: flex;
     flex-direction: column;
     gap: 15px;
     box-sizing: border-box;
     background-color: #fff;
 }

 .chat-message {
     display: flex;
     flex-direction: column;
     max-width: 100%;
     animation: fadeInUp 0.3s ease;
 }

 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(10px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .chat-message.left {
     align-self: flex-start;
     background-color: #f6f6f8;
     padding: 0 12px;
     border-radius: 12px;
 }

 .chat-message.right {
     align-self: flex-end;
 }

 .message-actions {
     position: relative;
     align-self: flex-start;
     margin-left: 5px;
     display: flex;
     align-items: center;
     gap: 8px;
 }

 .message-actions img {
     width: 42vw;
     height: auto;
     display: block;
     flex: 1;
 }

 .chat-message .bubble {
     padding: 12px 16px;
     border-radius: 12px;
     font-size: 16px;
     line-height: 1.5;
     color: #000;
     /* white-space: pre-wrap; */
     word-break: break-word;
 }

 .chat-message.left .bubble {
     padding: 12px 0;
     border-bottom-left-radius: 4px;
 }

 .chat-message.right .bubble {
     background: #ecf4fc;
     border-bottom-right-radius: 4px;
 }

 /* ========== 奶茶消息样式（在聊天中显示） ========== */
 .milktea-message {
     max-width: 100% !important;
     /* background-color: #fff !important; */
 }

 .milktea-message .bubble {
     /* background: #fff; */
     padding: 12px;
     border-radius: 12px;
 }

 .milktea-address {
     line-height: 1.5;
     margin-bottom: 12px;
 }

 .milktea-address .address-link {
     color: #4a77f5;
     cursor: pointer;
 }

 .milktea-list {
     display: flex;
     flex-direction: row;
     gap: 12px;
     overflow-x: auto;
     overflow-y: hidden;
     padding-bottom: 8px;
     scrollbar-width: none;
     -ms-overflow-style: none;
 }

 .milktea-list::-webkit-scrollbar {
     display: none;
 }

 .milktea-card {
     display: flex;
     flex-shrink: 0;
     width: 260px;
     background: #fff;
     border-radius: 12px;
     overflow: hidden;
 }

 .milktea-card .card-main {
     flex: 1;
     padding: 12px;
 }

 .milktea-card .shop-info {
     display: flex;
     align-items: center;
     gap: 8px;
     margin-bottom: 8px;
 }

 .milktea-card .shop-logo {
     width: 20px;
     height: 20px;
     border-radius: 4px;
     object-fit: cover;
 }

 .milktea-card .shop-name {
     font-size: 12px;
     color: #666;
     flex: 1;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .milktea-card .shop-rating {
     font-size: 11px;
     color: #999;
 }

 .milktea-card .product-name {
     font-size: 15px;
     font-weight: 600;
     color: #1d1d1f;
     margin-bottom: 4px;
 }

 .milktea-card .product-desc {
     font-size: 12px;
     color: #666;
     margin-bottom: 8px;
 }

 .milktea-card .product-img-wrapper {
     border-radius: 8px;
     overflow: hidden;
     margin-bottom: 8px;
 }

 .milktea-card .product-img {
     width: 100%;
     height: 120px;
     object-fit: cover;
 }

 .milktea-card .product-price {
     display: flex;
     align-items: center;
     justify-content: space-between;
     margin-bottom: 10px;
 }

 .milktea-card .price-left {
     display: flex;
     align-items: center;
     gap: 6px;
 }

 .milktea-card .price {
     font-size: 18px;
     font-weight: bold;
     color: #ff6b6b;
 }

 .milktea-card .price-tag {
     font-size: 11px;
     color: #ff6b6b;
 }

 .milktea-card .shop-link {
     font-size: 11px;
     color: #999;
     cursor: pointer;
 }

 .milktea-card .select-btn {
     width: 100%;
     padding: 8px 0;
     background: #e8f0fe;
     color: #4a77f5;
     border: none;
     border-radius: 16px;
     font-size: 14px;
     font-weight: 500;
     cursor: pointer;
 }

 .milktea-question {
     margin-top: 12px;
 }

 .chat-bubble {
     font-size: 14px;
     color: #333;
     align-self: flex-start;
     max-width: 80%;
 }

 /* ========== 订单卡片样式 ========== */
 .order-card {
     background: #fff;
     border-radius: 12px;
     padding: 12px;
     margin-top: 8px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
 }

 .order-shop {
     display: flex;
     align-items: center;
     gap: 8px;
     font-size: 13px;
     color: #666;
     margin-bottom: 12px;
 }

 .order-shop-logo {
     width: 20px;
     height: 20px;
     border-radius: 4px;
 }

 .order-product {
     display: flex;
     align-items: center;
     gap: 12px;
     margin-bottom: 12px;
 }

 .order-product-img {
     width: 80px;
     height: 80px;
     border-radius: 8px;
     object-fit: cover;
 }

 .order-product-info {
     flex: 1;
     display: flex;
     flex-direction: column;
     gap: 8px;
 }

 .order-product-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .order-product-name {
     font-size: 15px;
     font-weight: 600;
     color: #1d1d1f;
 }

 .order-product-price {
     font-size: 16px;
     font-weight: bold;
     color: #1d1d1f;
 }

 .order-product-spec-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .order-product-spec {
     font-size: 12px;
     color: #676767;
     background-color: #f7f7f7;
     border-radius: 6px;
     max-width: 70%;
     padding: 4px 6px;
     line-height: 1.3;
 }

 .order-product-count {
     font-size: 12px;
     color: #999;
 }

 .order-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 10px 0;
     font-size: 13px;
 }

 .order-row span:first-child {
     color: #666;
 }

 .order-row span:last-child {
     color: #999;
 }

 .order-total {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 10px 0;
     font-size: 13px;
 }

 .order-total span:first-child {
     color: #666;
 }

 .order-total span:last-child {
     color: #999;
 }

 .order-discount {
     text-align: right;
     font-size: 13px;
     color: #ff6b6b;
     padding: 8px 0;
 }

 .order-discount b {
     font-size: 18px;
     color: #1d1d1f;
 }

 .order-actions {
     display: flex;
     gap: 12px;
     margin-top: 12px;
 }

 .order-btn-secondary {
     flex: 1;
     padding: 12px 0;
     background: #f5f5f5;
     color: #333;
     border: none;
     border-radius: 20px;
     font-size: 14px;
     cursor: pointer;
 }

 .order-btn-primary {
     flex: 1;
     padding: 12px 0;
     background: #e8f0fe;
     color: #4a77f5;
     border: none;
     border-radius: 20px;
     font-size: 14px;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 4px;
 }

 .order-btn-primary i {
     font-size: 16px;
 }

 .order-tip {
     margin-top: 12px;
 }

 /* ========== 支付宝Logo弹窗样式 ========== */
 .alipay-logo-mask {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 600;
     display: none;
     align-items: center;
     justify-content: center;
 }

 .alipay-logo-mask.show {
     display: flex;
 }

 .alipay-logo-img {
     width: 120px;
     height: 120px;
     animation: logoPulse 1s ease-in-out infinite;
 }

 /* ========== 支付宝付款弹窗样式 ========== */
 .alipay-modal-mask {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.6);
     z-index: 500;
     display: none;
 }

 .alipay-modal-mask.show {
     display: block;
 }

 .alipay-modal {
     position: fixed;
     bottom: 30px;
     left: 50%;
     width: 92%;
     background-color: #fff;
     border-radius: 20px;
     z-index: 501;
     display: none;
     flex-direction: column;
     align-items: center;
     box-sizing: border-box;
     transform: translateX(-50%) translateY(100%);
     opacity: 0;
     transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
 }

 .alipay-modal.show {
     display: flex;
     transform: translateX(-50%) translateY(0);
     opacity: 1;
 }

 .alipay-img {
     width: 110%;
     margin-top: -70px;
     margin-bottom: 20px;
     border-radius: 12px;
     box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
     z-index: 502;
     border-radius: 26px;
 }

 .alipay-header {
     width: 100%;
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 30px;
     padding: 0 20px;
     box-sizing: border-box;
 }

 .alipay-close {
     width: 40px;
     height: 40px;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     color: #999;
     font-size: 20px;
     background-color: #f1f1f1;
     border-radius: 50%;
 }

 .alipay-title {
     display: flex;
     align-items: center;
     gap: 8px;
     font-size: 16px;
     color: #333;
     background-color: #f1f1f1;
     padding: 4px 12px;
     border-radius: 16px;
 }

 .alipay-icon {
     width: 22px;
     height: 22px;
 }

 .alipay-btn-icon {
     width: 16px;
     height: 16px;
     vertical-align: middle;
     margin-right: 4px;
 }

 .alipay-placeholder {
     width: 40px;
 }

 .alipay-amount {
     text-align: center;
     margin-bottom: 40px;
 }

 .alipay-price {
     font-size: 48px;
     font-weight: bold;
     color: #1d1d1f;
     margin-bottom: 10px;
 }

 .alipay-discount {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     font-size: 14px;
 }

 .alipay-discount .original-price {
     color: #999;
     text-decoration: line-through;
 }

 .alipay-discount .discount-text {
     color: #ff6b6b;
 }

 .alipay-confirm-btn {
     width: 92%;
     padding: 16px 20px 20px;
     background: linear-gradient(135deg, #1677ff, #0056d6);
     color: #fff;
     border: none;
     border-radius: 25px;
     font-size: 17px;
     font-weight: 500;
     cursor: pointer;
     margin-bottom: 20px;
 }

 /* ========== 文本编辑弹窗样式 ========== */
 .text-edit-modal {
     display: none;
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: rgba(0, 0, 0, 0.6);
     z-index: 10000;
     align-items: center;
     justify-content: center;
 }

 .text-edit-modal.show {
     display: flex;
 }

 .text-edit-content {
     background: #fff;
     border-radius: 16px;
     width: 85%;
     max-width: 320px;
     padding: 24px 20px 20px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
     animation: modalSlideIn 0.2s ease-out;
 }

 @keyframes modalSlideIn {
     from {
         opacity: 0;
         transform: translateY(-20px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .text-edit-title {
     font-size: 17px;
     font-weight: 600;
     color: #333;
     text-align: center;
     margin-bottom: 20px;
 }

 .text-edit-form {
     margin-bottom: 24px;
 }

 .text-edit-input {
     width: 100%;
     padding: 12px 14px;
     border: 1px solid #e0e0e0;
     border-radius: 10px;
     font-size: 15px;
     outline: none;
     transition: border-color 0.2s;
     box-sizing: border-box;
 }

 .text-edit-input:focus {
     border-color: #1677ff;
 }

 .text-edit-buttons {
     display: flex;
     gap: 12px;
 }

 .text-edit-btn {
     flex: 1;
     padding: 12px;
     border-radius: 10px;
     font-size: 15px;
     font-weight: 500;
     border: none;
     cursor: pointer;
     transition: opacity 0.2s;
 }

 .text-edit-btn:active {
     opacity: 0.8;
 }

 .text-edit-btn.cancel {
     background: #f5f5f5;
     color: #666;
 }

 .text-edit-btn.confirm {
     background: linear-gradient(135deg, #1677ff 0%, #0056d6 100%);
     color: #fff;
 }

 /* 可编辑文本样式 */
 .editable-text {
     cursor: pointer;
     position: relative;
 }

 .editable-text:hover {
     background-color: rgba(22, 119, 255, 0.1);
     border-radius: 4px;
 }

 .editable-text:active {
     opacity: 0.7;
 }

 /* 可编辑图片样式 */
 .editable-img {
     cursor: pointer;
     position: relative;
 }

 .editable-img .img-upload-tip {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.5);
     display: flex;
     align-items: center;
     justify-content: center;
     color: #fff;
     font-size: 20px;
     opacity: 0;
     transition: opacity 0.2s;
     border-radius: 8px;
 }

 .editable-img:hover .img-upload-tip {
     opacity: 1;
 }

 .shop-logo-wrapper {
     position: relative;
     width: 24px;
     height: 24px;
     border-radius: 50%;
     overflow: hidden;
 }

 .shop-logo-wrapper .shop-logo {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .shop-logo-wrapper .img-upload-tip {
     border-radius: 50%;
     font-size: 12px;
 }

 .product-img-wrapper {
     position: relative;
     width: 100%;
     height: 120px;
     border-radius: 8px;
     overflow: hidden;
     margin: 8px 0;
 }

/* ============================================================
   本地复刻补丁：原站手机桌面壁纸取自 picsum.photos 随机图，
   离线环境不可达，改为本地壁纸（保留原覆盖/居中行为）
   ============================================================ */
.phone-desktop {
    background-image: url("../assets/wallpaper.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
