/* style.css - 终极修复版 */
/* --- 🔧 核心工具类 --- */
.hidden { display: none !important; }

:root { --bg-color: #f2f4f6; --accent-color: #333; --app-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--app-font-family); user-select: none; }

body { background-color: #ddd; display: flex; justify-content: center; align-items: center; height: 100vh; overflow: hidden; }

.phone-container { width: 375px; height: 812px; background: var(--bg-color); border-radius: 40px; position: relative; border: 8px solid #111; box-shadow: 0 30px 60px rgba(0,0,0,0.3); overflow: hidden; }
.phone-container *::-webkit-scrollbar { display: none; }
.phone-container * { scrollbar-width: none; -ms-overflow-style: none; }
@media (max-width: 600px) and (hover: none) and (pointer: coarse) {
    body { background-color: var(--bg-color); }
    .phone-container { width: 100vw; height: 100dvh; border: none; border-radius: 0; box-shadow: none; }
}

/* --- 状态栏 --- */
.status-bar { height: 50px; display: flex; justify-content: space-between; align-items: center; padding: 0 25px; font-size: 14px; font-weight: 600; z-index: 1000; color: #333; transition: color 0.3s ease; position: absolute; top: 0; width: 100%; }
.status-bar.white-text { color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.status-bar.white-text i { color: #ffffff; }
.status-right, .battery-group { display: flex; gap: 5px; align-items: center; }

/* --- 锁屏 --- */
.lock-screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(#ccc 1px, transparent 1px); background-size: cover; background-position: center; background-repeat: no-repeat; background-color: #fcfcfc; z-index: 900; display: flex; flex-direction: column; padding-top: 80px; transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.lock-screen.unlocked { transform: translateY(-100%); }
.ls-header { text-align: center; margin-bottom: 20px; }
.ls-clock { font-size: 85px; font-weight: 800; line-height: 1; letter-spacing: -3px; color: #222; }
.ls-date { font-size: 15px; color: #667085; margin-top: 8px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: 0; }
.ls-weather-chip { min-height: 24px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.56); border: 1px solid rgba(255,255,255,0.72); color: #4c6f91; box-shadow: 0 5px 14px rgba(112,145,180,0.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12px; font-weight: 780; }
.ls-collage { flex: 1; position: relative; width: 100%; display: flex; justify-content: center; align-items: center; }
.photo-card { position: absolute; background: white; padding: 10px 10px 40px 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); transition: transform 0.2s; top: 50% !important; left: 50% !important; margin: 0 !important; }
.photo-card img { width: 140px; height: 140px; object-fit: cover; display: block; background: #eee; }
.photo-card:active { transform: scale(0.98); } 
.photo-left { transform: translate(-90%, -80%) rotate(-6deg); z-index: 1; }
.photo-right { right: auto !important; transform: translate(-10%, -20%) rotate(8deg); z-index: 2; }
.tape { position: absolute; top: -15px; left: 40%; width: 40px; height: 20px; background: rgba(255,255,255,0.4); transform: rotate(-2deg); backdrop-filter: blur(2px); }
.hand-write { position: absolute; bottom: 10px; left: 0; width: 100%; text-align: center; font-family: cursive; color: #555; font-size: 14px; }
.clip-paper { position: absolute; top: -28px; left: 40%; z-index: 10; font-size: 32px; color: #444; transform: rotate(-10deg); filter: drop-shadow(0 2px 1px rgba(0,0,0,0.2)); }
.sticker-star { position: absolute; bottom: -15px; right: -15px; font-size: 35px; color: #ffd700; transform: rotate(15deg); }
.sticker-star.ri-heart-3-fill { color: #f7a6bd; }
.sticker-star.ri-sparkling-2-fill { color: #9ebbe0; }
.sticker-star.ri-flower-fill { color: #b7c9ef; }
.sticker-star.ri-moon-clear-fill { color: #91a9ca; }
.ls-widgets { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; }
.widget-pill { background: rgba(255,255,255,0.7); border: 1px solid #fff; padding: 8px 16px; border-radius: 30px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #444; }
.music-pill { width: 160px; overflow: hidden; white-space: nowrap; }
.spin { animation: spin 4s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.ls-footer { display: flex; justify-content: space-between; align-items: center; padding: 0 40px 40px 40px; }
.round-btn { width: 50px; height: 50px; background: rgba(0,0,0,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; backdrop-filter: blur(5px); transition: background 0.2s, box-shadow 0.2s; }
.round-btn.ls-flash-on { background: rgba(255,255,255,0.9); box-shadow: 0 0 12px rgba(255,255,200,0.8); color: #333; }
.swipe-hint { width: 120px; height: 5px; background: #ccc; border-radius: 3px; }

/* --- 桌面 (修复重点区域) --- */
.screen-content { 
    height: 100%; 
    background: #f8f8f8; 
    background-size: cover; background-position: center; background-repeat: no-repeat;
    display: flex; flex-direction: column; justify-content: space-between; 
    padding-top: 55px !important; 
}

/* 👇 这里的内边距之前被那行乱码搞丢了，现在加回来了！ */
.pages-container { flex: 1; display: flex; overflow: hidden; position: relative; }
.desktop-page { min-width: 100%; width: 100%; transition: transform 0.3s ease; display: flex; flex-direction: column; }
.page-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0; }
.page-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,0.2); transition: all 0.3s; }
.page-dot.active { width: 18px; border-radius: 3px; background: rgba(0,0,0,0.6); }
.dark-mode .page-dot { background: rgba(255,255,255,0.3); }
.dark-mode .page-dot.active { background: rgba(255,255,255,0.8); }
.desktop-scroll-area {
    display: flex; flex-direction: column; gap: 15px;
    flex: 1; overflow-y: auto; overflow-x: hidden;
    padding: 20px;
    padding-top: 5px; padding-bottom: 20px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.desktop-scroll-area::-webkit-scrollbar { display: none; }

.calendar-widget { background-color: var(--cal-bg, #000); color: var(--cal-text, #fff); border-radius: 25px; padding: 15px 20px; height: 180px; min-height: 180px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-shrink: 0; transition: background-color 0.4s ease, color 0.4s ease; }
.calendar-widget.calendar-transparent, .cal-preview-mini.calendar-transparent { background: var(--cal-bg, rgba(255,255,255,0.48)) !important; border: 1px solid var(--cal-border, rgba(255,255,255,0.48)); box-shadow: var(--cal-shadow, 0 14px 30px rgba(114,136,160,0.12)); backdrop-filter: blur(var(--cal-blur, 14px)) saturate(1.12); -webkit-backdrop-filter: blur(var(--cal-blur, 14px)) saturate(1.12); }
.calendar-widget.calendar-transparent { color: var(--cal-text, #263241); }
.cal-left { display: flex; flex-direction: column; justify-content: center; padding-left: 10px; }
.cal-day { font-size: 32px; font-weight: 700; margin-bottom: -10px; }
.cal-date { font-size: 90px; font-weight: 900; line-height: 1; letter-spacing: -4px; }
.cal-right { width: 55%; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; width: 100%; margin-top: 5px; }
.cal-dot { width: 18px; height: 18px; color: var(--cal-dim, #888); font-size: 11px; display: flex; justify-content: center; align-items: center; font-weight: 900; position: relative; }
.cal-dot.active { color: var(--cal-text, white); transform: scale(1.3); z-index: 2; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.cal-dot.active::before { content: ''; position: absolute; width: 22px; height: 20px; background: var(--cal-accent, #ff69b4); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; filter: blur(2px); opacity: 0.8; z-index: -1; }
.cal-dot.active::after { content: ''; position: absolute; width: 20px; height: 18px; background: var(--cal-accent, #ff69b4); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; opacity: 1; z-index: -1; }

/* --- 日历配色设置 --- */
.cal-color-row { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
.cal-color-item { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; }
.cal-color-item label { font-size: 11px; color: #aaa; font-weight: 600; }
.cal-color-input { width: 44px; height: 44px; border: none; border-radius: 12px; cursor: pointer; background: none; padding: 0; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.cal-color-input::-webkit-color-swatch-wrapper { padding: 0; }
.cal-color-input::-webkit-color-swatch { border: 2px solid rgba(255,255,255,0.3); border-radius: 10px; }
.cal-mode-toggle { display: flex; background: #f0f0f0; border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.cal-mode-btn { flex: 1; text-align: center; padding: 8px 0; font-size: 12px; font-weight: 600; border-radius: 10px; cursor: pointer; color: #888; transition: all 0.25s ease; }
.cal-mode-btn.active { background: white; color: #333; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.cal-preview-mini { background: var(--cal-bg, #000); border-radius: 14px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; margin-top: 12px; transition: all 0.3s ease; }
.cal-transparent-note { margin-top: 10px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, rgba(216,230,255,0.52), rgba(255,255,255,0.78)); color: #58708f; display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; border: 1px solid rgba(255,255,255,0.72); }
.cal-transparent-note i { font-size: 19px; color: #7fa1ca; }
.cal-preview-left { font-size: 28px; font-weight: 900; color: var(--cal-text, #fff); line-height: 1; }
.cal-preview-dots { display: flex; gap: 4px; flex-wrap: wrap; width: 80px; }
.cal-preview-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cal-dim, #888); font-size: 0; }
.cal-preview-dot.active { background: var(--cal-accent, #ff69b4); }

.bento-box { display: flex; gap: 15px; margin-bottom: 15px; }
.apps-quad, .photo-large { flex: 1; width: 0; aspect-ratio: 1 / 1; }
.apps-quad { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; background: transparent; padding: 0; }
.apps-quad .app-item { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; height: 100%; gap: 5px; font-size: 12px; font-weight: 500; color: #333; }
.apps-quad .app-icon { width: 48px; height: 48px; font-size: 22px; border-radius: 12px; background: white; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); overflow: hidden; }
.photo-large { background: #eee; border-radius: 25px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.photo-large img { width: 100%; height: 100%; object-fit: cover; }
.folder-overlay { position: absolute; inset: 0; z-index: 500; background: rgba(0,0,0,0.4); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; animation: fadeIn 0.2s; }
.folder-popup { width: 260px; background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); border-radius: 24px; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); }
.folder-name-input { width: 100%; border: none; background: transparent; text-align: center; font-size: 16px; font-weight: 600; color: #333; outline: none; margin-bottom: 14px; }
.folder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.folder-grid .app-item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: #555; cursor: pointer; }
.folder-grid .app-icon { width: 40px; height: 40px; font-size: 18px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.app-item.is-folder .app-icon { background: rgba(255,255,255,0.6); backdrop-filter: blur(5px); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 6px; }
.app-item.is-folder .folder-mini-icon { width: 16px; height: 16px; border-radius: 4px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 9px; overflow: hidden; }
.app-item.is-folder .folder-mini-icon img { width: 100%; height: 100%; object-fit: cover; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes jiggle { 0%,100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.edit-mode .app-item { animation: jiggle 0.3s infinite ease-in-out; position: relative; }
.edit-mode .app-item:nth-child(2) { animation-delay: 0.05s; }
.edit-mode .app-item:nth-child(3) { animation-delay: 0.1s; }
.edit-mode .app-item:nth-child(4) { animation-delay: 0.15s; }
.edit-mode .app-item .app-delete-btn { display: flex; }
.app-delete-btn { display: none; position: absolute; top: -4px; left: -4px; width: 18px; height: 18px; background: rgba(0,0,0,0.6); border-radius: 50%; align-items: center; justify-content: center; font-size: 10px; color: #fff; z-index: 10; }
.edit-mode-hint { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; padding: 6px 14px; border-radius: 20px; z-index: 600; animation: fadeIn 0.2s; }
.layout-canvas { position: relative; display: block !important; min-height: 590px; padding-bottom: 180px !important; }
.layout-source-hidden { display: none !important; }
.desktop-layout-item { position: absolute !important; margin: 0 !important; flex: none !important; width: auto; min-width: 54px; min-height: 58px; cursor: grab; touch-action: none; z-index: 5; transition: box-shadow 0.16s ease, outline-color 0.16s ease, background-color 0.16s ease; }
.desktop-layout-item:active { cursor: grabbing; }
.screen-content.desktop-editing { --desktop-edit-scale: 0.72; position: relative; justify-content: flex-start; padding-top: 0 !important; overflow: hidden; background: linear-gradient(180deg, rgba(255,247,251,0.96), rgba(239,247,255,0.96)); }
.screen-content.desktop-editing::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 14%, rgba(255,213,226,0.58), transparent 34%), radial-gradient(circle at 82% 20%, rgba(216,230,255,0.70), transparent 36%), linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0)); pointer-events: none; }
.screen-content.desktop-editing .pages-container { position: absolute; left: 0; right: 0; top: 56px; height: 630px; flex: none; z-index: 610; transform: scale(var(--desktop-edit-scale)); transform-origin: top center; border-radius: 34px; overflow: hidden; background: rgba(255,255,255,0.56); border: 1px solid rgba(255,255,255,0.72); box-shadow: 0 22px 48px rgba(112,84,104,0.20); }
.screen-content.desktop-editing .desktop-page { height: 100%; }
.screen-content.desktop-editing .desktop-scroll-area { padding-bottom: 92px !important; }
.screen-content.desktop-editing .page-dots { position: absolute; left: 50%; top: 520px; z-index: 665; padding: 0; transform: translateX(-50%) scale(0.86); transform-origin: center; }
.screen-content.desktop-editing .dock-bar { position: absolute; left: 50%; top: 540px; width: calc(100% - 30px); margin: 0; z-index: 665; transform: translateX(-50%) scale(var(--desktop-edit-scale)); transform-origin: top center; }
.desktop-editing .desktop-layout-item { animation: none; }
.desktop-editing .desktop-layout-item::after { content: ''; position: absolute; inset: -5px; border-radius: 22px; border: 1px dashed rgba(168,132,154,0.42); pointer-events: none; }
.desktop-layout-item.selected { outline: 2px solid rgba(236,139,168,0.88); outline-offset: 4px; box-shadow: 0 16px 34px rgba(226,122,154,0.20) !important; z-index: 25; }
.desktop-layout-item.layout-app { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 18px; background: transparent; }
.desktop-layout-item.layout-app .app-icon { width: 48px; height: 48px; }
.desktop-layout-item.layout-app span { max-width: 76px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desktop-resize-handle { position: absolute; right: -10px; bottom: -10px; width: 28px; height: 28px; border-radius: 50%; background: #ffd9e5; border: 4px solid #fff; box-shadow: 0 7px 16px rgba(226,122,154,0.24); z-index: 30; cursor: nwse-resize; }
.desktop-item-move-page { position: absolute; right: -8px; top: -32px; height: 28px; padding: 0 10px; border: none; border-radius: 999px; background: rgba(255,255,255,0.96); color: #ca6f8f; font-size: 11px; font-weight: 800; box-shadow: 0 7px 18px rgba(226,122,154,0.16); z-index: 30; cursor: pointer; }
.desktop-edit-toolbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 700; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 20px; border-radius: 28px 28px 0 0; background: rgba(255,255,255,0.82); border: 1px solid rgba(255,255,255,0.88); border-bottom: none; box-shadow: 0 -20px 46px rgba(103,76,97,0.20); backdrop-filter: blur(22px) saturate(1.14); -webkit-backdrop-filter: blur(22px) saturate(1.14); pointer-events: auto; }
.desktop-edit-handle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 3px; }
.desktop-edit-handle strong { color: #382f3c; font-size: 15px; font-weight: 880; white-space: nowrap; }
.desktop-edit-handle span { min-width: 0; color: #8d7f90; font-size: 11px; line-height: 1.35; text-align: right; }
.desktop-widget-tray { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 0; border-radius: 0; background: transparent; border: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.desktop-widget-tray button { min-width: 0; height: 56px; border: none; border-radius: 18px; background: linear-gradient(145deg, #fffafd, #e8f2ff); color: #7b6f8c; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px rgba(154,119,137,0.12); }
.desktop-widget-tray button i { font-size: 20px; }
.desktop-edit-actions { display: grid; grid-template-columns: 1fr 0.82fr 1.08fr; gap: 9px; }
.desktop-edit-actions button, .desktop-save-card button { height: 38px; border: none; border-radius: 15px; background: rgba(255,255,255,0.86); color: #746f7d; font-size: 13px; font-weight: 800; box-shadow: 0 8px 20px rgba(154,119,137,0.13); cursor: pointer; }
.desktop-edit-actions .restore { color: #b96985; background: rgba(255,241,246,0.94); }
.desktop-edit-actions .primary, .desktop-save-card .primary { background: linear-gradient(135deg, #f39bb8, #8fb5ea); color: #fff; }
.desktop-save-card .danger { background: linear-gradient(135deg, #e97993, #c18ae7); }
.desktop-save-modal { position: absolute; inset: 0; z-index: 800; display: flex; align-items: center; justify-content: center; background: rgba(238,244,252,0.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.desktop-save-card { width: 286px; padding: 18px; border-radius: 26px; background: rgba(255,255,255,0.94); border: 1px solid rgba(255,255,255,0.86); box-shadow: 0 24px 54px rgba(86,109,139,0.24); display: flex; flex-direction: column; gap: 9px; text-align: center; }
.desktop-save-card strong { color: #2c3543; font-size: 17px; font-weight: 880; }
.desktop-save-card span { color: #7a8798; font-size: 12px; line-height: 1.45; }
.desktop-save-card div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 4px; }
.desktop-custom-widget { overflow: hidden; border-radius: 28px; background: rgba(255,255,255,0.86); border: 1px solid rgba(255,255,255,0.86); box-shadow: 0 15px 30px rgba(106,129,158,0.15); color: #526881; padding: 12px; }
.desktop-widget-music { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 9px; align-items: center; background: linear-gradient(145deg, #f8fcff, #d8e6ff); }
.dw-mp3-screen { height: 100%; min-height: 74px; border-radius: 20px; background: linear-gradient(145deg, #eff7ff, #b8d2f4); display: flex; flex-direction: column; justify-content: center; padding: 10px; color: #fff; text-shadow: 0 1px 6px rgba(74,101,136,0.24); }
.dw-mp3-screen i { font-size: 22px; opacity: 0.88; }
.dw-mp3-screen span { font-size: 11px; font-weight: 800; opacity: 0.8; }
.dw-mp3-screen strong { font-size: 15px; line-height: 1.1; }
.dw-mp3-pad { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0 28%, #d2d8df 29% 44%, #f5f7f9 45%); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; justify-items: center; color: #7a8798; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7); }
.dw-mp3-pad b { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,0.8); }
.desktop-widget-camera, .desktop-widget-album { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: rgba(255,255,255,0.88); }
.dw-camera-lens { width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, #eef7ff 0 34%, #bcd3f0 35% 58%, #f7fbff 59%); display: flex; align-items: center; justify-content: center; color: #6e8bad; font-size: 28px; box-shadow: inset 0 0 0 1px rgba(140,166,196,0.18); }
.desktop-widget-camera strong, .desktop-widget-album strong { color: #39485a; font-size: 14px; font-weight: 850; }
.desktop-widget-camera span, .desktop-widget-album em { color: #8a9aac; font-size: 11px; font-style: normal; font-weight: 700; }
.dw-album-grid { width: 74px; height: 74px; display: grid; grid-template-columns: repeat(2,1fr); gap: 5px; transform: rotate(-2deg); }
.dw-album-grid span { border-radius: 11px; background: linear-gradient(145deg, #d8e6ff, #f8fbff); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8); }
.dock-bar { margin: 15px; height: 84px; background: rgba(255,255,255,0.4); backdrop-filter: blur(20px); border-radius: 30px; display: flex; justify-content: space-around; align-items: center; flex-shrink: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.dock-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 60px; cursor: pointer; }
.dock-icon-box { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #333; transition: transform 0.1s; overflow: hidden; border-radius: 12px; flex-shrink: 0; }
.dock-icon-box img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.dock-item:active .dock-icon-box { transform: scale(0.9); }
.dock-label { font-size: 11px; color: #333; font-weight: 500; opacity: 0.9; }

/* --- 窗口通用 --- */
.app-window { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: #fafafa; z-index: 2000; display: flex; flex-direction: column; transform: translateY(110%); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); overflow: hidden; }
.app-window.active { transform: translateY(0); }
.window-header { display: flex !important; justify-content: space-between; align-items: center; height: 90px !important; padding-top: 45px !important; padding-left: 25px; padding-right: 25px; background: rgba(255,255,255,0.8); backdrop-filter: blur(20px); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(0,0,0,0.03); flex-shrink: 0; }
.window-header h3 { font-size: 17px; font-weight: 700; margin: 0; color: #333; letter-spacing: 0.5px; }
.close-btn, .save-btn { font-size: 16px; cursor: pointer; min-width: 40px; }
.close-btn { color: #999; }
.save-btn { color: #ff758c; font-weight: 700; text-align: right; }
.window-content { flex: 1; overflow-y: auto; padding: 25px; padding-bottom: 100px; }
.window-content::-webkit-scrollbar { width: 0; background: transparent; }

/* --- 美化 App --- */
.setting-card { background: white; border-radius: 24px; padding: 15px; margin-bottom: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); border: 1px solid #f7f7f7; }
.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: #444; font-weight: 600; font-size: 14px; }
.card-icon { width: 28px; height: 28px; border-radius: 8px; background: #fff0f3; color: #ff758c; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.input-bubble { background: #f9f9f9; border-radius: 16px; padding: 12px 15px; display: flex; align-items: center; gap: 10px; transition: all 0.2s; }
.input-bubble:focus-within { background: white; box-shadow: 0 0 0 2px #ffe0e6; }
.bubble-label { font-size: 12px; color: #aaa; font-weight: bold; }
.input-bubble input { border: none; background: transparent; outline: none; flex: 1; font-size: 14px; color: #333; }
.lock-visibility-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.theme-check-card { min-width: 0; height: 38px; border-radius: 14px; background: #f7f9fc; border: 1px solid rgba(157,177,204,0.16); color: #667085; display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 12px; font-weight: 760; cursor: pointer; }
.theme-check-card input { width: 15px; height: 15px; accent-color: #9bb8dc; flex-shrink: 0; }
.theme-check-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lock-deco-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; margin-top: 12px; }
.lock-weather-input { margin-top: 10px; }
.desktop-layout-entry { padding: 13px; border-radius: 20px; background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(216,230,255,0.58)); border: 1px solid rgba(157,177,204,0.16); display: grid; grid-template-columns: minmax(0,1fr) 82px; gap: 12px; align-items: center; box-shadow: 0 10px 24px rgba(108,132,162,0.08); }
.desktop-layout-entry strong { display: block; color: #2f3a4a; font-size: 14px; font-weight: 860; }
.desktop-layout-entry span { display: block; margin-top: 4px; color: #7d8b9e; font-size: 11px; line-height: 1.45; }
.desktop-layout-entry button { height: 38px; border: none; border-radius: 14px; background: #9bb8dc; color: #fff; font-size: 12px; font-weight: 820; cursor: pointer; box-shadow: 0 8px 18px rgba(93,123,160,0.18); }
.widget-config-legacy { margin-top: 12px; opacity: 0.82; }
.upload-row { display: flex; gap: 15px; margin-top: 15px; }
.upload-item { flex: 1; }
.sub-label { display: block; font-size: 11px; color: #bbb; margin-bottom: 6px; margin-left: 5px; }
.ls-shortcut-row { display: flex; gap: 15px; }
.ls-shortcut-item { flex: 1; }
.ls-shortcut-select { width: 100%; height: 42px; border-radius: 12px; border: 1px solid #eee; background: #f9f9f9; padding: 0 12px; font-size: 13px; color: #333; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.widget-config-row { display: flex; flex-direction: column; gap: 16px; }
.widget-config-item { padding: 10px; border-radius: 18px; background: rgba(17,24,39,0.035); }
.widget-opts { margin-top: 8px; }
.widget-text-input { width: 100%; height: 38px; border-radius: 10px; border: 1px solid #eee; background: #f9f9f9; padding: 0 12px; font-size: 13px; color: #333; margin-top: 6px; }
.widget-style-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; margin-top: 8px; align-items: stretch; }
.ls-shortcut-select.compact { min-width: 0; }
.widget-accent-picker { height: 38px; border-radius: 10px; background: #fff; border: 1px solid #eee; display: grid; grid-template-columns: minmax(0,1fr) 30px; align-items: center; gap: 5px; padding: 0 8px; cursor: pointer; }
.widget-accent-picker span { color: #8a94a3; font-size: 10px; font-weight: 700; white-space: nowrap; }
.widget-accent-picker input { width: 28px; height: 28px; border: none; border-radius: 9px; padding: 0; background: transparent; cursor: pointer; }
.widget-accent-picker input::-webkit-color-swatch-wrapper { padding: 0; }
.widget-accent-picker input::-webkit-color-swatch { border: none; border-radius: 9px; }
.ios-widget-host { position: relative; background: transparent; border-radius: 28px; overflow: hidden; box-shadow: 0 16px 32px rgba(15,23,42,0.10); }
.ios-photo-widget { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; display: block; }
.ios-widget-card { width: 100%; height: 100%; min-height: 0; position: relative; overflow: hidden; border-radius: 28px; padding: 14px; display: flex; flex-direction: column; color: #111827; isolation: isolate; }
.ios-widget-card::before { content: ''; position: absolute; inset: 0; z-index: -2; background: rgba(255,255,255,0.72); }
.ios-widget-card::after { content: ''; position: absolute; right: -28px; bottom: -30px; width: 108px; height: 108px; border-radius: 50%; z-index: -1; background: radial-gradient(circle, var(--widget-accent-soft), transparent 66%); }
.ios-widget-frost .ios-widget-card::before { background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(238,244,252,0.56)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.ios-widget-midnight .ios-widget-card { color: #fff; }
.ios-widget-midnight .ios-widget-card::before { background: linear-gradient(145deg, #111827, #2a3140); }
.ios-widget-midnight .ios-widget-head, .ios-widget-midnight .wc-date, .ios-widget-midnight .cd-label { color: rgba(255,255,255,0.68); }
.ios-widget-aurora .ios-widget-card { color: #fff; }
.ios-widget-aurora .ios-widget-card::before { background: linear-gradient(145deg, var(--widget-accent), #34c759 58%, #111827); }
.ios-widget-aurora .ios-widget-card::after { background: radial-gradient(circle, rgba(255,255,255,0.34), transparent 64%); }
.ios-widget-aurora .ios-widget-head, .ios-widget-aurora .wc-date, .ios-widget-aurora .cd-label { color: rgba(255,255,255,0.78); }
.ios-widget-paper .ios-widget-card::before { background: linear-gradient(145deg, #fffdf8, #f3f4f6); }
.ios-widget-head { display: flex; align-items: center; gap: 5px; color: #667085; font-size: 10px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.ios-widget-head i { color: var(--widget-accent); font-size: 14px; }
.widget-clock { justify-content: space-between; }
.widget-clock .wc-time { margin-top: auto; font-size: clamp(34px, 12vw, 48px); font-weight: 700; line-height: 0.95; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.widget-clock .wc-date { color: #687385; font-size: 12px; font-weight: 650; margin-top: 6px; }
.ios-widget-ring { position: absolute; right: 12px; top: 42px; width: 36px; height: 36px; border-radius: 50%; border: 7px solid var(--widget-accent-soft); border-top-color: var(--widget-accent); transform: rotate(28deg); }
.widget-countdown { justify-content: space-between; }
.widget-countdown .cd-title { margin-top: 8px; color: inherit; font-size: 14px; line-height: 1.25; font-weight: 800; overflow-wrap: anywhere; }
.widget-countdown .cd-days { margin-top: auto; font-size: clamp(42px, 15vw, 62px); font-weight: 850; line-height: 0.88; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.widget-countdown .cd-label { color: #687385; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.ios-widget-progress { height: 5px; border-radius: 99px; margin-top: 9px; background: rgba(127,127,127,0.16); overflow: hidden; }
.ios-widget-progress span { display: block; height: 100%; border-radius: inherit; background: var(--widget-accent); }
.widget-quote-card { justify-content: space-between; text-align: left; }
.widget-quote-card .qt-text { margin-top: auto; color: inherit; font-size: clamp(14px, 4.3vw, 18px); font-weight: 780; line-height: 1.28; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.qt-mark { position: absolute; right: 12px; bottom: -20px; color: var(--widget-accent-soft); font-family: Georgia, serif; font-size: 96px; line-height: 1; font-weight: 900; z-index: -1; }
.upload-box { background: #f9f9f9; border-radius: 18px; height: 50px; display: flex; align-items: center; padding: 0 6px 0 15px; cursor: pointer; position: relative; overflow: hidden; transition: transform 0.1s; border: 1px dashed transparent; }
.upload-box:active { transform: scale(0.98); }
.upload-box:hover { border-color: #ffc2d1; background: #fff5f7; }
.upload-box input { border: none; background: transparent; width: 100%; outline: none; font-size: 12px; color: #888; pointer-events: none; }
.upload-box input:valid { color: #000; font-weight: 500; }
.upload-icon { width: 38px; height: 38px; background: white; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #ff758c; box-shadow: 0 2px 8px rgba(0,0,0,0.05); flex-shrink: 0; margin-left: 5px; }
.upload-stack { display: flex; flex-direction: column; gap: 10px; }
.upload-box.wide { padding-left: 15px; }
.prefix { font-size: 12px; color: #aaa; margin-right: 10px; font-weight: bold; }
.icon-grid-pretty { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pretty-icon-item { background: #f9f9f9; aspect-ratio: auto !important; height: 90px !important; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; padding: 10px 0; overflow: hidden; }
.pretty-icon-item:active { transform: scale(0.95); background: #ffe0e6; }
.icon-preview { width: 44px !important; height: 44px !important; font-size: 24px; color: #555; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.icon-name { font-size: 11px; color: #666; line-height: 1.2; text-align: center; width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- 微信 App 样式 --- */
.wechat-header { height: 90px; padding-top: 45px; padding-left: 15px; padding-right: 15px; background: #ededed; display: flex; align-items: center; justify-content: space-between; font-size: 16px; color: #111; font-weight: 600; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(0,0,0,0.1); }
.wc-header-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 17px; font-weight: 600; z-index: 1; }
.wc-header-left { display: flex; align-items: center; gap: 5px; font-weight: 400; cursor: pointer; z-index: 2; }
.wc-header-left i { font-size: 24px; color: #111; }
.wc-header-right i { font-size: 24px; margin-left: 15px; cursor: pointer; z-index: 2; }
.wechat-content { flex: 1; overflow-y: auto; background: white; padding-bottom: 60px; }
.wc-search-box { padding: 10px; background: #ededed; }
.wc-search-inner { background: #f0f0f0; border-radius: 18px; height: 36px; display: flex; align-items: center; padding: 0 12px; color: #b2b2b2; font-size: 14px; gap: 6px; }
.wc-search-input { border: none; outline: none; background: transparent; flex: 1; font-size: 14px; color: #111; }
.wc-search-input::placeholder { color: #b2b2b2; }
.wc-swipe-container { position: relative; overflow: hidden; background: white; }
.wc-chat-item { display: flex; height: 72px; align-items: center; padding: 0 16px; background: white; cursor: pointer; position: relative; z-index: 2; will-change: transform; }
.wc-swipe-container:not(.swiping) .wc-chat-item:active { background: #dcdcdc; }
.wc-delete-btn { position: absolute; right: 0; top: 0; height: 100%; width: 75px; background: #ff3b30; display: flex; align-items: center; justify-content: center; color: white; font-size: 15px; font-weight: 500; z-index: 1; cursor: pointer; }
.wc-delete-btn:active { background: #d32f2f; }
.wc-avatar { width: 48px; height: 48px; border-radius: 6px; overflow: hidden; margin-right: 12px; flex-shrink: 0; }
.wc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wc-info { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid #f0f0f0; }
.wc-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.wc-name { font-size: 16px; font-weight: 500; color: #111; }
.wc-time { font-size: 10px; color: #b2b2b2; }
.wc-bottom { display: flex; }
.wc-msg { font-size: 13px; color: #b2b2b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; min-height: 18px; /* 防止内容为空时塌陷 */ }
.wc-tab-view { display: none; flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 80px; background: white; }
.wc-tab-view.active { display: flex; flex-direction: column; flex: 1; }
.wc-tab-bar { position: absolute; bottom: 0; left: 0; width: 100%; height: 80px; background: #f7f7f7; border-top: 1px solid #dcdcdc; display: flex; padding-bottom: 12px; z-index: 10; }
.wc-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #111; gap: 2px; cursor: pointer; }
.wc-tab svg { width: 24px; height: 24px; margin-bottom: -2px; }
.wc-tab span { font-size: 10px; transform: scale(0.85); font-weight: 500; }
.wc-tab.active { color: #07c160; }

.wc-contacts-list { background: white; }
.wc-contact-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.15s; }
.wc-contact-item:active { background: #f5f5f5; }
.wc-contact-avatar { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: #eee; flex-shrink: 0; }
.wc-contact-name { font-size: 15px; color: #111; font-weight: 500; }
.wc-contact-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wc-contact-text em { max-width: 240px; color: #8a8f98; font-size: 12px; line-height: 1.25; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-contacts-empty { text-align: center; padding: 60px 20px; color: #aaa; font-size: 14px; }

.wc-discover-page { background: white; padding-top: 10px; }
.wc-discover-item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: background 0.15s; }
.wc-discover-item:active { background: #f9f9f9; }
.wc-discover-icon { width: 32px; height: 32px; flex-shrink: 0; }
.wc-discover-name { flex: 1; font-size: 15px; color: #111; font-weight: 500; }
.wc-discover-arrow { width: 16px; height: 16px; color: #ccc; flex-shrink: 0; }
.wc-discover-empty { padding: 28px 14px; border-radius: 16px; color: #9aa3af; text-align: center; font-size: 13px; background: rgba(255,255,255,0.64); }

.wc-feature-screen { position: absolute; inset: 0; left: 0; top: 0; width: 100%; min-width: 100%; height: 100%; z-index: 45; display: flex; flex-direction: column; background: #f4f5f7; transform: translate3d(100%,0,0); transition: transform 0.24s cubic-bezier(0.2, 0.82, 0.2, 1); overflow: hidden; box-sizing: border-box; }
.wc-feature-screen.active { transform: translate3d(0,0,0); }
.wc-feature-header { height: 91px; padding: 47px 14px 0; display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(52px, auto); align-items: center; background: rgba(250,250,250,0.92); border-bottom: 1px solid rgba(15,23,42,0.06); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); flex-shrink: 0; }
.wc-feature-header > i, #wc-feature-action i { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #111827; font-size: 24px; cursor: pointer; }
.wc-feature-text-left { width: 42px !important; height: 34px !important; border-radius: 8px !important; color: #111827 !important; font-size: 15px !important; font-style: normal; font-weight: 500; }
#wc-feature-title { min-width: 0; text-align: center; color: #111827; font-size: 17px; font-weight: 760; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#wc-feature-action { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.wc-note-action-btn { width: 30px; height: 30px; border: none; border-radius: 11px; background: transparent; color: #3f4754; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wc-note-action-btn svg { width: 18px; height: 18px; display: block; }
.wc-note-action-btn:active { background: rgba(15,23,42,0.07); transform: scale(0.94); }
.wc-feature-publish-btn { min-width: 48px; height: 30px; border: none; border-radius: 6px; background: #07c160; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.wc-feature-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; padding-bottom: 26px; background: #f4f5f7; }
.wc-feature-body button, .wc-feature-body input, .wc-feature-body textarea, .wc-feature-body select { font-family: inherit; }

.wc-moment-cover { position: relative; height: 218px; margin: -12px -12px 52px; background-size: cover !important; background-position: center !important; box-shadow: inset 0 -82px 70px rgba(0,0,0,0.28); }
.wc-moment-cover-name { position: absolute; right: 88px; bottom: -34px; max-width: 190px; color: #fff; font-size: 18px; font-weight: 800; text-shadow: 0 1px 5px rgba(0,0,0,0.38); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-moment-cover-avatar { position: absolute; right: 16px; bottom: -42px; width: 66px; height: 66px; border-radius: 9px; object-fit: cover; background: #eee; border: 3px solid #fff; box-shadow: 0 8px 22px rgba(15,23,42,0.18); }
.wc-moment-composer { padding: 13px; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,0.06); }
.wc-moment-me { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wc-moment-me img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: #eee; }
.wc-moment-me div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wc-moment-me strong { color: #111827; font-size: 14px; font-weight: 760; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-moment-me span { color: #8792a2; font-size: 11px; }
.wc-moment-composer textarea { width: 100%; min-height: 72px; border: none; outline: none; resize: none; border-radius: 12px; background: #f7f8fa; padding: 11px 12px; color: #1f2937; font-size: 14px; line-height: 1.5; }
.wc-moment-composer textarea:focus { background: #f2f4f7; }
.wc-moment-composer-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.wc-moment-composer-actions label { width: 38px; height: 34px; border-radius: 12px; background: #f1f3f5; color: #526173; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wc-moment-composer-actions label i { font-size: 20px; }
.wc-moment-composer-actions input { display: none; }
.wc-moment-composer-actions button { height: 34px; padding: 0 18px; border: none; border-radius: 17px; background: #111827; color: #fff; font-size: 13px; font-weight: 760; cursor: pointer; }
.wc-moment-feed { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.wc-moment-post { display: flex; gap: 10px; padding: 13px; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,0.05); }
.wc-moment-avatar img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; background: #eee; }
.wc-moment-content { min-width: 0; flex: 1; }
.wc-moment-name { color: #315283; font-size: 14px; font-weight: 760; margin-bottom: 5px; }
.wc-moment-text { color: #111827; font-size: 14px; line-height: 1.52; overflow-wrap: anywhere; }
.wc-moment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 8px; }
.wc-moment-grid img, .wc-moment-grid video { width: 100%; aspect-ratio: 1; border-radius: 7px; object-fit: cover; background: #eef0f2; display: block; }
.wc-moment-draft-img { position: relative; }
.wc-moment-draft-img button { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(15,23,42,0.68); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wc-moment-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: #8a94a3; font-size: 11px; }
.wc-moment-meta button { border: none; background: transparent; color: #576b95; font-size: 12px; cursor: pointer; }
.wc-moment-meta-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; flex-shrink: 1; }
.wc-moment-waiting { display: inline-flex; align-items: center; gap: 4px; margin-top: 7px; padding: 5px 8px; border-radius: 10px; background: #f3f5f8; color: #7c8797; font-size: 11px; }
.wc-moment-comments { margin-top: 8px; padding: 8px 9px; border-radius: 10px; background: #f2f3f5; color: #1f2937; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.wc-moment-comments strong { color: #315283; font-weight: 760; }
.wc-moment-comment { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 2px 0; }
.wc-moment-comment em { color: #315283; font-style: normal; }
.wc-moment-comment button { border: none; background: transparent; color: #576b95; font-size: 11px; cursor: pointer; padding: 0; line-height: 1.55; }
.wc-moment-compose-page { min-height: 100%; background: #fff; margin: -12px; padding: 16px 16px 40px; }
.wc-moment-compose-text { width: 100%; min-height: 190px; border: none; outline: none; resize: none; color: #111827; font-size: 17px; line-height: 1.55; background: transparent; }
.wc-moment-compose-row { min-height: 48px; display: grid; grid-template-columns: 24px auto minmax(0, 1fr); align-items: center; gap: 9px; border-top: 1px solid #f0f1f3; color: #111827; font-size: 14px; cursor: pointer; }
.wc-moment-compose-row i { color: #657283; font-size: 19px; }
.wc-moment-compose-row em { justify-self: end; color: #8a94a3; font-size: 13px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-moment-visibility { justify-self: end; display: inline-flex; padding: 2px; border-radius: 9px; background: #f0f2f5; }
.wc-moment-visibility button { min-width: 46px; height: 28px; border: none; border-radius: 8px; background: transparent; color: #657283; font-size: 12px; cursor: pointer; }
.wc-moment-visibility button.active { background: #fff; color: #111827; box-shadow: 0 1px 4px rgba(15,23,42,0.12); }
.wc-moment-add-media { margin-top: 12px; width: 98px; height: 98px; border-radius: 8px; background: #f3f4f6; color: #7b8492; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; font-size: 12px; cursor: pointer; }
.wc-moment-add-media i { font-size: 26px; }
.wc-moment-add-media input { display: none; }

.wc-profile-page { min-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.wc-profile-card { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 15px; align-items: center; padding: 18px 16px; border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(15,23,42,0.065); }
.wc-profile-avatar { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; background: #eef0f2; }
.wc-profile-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.wc-profile-main strong { color: #111827; font-size: 20px; line-height: 1.15; font-weight: 820; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-profile-main span { color: #7c8797; font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-profile-meta-action { color: #576b95 !important; cursor: pointer; }
.wc-profile-section { padding: 14px 15px; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,0.05); }
.wc-profile-section-title { color: #8a94a3; font-size: 12px; font-weight: 760; margin-bottom: 8px; }
.wc-profile-bio { color: #1f2937; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.wc-profile-signature { margin-top: 9px; padding: 9px 10px; border-radius: 12px; background: #f4f6f8; color: #526173; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.wc-profile-moments-link { cursor: pointer; transition: transform 0.16s ease, background 0.16s ease; }
.wc-profile-moments-link:active { transform: scale(0.985); background: #f9fafb; }
.wc-profile-moments-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin-bottom: 10px; }
.wc-profile-moments-head span { color: #111827; font-size: 14px; font-weight: 780; white-space: nowrap; }
.wc-profile-moment-cover { height: 54px; border-radius: 13px; background-size: cover !important; background-position: center !important; box-shadow: inset 0 -26px 36px rgba(0,0,0,0.16); }
.wc-profile-moments-arrow { justify-self: end; color: #c4cad3; font-size: 22px; }
.wc-profile-moment-list { display: flex; flex-direction: column; gap: 7px; }
.wc-char-moment-list { margin-top: -34px; padding: 0 2px 10px; }
.wc-profile-moment { padding: 9px 10px; border-radius: 12px; background: #f4f6f8; }
.wc-profile-moment div { color: #1f2937; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.wc-profile-moment span { display: block; margin-top: 4px; color: #9aa3af; font-size: 10px; }
.wc-profile-moment-empty { padding: 10px 0 2px; color: #9aa3af; font-size: 12px; }
.wc-profile-block-card { padding: 13px 14px; border-radius: 18px; background: #fff7ed; border: 1px solid rgba(251,146,60,0.26); display: flex; flex-direction: column; gap: 6px; }
.wc-profile-block-card strong { color: #9a3412; font-size: 14px; font-weight: 820; }
.wc-profile-block-card span, .wc-profile-block-card div { color: #c2410c; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.wc-profile-verify-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.wc-profile-verify-actions button { height: 34px; border: none; border-radius: 12px; background: #111827; color: #fff; font-size: 12px; font-weight: 760; cursor: pointer; }
.wc-profile-verify-actions button + button { background: rgba(194,65,12,0.12); color: #9a3412; }
.wc-profile-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 0 2px; }
.wc-profile-actions button { min-width: 0; height: 44px; border: none; border-radius: 16px; background: #fff; color: #111827; font-size: 13px; font-weight: 780; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; box-shadow: 0 8px 22px rgba(15,23,42,0.07); }
.wc-profile-actions button:first-child { background: #07c160; color: #fff; }
.wc-profile-actions button i { font-size: 18px; }

.wc-channel-feed { display: flex; flex-direction: column; gap: 14px; }
.wc-channel-card { overflow: hidden; border-radius: 20px; background: #111827; color: #fff; box-shadow: 0 14px 34px rgba(15,23,42,0.18); }
.wc-channel-stage { position: relative; aspect-ratio: 9 / 14; overflow: hidden; background: #111827; }
.wc-channel-frame { position: absolute; inset: 0; opacity: 0; animation: wcChannelFrame 9s infinite; }
.wc-channel-frame:nth-child(1) { opacity: 1; animation-delay: 0s; }
.wc-channel-frame:nth-child(2) { animation-delay: 3s; }
.wc-channel-frame:nth-child(3) { animation-delay: 6s; }
.wc-channel-frame::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.28), transparent 26%), linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.42)); }
.wc-channel-progress { position: absolute; left: 12px; right: 12px; bottom: 11px; height: 3px; border-radius: 99px; background: rgba(255,255,255,0.22); overflow: hidden; }
.wc-channel-progress::before { content: ''; display: block; width: 100%; height: 100%; border-radius: inherit; background: rgba(255,255,255,0.88); transform-origin: left; animation: wcChannelProgress 9s linear infinite; }
.wc-channel-danmaku { position: absolute; top: 18px; left: 0; right: 0; height: 132px; pointer-events: none; overflow: hidden; }
.wc-channel-danmaku span { position: absolute; left: 100%; top: calc(12px + var(--i) * 34px); max-width: 240px; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,0.26); color: rgba(255,255,255,0.9); font-size: 12px; white-space: nowrap; animation: wcDanmaku 8s linear infinite; animation-delay: calc(var(--i) * 1.35s); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wc-channel-info { padding: 12px 13px 2px; display: flex; flex-direction: column; gap: 4px; }
.wc-channel-info strong { font-size: 14px; font-weight: 800; }
.wc-channel-info span { color: rgba(255,255,255,0.78); font-size: 13px; }
.wc-channel-info em { color: rgba(255,255,255,0.58); font-size: 12px; line-height: 1.45; font-style: normal; }
.wc-channel-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 11px 10px 12px; }
.wc-channel-actions button { min-width: 0; height: 34px; border: 1px solid rgba(255,255,255,0.14); border-radius: 17px; background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.86); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.wc-channel-actions button.active { background: rgba(255,255,255,0.9); color: #111827; }
.wc-channel-comments { margin: 0 12px 13px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.78); font-size: 12px; line-height: 1.5; }

.wc-ai-loading { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 26px; border-radius: 20px; background: #fff; color: #64748b; text-align: center; font-size: 13px; box-shadow: 0 10px 28px rgba(15,23,42,0.06); }
.wc-ai-loading i { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f1f5f9; color: #111827; font-size: 23px; animation: wcAiPulse 1.3s ease-in-out infinite; }
.wc-ai-loading.error i { animation: none; color: #ef4444; background: #fef2f2; }
.wc-ai-loading button { height: 34px; padding: 0 15px; border: none; border-radius: 17px; background: #111827; color: #fff; font-size: 12px; font-weight: 760; cursor: pointer; }
@keyframes wcAiPulse { 0%, 100% { transform: scale(1); opacity: 0.72; } 50% { transform: scale(1.08); opacity: 1; } }

.wc-live-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; }
.wc-live-tabs button { flex: 0 0 auto; height: 34px; padding: 0 14px; border: none; border-radius: 17px; background: #fff; color: #526173; font-size: 13px; font-weight: 760; cursor: pointer; box-shadow: 0 4px 14px rgba(15,23,42,0.05); }
.wc-live-tabs button.active { background: #111827; color: #fff; }
.wc-live-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.wc-live-card { overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(15,23,42,0.07); }
.wc-live-cover { min-height: 142px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, #121826, #315a72 52%, #a17f5a); color: #fff; }
.wc-live-cover span { align-self: flex-start; padding: 4px 8px; border-radius: 999px; background: #ff3040; font-size: 10px; font-weight: 800; letter-spacing: 0; }
.wc-live-cover strong { max-width: 230px; font-size: 22px; line-height: 1.15; font-weight: 820; letter-spacing: 0; }
.wc-live-meta { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px 4px; color: #788395; font-size: 12px; }
.wc-live-meta b { color: #111827; font-weight: 760; }
.wc-live-chat { display: flex; flex-direction: column; gap: 4px; padding: 8px 13px; color: #526173; font-size: 12px; line-height: 1.35; }
.wc-live-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 13px 13px; }
.wc-live-actions button { height: 38px; border: none; border-radius: 14px; background: #f1f3f5; color: #1f2937; font-size: 13px; font-weight: 760; cursor: pointer; }
.wc-live-actions button:last-child { background: #111827; color: #fff; }

.wc-shop-app { height: 100%; min-height: 0; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.wc-shop-content { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 12px; }
.wc-shop-search { height: 42px; margin-bottom: 10px; padding: 0 12px; border-radius: 21px; background: #fff; display: flex; align-items: center; gap: 8px; box-shadow: 0 6px 18px rgba(15,23,42,0.05); }
.wc-shop-search i { color: #8a94a3; font-size: 18px; }
.wc-shop-search input { flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: transparent; color: #111827; font-size: 14px; }
.wc-shop-ai-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px; margin-bottom: 10px; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,0.055); }
.wc-shop-ai-card input { min-width: 0; height: 36px; border: none; outline: none; border-radius: 14px; background: #f5f6f8; padding: 0 10px; color: #111827; font-size: 12px; }
.wc-shop-ai-card button { height: 36px; border: none; border-radius: 14px; background: #ff5000; color: #fff; padding: 0 11px; font-size: 12px; font-weight: 800; cursor: pointer; }
.wc-shop-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wc-shop-card { min-width: 0; padding: 9px; border-radius: 18px; background: #fff; box-shadow: 0 9px 24px rgba(15,23,42,0.06); }
.wc-shop-cover { height: 112px; border-radius: 14px; overflow: hidden; margin-bottom: 9px; display: flex; align-items: center; justify-content: center; }
.wc-shop-cover::after { content: ''; width: 46px; height: 46px; border-radius: 16px; background: rgba(255,255,255,0.32); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }
.wc-shop-cover img { width: 100%; height: 100%; object-fit: cover; }
.wc-shop-cover:has(img)::after { content: none; }
.wc-shop-name { color: #111827; font-size: 13px; font-weight: 760; line-height: 1.32; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-shop-tag { margin-top: 3px; color: #8a94a3; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-shop-desc { margin-top: 5px; min-height: 30px; color: #64748b; font-size: 11px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wc-shop-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.wc-shop-row strong { min-width: 0; color: #ff5000; font-size: 15px; font-weight: 820; font-variant-numeric: tabular-nums; }
.wc-shop-row button { width: 46px; height: 28px; border: none; border-radius: 14px; background: #ff5000; color: #fff; font-size: 12px; font-weight: 760; cursor: pointer; }
.wc-shop-link { width: 100%; height: 29px; margin-top: 8px; border: none; border-radius: 14px; background: #f1f3f5; color: #526173; font-size: 12px; font-weight: 700; cursor: pointer; }
.wc-shop-custom, .wc-shop-cart { margin-top: 12px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 9px 24px rgba(15,23,42,0.06); }
.wc-shop-custom { display: grid; grid-template-columns: 1fr 86px; gap: 8px; }
.wc-shop-custom input { min-width: 0; height: 36px; border: none; border-radius: 12px; background: #f5f6f8; padding: 0 10px; outline: none; color: #111827; font-size: 13px; }
.wc-shop-custom input:first-child { grid-column: 1 / -1; }
.wc-shop-custom textarea { grid-column: 1 / -1; min-height: 56px; border: none; border-radius: 12px; background: #f5f6f8; padding: 10px; resize: none; outline: none; color: #111827; font-size: 13px; line-height: 1.4; }
.wc-shop-custom button { grid-column: 1 / -1; height: 38px; border: none; border-radius: 14px; background: #111827; color: #fff; font-size: 13px; font-weight: 760; cursor: pointer; }
.wc-shop-cart h4 { margin: 0 0 10px; color: #111827; font-size: 15px; font-weight: 820; }
.wc-shop-cart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f0f2f4; }
.wc-shop-cart-row span { min-width: 0; color: #1f2937; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-shop-cart-row b { color: #111827; font-size: 13px; font-weight: 760; font-variant-numeric: tabular-nums; }
.wc-shop-cart-row button { border: none; background: transparent; color: #ef4444; font-size: 12px; cursor: pointer; }
.wc-shop-total { padding: 11px 0 8px; text-align: right; color: #111827; font-size: 16px; font-weight: 820; font-variant-numeric: tabular-nums; }
.wc-shop-cart textarea, .wc-shop-cart select { width: 100%; border: none; outline: none; border-radius: 14px; background: #f5f6f8; color: #1f2937; font-size: 13px; }
.wc-shop-cart textarea { min-height: 62px; padding: 10px 11px; resize: none; line-height: 1.45; }
.wc-shop-cart select { height: 38px; margin-top: 8px; padding: 0 10px; }
.wc-shop-checkout { width: 100%; height: 42px; margin-top: 10px; border: none; border-radius: 18px; background: #ff5000; color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(255,80,0,0.18); }
.wc-shop-me-card { display: flex; flex-direction: column; gap: 5px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #111827, #ff5000); color: #fff; box-shadow: 0 12px 30px rgba(15,23,42,0.15); }
.wc-shop-me-card strong { font-size: 18px; font-weight: 850; }
.wc-shop-me-card span { color: rgba(255,255,255,0.72); font-size: 12px; }
.wc-shop-order { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid #f0f2f4; }
.wc-shop-order strong { color: #ff5000; font-size: 15px; font-variant-numeric: tabular-nums; }
.wc-shop-order span { color: #8a94a3; font-size: 11px; }
.wc-shop-order em { color: #1f2937; font-size: 12px; font-style: normal; line-height: 1.35; overflow-wrap: anywhere; }
.wc-shop-tabbar { flex: 0 0 58px; height: 58px; margin: 10px -2px -8px; border-radius: 22px 22px 0 0; background: rgba(255,255,255,0.96); border: 1px solid rgba(15,23,42,0.06); display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; box-shadow: 0 -8px 28px rgba(15,23,42,0.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); z-index: 2; }
.wc-shop-tabbar button { height: 100%; border: none; background: transparent; color: #7c8797; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; font-weight: 760; cursor: pointer; }
.wc-shop-tabbar button i { font-size: 19px; }
.wc-shop-tabbar button.active { color: #ff5000; }

@keyframes wcChannelFrame { 0%, 30% { opacity: 1; transform: scale(1); } 36%, 100% { opacity: 0; transform: scale(1.035); } }
@keyframes wcChannelProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wcDanmaku { from { transform: translateX(0); } to { transform: translateX(-460px); } }

.wc-me-page { background: white; padding-top: 10px; }
.wc-me-profile { display: flex; align-items: center; gap: 15px; padding: 25px 20px; border-bottom: 8px solid #f5f5f5; }
.wc-me-avatar { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #eee; flex-shrink: 0; }
.wc-me-info { flex: 1; }
.wc-me-name { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 4px; }
.wc-me-id { font-size: 12px; color: #999; margin-bottom: 4px; }
.wc-me-status { font-size: 13px; color: #666; }
.wc-me-editable { cursor: pointer; transition: opacity 0.15s ease, transform 0.15s ease; }
.wc-me-editable:active { opacity: 0.68; transform: scale(0.985); }
.wc-me-menu-item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #f5f5f5; }
.wc-me-menu-icon { width: 26px; height: 26px; flex-shrink: 0; }
.wc-me-menu-name { flex: 1; font-size: 15px; color: #111; }
.wc-toast { position: absolute; left: 50%; bottom: 108px; z-index: 3900; transform: translateX(-50%) translateY(12px); max-width: 76%; padding: 9px 14px; border-radius: 999px; background: rgba(17,24,39,0.88); color: #fff; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; box-shadow: 0 10px 28px rgba(15,23,42,0.22); }
.wc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.wc-fav-page { min-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.wc-fav-search { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 14px; background: #fff; border: 1px solid rgba(15,23,42,0.05); box-shadow: 0 6px 18px rgba(15,23,42,0.04); }
.wc-fav-search i { color: #8a94a3; font-size: 18px; }
.wc-fav-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: #111827; font-size: 14px; }
.wc-fav-list { display: flex; flex-direction: column; gap: 10px; }
.wc-fav-item { display: flex; gap: 8px; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid rgba(15,23,42,0.045); box-shadow: 0 8px 24px rgba(15,23,42,0.055); }
.wc-fav-main { flex: 1; min-width: 0; cursor: pointer; }
.wc-fav-title { color: #111827; font-size: 14px; font-weight: 820; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-fav-text { margin-top: 5px; color: #526173; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wc-fav-time { margin-top: 7px; color: #a0a8b4; font-size: 11px; }
.wc-fav-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.wc-fav-actions button { width: 32px; height: 32px; border: none; border-radius: 12px; background: #f4f6f8; color: #64748b; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wc-fav-actions button i { font-size: 17px; }
.wc-fav-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.wc-fav-media img, .wc-fav-media video { width: 100%; aspect-ratio: 1; border-radius: 9px; object-fit: cover; background: #eef0f3; display: block; }
.wc-fav-media audio { grid-column: 1 / -1; width: 100%; }
.wc-note-page { min-height: 100%; display: flex; flex-direction: column; gap: 12px; margin: -12px; padding: 14px; background: #fff; }
.wc-note-title { width: 100%; height: 44px; border: none; outline: none; border-bottom: 1px solid #eef0f3; color: #111827; font-size: 20px; font-weight: 820; }
.wc-note-text { width: 100%; min-height: 260px; flex: 1; border: none; outline: none; resize: none; color: #1f2937; font-size: 15px; line-height: 1.65; }
.wc-note-tools { display: flex; gap: 8px; }
.wc-note-tools label { height: 36px; padding: 0 12px; border-radius: 13px; background: #f3f5f8; color: #526173; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 760; cursor: pointer; }
.wc-note-tools input { display: none; }
.wc-note-media { display: block; }
.wc-note-time { color: #a0a8b4; font-size: 11px; }
.wc-sticker-store-page { display: flex; flex-direction: column; gap: 12px; }
.wc-sticker-store-hero { padding: 16px; border-radius: 20px; background: linear-gradient(135deg, #101828, #44546a); color: #fff; box-shadow: 0 12px 28px rgba(15,23,42,0.16); }
.wc-sticker-soft-hero { min-height: 92px; display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: center; gap: 12px; background: linear-gradient(135deg, #fafdff, #d8e6ff); color: #263241; border: 1px solid rgba(255,255,255,0.86); box-shadow: 0 12px 28px rgba(108,132,162,0.12); }
.wc-sticker-hero-icon { width: 54px; height: 54px; border-radius: 18px; background: rgba(255,255,255,0.78); display: flex; align-items: center; justify-content: center; color: #7f9fc7; font-size: 28px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.84); }
.wc-sticker-store-hero strong { display: block; font-size: 19px; font-weight: 860; }
.wc-sticker-store-hero span { display: block; margin-top: 6px; color: rgba(82,103,130,0.72); font-size: 12px; line-height: 1.45; }
.wc-sticker-quick-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wc-sticker-quick-row button, .wc-sticker-quick-row label { min-width: 0; height: 58px; border: none; border-radius: 18px; background: #fff; color: #526173; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 780; box-shadow: 0 8px 22px rgba(15,23,42,0.045); cursor: pointer; }
.wc-sticker-quick-row i { color: #7f9fc7; font-size: 21px; }
.wc-sticker-quick-row input { display: none; }
.wc-sticker-import-card, .wc-sticker-pack-summary { padding: 13px; border-radius: 20px; background: #fff; border: 1px solid rgba(15,23,42,0.045); box-shadow: 0 9px 24px rgba(15,23,42,0.055); }
.wc-sticker-import-title { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; align-items: center; margin-bottom: 10px; }
.wc-sticker-import-title i { width: 38px; height: 38px; border-radius: 14px; background: #f1f5f9; color: #111827; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.wc-sticker-import-title strong { display: block; color: #111827; font-size: 14px; font-weight: 840; }
.wc-sticker-import-title span { display: block; margin-top: 2px; color: #8a94a3; font-size: 11px; line-height: 1.35; }
.wc-sticker-import-target { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.wc-sticker-import-target select, .wc-sticker-import-target input, .wc-sticker-import-text { width: 100%; border: none; outline: none; border-radius: 14px; background: #f5f6f8; color: #111827; font-size: 13px; }
.wc-sticker-import-target select, .wc-sticker-import-target input { height: 38px; padding: 0 10px; }
.wc-sticker-import-text { min-height: 108px; margin-top: 9px; padding: 11px; resize: none; line-height: 1.45; }
.wc-sticker-import-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.wc-sticker-import-actions button, .wc-sticker-import-actions label, .wc-me-settings-links button { min-width: 0; min-height: 40px; border: none; border-radius: 15px; background: #9bb8dc; color: #fff; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 780; cursor: pointer; box-shadow: 0 7px 20px rgba(105,132,164,0.12); }
.wc-sticker-import-actions label { background: #eef4ff; color: #526173; box-shadow: none; }
.wc-sticker-import-actions input { display: none; }
.wc-sticker-import-actions i, .wc-me-settings-links i { font-size: 18px; }
.wc-sticker-summary-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wc-sticker-summary-head strong { color: #111827; font-size: 15px; font-weight: 840; }
.wc-sticker-summary-head button { height: 30px; padding: 0 12px; border: none; border-radius: 12px; background: #f1f5f9; color: #526173; font-size: 12px; font-weight: 760; cursor: pointer; }
.wc-sticker-pack-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 20px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #f0f2f4; cursor: pointer; }
.wc-sticker-pack-preview { min-height: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; align-items: center; }
.wc-sticker-pack-preview img { width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: contain; background: #f4f6f8; }
.wc-sticker-pack-preview span { grid-column: 1 / -1; color: #a0a8b4; font-size: 12px; text-align: center; }
.wc-sticker-pack-meta { min-width: 0; }
.wc-sticker-pack-meta strong { display: block; color: #111827; font-size: 13px; font-weight: 820; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-sticker-pack-meta span { display: block; margin-top: 3px; color: #8a94a3; font-size: 11px; }
.wc-sticker-pack-row > i { color: #b8c0cc; font-size: 18px; }
.wc-me-settings-links button { background: #fff; color: #1f2937; box-shadow: 0 7px 20px rgba(15,23,42,0.045); }
.wc-me-settings-links i { color: #2563eb; }
.wc-me-settings-page { display: flex; flex-direction: column; gap: 12px; }
.wc-me-settings-card { padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,0.055); display: flex; flex-direction: column; gap: 12px; }
.wc-me-settings-save { height: 42px; border: none; border-radius: 15px; background: #111827; color: #fff; font-size: 14px; font-weight: 820; cursor: pointer; }
.wc-me-settings-links { display: grid; grid-template-columns: 1fr; gap: 8px; }
.wc-profile-moment-actions { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wc-profile-moment-actions button { border: none; background: transparent; color: #576b95; font-size: 12px; cursor: pointer; }
.wc-chat-room { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #ffffff; z-index: 20; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.wc-chat-room.active { transform: translateX(0); }
.wc-room-header { display: none; }
.wc-room-title { font-size: 16px; font-weight: 600; color: #111; }
.wc-room-header i { font-size: 26px; padding: 5px; cursor: pointer; color: #111; }
.wc-floating-avatar { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.wc-floating-avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 10px rgba(0,0,0,0.12); border: 2px solid #fff; }
.wc-floating-avatar .wc-float-name { font-size: 13px; font-weight: 600; color: #333; }
.wc-float-back { position: absolute; top: 52px; left: 12px; z-index: 30; font-size: 22px; color: #666; cursor: pointer; padding: 4px; }
.wc-float-more { position: absolute; top: 52px; right: 12px; z-index: 30; font-size: 20px; color: #666; cursor: pointer; padding: 4px; }
.wc-room-content { flex: 1; overflow-y: auto; padding: 90px 10px 98px; display: flex; flex-direction: column; gap: 7px; background: #ffffff; position: relative; }
.msg-row { display: flex; align-items: flex-end; gap: 6px; width: 100%; padding: 1px 0; }
.msg-row.right { flex-direction: row-reverse; }
.msg-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.msg-row.right .msg-avatar { width: 30px; height: 30px; opacity: 0.92; }
.msg-avatar-ai { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.msg-avatar-ai:active { transform: scale(0.94); box-shadow: 0 0 0 3px rgba(7,193,96,0.12); }
.wc-ai-status-overlay, .wc-ai-phone-overlay { position: absolute; inset: 0; z-index: 3100; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,0.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wc-ai-status-ticket { width: min(328px, calc(100% - 34px)); max-height: calc(100% - 62px); overflow-y: auto; color: #171717; background: radial-gradient(circle at 18% 22%, rgba(0,0,0,0.045) 0 1px, transparent 1.2px) 0 0 / 12px 12px, radial-gradient(circle at 76% 68%, rgba(0,0,0,0.035) 0 1px, transparent 1.2px) 0 0 / 17px 17px, linear-gradient(180deg, #f8f5eb, #eee8da); border-radius: 3px; box-shadow: 0 26px 70px rgba(15,23,42,0.34); position: relative; border-top: 10px solid #050505; border-bottom: 1px solid rgba(0,0,0,0.18); font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.wc-ai-status-ticket::before, .wc-ai-status-ticket::after { content: ''; position: sticky; left: 0; right: 0; display: block; height: 12px; pointer-events: none; background: linear-gradient(135deg, transparent 8px, #f8f5eb 0) 0 0 / 16px 12px repeat-x, linear-gradient(225deg, transparent 8px, #f8f5eb 0) 8px 0 / 16px 12px repeat-x; z-index: 2; }
.wc-ai-status-ticket::before { top: 0; margin-top: -1px; }
.wc-ai-status-ticket::after { bottom: 0; transform: rotate(180deg); background: linear-gradient(135deg, transparent 8px, #eee8da 0) 0 0 / 16px 12px repeat-x, linear-gradient(225deg, transparent 8px, #eee8da 0) 8px 0 / 16px 12px repeat-x; }
.wc-ai-status-top { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: center; gap: 9px; padding: 8px 16px 6px; }
.wc-ai-status-top button { width: 30px; height: 30px; border: 1px solid rgba(0,0,0,0.18); border-radius: 50%; background: rgba(255,255,255,0.42); color: #111; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35); }
.wc-ai-status-top button i { font-size: 17px; }
.wc-ai-status-top strong { display: block; min-width: 0; color: #111; font-size: 15px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0; }
.wc-ai-status-top span { display: block; margin-top: 1px; color: rgba(0,0,0,0.58); font-size: 10px; font-weight: 800; letter-spacing: 0.5px; }
.wc-ai-status-brand { margin: 2px 18px 12px; padding: 12px 0 10px; text-align: center; border-top: 1px dashed rgba(0,0,0,0.52); border-bottom: 1px dashed rgba(0,0,0,0.52); }
.wc-ai-status-logo { width: 84px; height: 44px; margin: 0 auto 5px; border: 2px double #111; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.wc-ai-status-logo i { font-size: 18px; }
.wc-ai-status-logo span { font-size: 9px; font-weight: 900; letter-spacing: 1.2px; }
.wc-ai-status-brand h3 { margin: 0; color: #080808; font-size: 21px; line-height: 1.08; font-weight: 900; letter-spacing: 0; text-transform: uppercase; overflow-wrap: anywhere; }
.wc-ai-status-brand p { margin: 5px 0 0; font-size: 11px; color: rgba(0,0,0,0.7); font-weight: 900; letter-spacing: 1px; }
.wc-ai-status-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 5px; padding: 0 18px 12px; border-bottom: 1px dashed rgba(0,0,0,0.45); }
.wc-ai-status-meta span { font-size: 12px; font-weight: 900; letter-spacing: 0.3px; }
.wc-ai-status-meta b { font-size: 12px; font-weight: 900; text-align: right; }
.wc-ai-status-bar { margin: 12px 18px 6px; padding: 4px 8px; background: #050505; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: 1px; }
.wc-ai-status-fields { display: flex; flex-direction: column; padding: 0 18px 10px; }
.wc-ai-status-row { padding: 8px 0 9px; border-bottom: 1px dotted rgba(0,0,0,0.32); }
.wc-ai-status-item-head { display: grid; grid-template-columns: auto minmax(0, max-content) minmax(14px, 1fr) auto; align-items: baseline; gap: 7px; color: #080808; }
.wc-ai-status-item-head b { font-size: 11px; font-weight: 900; }
.wc-ai-status-item-head span { min-width: 0; font-size: 14px; font-weight: 900; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wc-ai-status-item-head i { display: block; height: 1px; min-width: 14px; border-bottom: 1px dashed rgba(0,0,0,0.52); transform: translateY(-2px); }
.wc-ai-status-item-head em { padding: 2px 6px; background: #050505; color: #fff; font-size: 9px; line-height: 1; font-style: normal; font-weight: 900; text-transform: uppercase; }
.wc-ai-status-row p { margin: 5px 0 0 35px; color: rgba(0,0,0,0.74); font-size: 11px; line-height: 1.42; overflow-wrap: anywhere; white-space: pre-wrap; }
.wc-ai-status-error { margin: 0 18px 10px; padding: 7px 8px; border: 1px dashed rgba(0,0,0,0.42); color: #111; font-size: 11px; line-height: 1.35; background: rgba(255,255,255,0.32); }
.wc-ai-status-footer { margin: 2px 18px 12px; padding: 7px 8px; background: #050505; color: #fff; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 900; }
.wc-ai-status-footer div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wc-ai-status-footer div:last-child { text-align: right; }
.wc-ai-status-footer span { color: rgba(255,255,255,0.76); font-size: 10px; }
.wc-ai-status-footer b { color: #fff; font-size: 12px; }
.wc-ai-status-guestbook { margin: 0 18px 14px; min-height: 82px; padding: 8px 8px 7px; border-top: 1px solid #111; border-bottom: 1px solid #111; background: rgba(255,255,255,0.22); display: flex; flex-direction: column; justify-content: space-between; }
.wc-ai-status-guestbook span { font-size: 11px; font-style: italic; text-decoration: underline; }
.wc-ai-status-guestbook p { margin: 6px 0; color: #111; font-family: "Segoe Script", "Comic Sans MS", cursive; font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; }
.wc-ai-status-guestbook b { align-self: flex-end; color: #111; font-size: 10px; }
.wc-ai-status-goodday { padding: 0 18px 14px; text-align: center; color: #111; font-size: 12px; font-weight: 900; letter-spacing: 1px; }
.wc-ai-status-history .wc-ai-status-brand { margin-bottom: 10px; }
.wc-ai-history-list { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 14px; }
.wc-ai-history-item { border: 1px dashed rgba(0,0,0,0.34); background: rgba(255,255,255,0.24); }
.wc-ai-history-item summary { min-height: 38px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 8px 9px; cursor: pointer; list-style: none; color: #111; }
.wc-ai-history-item summary::-webkit-details-marker { display: none; }
.wc-ai-history-item summary span { min-width: 0; font-size: 12px; font-weight: 900; letter-spacing: 0.8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-ai-history-item summary b { font-size: 12px; font-weight: 900; text-align: right; }
.wc-ai-history-item summary em { grid-column: 1 / -1; width: fit-content; max-width: 100%; padding: 2px 6px; background: #050505; color: #fff; font-size: 9px; line-height: 1; font-style: normal; font-weight: 900; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-ai-history-fields { padding: 0 9px 8px; border-top: 1px dotted rgba(0,0,0,0.24); }
.wc-ai-history-field { padding: 7px 0; border-bottom: 1px dotted rgba(0,0,0,0.18); }
.wc-ai-history-field:last-child { border-bottom: none; }
.wc-ai-history-field b { display: block; color: #111; font-size: 11px; font-weight: 900; }
.wc-ai-history-field p { margin: 4px 0 0; color: rgba(0,0,0,0.72); font-size: 11px; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; }
.wc-ai-history-empty { margin: 0 18px 14px; min-height: 150px; border: 1px dashed rgba(0,0,0,0.36); background: rgba(255,255,255,0.24); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; color: #111; }
.wc-ai-history-empty i { font-size: 24px; }
.wc-ai-history-empty span { font-size: 13px; font-weight: 900; }
.wc-ai-history-empty p { margin: 0; color: rgba(0,0,0,0.56); font-size: 11px; line-height: 1.35; }
.wc-ai-phone { width: min(342px, calc(100% - 24px)); height: min(660px, calc(100% - 28px)); border-radius: 34px; padding: 10px; background: #101418; box-shadow: 0 26px 70px rgba(0,0,0,0.42); display: flex; flex-direction: column; color: #f8fafc; }
.wc-ai-phone-status { height: 18px; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; padding: 0 11px; }
.wc-ai-phone-status b { height: 6px; border-radius: 99px; background: #05070a; }
.wc-ai-phone-head { display: grid; grid-template-columns: 42px minmax(0, 1fr) 34px; align-items: center; gap: 9px; padding: 8px 8px 10px; }
.wc-ai-phone-head img { width: 42px; height: 42px; border-radius: 14px; object-fit: cover; background: #2a3038; }
.wc-ai-phone-head strong { display: block; min-width: 0; font-size: 15px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-ai-phone-head span { color: rgba(248,250,252,0.58); font-size: 11px; }
.wc-ai-phone-head button { width: 32px; height: 32px; border: none; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wc-ai-phone-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 0 7px 9px; }
.wc-ai-phone-apps button { min-width: 0; height: 48px; border: none; border-radius: 15px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.76); font-size: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.wc-ai-phone-apps button.active { background: rgba(255,255,255,0.9); color: #111827; box-shadow: 0 8px 18px rgba(0,0,0,0.18); }
.wc-ai-phone-apps i { font-size: 18px; }
.wc-ai-phone-screen { flex: 1; min-height: 0; overflow-y: auto; border-radius: 24px; padding: 10px; background: #f5f6f8; color: #111827; display: flex; flex-direction: column; gap: 9px; }
.wc-ai-phone-section { padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 5px 14px rgba(15,23,42,0.045); }
.wc-ai-phone-section h4 { margin: 0 0 7px; color: #111827; font-size: 13px; font-weight: 850; display: flex; align-items: center; gap: 5px; }
.wc-ai-phone-section h4 i { color: #526173; font-size: 16px; }
.wc-ai-phone-section p { margin: 5px 0 0; color: #4b5563; font-size: 12px; line-height: 1.42; overflow-wrap: anywhere; }
.wc-ai-phone-chat { position: relative; min-height: 42px; padding: 6px 44px 6px 0; border-bottom: 1px solid #f0f2f4; }
.wc-ai-phone-chat:last-child { border-bottom: none; }
.wc-ai-phone-chat span { display: block; color: #111827; font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-ai-phone-chat p { margin-top: 3px; color: #7c8797; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-ai-phone-chat em { position: absolute; right: 0; top: 7px; color: #a3acba; font-size: 10px; font-style: normal; }
.wc-ai-phone-diary p { color: #263241; line-height: 1.55; white-space: pre-wrap; }
.msg-bubble-shell { display: flex; flex-direction: column; align-items: flex-start; max-width: min(calc(100% - 38px), 306px); min-width: 0; }
.msg-bubble-shell.media { max-width: min(78%, 248px); }
.msg-bubble { padding: 8px 10px 5px 12px; font-size: 14px; line-height: 1.45; max-width: min(calc(100% - 36px), 306px); min-width: 68px; word-break: normal; overflow-wrap: anywhere; position: relative; background: var(--bubble-ai, #f2f3f5); color: #17212b; border-radius: 20px 20px 20px 7px; box-shadow: 0 1px 1px rgba(15,23,42,0.05); }
.msg-bubble-shell .msg-bubble { max-width: 100%; }
.msg-bubble.green { background: var(--bubble-user, #111); color: #fff; border-radius: 20px 20px 7px 20px; }
.msg-text { display: inline; white-space: pre-wrap; min-width: 0; }
.msg-text.rich { display: block; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; overflow-wrap: anywhere; white-space: normal; }
.msg-bubble.rich { width: 100%; padding: 8px; overflow: hidden; }
.msg-bubble.rich .msg-meta { margin-top: 6px; }
.msg-bubble.rich :where(*) { max-width: 100% !important; min-width: 0; box-sizing: border-box; overflow-wrap: anywhere; }
.msg-bubble.rich :where(div, section, article, header, footer, main, p, ul, ol, li, table, blockquote, pre, code) { max-width: 100% !important; box-sizing: border-box; }
.msg-text.rich > :where(div, section, article, table, blockquote, pre) { margin-left: 0 !important; margin-right: 0 !important; }
.msg-text.rich > :first-child { margin-top: 0 !important; }
.msg-text.rich > :last-child { margin-bottom: 0 !important; }
.msg-bubble.rich :where(img, video, canvas, svg, iframe) { max-width: 100% !important; height: auto !important; box-sizing: border-box; }
.msg-bubble.rich :where(table) { width: 100% !important; table-layout: fixed; border-collapse: collapse; }
.msg-bubble.rich :where(td, th) { word-break: break-word; overflow-wrap: anywhere; }
.msg-bubble.rich :where(pre, code) { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.msg-bubble.rich, .msg-bubble.rich :where(*) { pointer-events: auto; }
.msg-bubble.rich :where(a, button, [onclick], [role="button"], input, select, textarea, summary) { cursor: pointer; }
.msg-bubble.rich .encrypted-overlay.decrypted { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.msg-bubble.rich :where(.encrypted-overlay, .decrypt-button) { cursor: pointer; }
.msg-meta { float: right; display: inline-flex; align-items: center; gap: 2px; margin: 5px 0 0 9px; font-size: 10px; line-height: 1; color: var(--msg-meta-color, rgba(76,86,106,0.55)); transform: translateY(1px); white-space: nowrap; }
.msg-bubble.green .msg-meta { color: var(--msg-meta-color, rgba(255,255,255,0.72)); }
.msg-meta i { font-size: 13px; line-height: 1; color: var(--msg-meta-icon-color, #58b7ff); }
.msg-row.left .msg-bubble::before { content: none; }
.msg-row.right .msg-bubble::before { content: none; }
/* 表情贴纸不用缝 */
.msg-bubble.sticker { background: none; border: none; box-shadow: none; padding: 0; min-width: 0; overflow: hidden; }
.msg-row.center-regex { justify-content: center; padding: 0 10px; }
.regex-container-demo { width: 100%; }
.wc-room-footer { background: transparent; display: flex; align-items: center; padding: 0 20px; gap: 10px; position: absolute; bottom: 24px; left: 0; right: 0; z-index: 10; height: 44px; }
.wc-room-footer::before { content: ''; position: absolute; inset: 0 12px; background: rgba(245,245,245,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 22px; box-shadow: 0 1px 6px rgba(0,0,0,0.05); z-index: 0; }
.wc-room-footer > * { position: relative; z-index: 1; }
.wc-room-footer i { font-size: 18px; color: #999; }
.wc-room-footer .wc-add-btn { width: 28px; height: 28px; flex-shrink: 0; cursor: pointer; transition: transform 0.22s ease, opacity 0.2s ease, background 0.2s ease; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.6); border: none; border-radius: 50%; opacity: 0.78; }
.wc-room-footer .wc-add-btn.is-open { transform: rotate(45deg); opacity: 1; background: rgba(17,17,17,0.08); }
.wc-room-footer .wc-add-btn:active { transform: scale(0.92) rotate(45deg); opacity: 0.95; }
.wc-room-footer .wc-send-btn { color: #111 !important; font-size: 18px; cursor: pointer; }
.wc-input { flex: 1; height: 36px; border: none; border-radius: 18px; padding: 0 14px; font-size: 15px; outline: none; background: transparent; }

/* --- 💬 聊天设置面板 --- */
.wc-chat-settings { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 50% -10%, rgba(255,255,255,0.92), rgba(244,246,248,0.86) 42%, #f2f3f5 100%); z-index: 25; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.wc-chat-settings.active { transform: translateX(0); }
.wcs-header { height: 96px; padding: 48px 18px 12px; background: transparent; display: flex; align-items: center; justify-content: space-between; border-bottom: none; flex-shrink: 0; }
.wcs-header span { font-size: 18px; font-weight: 760; color: #111827; }
.wcs-header i { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 25px; cursor: pointer; color: #111827; background: rgba(255,255,255,0.74); box-shadow: 0 6px 18px rgba(15,23,42,0.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.wcs-body { flex: 1; overflow-y: auto; padding: 0 14px 0; }
.wcs-section { background: rgba(255,255,255,0.72); margin-top: 9px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,0.78); box-shadow: 0 10px 34px rgba(15,23,42,0.075); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.wcs-section:first-child { margin-top: 0; }
.wcs-section-title { font-size: 11px; color: #8b95a5; padding: 18px 8px 1px; font-weight: 760; letter-spacing: 0; }
.wcs-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px; border-bottom: 1px solid rgba(15,23,42,0.045); gap: 12px; }
.wcs-row:last-child { border-bottom: none; }
.wcs-row-label { font-size: 14px; color: #1f2937; display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 650; }
.wcs-row-label i { width: 29px; height: 29px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #111827; background: rgba(17,24,39,0.055); }
.wcs-row-value { display: flex; align-items: center; gap: 8px; }
.wcs-color-circle { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #e0e0e0; cursor: pointer; position: relative; overflow: hidden; }
.wcs-color-circle input[type="color"] { position: absolute; top: -5px; left: -5px; width: 38px; height: 38px; border: none; cursor: pointer; opacity: 0; }
.wcs-range { width: 124px; accent-color: #111827; }
.wcs-range-val { font-size: 12px; color: #526173; min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.wcs-input { border: none; background: rgba(17,24,39,0.045); border-radius: 16px; padding: 9px 12px; font-size: 14px; outline: none; width: 160px; text-align: right; color: #1f2937; transition: background 0.18s, box-shadow 0.18s; }
.wcs-input:focus { background: rgba(255,255,255,0.92); box-shadow: 0 0 0 4px rgba(17,24,39,0.055); }
.wcs-avatar-row { display: flex; align-items: center; gap: 13px; padding: 15px; border-bottom: 1px solid rgba(15,23,42,0.045); }
.wcs-avatar-img { width: 58px; height: 58px; border-radius: 18px; object-fit: cover; background: #f0f0f0; cursor: pointer; box-shadow: 0 9px 22px rgba(15,23,42,0.12); }
.wcs-avatar-info { flex: 1; }
.wcs-avatar-name { font-size: 15px; font-weight: 760; color: #1f2937; }
.wcs-avatar-bio { font-size: 12px; color: #738195; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.wcs-textarea { border: none; background: rgba(17,24,39,0.045); border-radius: 18px; padding: 11px 13px; font-size: 13px; line-height: 1.55; outline: none; width: 100%; resize: none; color: #1f2937; min-height: 64px; transition: background 0.18s, box-shadow 0.18s; }
.wcs-textarea:focus { background: rgba(255,255,255,0.94); box-shadow: 0 0 0 4px rgba(17,24,39,0.055); }
.wcs-css-editor { font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace; font-size: 12px; line-height: 1.55; min-height: 104px; tab-size: 2; }
.wcs-preset-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 14px 15px 8px; }
.wcs-select { min-width: 0; height: 38px; border: none; border-radius: 16px; background: rgba(17,24,39,0.045); color: #1f2937; padding: 0 33px 0 12px; font-size: 13px; outline: none; appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%236B7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.wcs-mini-btn { height: 36px; border: none; border-radius: 16px; padding: 0 12px; background: #111827; color: #fff; font-size: 12px; font-weight: 760; display: inline-flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.wcs-mini-btn.subtle { background: rgba(15,23,42,0.06); color: #526173; }
.wcs-mini-btn:active { transform: scale(0.97); }
.wcs-time-mode { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 3px; border-radius: 17px; background: rgba(17,24,39,0.045); }
.wcs-time-mode button { height: 36px; border: none; border-radius: 14px; background: transparent; color: #64748b; font-size: 12px; font-weight: 760; display: inline-flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.wcs-time-mode button.active { background: rgba(255,255,255,0.94); color: #111827; box-shadow: 0 3px 10px rgba(15,23,42,0.08); }
.wcs-time-virtual-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 9px; }
.wcs-datetime { min-width: 0; height: 36px; border: none; border-radius: 14px; background: rgba(17,24,39,0.045); color: #1f2937; padding: 0 10px; font-size: 12px; outline: none; }
.wcs-time-preview { margin-top: 8px; font-size: 11px; line-height: 1.4; color: #738195; }
.wcs-bubble-preview { padding: 14px; background: rgba(249,250,251,0.78); border-radius: 18px; margin: 6px 15px 2px; display: flex; flex-direction: column; gap: 10px; border: 1px solid rgba(255,255,255,0.8); }
.wcs-preview-row { display: flex; }
.wcs-preview-row.right { justify-content: flex-end; }
.wcs-preview-bubble { padding: 9px 12px 6px; font-size: 13px; line-height: 1.45; max-width: 78%; word-break: break-word; }
.wcs-preview-bubble.ai { background: #E8F2FF; border-radius: 18px 18px 18px 7px; color: #17212b; box-shadow: 0 1px 2px rgba(23,33,43,0.08); }
.wcs-preview-bubble.user { background: #DDF7C8; border-radius: 18px 18px 7px 18px; color: #17212b; box-shadow: 0 1px 2px rgba(23,33,43,0.08); }
.wcs-preview-meta { display: inline-flex; margin-left: 8px; font-size: 10px; color: rgba(23,33,43,0.45); white-space: nowrap; }
.wcs-full-row { padding: 12px 15px; border-bottom: 1px solid rgba(15,23,42,0.045); }
.wcs-full-row label { font-size: 12px; color: #738195; display: block; margin-bottom: 7px; font-weight: 700; }
.wcs-memory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wcs-memory-grid div { min-width: 0; padding: 9px 8px; border-radius: 16px; background: rgba(17,24,39,0.045); display: flex; flex-direction: column; gap: 6px; }
.wcs-memory-grid span { color: #738195; font-size: 10px; font-weight: 760; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcs-memory-grid input { width: 100%; height: 28px; border: none; outline: none; background: transparent; color: #111827; font-size: 16px; font-weight: 820; text-align: center; font-variant-numeric: tabular-nums; }
.wcs-inline-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.wcs-inline-action .wcs-input { width: 100%; text-align: left; }
.wcs-cover-gallery { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; }
.wcs-cover-thumb { position: relative; flex: 0 0 86px; height: 54px; border-radius: 14px; overflow: hidden; background: rgba(17,24,39,0.05); box-shadow: inset 0 0 0 1px rgba(15,23,42,0.04); }
.wcs-cover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wcs-cover-thumb button { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(15,23,42,0.64); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wcs-cover-empty { display: flex; align-items: center; justify-content: center; min-height: 54px; width: 100%; border-radius: 14px; background: rgba(17,24,39,0.045); color: #9aa3af; font-size: 12px; }
.wcs-moment-editor { display: flex; flex-direction: column; gap: 8px; }
.wcs-moment-editor textarea { width: 100%; min-height: 72px; border: none; outline: none; resize: vertical; border-radius: 16px; background: rgba(17,24,39,0.045); color: #1f2937; font-size: 13px; line-height: 1.5; padding: 10px 12px; }
.wcs-moment-editor-actions { display: flex; justify-content: flex-end; gap: 8px; }
.wcs-ai-moment-list { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.wcs-ai-moment-item { display: grid; grid-template-columns: minmax(0, 1fr) 26px; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 14px; background: rgba(17,24,39,0.045); color: #374151; font-size: 12px; line-height: 1.45; }
.wcs-ai-moment-item button { width: 26px; height: 26px; border: none; border-radius: 50%; background: rgba(15,23,42,0.08); color: #657283; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wcs-ai-moment-empty { padding: 10px; border-radius: 14px; background: rgba(17,24,39,0.035); color: #9aa3af; font-size: 12px; text-align: center; }
.wcs-row-actions { display: flex; gap: 8px; padding: 0 15px 12px; justify-content: flex-end; }
.wcs-save-btn { width: 100%; height: 48px; background: rgba(17,24,39,0.92); color: white; border: none; border-radius: 24px; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 14px 34px rgba(15,23,42,0.22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.wcs-save-btn:active { transform: scale(0.98); }
.wcs-avatar-gallery { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0; }
.wcs-avatar-gallery-item { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; cursor: pointer; transition: border-color 0.2s; }
.wcs-avatar-gallery-item.active { border-color: #111; }
.wcs-avatar-gallery-item:hover { border-color: #999; }

/* 🔴 关键修复：提升弹窗层级，确保覆盖所有窗口 */
.wc-action-sheet { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 3000 !important; display: flex; flex-direction: column; justify-content: flex-end; }
.wc-sheet-content { background: #f7f7f7; border-radius: 12px 12px 0 0; overflow: hidden; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.wc-sheet-item, .wc-sheet-cancel { background: white; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #111; gap: 10px; border-bottom: 1px solid #eee; cursor: pointer; }
.wc-sheet-item.danger { color: #ef4444; }
.wc-sheet-item:active, .wc-sheet-cancel:active { background: #eee; }
.wc-sheet-cancel { margin-top: 8px; border-bottom: none; font-weight: 600; }
.wc-modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 3000 !important; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.wc-char-card { width: 85%; background: white; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); overflow: hidden; animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wc-card-header { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 16px; border-bottom: 1px solid #f0f0f0; }
.wc-card-header i { font-size: 24px; color: #999; cursor: pointer; }
.wc-card-body { padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.wc-card-avatar-upload { width: 80px; height: 80px; border-radius: 50%; background: #f0f0f0; position: relative; overflow: hidden; cursor: pointer; border: 3px solid white; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.wc-card-avatar-upload img { width: 100%; height: 100%; object-fit: cover; }
.upload-hint { position: absolute; bottom: 0; left: 0; width: 100%; height: 30px; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; }
.wc-form-group { width: 100%; }
.wc-form-group label { font-size: 12px; color: #888; margin-bottom: 5px; display: block; }
.wc-form-group input, .wc-form-group textarea { width: 100%; background: #f9f9f9; border: 1px solid #eee; border-radius: 8px; padding: 10px; font-size: 14px; outline: none; resize: none; }
.wc-form-group input:focus, .wc-form-group textarea:focus { background: white; border-color: #07c160; }
.wc-card-footer { padding: 20px; padding-top: 0; }
.btn-confirm { width: 100%; height: 44px; background: #07c160; color: white; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; }
.btn-confirm:active { opacity: 0.9; }
.parsing-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.9); z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 20px; }
.parsing-spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #07c160; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 15px; }
.parsing-text { font-size: 14px; color: #333; font-weight: 600; }
.parsing-sub { font-size: 12px; color: #999; margin-top: 5px; font-family: monospace; }
.detected-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px; width: 100%; }
.d-tag { font-size: 10px; padding: 4px 8px; border-radius: 4px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.d-tag.wb { background: #e3f2fd; color: #1976d2; }
.d-tag.re { background: #fce4ec; color: #c2185b; }
.chat-config-pill { margin: 10px auto 0; background: rgba(0,0,0,0.05); padding: 4px 12px; border-radius: 12px; font-size: 10px; color: #999; display: flex; gap: 10px; }
.chat-config-pill span { display: flex; align-items: center; gap: 3px; }
.chat-config-pill i { font-size: 12px; }

/* --- style.css 追加内容：自动深色模式 --- */
.dark-mode .app-item span,       
.dark-mode .dock-label,          
.dark-mode .ls-date,             
.dark-mode .ls-vibe-text {       
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    font-weight: 500;
}

/* === 📖 WorldBook 样式 === */
.wb-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 30px 20px; }
.wb-book { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; animation: popIn 0.3s ease; }
.wb-cover { width: 85px; height: 115px; background: #5d4037; border-radius: 4px 8px 8px 4px; box-shadow: 4px 4px 12px rgba(0,0,0,0.3), inset 3px 0 10px rgba(0,0,0,0.2); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.wb-cover::before { content: ''; position: absolute; left: 5px; top: 0; width: 2px; height: 100%; background: rgba(0,0,0,0.2); z-index: 1; }
.wb-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.wb-title { font-size: 12px; font-weight: bold; color: #5d4037; text-align: center; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 5px; }
.wb-empty { text-align: center; color: #a1887f; margin-top: 60px; }

/* 书本详情 */
.wb-nav-bar { height: 60px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; background: #ece6d8; border-bottom: 1px solid #d7ccc8; color: #5d4037; font-weight: bold; font-size: 16px; }
.wb-nav-bar i { font-size: 24px; cursor: pointer; padding: 5px; }
.wb-detail-scroll { flex: 1; overflow-y: auto; padding: 20px; background: #f5f1e8; }
.wb-entry-list { display: flex; flex-direction: column; gap: 15px; padding-bottom: 40px; }
.wb-entry-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); position: relative; }
.wb-entry-card::before { content: ''; position: absolute; top: 15px; left: 0; width: 3px; height: 20px; background: #8d6e63; border-radius: 0 3px 3px 0; }
.wb-card-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.wb-card-title { font-weight: bold; color: #3e2723; font-size: 14px; }
.wb-keys { font-size: 11px; background: #fff3e0; color: #e65100; padding: 2px 6px; border-radius: 4px; display: inline-block; margin-bottom: 8px; border: 1px solid #ffe0b2; }
.wb-text { font-size: 13px; color: #4e342e; line-height: 1.6; white-space: pre-wrap; text-align: justify; }

/* === Regex 样式 === */
.regex-window { background: #f6f7f9 !important; color: #111827; }
.regex-window-header { background: rgba(255,255,255,0.88) !important; border-bottom: 1px solid rgba(15,23,42,0.06) !important; color: #111827 !important; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.regex-window-header .close-btn { color: #64748b !important; }
.regex-window-header h3 { color: #111827 !important; font-weight: 780; letter-spacing: 0; }
.regex-add-btn { width: 34px; height: 34px; border: none; border-radius: 50%; background: #111827; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 20px rgba(15,23,42,0.14); }
.regex-add-btn i { font-size: 20px; }
.regex-tab-bar { margin: 10px 14px 0; padding: 3px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 15px; background: #e9edf2; border: 1px solid rgba(15,23,42,0.04); }
.re-tab { min-width: 0; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #6b7280; font-size: 13px; font-weight: 760; cursor: pointer; transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease; }
.re-tab i { font-size: 16px; }
.re-tab.active { background: #fff; color: #111827; box-shadow: 0 4px 14px rgba(15,23,42,0.08); }
.regex-content { padding: 14px !important; background: #f6f7f9; }
.re-char-selector { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; margin-bottom: 10px; }
.re-char-pill { flex: 0 0 auto; max-width: 116px; min-height: 42px; padding: 5px 10px 5px 5px; border: 1px solid rgba(15,23,42,0.06); border-radius: 15px; background: #fff; color: #526173; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; box-shadow: 0 6px 18px rgba(15,23,42,0.045); }
.re-char-pill img { width: 30px; height: 30px; border-radius: 10px; object-fit: cover; background: #eef1f4; flex-shrink: 0; }
.re-char-pill span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 760; }
.re-char-pill.active { color: #065f46; background: #ecfdf5; border-color: rgba(7,193,96,0.28); box-shadow: 0 8px 20px rgba(7,193,96,0.12); }
.re-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 2px 2px 10px; }
.re-list-head div { min-width: 0; display: flex; align-items: center; gap: 8px; }
.re-list-head span { color: #111827; font-size: 17px; font-weight: 850; }
.re-list-head em { padding: 3px 7px; border-radius: 999px; background: #eaf7ef; color: #047857; font-size: 10px; font-style: normal; font-weight: 820; }
.re-list-head small { color: #8a94a3; font-size: 11px; white-space: nowrap; }
.re-script-card { margin-bottom: 10px; padding: 13px; border-radius: 16px; background: #fff; border: 1px solid rgba(15,23,42,0.055); box-shadow: 0 10px 26px rgba(15,23,42,0.055); transition: opacity 0.18s ease, transform 0.18s ease; }
.re-script-card:active { transform: scale(0.992); }
.re-script-card.disabled { opacity: 0.52; }
.re-card-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 10px; }
.re-title-group { min-width: 0; cursor: pointer; }
.re-title-group strong { display: block; color: #111827; font-size: 14px; font-weight: 830; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.re-title-group span { display: inline-block; margin-top: 4px; color: #8a94a3; font-size: 10px; font-weight: 820; letter-spacing: 0; }
.re-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.re-switch input { opacity: 0; width: 0; height: 0; }
.re-slider { position: absolute; cursor: pointer; inset: 0; background: #d8dee7; transition: .22s; border-radius: 999px; }
.re-slider:before { position: absolute; content: ""; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; transition: .22s; border-radius: 50%; box-shadow: 0 2px 6px rgba(15,23,42,0.20); }
.re-switch input:checked + .re-slider { background: #07c160; }
.re-switch input:checked + .re-slider:before { transform: translateX(18px); }
.re-code-stack { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.re-code-row { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 7px; margin: 0; }
.re-code-row span { color: #8792a2; font-size: 11px; font-weight: 820; line-height: 24px; }
.re-code-row code { min-width: 0; padding: 5px 7px; border-radius: 9px; background: #f4f6f8; color: #334155; font-size: 11px; line-height: 1.35; font-family: "SFMono-Regular", Consolas, monospace; word-break: break-all; }
.re-empty { min-height: 210px; padding: 30px 22px; border-radius: 18px; background: #fff; color: #8a94a3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; box-shadow: 0 10px 26px rgba(15,23,42,0.045); }
.re-empty i { width: 42px; height: 42px; border-radius: 15px; background: #f1f5f9; color: #111827; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.re-empty strong { color: #111827; font-size: 15px; font-weight: 820; }
.re-empty span { max-width: 240px; font-size: 12px; line-height: 1.55; }
.re-empty button { margin-top: 4px; height: 34px; padding: 0 14px; border: none; border-radius: 13px; background: #111827; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.re-modal-card { background: #fff !important; color: #111827 !important; border: 1px solid rgba(15,23,42,0.08) !important; border-radius: 22px !important; box-shadow: 0 24px 60px rgba(15,23,42,0.20); }
.re-modal-header { border-bottom-color: rgba(15,23,42,0.06) !important; }
.re-modal-header span { color: #111827 !important; font-weight: 850; }
.re-modal-card .wc-form-group label { color: #64748b; font-size: 12px; font-weight: 760; }
.re-modal-card input, .re-modal-card select { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid rgba(15,23,42,0.08); border-radius: 12px; background: #f7f8fa; color: #111827; outline: none; font-size: 13px; }
.re-modal-card #re-new-regex, .re-modal-card #re-new-repl { font-family: "SFMono-Regular", Consolas, monospace; }
.re-modal-card input:focus, .re-modal-card select:focus { border-color: rgba(7,193,96,0.42); background: #fff; box-shadow: 0 0 0 3px rgba(7,193,96,0.10); }
.re-modal-card .btn-confirm { background: #111827 !important; color: #fff; border-radius: 14px !important; }

/* --- 📖 WorldBook 列表化改造 --- */
.wb-list-container { display: flex; flex-direction: column; gap: 10px; padding-bottom: 40px; }
.wb-list-item { background: white; padding: 12px 15px; border-radius: 8px; border: 1px solid #e0e0e0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.wb-list-item:active { background: #f5f5f5; transform: scale(0.99); }
.wb-item-left { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.wb-item-title { font-size: 14px; font-weight: 600; color: #3e2723; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-item-keys { font-size: 11px; color: #8d6e63; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.wb-item-right { color: #ccc; font-size: 18px; }
.wb-read-field { background: #f0f0f0 !important; color: #555 !important; border: 1px solid #ddd !important; }

/* --- 聊天视图样式 --- */

/* 1. 顶部栏 — 奶茶粉渐变 */
.st-header {
    height: 60px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fff5f5 0%, #fef0f5 50%, #f5f0ff 100%);
    border-bottom: 1px solid rgba(248,164,184,0.2);
    z-index: 100;
    box-shadow: 0 2px 12px rgba(248,164,184,0.1);
}
.st-header-title {
    font-weight: 700; color: #d4749a; letter-spacing: 0.5px; font-size: 16px;
}
.st-header i { font-size: 22px; cursor: pointer; padding: 5px; color: #c9a0b5; transition: all 0.2s; }
.st-header i:active { color: #f8a4b8; transform: scale(0.9); }

/* 2. 容器与背景 — 暖奶茶色 */
.st-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #faf5f0 !important;
    background-image: radial-gradient(circle at 20% 80%, rgba(248,164,184,0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(183,148,198,0.08) 0%, transparent 50%) !important;
}

/* 3. 角色网格列表 — 小卡片圆形头像 */
.st-char-grid { padding: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; overflow-y: auto; }
.st-char-card {
    background: rgba(255,255,255,0.7);
    border: 1.5px solid rgba(248,164,184,0.2);
    border-radius: 20px;
    overflow: visible;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 3px 12px rgba(183,148,198,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px 10px;
    gap: 8px;
}
.st-char-card:active { transform: scale(0.94); }
.st-card-img {
    width: 64px; height: 64px; min-width: 64px; min-height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2.5px solid rgba(248,164,184,0.35);
    box-shadow: 0 3px 10px rgba(183,148,198,0.15);
}
.st-card-name {
    position: static;
    background: none;
    color: #8b5e6b;
    padding: 0;
    font-size: 12px; font-weight: 600;
    text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    width: 100%;
    letter-spacing: 0.3px;
}

/* 4. 聊天视图 */
.st-chat-view {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, #fef8f5 0%, #faf5f0 30%, #f5f0eb 100%);
    z-index: 50;
}
.st-chat-log {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* 美化滚动条 — 粉色系 */
.st-chat-log::-webkit-scrollbar,
.st-char-grid::-webkit-scrollbar {
    width: 4px;
    background: transparent;
}
.st-chat-log::-webkit-scrollbar-thumb,
.st-char-grid::-webkit-scrollbar-thumb {
    background: rgba(248, 164, 184, 0.3);
    border-radius: 4px;
}

/* 5. 消息行 */
.st-msg-row { display: flex; gap: 10px; opacity: 0; animation: stFadeIn 0.4s ease forwards; width: 100%; padding: 4px 0; }
.st-msg-row.st-left { justify-content: flex-start; }
.st-msg-row.st-right { justify-content: flex-end; flex-direction: row-reverse; }
@keyframes stFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.st-avatar {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
    flex-shrink: 0;
}
.st-msg-body { display: flex; flex-direction: column; gap: 4px; max-width: 78%; min-width: 0; }
.st-meta-line { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #999; }
.st-sender-name { font-weight: 600; color: #8a7080; }
.st-msg-row.st-right .st-meta-line { flex-direction: row-reverse; }

/* 气泡 — 简约风 */
.st-bubble {
    font-size: 14px; line-height: 1.6; padding: 10px 14px;
    border-radius: 4px 18px 18px 18px;
    word-break: break-word;
}
.st-bubble.st-bubble-char {
    background: #f4f4f5; color: #333;
}
.st-bubble.st-bubble-user {
    background: #e8d5f5; color: #333;
    border-radius: 18px 4px 18px 18px;
}

/* HTML 卡片适配 */
.st-bubble.raw-html {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: 100%;
    zoom: 0.7;
    transform-origin: top left;
    overflow-x: auto;
    pointer-events: auto;
}
.st-bubble.raw-html * { pointer-events: auto; }
.st-bubble.raw-html img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* 6. 底部输入栏 — 柔和毛玻璃 */
.st-toolbar { display: flex; gap: 0; background: rgba(255,250,248,0.98); border-top: 1px solid rgba(248,164,184,0.15); padding: 10px 15px; flex-shrink: 0; }
.st-toolbar.hidden { display: none; }
.st-toolbar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; cursor: pointer; border-radius: 10px; transition: background 0.15s; }
.st-toolbar-item:active { background: rgba(248,164,184,0.1); }
.st-toolbar-item i { font-size: 22px; color: #c9a0b5; }
.st-toolbar-item span { font-size: 11px; color: #8a7080; }
.st-input-bar {
    min-height: 60px;
    background: rgba(255,250,248,0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(248,164,184,0.15);
    display: flex; align-items: center; padding: 10px 15px; gap: 10px; flex-shrink: 0;
    box-shadow: 0 -2px 10px rgba(183,148,198,0.05);
}
.st-input-bar i { color: #c9a0b5; font-size: 22px; }
.st-input-bar textarea {
    flex: 1; background: rgba(248,240,245,0.6);
    border: 1.5px solid rgba(248,164,184,0.2); color: #5a4a52;
    padding: 10px 14px; border-radius: 18px; outline: none; resize: none;
    font-size: 14px; height: 38px;
    transition: border-color 0.2s, background 0.2s;
}
.st-input-bar textarea::placeholder { color: #c9a0b5; }
.st-input-bar textarea::-webkit-inner-spin-button,
.st-input-bar textarea::-webkit-outer-spin-button,
.st-input-bar textarea::-webkit-resizer { display: none; }
.st-input-bar textarea { scrollbar-width: none; -ms-overflow-style: none; overflow: hidden; }
.st-input-bar textarea::-webkit-scrollbar { display: none; }
.st-input-bar textarea:focus {
    border-color: #f0b8cc;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 0 3px rgba(248,164,184,0.1);
}

/* --- ⚙️ 设置 App 样式 (清新可爱风) --- */
.set-section-title {
    font-size: 13px; font-weight: 700; color: #c9a0b5;
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 14px; padding-left: 2px;
    letter-spacing: 0.5px;
}
.set-section-title i { font-size: 16px; }

/* API 卡片 */
.api-card {
    background: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(248,164,184,0.15);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(183,148,198,0.06);
    position: relative;
}
.api-card:active { transform: scale(0.98); }
.api-card.is-default { border-color: rgba(248,164,184,0.4); }

/* 状态灯 */
.api-status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #ddd;
    transition: background 0.3s;
}
.api-status-dot.online { background: #66d9a0; box-shadow: 0 0 6px rgba(102,217,160,0.4); }
.api-status-dot.offline { background: #f87171; box-shadow: 0 0 6px rgba(248,113,113,0.3); }
.api-status-dot.testing { background: #fbbf24; animation: pulse-dot 1s infinite; }
@keyframes pulse-dot { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

/* 卡片信息 */
.api-card-info { flex: 1; min-width: 0; }
.api-card-name {
    font-size: 14px; font-weight: 700; color: #5a4a52;
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.api-card-name .crown { font-size: 12px; color: #f8a4b8; }
.api-card-url {
    font-size: 11px; color: #c9a0b5; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.api-card-model {
    font-size: 10px; color: #b794c6; margin-top: 3px;
    background: rgba(183,148,198,0.1); display: inline-block;
    padding: 2px 8px; border-radius: 8px;
}

/* 卡片操作按钮 */
.api-card-actions { display: flex; gap: 4px; flex-shrink: 0; }
.api-card-actions i {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 16px;
    cursor: pointer; transition: all 0.15s;
    color: #c9a0b5;
}
.api-card-actions i:active { transform: scale(0.9); background: rgba(248,164,184,0.1); }
.api-card-actions .del-btn:active { color: #f87171; }

/* 添加按钮 */
.set-add-btn {
    background: rgba(255,255,255,0.6);
    border: 2px dashed rgba(248,164,184,0.3);
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    font-size: 13px; font-weight: 600; color: #d4749a;
    cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.set-add-btn:active { transform: scale(0.98); background: rgba(248,164,184,0.08); }

/* 预设卡片（可展开） */
.preset-card {
    background: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(248,164,184,0.15);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(183,148,198,0.06);
}
.preset-card.active { border-color: rgba(248,164,184,0.4); }
.preset-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
}
.preset-card-header:active { background: rgba(248,164,184,0.04); }
.preset-card-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.preset-chevron { font-size: 18px; color: #c9a0b5; flex-shrink: 0; }
.preset-card-info { flex: 1; min-width: 0; }
.preset-card-name { font-size: 14px; font-weight: 600; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preset-card-meta { font-size: 11px; color: #c9a0b5; margin-top: 2px; }
.preset-card-actions { display: flex; gap: 4px; flex-shrink: 0; }
.preset-card-actions i {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 16px;
    cursor: pointer; transition: all 0.15s;
}
.preset-card-actions i:active { transform: scale(0.9); background: rgba(248,164,184,0.1); }

/* 展开的 prompts 列表 */
.preset-prompts-list {
    border-top: 1px solid rgba(248,164,184,0.12);
    padding: 10px 14px 14px;
}
.preset-params {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 8px 10px; margin-bottom: 10px;
    background: rgba(248,164,184,0.06); border-radius: 10px;
    font-size: 11px; color: #b794c6;
}
.preset-prompt-item {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(248,164,184,0.12);
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
}
.preset-prompt-item.disabled { opacity: 0.5; }
.preset-prompt-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; cursor: pointer;
}
.preset-prompt-header:active { background: rgba(0,0,0,0.02); }
.preset-prompt-name { flex: 1; font-size: 13px; font-weight: 500; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preset-prompt-role { font-size: 10px; color: #b794c6; background: rgba(183,148,198,0.1); padding: 2px 7px; border-radius: 6px; flex-shrink: 0; }
.preset-prompt-header > i { font-size: 16px; color: #ccc; flex-shrink: 0; }
.preset-prompt-del { font-size: 14px !important; color: #dbb !important; padding: 4px; border-radius: 6px; }
.preset-prompt-del:active { color: #f87171 !important; background: rgba(248,113,113,0.1); }

/* toggle 开关 */
.preset-toggle { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.preset-toggle input { opacity: 0; width: 0; height: 0; }
.preset-toggle-slider {
    position: absolute; inset: 0;
    background: #ddd; border-radius: 20px;
    transition: background 0.2s; cursor: pointer;
}
.preset-toggle-slider::before {
    content: ''; position: absolute;
    width: 16px; height: 16px; left: 2px; top: 2px;
    background: white; border-radius: 50%;
    transition: transform 0.2s;
}
.preset-toggle input:checked + .preset-toggle-slider { background: #f8a4b8; }
.preset-toggle input:checked + .preset-toggle-slider::before { transform: translateX(16px); }

/* prompt 内容展开 */
.preset-prompt-content { padding: 0 12px 12px; }
.preset-prompt-content textarea {
    width: 100%; min-height: 120px; max-height: 300px;
    border: 1px solid rgba(248,164,184,0.2);
    border-radius: 10px; padding: 10px;
    font-size: 12px; line-height: 1.5;
    color: #555; background: rgba(255,255,255,0.8);
    resize: vertical; outline: none;
    font-family: inherit;
}
.preset-prompt-content textarea:focus { border-color: rgba(248,164,184,0.5); }
.set-add-btn i { font-size: 18px; }

/* 空状态 */
.set-empty {
    text-align: center; padding: 40px 0; color: #c9a0b5;
    font-size: 13px;
}
.set-empty i { font-size: 36px; display: block; margin-bottom: 10px; color: #e8d0dc; }

/* --- 字体设置 --- */
.font-preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 15px; }
.font-preset-item { background: rgba(255,255,255,0.85); border: 1.5px solid rgba(248,164,184,0.15); border-radius: 14px; padding: 12px 8px; text-align: center; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.font-preset-item:active { transform: scale(0.96); }
.font-preset-item.selected { border-color: #f8a4b8; background: rgba(248,164,184,0.08); box-shadow: 0 0 0 2px rgba(248,164,184,0.15); }
.font-preset-name { font-size: 11px; color: #c9a0b5; font-weight: 600; }
.font-preset-sample { font-size: 18px; color: #5a4a52; line-height: 1.3; }

/* 字体下拉选择器 */
.font-select-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.font-select { flex: 1; background: rgba(255,255,255,0.85); border: 1.5px solid rgba(248,164,184,0.2); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: #5a4a52; outline: none; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23c9a0b5' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.font-select:focus { border-color: #f8a4b8; }
.font-del-icon { font-size: 18px; color: #dcc; cursor: pointer; padding: 8px; transition: color 0.2s; flex-shrink: 0; }
.font-del-icon:active { color: #f87171; }

.font-upload-box { background: rgba(255,255,255,0.6); border: 2px dashed rgba(248,164,184,0.3); border-radius: 14px; padding: 14px; text-align: center; font-size: 13px; color: #d4749a; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.font-upload-box:active { transform: scale(0.98); background: rgba(248,164,184,0.08); }
.font-upload-box i { font-size: 20px; }

.font-url-row { display: flex; gap: 8px; margin-bottom: 15px; align-items: center; }
.font-url-row input { flex: 1; background: rgba(255,255,255,0.85); border: 1.5px solid rgba(248,164,184,0.15); border-radius: 14px; padding: 10px 14px; font-size: 13px; color: #5a4a52; outline: none; }
.font-url-row input:focus { border-color: #f8a4b8; }
.font-url-apply { background: linear-gradient(135deg, #f8a4b8, #d4a5f5); color: white; border: none; border-radius: 14px; padding: 10px 16px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.font-url-apply:active { transform: scale(0.96); opacity: 0.9; }

.font-preview-box { background: rgba(255,255,255,0.85); border: 1.5px solid rgba(248,164,184,0.15); border-radius: 18px; padding: 20px; margin-bottom: 12px; text-align: center; }
.font-preview-text { font-size: 18px; color: #5a4a52; line-height: 1.6; margin-bottom: 8px; }
.font-preview-label { font-size: 11px; color: #c9a0b5; }

.font-reset-row { text-align: center; margin-bottom: 20px; }
.font-reset-btn { font-size: 12px; color: #c9a0b5; cursor: pointer; text-decoration: underline; }
.font-reset-btn:active { color: #f87171; }

/* 数据管理 */
.set-data-actions { display: flex; gap: 10px; }
.set-data-btn { flex: 1; background: rgba(255,255,255,0.85); border: 1.5px solid rgba(248,164,184,0.15); border-radius: 16px; padding: 16px 12px; text-align: center; cursor: pointer; transition: all 0.2s; }
.set-data-btn:active { transform: scale(0.97); background: rgba(248,164,184,0.06); }
.set-data-btn i { font-size: 24px; color: #d4749a; display: block; margin-bottom: 6px; }
.set-data-btn span { font-size: 13px; font-weight: 600; color: #5a4a52; }
.set-data-hint { font-size: 10px; color: #c9a0b5; margin-top: 4px; }
.set-data-btn-warn { border-color: rgba(248,113,113,0.2); }
.set-data-btn-warn i { color: #f87171; }
.set-data-btn-warn:active { background: rgba(248,113,113,0.05); }

/* 版本号 */
.set-version { text-align: center; padding: 30px 0 40px; font-size: 11px; color: #d4c0ca; letter-spacing: 0.5px; }

/* --- 聊天工具栏 + AI按钮 --- */
.wc-ai-btn { color: #a855f7 !important; font-size: 24px; cursor: pointer; transition: transform 0.15s; }
.wc-ai-btn:active { transform: scale(0.8); }
.wc-send-btn.is-disabled,
.wc-ai-btn.is-disabled,
.st-input-bar i.is-disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; }

/* 消息楼数 */
.st-floor-num { font-size: 11px; color: #b794c6; background: rgba(183,148,198,0.1); padding: 1px 6px; border-radius: 6px; font-family: monospace; }

/* 消息操作按钮 */
.st-msg-actions { display: flex; gap: 4px; margin-top: 6px; opacity: 0.6; transition: opacity 0.2s; }
.st-msg-row:hover .st-msg-actions { opacity: 1; }
.st-action-btn { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; transition: all 0.15s; color: #b794c6; font-size: 14px; }
.st-action-btn:hover { background: rgba(248,164,184,0.12); color: #d4749a; }
.st-action-btn:active { transform: scale(0.9); }

/* 分支导航 */
.st-branch-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.st-branch-btn { cursor: pointer; color: #9f7aea; font-size: 12px; padding: 2px 4px; border-radius: 4px; transition: all 0.15s; user-select: none; }
.st-branch-btn:hover { background: rgba(159,122,234,0.1); }
.st-branch-btn:active { transform: scale(0.9); }
.st-branch-count { font-size: 11px; color: #8a7080; font-family: monospace; }
.wc-input:disabled,
.st-input-bar textarea:disabled { opacity: 0.7; color: #999; cursor: wait; }

.wc-chat-toolbar { position: absolute; bottom: 82px; left: 18px; width: min(282px, calc(100% - 36px)); background: rgba(255,255,255,0.82); backdrop-filter: blur(22px) saturate(1.25); -webkit-backdrop-filter: blur(22px) saturate(1.25); border: 1px solid rgba(255,255,255,0.78); border-radius: 24px; padding: 10px; z-index: 15; box-shadow: 0 18px 45px rgba(15,23,42,0.16), 0 3px 10px rgba(15,23,42,0.08); transform-origin: 34px calc(100% + 8px); animation: wcToolbarPop 0.18s cubic-bezier(0.2, 0.85, 0.25, 1.15); }
.wc-chat-toolbar::after { content: ''; position: absolute; left: 26px; bottom: -7px; width: 14px; height: 14px; background: rgba(255,255,255,0.82); border-right: 1px solid rgba(255,255,255,0.78); border-bottom: 1px solid rgba(255,255,255,0.78); transform: rotate(45deg); }
.wc-toolbar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; position: relative; z-index: 1; }
.wc-toolbar-item { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10px; line-height: 1.15; color: rgba(17,24,39,0.68); cursor: pointer; }
.wc-toolbar-icon { width: 42px; height: 42px; background: rgba(248,250,252,0.95); border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 21px; color: #313946; box-shadow: inset 0 0 0 1px rgba(15,23,42,0.04), 0 5px 14px rgba(15,23,42,0.08); transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease; }
.wc-toolbar-item:active .wc-toolbar-icon { transform: scale(0.9); background: #eef2f7; box-shadow: inset 0 0 0 1px rgba(15,23,42,0.06), 0 2px 6px rgba(15,23,42,0.08); }
@keyframes wcToolbarPop { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* 表情选择器 */
.wc-sticker-picker { position: absolute; bottom: 0; left: 0; width: 100%; height: 280px; background: #f7f7f7; z-index: 22; display: flex; flex-direction: column; border-top: 1px solid #dcdcdc; }
.wc-sticker-picker-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; font-size: 14px; font-weight: 600; color: #333; border-bottom: 1px solid #e8e8e8; }
.wc-sticker-picker-header i { font-size: 20px; color: #999; cursor: pointer; padding: 4px; }
.wc-sticker-tabs { display: flex; overflow-x: auto; padding: 8px 10px; gap: 6px; border-bottom: 1px solid #eee; flex-shrink: 0; }
.wc-sticker-tabs::-webkit-scrollbar { display: none; }
.wc-sticker-tab { padding: 6px 14px; border-radius: 16px; font-size: 12px; white-space: nowrap; cursor: pointer; background: #e8e8e8; color: #666; transition: all 0.2s; }
.wc-sticker-tab.active { background: #07c160; color: white; }
.wc-sticker-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; overflow-y: auto; align-content: start; }
.wc-sticker-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; cursor: pointer; border-radius: 6px; transition: transform 0.1s; }
.wc-sticker-grid img:active { transform: scale(0.88); }

/* 图片消息 */
.msg-bubble.image-bubble { padding: 3px; max-width: 210px; background: transparent !important; border: none !important; box-shadow: none !important; overflow: hidden; }
.msg-bubble.image-bubble img { width: 100%; border-radius: 17px; display: block; box-shadow: 0 2px 12px rgba(15,23,42,0.1); }
.msg-bubble.sticker img { width: 100%; max-width: 120px; display: block; }
.msg-media-meta { position: absolute; right: 9px; bottom: 8px; display: inline-flex; align-items: center; gap: 2px; padding: 3px 6px; border-radius: 999px; background: rgba(0,0,0,0.42); color: rgba(255,255,255,0.92); font-size: 10px; line-height: 1; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.msg-media-meta i { font-size: 13px; color: #68c2ff; }

/* 微信特殊消息 */
.msg-voice-bubble { width: var(--voice-width, 150px); min-width: 112px; padding: 8px 10px 5px 12px; cursor: pointer; }
.msg-voice-line { display: flex; align-items: center; gap: 9px; min-height: 24px; }
.msg-row.right .msg-voice-line { flex-direction: row-reverse; }
.msg-voice-waves { flex: 1; display: inline-flex; align-items: center; gap: 3px; min-width: 32px; }
.msg-row.right .msg-voice-waves { justify-content: flex-end; }
.msg-voice-waves b { width: 3px; height: 8px; border-radius: 99px; background: currentColor; opacity: 0.72; animation: voiceWave 1.05s ease-in-out infinite; transform-origin: center; }
.msg-voice-waves b:nth-child(1) { animation-delay: 0s; opacity: 0.42; }
.msg-voice-waves b:nth-child(2) { animation-delay: 0.12s; opacity: 0.58; }
.msg-voice-waves b:nth-child(3) { animation-delay: 0.24s; opacity: 0.78; }
.msg-voice-waves b:nth-child(4) { animation-delay: 0.36s; opacity: 0.58; }
.msg-voice-waves b:nth-child(5) { animation-delay: 0.48s; opacity: 0.42; }
@keyframes voiceWave { 0%, 100% { transform: scaleY(0.55); } 45% { transform: scaleY(1.95); } }
.msg-voice-duration { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.msg-voice-transcript { display: none; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(15,23,42,0.08); font-size: 12px; line-height: 1.45; color: rgba(23,33,43,0.62); overflow-wrap: anywhere; }
.msg-voice-bubble.show-transcript .msg-voice-transcript { display: block; }
.msg-bubble.green .msg-voice-transcript { border-top-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.72); }
.msg-pay-bubble { width: 224px; padding: 0; overflow: hidden; border-radius: 18px 18px 18px 7px; background: #f59e0b; color: #fff; box-shadow: 0 8px 22px rgba(245,158,11,0.18); }
.msg-bubble.green.msg-pay-bubble { border-radius: 18px 18px 7px 18px; background: #f59e0b; color: #fff; }
.msg-redpacket-bubble { background: linear-gradient(135deg, #e54b31, #f28b32); box-shadow: 0 8px 22px rgba(229,75,49,0.2); }
.msg-bubble.green.msg-redpacket-bubble { background: linear-gradient(135deg, #e54b31, #f28b32); }
.msg-pay-main { display: flex; gap: 10px; padding: 13px 13px 11px; align-items: center; }
.msg-pay-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.18); flex-shrink: 0; }
.msg-pay-icon i { font-size: 23px; color: #fff; }
.msg-pay-info { min-width: 0; flex: 1; }
.msg-pay-title { font-size: 14px; font-weight: 800; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-pay-amount, .msg-rp-amount { margin-top: 2px; font-size: 19px; font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.msg-pay-note { margin-top: 2px; font-size: 11px; color: rgba(255,255,255,0.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 9px 6px 12px; background: rgba(255,255,255,0.96); color: rgba(15,23,42,0.44); font-size: 10px; }
.msg-card-footer .msg-meta { float: none; margin: 0; color: var(--msg-meta-color, rgba(15,23,42,0.46)); transform: none; }
.msg-card-footer .msg-meta i { color: var(--msg-meta-icon-color, #58b7ff); }
.msg-call-bubble { width: 220px; padding: 9px 10px 5px 10px; }
.msg-call-main { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; }
.msg-call-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(16,185,129,0.14); color: #10b981; flex-shrink: 0; }
.msg-bubble.green .msg-call-icon { background: rgba(255,255,255,0.16); color: #fff; }
.msg-call-icon i { font-size: 18px; }
.msg-call-info { min-width: 0; flex: 1; }
.msg-call-title { font-size: 14px; font-weight: 800; line-height: 1.2; }
.msg-call-desc { margin-top: 2px; font-size: 11px; line-height: 1.35; color: rgba(76,86,106,0.62); overflow-wrap: anywhere; }
.msg-bubble.green .msg-call-desc { color: rgba(255,255,255,0.72); }

/* 微信通话页 */
.wc-call-island { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); z-index: 3700; width: 326px; min-height: 54px; border-radius: 29px; background: rgba(8,12,18,0.94); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px 7px 10px; box-shadow: 0 16px 40px rgba(0,0,0,0.34); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: callIslandIn 0.28s cubic-bezier(0.2, 0.9, 0.2, 1); }
.wc-call-island-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.wc-call-island-main img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #333; }
.wc-call-island-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.wc-call-island-text strong { max-width: 148px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 760; }
.wc-call-island-text span { margin-top: 4px; color: rgba(255,255,255,0.62); font-size: 11px; }
.wc-call-island-actions { display: flex; align-items: center; gap: 7px; }
.wc-call-island-actions button { width: 36px; height: 36px; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 19px; cursor: pointer; }
.wc-call-island-actions .reject { background: #ff3b30; }
.wc-call-island-actions .accept { background: #30d158; }
.wc-call-island-actions .accept i { transform: rotate(90deg); }
@keyframes callIslandIn { from { opacity: 0; transform: translateX(-50%) translateY(-12px) scale(0.96); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
.wc-call-screen { position: absolute; inset: 0; z-index: 3600; overflow: hidden; color: #fff; background: #111827; display: flex; flex-direction: column; }
.wc-call-bg { position: absolute; inset: -18px; filter: blur(24px) saturate(1.08); transform: scale(1.08); opacity: 0.54; }
.wc-call-bg img { width: 100%; height: 100%; object-fit: cover; }
.wc-call-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,0.62), rgba(15,23,42,0.5) 42%, rgba(0,0,0,0.74)); }
.wc-call-top { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 74px 24px 12px; text-align: center; }
.wc-call-avatar { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; box-shadow: 0 16px 44px rgba(0,0,0,0.28); }
.wc-call-name { margin-top: 14px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 23px; font-weight: 760; letter-spacing: 0; }
.wc-call-status { margin-top: 7px; color: rgba(255,255,255,0.72); font-size: 13px; }
.wc-call-timer { margin-top: 9px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.82); font-size: 12px; font-variant-numeric: tabular-nums; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.wc-call-log { position: relative; z-index: 1; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 18px 132px; }
.wc-call-line { max-width: 78%; padding: 9px 12px; border-radius: 17px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.wc-call-line.assistant { align-self: flex-start; background: rgba(255,255,255,0.18); border-bottom-left-radius: 7px; color: rgba(255,255,255,0.94); }
.wc-call-line.user { align-self: flex-end; background: rgba(7,193,96,0.86); border-bottom-right-radius: 7px; color: #fff; }
.wc-call-line.system { align-self: center; max-width: 88%; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.72); font-size: 12px; }
.wc-call-inputbar { position: absolute; left: 16px; right: 16px; bottom: 96px; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 7px 8px 7px 14px; border-radius: 24px; background: rgba(255,255,255,0.16); box-shadow: 0 14px 34px rgba(0,0,0,0.2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.wc-call-inputbar input { flex: 1; min-width: 0; height: 34px; border: none; outline: none; background: transparent; color: #fff; font-size: 14px; }
.wc-call-inputbar input::placeholder { color: rgba(255,255,255,0.58); }
.wc-call-inputbar button { width: 34px; height: 34px; border: none; border-radius: 50%; background: #07c160; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.wc-call-actions { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 34px; }
.wc-call-tool { width: 58px; border: none; background: transparent; color: rgba(255,255,255,0.72); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; }
.wc-call-tool i { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.14); color: #fff; font-size: 20px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.wc-call-end { width: 60px; height: 60px; border: none; border-radius: 50%; background: #ff3b30; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 27px; box-shadow: 0 14px 34px rgba(255,59,48,0.34); transform: rotate(135deg); }

/* 气泡操作菜单 */
.msg-action-menu { position: absolute; top: -8px; left: 50%; transform: translateX(-50%) translateY(-100%); background: #fff; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); display: flex; gap: 0; z-index: 100; overflow-x: auto; max-width: calc(100vw - 44px); white-space: nowrap; }
.msg-action-item { padding: 8px 14px; font-size: 13px; color: #333; cursor: pointer; display: flex; align-items: center; gap: 4px; border-right: 1px solid #eee; }
.msg-action-item:last-child { border-right: none; }
.msg-action-item:active { background: #f0f0f0; }
.msg-action-item i { font-size: 14px; }
.msg-row.selected { background: rgba(37,99,235,0.42); border-radius: 10px; box-shadow: inset 0 0 0 2px rgba(37,99,235,0.82); }
.msg-row.selected .msg-bubble, .msg-row.selected .msg-bubble-shell { filter: saturate(1.18) contrast(1.04); }
.msg-row.system { justify-content: center; padding: 5px 0; }
.msg-system-notice { max-width: 82%; padding: 5px 10px; border-radius: 999px; background: rgba(17,24,39,0.14); color: rgba(255,255,255,0.94); font-size: 11px; line-height: 1.35; text-align: center; }
.msg-multiselect-bar { position: absolute; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #ddd; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; z-index: 50; }
.msg-ms-btn { padding: 6px 16px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.msg-ms-btn.delete { background: #ff4d4f; color: #fff; }
.msg-ms-btn.cancel { background: #f0f0f0; color: #333; }
.msg-collapse-divider { align-self: center; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 28px); min-height: 30px; padding: 6px 12px; margin: 3px 0 8px; border-radius: 999px; background: rgba(17,24,39,0.055); color: #738195; font-size: 12px; font-weight: 700; cursor: pointer; user-select: none; }
.msg-collapse-divider i { color: #526173; font-size: 15px; }
.msg-collapse-divider b { color: #111827; font-size: 12px; font-weight: 800; }

/* 贴纸管理器 */
.sticker-pack-item { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: #f9f9f9; border-radius: 10px; margin-bottom: 8px; }
.sticker-pack-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.sticker-pack-preview { width: 40px; height: 40px; border-radius: 6px; object-fit: contain; background: #eee; flex-shrink: 0; }
.sticker-pack-name { font-size: 14px; font-weight: 600; color: #333; }
.sticker-pack-count { font-size: 11px; color: #999; }
.sticker-pack-actions { display: flex; gap: 6px; flex-shrink: 0; }
.sticker-pack-actions i { font-size: 18px; color: #999; cursor: pointer; padding: 4px; }
.sticker-pack-actions i:active { color: #333; }
.sticker-pack-actions .del-btn:active { color: #ff3b30; }
.sticker-import-textarea { width: 100%; min-height: 100px; border: 1px solid #eee; border-radius: 8px; padding: 10px; font-size: 12px; resize: vertical; outline: none; font-family: monospace; }
.sticker-import-textarea:focus { border-color: #07c160; }
.sticker-import-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; max-height: 160px; overflow-y: auto; }
.sticker-import-preview img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 4px; background: #f5f5f5; }
.pack-sticker-cell { position: relative; cursor: pointer; }
.pack-sticker-cell.selected { outline: 2px solid #ff3b30; border-radius: 6px; }

/* === WorldBook 琴谱书架 === */
#app-worldbook-window { background: #f9f6f7 !important; }
#app-worldbook-window .window-header { background: rgba(255,250,252,0.92) !important; border-bottom: 1px solid rgba(226,154,178,0.14) !important; }
#app-worldbook-window .window-header h3 { color: #382f3c !important; }
#app-worldbook-window .close-btn, #app-worldbook-window .window-header i { color: #ac6b85 !important; }
.wb-library { min-height: 100%; padding: 22px 0 34px; background: linear-gradient(180deg, #fff9fc 0%, #f3f8ff 54%, #fffaf2 100%); overflow: hidden; }
.wb-library-title { padding: 0 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.wb-library-title span { color: #b9829a; font-size: 11px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.wb-library-title strong { color: #382f3c; font-size: 24px; font-weight: 880; letter-spacing: 0; }
.wb-library-title em { color: #8d7f90; font-size: 12px; font-style: normal; line-height: 1.45; }
.wb-score-stage { position: relative; height: 410px; display: flex; align-items: center; overflow: hidden; touch-action: pan-x; }
.wb-score-lines { position: absolute; inset: 12px -42px 20px; opacity: 0.92; pointer-events: none; }
.wb-score-lines::before { content: ''; position: absolute; left: 10px; right: 10px; top: 34px; height: 250px; border-radius: 50% 50% 46% 46%; border-top: 1px solid rgba(213,153,176,0.24); border-bottom: 1px solid rgba(136,165,205,0.18); }
.wb-score-lines::after { content: ''; position: absolute; left: 50%; top: 40px; width: 210px; height: 270px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255,255,255,0.42), transparent 66%); }
.wb-string { position: absolute; top: var(--top); bottom: var(--bottom); left: var(--left); width: 88px; border-left: 1.4px solid rgba(172,113,140,0.30); border-radius: 50% 0 0 50%; transform: translateX(var(--string-pull, 0px)) skewX(var(--skew)); transform-origin: top center; filter: drop-shadow(0 5px 8px rgba(137,104,126,0.08)); transition: transform 0.18s ease, opacity 0.18s ease; }
.wb-score-stage.is-pulling .wb-string { opacity: 0.98; transition-duration: 0.04s; }
.wb-shelf { position: relative; z-index: 1; width: 100%; height: 360px; display: flex; grid-template-columns: none; gap: 24px; align-items: center; padding: 42px 118px 52px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 118px; -webkit-overflow-scrolling: touch; perspective: 900px; }
.wb-shelf::before, .wb-shelf::after { content: ''; flex: 0 0 1px; height: 1px; }
.wb-book { flex: 0 0 122px; height: 252px; border: none; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; scroll-snap-align: center; transform: translateY(var(--wb-y, 0)) scale(var(--wb-scale, 1)); transform-origin: center bottom; transition: transform 0.18s ease, opacity 0.18s ease, filter 0.18s ease; animation: none; }
.wb-book.is-near { filter: drop-shadow(0 22px 28px rgba(180,118,143,0.20)); }
.wb-cover { width: 112px; height: 158px; border-radius: 10px 20px 20px 10px; background: #fff; box-shadow: 10px 16px 28px rgba(67,54,72,0.18), inset 9px 0 15px rgba(255,255,255,0.16), inset -8px 0 16px rgba(72,47,65,0.16); border: 2px solid rgba(255,255,255,0.76); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.wb-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34,28,38,0.22) 0 10px, rgba(255,255,255,0.16) 11px 18px, transparent 42%), linear-gradient(180deg, rgba(255,255,255,0.18), transparent 34%, rgba(55,42,54,0.22)); z-index: 2; pointer-events: none; }
.wb-cover::after { content: ''; position: absolute; inset: 9px 8px 10px 18px; border-radius: 13px; border: 1px solid rgba(255,255,255,0.38); z-index: 3; pointer-events: none; }
.wb-spine { position: absolute; left: 8px; top: 0; bottom: 0; width: 8px; background: rgba(33,26,35,0.20); box-shadow: 4px 0 10px rgba(255,255,255,0.12); z-index: 4; }
.wb-cover img.wb-cover-image { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border-radius: 0; object-fit: cover; opacity: 1; border: none; box-shadow: none; }
.wb-cover img.wb-cover-image.is-missing { opacity: 0.14; background: linear-gradient(145deg, #f9d9e4, #d8e6ff); }
.wb-cover-shine { position: absolute; inset: -38px auto auto -42px; z-index: 5; width: 74px; height: 230px; background: rgba(255,255,255,0.20); transform: rotate(16deg); pointer-events: none; }
.wb-cover span { position: absolute; right: 8px; bottom: 8px; z-index: 6; min-width: 25px; height: 25px; border-radius: 999px; background: rgba(255,255,255,0.86); color: #5a4050; display: flex; align-items: center; justify-content: center; padding: 0 7px; font-size: 11px; font-weight: 860; box-shadow: 0 7px 16px rgba(42,31,43,0.14); }
.wb-title { width: 134px; margin: 0; color: #382f3c; font-size: 13px; font-weight: 840; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-book small { color: #958698; font-size: 11px; font-weight: 730; }
.wb-book.is-opening { opacity: 0.28; }
.wb-detail-page { min-height: 100%; display: flex; flex-direction: column; background: linear-gradient(180deg, #fffafe, #f4f8ff 60%, #fffaf2); animation: wbPageIn 0.24s ease; }
@keyframes wbPageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.wb-nav-bar { height: 58px; padding: 0 15px; background: rgba(255,255,255,0.78); border-bottom: 1px solid rgba(226,154,178,0.12); color: #382f3c; display: flex; align-items: center; justify-content: space-between; font-weight: 820; font-size: 15px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.wb-nav-bar i { font-size: 23px; color: #ac6b85; cursor: pointer; padding: 5px; }
.wb-open-book { margin: 16px 16px 0; padding: 14px; border-radius: 24px; background: rgba(255,255,255,0.84); border: 1px solid rgba(255,255,255,0.86); box-shadow: 0 16px 32px rgba(151,111,132,0.10); display: flex; align-items: center; gap: 13px; }
.wb-open-cover { width: 62px; height: 82px; border-radius: 7px 15px 15px 7px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 7px 9px 18px rgba(49,62,80,0.15), inset 7px 0 11px rgba(255,255,255,0.12); flex-shrink: 0; overflow: hidden; position: relative; }
.wb-open-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35,27,38,0.24), transparent 34%, rgba(255,255,255,0.12)); pointer-events: none; }
.wb-open-cover img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; border: none; }
.wb-open-meta { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.wb-open-meta strong { color: #253044; font-size: 17px; font-weight: 880; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-open-meta span { color: #7c899a; font-size: 12px; font-weight: 730; }
.wb-detail-scroll { flex: 1; overflow-y: auto; padding: 14px 16px 26px; background: transparent; }
.wb-list-container { display: flex; flex-direction: column; gap: 9px; padding-bottom: 40px; }
.wb-list-item { min-height: 64px; padding: 11px 12px; border-radius: 18px; background: rgba(255,255,255,0.88); border: 1px solid rgba(88,107,130,0.07); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; box-shadow: 0 8px 22px rgba(76,92,114,0.06); cursor: default; transition: opacity 0.18s, transform 0.18s; }
.wb-list-item:active { transform: scale(0.992); background: #fff; }
.wb-list-item.is-off { opacity: 0.48; }
.wb-item-left { min-width: 0; border: none; background: transparent; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
.wb-item-title { color: #253044; font-size: 14px; font-weight: 840; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-item-keys { color: #7a8798; font-size: 11px; font-weight: 710; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.wb-empty { min-height: 220px; margin: 0; color: #8b98aa; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.wb-empty i { font-size: 46px; opacity: 0.56; }
.wb-empty strong { color: #344055; font-size: 16px; font-weight: 840; }
.wb-empty span { color: #9aa5b4; font-size: 12px; line-height: 1.45; }
.wb-transition-layer { position: fixed; inset: 0; z-index: 4200; pointer-events: none; background: rgba(255,250,252,0.32); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.wb-transition-book { position: fixed; border-radius: 10px 22px 22px 10px; transform: rotate(-3deg) scale(1); transform-style: preserve-3d; perspective: 900px; transition: left 0.32s cubic-bezier(0.2,0.8,0.2,1), top 0.32s cubic-bezier(0.2,0.8,0.2,1), width 0.32s cubic-bezier(0.2,0.8,0.2,1), height 0.32s cubic-bezier(0.2,0.8,0.2,1), transform 0.32s cubic-bezier(0.2,0.8,0.2,1); }
.wb-transition-book.is-centered { transform: rotate(0) scale(1); }
.wb-transition-cover, .wb-transition-pages { position: absolute; inset: 0; border-radius: 10px 22px 22px 10px; }
.wb-transition-cover { z-index: 3; overflow: hidden; background: #fff; box-shadow: 0 26px 62px rgba(88,60,80,0.30), inset 10px 0 16px rgba(255,255,255,0.18), inset -10px 0 18px rgba(54,36,50,0.16); transform-origin: left center; transition: transform 0.46s cubic-bezier(0.22,0.72,0.22,1), opacity 0.28s ease; }
.wb-transition-cover::before { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(33,25,36,0.24) 0 12px, rgba(255,255,255,0.18) 13px 21px, transparent 44%), linear-gradient(180deg, rgba(255,255,255,0.18), transparent 38%, rgba(54,36,50,0.22)); }
.wb-transition-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wb-transition-pages { z-index: 1; background: linear-gradient(90deg, #fffdf8, #fff 50%, #fff8fb); box-shadow: 0 18px 44px rgba(88,60,80,0.18), inset 10px 0 18px rgba(200,170,146,0.12); opacity: 0; transform: translateX(0) scaleX(0.68); transform-origin: left center; transition: opacity 0.26s ease, transform 0.46s cubic-bezier(0.22,0.72,0.22,1); }
.wb-transition-pages span { position: absolute; top: 10%; bottom: 10%; width: 1px; background: rgba(179,139,120,0.16); }
.wb-transition-pages span:nth-child(1) { left: 34%; }
.wb-transition-pages span:nth-child(2) { left: 50%; }
.wb-transition-pages span:nth-child(3) { left: 66%; }
.wb-transition-book.is-open .wb-transition-cover { transform: rotateY(-72deg); opacity: 0.78; }
.wb-transition-book.is-open .wb-transition-pages { opacity: 1; transform: translateX(42%) scaleX(1.32); }

/* 微信模拟消息弹窗 */
.wc-compose-overlay { z-index: 3300 !important; }
.wc-compose-card { width: 86%; max-height: 82%; overflow: hidden; border-radius: 24px; background: rgba(255,255,255,0.96); box-shadow: 0 18px 54px rgba(15,23,42,0.24); border: 1px solid rgba(255,255,255,0.85); animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.wc-compose-header { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid rgba(15,23,42,0.06); }
.wc-compose-header > i { font-size: 22px; color: #728096; cursor: pointer; }
.wc-compose-title { display: flex; align-items: center; gap: 9px; color: #17212b; font-size: 16px; font-weight: 800; }
.wc-compose-title i { width: 32px; height: 32px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(37,99,235,0.09); color: #2563eb; font-size: 18px; }
.wc-compose-body { padding: 15px; display: flex; flex-direction: column; gap: 12px; max-height: 58vh; overflow-y: auto; }
.wc-compose-segment { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 4px; border-radius: 16px; background: #eef2f7; }
.wc-compose-segment button { height: 34px; border: none; border-radius: 12px; background: transparent; color: #526173; font-size: 13px; font-weight: 800; cursor: pointer; }
.wc-compose-segment button.active { background: #fff; color: #17212b; box-shadow: 0 2px 8px rgba(15,23,42,0.08); }
.wc-compose-field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: #738195; font-weight: 800; }
.wc-compose-field input, .wc-compose-field textarea, .wc-compose-field select { width: 100%; border: 1px solid rgba(15,23,42,0.08); background: #f8fafc; border-radius: 14px; padding: 10px 12px; color: #273244; font-size: 14px; outline: none; resize: none; }
.wc-compose-field textarea { line-height: 1.5; min-height: 82px; }
.wc-compose-field input:focus, .wc-compose-field textarea:focus, .wc-compose-field select:focus { background: #fff; border-color: rgba(37,99,235,0.36); box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.wc-compose-footer { display: flex; gap: 10px; padding: 13px 15px 15px; border-top: 1px solid rgba(15,23,42,0.06); }
.wc-compose-footer button { height: 42px; border: none; border-radius: 14px; font-size: 14px; font-weight: 800; cursor: pointer; }
.wc-compose-secondary { width: 92px; background: rgba(15,23,42,0.06); color: #526173; }
.wc-compose-primary { flex: 1; background: linear-gradient(135deg, #2563eb, #15b8a6); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,0.18); }
.wc-compose-footer button:active { transform: scale(0.98); }
.wc-share-card { width: 82%; max-height: 72%; }
.wc-share-list { padding: 8px; overflow-y: auto; max-height: min(470px, 62vh); }
.wc-share-contact { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 14px; cursor: pointer; }
.wc-share-contact:active { background: rgba(15,23,42,0.055); }
.wc-share-contact img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; background: #eef0f2; flex-shrink: 0; }
.wc-share-contact span { min-width: 0; color: #1f2937; font-size: 14px; font-weight: 760; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-memory-card { width: 90%; max-height: 84%; }
.wc-memory-body { gap: 12px; }
.wc-memory-tabs { grid-template-columns: repeat(3, 1fr); }
.wc-memory-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wc-memory-stats span { min-width: 0; padding: 6px 7px; border-radius: 12px; background: #f5f7fa; color: #64748b; font-size: 11px; font-weight: 760; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-memory-editor { display: flex; flex-direction: column; gap: 8px; }
.wc-memory-editor input, .wc-memory-editor textarea { width: 100%; border: none; border-radius: 15px; background: #f5f7fa; color: #1f2937; font-size: 13px; outline: none; }
.wc-memory-editor input { height: 38px; padding: 0 12px; }
.wc-memory-editor textarea { min-height: 90px; padding: 10px 12px; resize: none; line-height: 1.5; }
.wc-memory-editor input:focus, .wc-memory-editor textarea:focus { background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.wc-memory-list { display: flex; flex-direction: column; gap: 8px; }
.wc-memory-empty { padding: 22px 12px; border-radius: 16px; background: #f8fafc; color: #9aa3af; text-align: center; font-size: 13px; }
.wc-memory-item { display: flex; align-items: stretch; gap: 8px; padding: 10px; border-radius: 16px; background: #f8fafc; border: 1px solid rgba(15,23,42,0.04); }
.wc-memory-item.is-off { opacity: 0.52; }
.wc-memory-main { flex: 1; min-width: 0; cursor: pointer; }
.wc-memory-title { color: #111827; font-size: 13px; font-weight: 820; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-memory-content { margin-top: 4px; color: #64748b; font-size: 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.wc-memory-meta { margin-top: 5px; color: #9aa3af; font-size: 10px; font-weight: 700; }
.wc-memory-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.wc-memory-actions button { width: 32px; height: 32px; border: none; border-radius: 12px; background: rgba(15,23,42,0.055); color: #526173; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wc-memory-actions button i { font-size: 18px; }
.wc-transfer-compose-card { width: 88%; max-width: 360px; border-radius: 18px; background: #f5f5f5; border: none; box-shadow: 0 18px 50px rgba(0,0,0,0.24); }
.wc-transfer-compose-card .wc-compose-header { height: 50px; padding: 0 15px; background: #f5f5f5; border-bottom: none; }
.wc-transfer-compose-card .wc-compose-title { font-size: 16px; font-weight: 700; color: #111; }
.wc-transfer-compose-card .wc-compose-title i { display: none; }
.wc-transfer-compose-card .wc-compose-header > i { color: #555; }
.wc-transfer-compose-card .wc-compose-body { padding: 0 16px 14px; max-height: none; overflow: visible; }
.wc-transfer-compose-card .wc-compose-footer { padding: 0 16px 18px; border-top: none; background: #f5f5f5; }
.wc-transfer-compose-card .wc-compose-secondary { display: none; }
.wc-transfer-compose-card .wc-compose-primary { height: 46px; border-radius: 8px; background: #07c160; box-shadow: none; color: #fff; font-size: 16px; font-weight: 700; }
.wc-transfer-pay { display: flex; flex-direction: column; gap: 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,0.03); }
.wc-transfer-peer { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 18px 18px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.wc-transfer-peer img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; background: #eee; }
.wc-transfer-peer div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wc-transfer-peer span { color: #8a8a8a; font-size: 13px; font-weight: 500; }
.wc-transfer-peer strong { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #111; font-size: 16px; font-weight: 700; }
.wc-transfer-amount { display: flex; align-items: baseline; gap: 8px; padding: 18px 18px 12px; border-bottom: 1px solid #f0f0f0; color: #111; }
.wc-transfer-amount span { flex-shrink: 0; font-size: 26px; font-weight: 700; line-height: 1; }
.wc-transfer-amount input { width: 100%; min-width: 0; border: none; background: transparent; color: #111; font-size: 38px; font-weight: 700; line-height: 1; outline: none; font-variant-numeric: tabular-nums; }
.wc-transfer-amount input::-webkit-outer-spin-button,
.wc-transfer-amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wc-transfer-pay .wc-compose-field { gap: 0; padding: 13px 18px; border-bottom: 1px solid #f0f0f0; color: #8a8a8a; font-size: 13px; font-weight: 500; }
.wc-transfer-pay .wc-compose-field span { margin-bottom: 7px; }
.wc-transfer-pay .wc-compose-field input { padding: 0; border: none; border-radius: 0; background: transparent; color: #111; font-size: 15px; }
.wc-transfer-pay .wc-compose-field input:focus { border-color: transparent; box-shadow: none; background: transparent; }
.wc-transfer-method { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 15px; color: #8a8a8a; font-size: 13px; }
.wc-transfer-method strong { color: #111; font-size: 14px; font-weight: 600; }

/* === 个性化设置精修 === */
#app-theme-window { background: #fff8fb; }
#app-theme-window .window-header { background: rgba(255,250,252,0.90); border-bottom: 1px solid rgba(222,154,178,0.14); }
#app-theme-window .window-header h3 { color: #3a3040; font-weight: 860; }
#app-theme-window .close-btn { color: #ac6b85; }
#app-theme-window .save-btn { color: #7f95c6; }
#app-theme-window .window-content { padding: 16px 14px 104px; background: linear-gradient(180deg, #fff7fb 0%, #f5fbff 48%, #fffaf0 100%); }
#app-theme-window .setting-card { margin-bottom: 14px; padding: 15px; border-radius: 22px; background: rgba(255,255,255,0.82); border: 1px solid rgba(255,255,255,0.88); box-shadow: 0 14px 30px rgba(160,112,137,0.085); }
#app-theme-window .card-header { margin-bottom: 6px; color: #3a3040; font-size: 14px; font-weight: 860; }
#app-theme-window .card-icon { width: 31px; height: 31px; border-radius: 12px; background: linear-gradient(145deg, #fff1f6, #eaf3ff); color: #c46f91; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65); }
#app-theme-window .setting-card:nth-of-type(3n+2) .card-icon { background: linear-gradient(145deg, #f2fff9, #eaf3ff); color: #649a91; }
#app-theme-window .setting-card:nth-of-type(3n) .card-icon { background: linear-gradient(145deg, #fff9e8, #f5edff); color: #9b80c7; }
.theme-section-note { margin: 0 0 12px 40px; color: #8b7f92; font-size: 11px; line-height: 1.45; }
#app-theme-window .input-bubble,
#app-theme-window .upload-box,
#app-theme-window .ls-shortcut-select,
#app-theme-window .widget-text-input { border: 1px solid rgba(193,126,154,0.09); background: rgba(255,249,252,0.82); border-radius: 16px; }
#app-theme-window .input-bubble:focus-within,
#app-theme-window .upload-box:active { background: #fff; box-shadow: 0 0 0 3px rgba(235,150,178,0.12); }
#app-theme-window .upload-box:hover { border-color: rgba(235,150,178,0.20); background: #fff; }
#app-theme-window .upload-icon { color: #c46f91; box-shadow: none; background: #fff; }
#app-theme-window .prefix,
#app-theme-window .bubble-label,
#app-theme-window .sub-label { color: #9a8798; font-weight: 800; }
#app-theme-window .lock-visibility-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
#app-theme-window .theme-check-card { height: 40px; border-radius: 15px; background: rgba(255,249,252,0.82); border-color: rgba(193,126,154,0.09); color: #6b6475; }
#app-theme-window .theme-check-card input { accent-color: #e88cab; }
#app-theme-window .desktop-layout-entry { border-radius: 20px; background: linear-gradient(135deg, #fff, #fff0f6 46%, #edf6ff); border-color: rgba(235,150,178,0.18); box-shadow: 0 12px 26px rgba(160,112,137,0.10); }
#app-theme-window .desktop-layout-entry button,
#app-theme-window .desktop-edit-actions .primary { background: linear-gradient(135deg, #f39bb8, #8fb5ea); }
#app-theme-window .widget-config-legacy { opacity: 1; }
#app-theme-window .widget-config-item { padding: 12px; border-radius: 18px; background: rgba(255,249,252,0.72); border: 1px solid rgba(193,126,154,0.075); }
#app-theme-window .cal-mode-toggle { padding: 4px; background: rgba(241,232,242,0.78); border-radius: 16px; }
#app-theme-window .cal-mode-btn { border-radius: 13px; color: #81778a; }
#app-theme-window .cal-mode-btn.active { background: #fff; color: #3a3040; box-shadow: 0 5px 16px rgba(160,112,137,0.12); }
.cal-transparent-note { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 9px; align-items: center; padding: 10px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,242,247,0.88), rgba(239,247,255,0.88)); color: #756b7c; font-size: 12px; line-height: 1.45; }
.cal-transparent-note i { width: 28px; height: 28px; border-radius: 11px; background: #fff; color: #c46f91; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.cal-alpha-control { display: block; margin-top: 10px; padding: 11px; border-radius: 17px; background: rgba(255,255,255,0.86); border: 1px solid rgba(193,126,154,0.08); }
.cal-alpha-control > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; color: #3a3040; font-size: 12px; font-weight: 820; }
.cal-alpha-control em { color: #c46f91; font-style: normal; font-variant-numeric: tabular-nums; }
.cal-alpha-control input[type="range"] { width: 100%; accent-color: #e88cab; }
#app-theme-window .icon-grid-pretty { gap: 9px; }
#app-theme-window .pretty-icon-item { height: 84px !important; border-radius: 18px; background: rgba(255,249,252,0.78); border-color: rgba(193,126,154,0.075); }
#app-theme-window .pretty-icon-item:active { background: #fff0f6; }
.wc-sticker-manager-overlay { z-index: 3600 !important; }
.wc-sticker-submodal { z-index: 3800 !important; }

/* === BYND 自适应系统色：正则 / 世界书 / 设置 / 美化 / 预设 === */
.bynd-adaptive #app-regex-window,
.bynd-adaptive #app-worldbook-window,
.bynd-adaptive #app-settings-window,
.bynd-adaptive #app-theme-window,
.bynd-adaptive #app-preset-window {
    background: var(--bynd-app-bg) !important;
    color: var(--bynd-text) !important;
}

.bynd-adaptive #app-regex-window .window-header,
.bynd-adaptive #app-worldbook-window .window-header,
.bynd-adaptive #app-settings-window .window-header,
.bynd-adaptive #app-theme-window .window-header,
.bynd-adaptive #app-preset-window .window-header,
.bynd-adaptive .regex-window-header {
    background: var(--bynd-header) !important;
    border-bottom: 1px solid var(--bynd-border) !important;
    color: var(--bynd-text) !important;
    backdrop-filter: blur(22px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.08) !important;
}

.bynd-adaptive #app-regex-window .window-header h3,
.bynd-adaptive #app-worldbook-window .window-header h3,
.bynd-adaptive #app-settings-window .window-header h3,
.bynd-adaptive #app-theme-window .window-header h3,
.bynd-adaptive #app-preset-window .window-header h3,
.bynd-adaptive .regex-window-header h3 {
    color: var(--bynd-text) !important;
    font-weight: 860;
    letter-spacing: 0;
}

.bynd-adaptive #app-regex-window .close-btn,
.bynd-adaptive #app-worldbook-window .close-btn,
.bynd-adaptive #app-settings-window .close-btn,
.bynd-adaptive #app-theme-window .close-btn,
.bynd-adaptive #app-preset-window .close-btn,
.bynd-adaptive #app-worldbook-window .window-header i,
.bynd-adaptive #app-theme-window .save-btn,
.bynd-adaptive .regex-window-header .close-btn {
    color: var(--bynd-muted) !important;
}

.bynd-adaptive #app-regex-window .window-content,
.bynd-adaptive #app-worldbook-window .window-content,
.bynd-adaptive #app-settings-window .window-content,
.bynd-adaptive #app-theme-window .window-content,
.bynd-adaptive #app-preset-window .window-content,
.bynd-adaptive .regex-content,
.bynd-adaptive .wb-library,
.bynd-adaptive .wb-detail-page,
.bynd-adaptive .wb-detail-scroll {
    background: var(--bynd-content-bg) !important;
    color: var(--bynd-text) !important;
}

.bynd-adaptive .setting-card,
.bynd-adaptive .api-card,
.bynd-adaptive .preset-card,
.bynd-adaptive .preset-prompt-item,
.bynd-adaptive .font-preview-box,
.bynd-adaptive .font-preset-item,
.bynd-adaptive .set-data-btn,
.bynd-adaptive .re-script-card,
.bynd-adaptive .re-empty,
.bynd-adaptive .re-modal-card,
.bynd-adaptive .wb-open-book,
.bynd-adaptive .wb-list-item,
.bynd-adaptive .cal-alpha-control,
.bynd-adaptive .theme-check-card,
.bynd-adaptive .desktop-layout-entry,
.bynd-adaptive .widget-config-item,
.bynd-adaptive .pretty-icon-item {
    background: var(--bynd-surface) !important;
    border-color: var(--bynd-border) !important;
    color: var(--bynd-text) !important;
    box-shadow: var(--bynd-shadow) !important;
}

.bynd-adaptive .setting-card,
.bynd-adaptive .api-card,
.bynd-adaptive .preset-card,
.bynd-adaptive .re-script-card,
.bynd-adaptive .wb-open-book,
.bynd-adaptive .wb-list-item {
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.bynd-adaptive .card-header,
.bynd-adaptive .set-section-title,
.bynd-adaptive .api-card-name,
.bynd-adaptive .preset-card-name,
.bynd-adaptive .preset-prompt-name,
.bynd-adaptive .font-preview-text,
.bynd-adaptive .re-list-head span,
.bynd-adaptive .re-title-group strong,
.bynd-adaptive .re-empty strong,
.bynd-adaptive .wb-library-title strong,
.bynd-adaptive .wb-title,
.bynd-adaptive .wb-open-meta strong,
.bynd-adaptive .wb-item-title,
.bynd-adaptive .wb-empty strong,
.bynd-adaptive .cal-alpha-control > div,
.bynd-adaptive .icon-name {
    color: var(--bynd-text) !important;
}

.bynd-adaptive .theme-section-note,
.bynd-adaptive .prefix,
.bynd-adaptive .bubble-label,
.bynd-adaptive .sub-label,
.bynd-adaptive .api-card-url,
.bynd-adaptive .api-card-model,
.bynd-adaptive .preset-card-meta,
.bynd-adaptive .preset-params,
.bynd-adaptive .font-preview-label,
.bynd-adaptive .set-data-hint,
.bynd-adaptive .set-empty,
.bynd-adaptive .re-list-head small,
.bynd-adaptive .re-title-group span,
.bynd-adaptive .re-code-row span,
.bynd-adaptive .re-empty span,
.bynd-adaptive .wb-library-title span,
.bynd-adaptive .wb-library-title em,
.bynd-adaptive .wb-book small,
.bynd-adaptive .wb-open-meta span,
.bynd-adaptive .wb-item-keys,
.bynd-adaptive .wb-empty span,
.bynd-adaptive .set-version {
    color: var(--bynd-muted) !important;
}

.bynd-adaptive .card-icon,
.bynd-adaptive .upload-icon,
.bynd-adaptive .set-section-title i,
.bynd-adaptive .set-data-btn i,
.bynd-adaptive .font-upload-box i,
.bynd-adaptive .preset-chevron,
.bynd-adaptive .api-card-actions i,
.bynd-adaptive .preset-card-actions i,
.bynd-adaptive .wb-nav-bar i,
.bynd-adaptive .cal-transparent-note i,
.bynd-adaptive .re-empty i {
    background: var(--bynd-accent-faint) !important;
    color: var(--bynd-accent) !important;
}

.bynd-adaptive .input-bubble,
.bynd-adaptive .upload-box,
.bynd-adaptive .ls-shortcut-select,
.bynd-adaptive .widget-text-input,
.bynd-adaptive .font-select,
.bynd-adaptive .font-url-row input,
.bynd-adaptive .font-upload-box,
.bynd-adaptive .preset-prompt-content textarea,
.bynd-adaptive .re-modal-card input,
.bynd-adaptive .re-modal-card select,
.bynd-adaptive .re-code-row code {
    background: var(--bynd-control-bg) !important;
    border-color: var(--bynd-border) !important;
    color: var(--bynd-text) !important;
}

.bynd-adaptive .input-bubble:focus-within,
.bynd-adaptive .upload-box:active,
.bynd-adaptive .font-select:focus,
.bynd-adaptive .font-url-row input:focus,
.bynd-adaptive .preset-prompt-content textarea:focus,
.bynd-adaptive .re-modal-card input:focus,
.bynd-adaptive .re-modal-card select:focus {
    background: var(--bynd-surface-strong) !important;
    border-color: var(--bynd-accent) !important;
    box-shadow: 0 0 0 3px var(--bynd-accent-soft) !important;
}

.bynd-adaptive .set-add-btn,
.bynd-adaptive .font-upload-box {
    background: var(--bynd-accent-faint) !important;
    border-color: var(--bynd-accent-soft) !important;
    color: var(--bynd-accent) !important;
}

.bynd-adaptive .regex-add-btn,
.bynd-adaptive .re-empty button,
.bynd-adaptive .re-modal-card .btn-confirm,
.bynd-adaptive .font-url-apply,
.bynd-adaptive #app-theme-window .desktop-layout-entry button,
.bynd-adaptive #app-theme-window .desktop-edit-actions .primary {
    background: var(--bynd-accent) !important;
    color: var(--bynd-on-accent) !important;
    border-color: transparent !important;
    box-shadow: 0 10px 24px var(--bynd-accent-soft) !important;
}

.bynd-adaptive .regex-tab-bar,
.bynd-adaptive .cal-mode-toggle,
.bynd-adaptive .preset-params {
    background: var(--bynd-control-bg) !important;
    border-color: var(--bynd-border) !important;
}

.bynd-adaptive .re-tab,
.bynd-adaptive .cal-mode-btn {
    color: var(--bynd-muted) !important;
}

.bynd-adaptive .re-tab.active,
.bynd-adaptive .cal-mode-btn.active {
    background: var(--bynd-surface-solid) !important;
    color: var(--bynd-text) !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08) !important;
}

.bynd-adaptive .re-list-head em,
.bynd-adaptive .preset-prompt-role,
.bynd-adaptive .cal-alpha-control em {
    background: var(--bynd-accent-faint) !important;
    color: var(--bynd-accent) !important;
}

.bynd-adaptive .re-slider,
.bynd-adaptive .preset-toggle-slider {
    background: var(--bynd-border-strong) !important;
}

.bynd-adaptive .re-switch input:checked + .re-slider,
.bynd-adaptive .preset-toggle input:checked + .preset-toggle-slider {
    background: var(--bynd-accent) !important;
}

.bynd-adaptive .preset-card.active,
.bynd-adaptive .api-card.is-default,
.bynd-adaptive .font-preset-item.selected {
    border-color: var(--bynd-accent) !important;
    box-shadow: 0 0 0 2px var(--bynd-accent-soft), var(--bynd-shadow) !important;
}

.bynd-adaptive .wb-score-lines::before {
    border-top-color: var(--bynd-accent-soft) !important;
    border-bottom-color: var(--bynd-border) !important;
}

.bynd-adaptive .wb-string {
    border-left-color: var(--bynd-accent-soft) !important;
}

.bynd-adaptive .wb-cover,
.bynd-adaptive .wb-open-cover {
    border-color: var(--bynd-border-strong) !important;
    box-shadow: 10px 16px 28px rgba(0,0,0,0.16), inset 9px 0 15px rgba(255,255,255,0.12), inset -8px 0 16px rgba(0,0,0,0.12) !important;
}

.bynd-adaptive .wb-transition-layer {
    background: color-mix(in srgb, var(--bynd-surface-solid) 44%, transparent) !important;
}

.bynd-adaptive .cal-transparent-note {
    background: var(--bynd-surface) !important;
    border: 1px solid var(--bynd-border) !important;
    color: var(--bynd-muted) !important;
}

.bynd-adaptive .set-version {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bynd-adaptive[data-bynd-tone="dark"] .font-select,
.bynd-adaptive[data-bynd-tone="dark"] .ls-shortcut-select {
    background-image: none !important;
}
