     /* ============================================================
【系统分类：线下模式 (Offline Mode) 专属 CSS】
============================================================ */
      #theater-modal {
      /* 剧场心理透视专属变量 */
      --th-mind-bg: rgba(12, 12, 14, 0.75);
      --th-mind-blur: 35px;
      --th-mind-border: rgba(195, 167, 114, 0.25);
      --th-mind-accent: #C3A772;
      --th-mind-text: #F0F0F0;
      --th-mind-sub: #8A8A8E;
      --th-mind-radius: 8px;
      --bg-color: #FAFAFA; 
      --text-primary: #1A1A1A;
      --text-action: #A8A8AE; 
      --gold-text: #C3A772; 
      --gold-glow: rgba(195, 167, 114, 0.3);
      --geo-line: rgba(195, 167, 114, 0.08); 
      --border-color: rgba(195, 167, 114, 0.15);
      --font-sans: 'Optima', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
      --font-serif: 'Playfair Display', 'Georgia', 'Noto Serif SC', 'Songti SC', serif;
      position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5000;
      background-color: var(--bg-color);
      background-image: radial-gradient(circle at 50% 0%, #FFFFFF 0%, transparent 100%);
      color: var(--text-primary);
      /* 恢复小剧场的独立默认灵魂 */
font-family: var(--font-sans);
font-size: 13.5px;
line-height: 2.2; 
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; 
overflow: hidden; /* 核心修复：禁止整体滚动，改为内部 flex 滚动 */
display: none; opacity: 0; transition: opacity 0.5s, background-color 0.5s;
}
#theater-modal.active { display: flex; flex-direction: column; opacity: 1; }
      #theater-modal * { box-sizing: border-box; margin: 0; padding: 0; }
      #theater-modal .sacred-geometry { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; display: flex; justify-content: center; align-items: center; overflow: hidden; transition: opacity 0.8s ease; }
      #theater-modal .geo-axis-y { position: absolute; width: 1px; height: 100vh; background: linear-gradient(to bottom, transparent, var(--geo-line) 20%, var(--geo-line) 80%, transparent); }
      #theater-modal .geo-axis-x { position: absolute; height: 1px; width: 100vw; background: linear-gradient(to right, transparent, var(--geo-line) 20%, var(--geo-line) 80%, transparent); }
      #theater-modal .geo-circle-1 { position: absolute; width: 80vw; height: 80vw; max-width: 900px; max-height: 900px; border: 1px solid var(--geo-line); border-radius: 50%; }
      #theater-modal .geo-circle-2 { position: absolute; width: 60vw; height: 60vw; max-width: 680px; max-height: 680px; border: 1px dashed rgba(195, 167, 114, 0.15); border-radius: 50%; animation: slowSpin 120s linear infinite; }
      #theater-modal .geo-circle-3 { position: absolute; width: 40vw; height: 40vw; max-width: 450px; max-height: 450px; border: 1px solid var(--geo-line); border-radius: 50%; animation: slowSpinReverse 90s linear infinite; }
      #theater-modal .geo-dot { position: absolute; width: 3px; height: 3px; background: var(--gold-text); border-radius: 50%; box-shadow: 0 0 10px var(--gold-glow); transition: opacity 0.5s ease; }
      #theater-modal .geo-dot.d1 { top: 20%; left: 30%; animation: pulseLight 4s infinite alternate; }
      #theater-modal .geo-dot.d2 { bottom: 25%; right: 25%; animation: pulseLight 3s infinite alternate-reverse; }
      @keyframes slowSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
      @keyframes slowSpinReverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
      @keyframes pulseLight { 0% { opacity: 0.2; transform: scale(0.8); } 100% { opacity: 0.8; transform: scale(1.5); } }
      #theater-modal header { position: fixed; top: 0; width: 100%; max-width: 430px; padding: 30px 20px; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.02); background: rgba(250, 250, 250, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 90; display: flex; justify-content: space-between; align-items: center; }
      #theater-modal .header-spacer { width: 24px; cursor:pointer; color:var(--text-action); display:flex; align-items:center; }
      #theater-modal .header-center { display: flex; flex-direction: column; align-items: center; }
      #theater-modal .header-title { font-family: var(--font-serif); font-size: 11px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold-text); }
      #theater-modal .header-subtitle { font-size: 8px; letter-spacing: 0.4em; color: var(--text-action); margin-top: 6px; }
      #theater-modal .star-btn { width: 22px; height: 22px; color: var(--gold-text); cursor: pointer; transition: all 0.4s ease; opacity: 0.6; }
      #theater-modal .star-btn:hover { opacity: 1; filter: drop-shadow(0 0 10px var(--gold-glow)); }
      #theater-modal .dialogue-wrapper { flex: 1; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; width: 100%; max-width: 760px; margin: 0 auto; position: relative; padding: 140px 24px 40px; -webkit-overflow-scrolling: touch; }
#theater-modal .script-timeline { position: absolute; left: 36px; top: 150px; bottom: 40px; width: 1px; background: linear-gradient(to bottom, transparent, var(--border-color) 5%, var(--border-color) 95%, transparent); z-index: 0; transition: opacity 0.6s ease; }
#theater-modal .dialogue-container { display: flex; flex-direction: column; gap: 90px; position: relative; z-index: 10; }
#theater-modal .dialogue-block { 
    display: grid; 
    grid-template-columns: 50px 1fr; 
    gap: 12px; 
    opacity: 0; 
    transform: translateY(20px); 
    animation: elegantFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; 
    position: relative; 
    /* 核心修复：移除 max-height 的过渡，防止长文本高度计算错误导致重叠 */
    transition: opacity 0.8s ease, transform 0.6s ease; 
    height: auto; 
    min-height: min-content;
}
      #theater-modal .dialogue-block.theater-faded { opacity: 0.25 !important; }
      #theater-modal .dialogue-block.erasing { opacity: 0 !important; transform: translateY(-20px); max-height: 0; overflow: hidden; margin-bottom: -90px; }
      #theater-modal .node-dot { position: absolute; left: -8px; top: 16px; width: 5px; height: 5px; background: var(--bg-color); border: 1px solid var(--gold-text); border-radius: 50%; box-shadow: 0 0 8px var(--gold-glow); z-index: 5; transition: opacity 0.5s; }
      #theater-modal .ai .node-dot { background: var(--gold-text); }
      #theater-modal .avatar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
      #theater-modal .avatar-wrapper { position: relative; }
      #theater-modal .avatar-box { width: 38px; height: 38px; border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; background: var(--bg-color); z-index: 2; overflow: hidden;}
      #theater-modal .avatar-box img { width: 100%; height: 100%; object-fit: cover; }
      #theater-modal .ai .avatar-wrapper::before { content: ''; position: absolute; top: -5px; left: -5px; width: 48px; height: 48px; border: 1px dashed rgba(195, 167, 114, 0.4); border-radius: 50%; animation: slowSpin 10s linear infinite; transition: opacity 0.5s ease; z-index: 1; pointer-events: none;}
      #theater-modal .ai .avatar-box { border: 1px solid var(--border-color); padding: 3px; }
      #theater-modal .user .avatar-box { border: 1px solid rgba(0,0,0,0.06); padding: 2px; }
      #theater-modal .message-time { font-family: 'Courier New', Courier, monospace; font-size: 8px; color: rgba(168, 168, 174, 0.55); letter-spacing: 0.1em; user-select: none; }
      #theater-modal .content-col { display: flex; flex-direction: column; gap: 8px; position: relative; }
      #theater-modal .speaker-label { font-size: 8.5px; letter-spacing: 0.35em; text-transform: uppercase; font-weight: 600; }
      #theater-modal .user .speaker-label { color: var(--text-action); }
      #theater-modal .ai .speaker-label { color: var(--gold-text); }
      #theater-modal .message-content { 
    position: relative; 
    max-width: 100%; 
    text-align: justify; 
    transition: filter 0.5s, opacity 0.5s; 
    /* 核心修复：确保长文本强制换行，不撑破容器 */
    word-wrap: break-word; 
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap; 
    line-height: 1.8; /* 稍微调低一点行高，防止字数多时视觉太散 */
    display: block;
}
      #theater-modal .message-content.rewriting { filter: drop-shadow(0 0 15px var(--gold-text)) brightness(1.5); opacity: 0.5; }
      #theater-modal .action-text { font-size: 0.95em; color: var(--th-action-text, #666666) !important; font-weight: 400; display: block; margin-bottom: 8px; letter-spacing: 0.02em; }
      /* 增加字号动态控制 */
      #theater-modal .dialogue-block { font-size: var(--th-font-size, 13.5px) !important; }
      /* 🚨 核心修复：把 inline-block 改为 inline，打破绝对刚体，让长文本像水流一样自然折行，彻底消灭文字重叠！ */
      #theater-modal .spoken-text { 
    font-family: inherit; 
    font-size: 1em; 
    color: var(--gold-text); 
    /* 核心修复：使用 inline-block 并在必要时强制换行，解决 inline 元素在某些浏览器下的重叠 Bug */
    display: inline-block; 
    width: 100%;
    letter-spacing: 0.06em; 
    font-weight: 400; 
    vertical-align: top;
}
      #theater-modal .spoken-text .big-quote { font-size: 1.2em; position: relative; margin-right: 4px; color: var(--gold-text); opacity: 0.6; }
      #theater-modal .user .spoken-text { color: #666; }
      #theater-modal .user .spoken-text .big-quote { color: #666; }
      #theater-modal .divine-actions { display: flex; gap: 16px; margin-top: 4px; opacity: 0; transform: translateY(5px); transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
      #theater-modal .dialogue-block:hover .divine-actions, #theater-modal .dialogue-block:active .divine-actions { opacity: 1; transform: translateY(0); pointer-events: auto; }
      #theater-modal .action-btn { background: none; border: none; font-family: var(--font-sans); font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(168, 168, 174, 0.6); cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 4px; padding: 4px 0; }
      #theater-modal .action-btn::before { content: '['; opacity: 0; transition: opacity 0.3s, transform 0.3s; transform: translateX(5px); }
      #theater-modal .action-btn::after { content: ']'; opacity: 0; transition: opacity 0.3s, transform 0.3s; transform: translateX(-5px); }
      #theater-modal .action-btn:hover, #theater-modal .action-btn:active { color: var(--gold-text); }
      #theater-modal .action-btn:hover::before, #theater-modal .action-btn:hover::after { opacity: 1; transform: translateX(0); }
#theater-modal .input-wrapper { position: relative; flex-shrink: 0; margin: 0 auto; width: 100%; max-width: 430px; padding: 15px 40px calc(15px + var(--safe-bottom)); background: rgba(250,250,250,0.85); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-top: 0.5px solid rgba(195, 167, 114, 0.2); display: flex; justify-content: center; z-index: 90; }
#theater-modal .input-box { width: 100%; max-width: 700px; position: relative; display: flex; align-items: center; }
      #theater-modal .input-box input { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(195, 167, 114, 0.15); color: inherit; font-size: inherit; padding: 12px 30px 12px 0; outline: none; font-family: inherit; font-style: italic; transition: all 0.4s ease; border-radius: 0; box-shadow: none;}
      #theater-modal .input-box input::placeholder { color: #D1D1D6; }
      #theater-modal .input-box input:focus { border-bottom: 1px solid var(--gold-text); box-shadow: 0 10px 20px -10px var(--gold-glow); }
      #theater-modal .send-btn { position: absolute; right: 0; bottom: 12px; width: 18px; height: 18px; color: var(--text-action); background: none; border: none; cursor: pointer; transition: all 0.4s ease; outline: none; }
      #theater-modal .send-btn:hover, #theater-modal .send-btn:active { color: var(--gold-text); transform: scale(1.15) translateY(-2px) translateX(2px); filter: drop-shadow(0 2px 8px var(--gold-glow)); }
      #theater-modal .settings-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s ease, visibility 0.3s; transform: translateZ(0); will-change: opacity; }
#theater-modal .settings-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
      #theater-modal .settings-panel { background: #FAFAFA; border: 1px solid var(--border-color); padding: 30px 25px; width: 90%; max-width: 440px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); transform: translate3d(0, 20px, 0); opacity: 0; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s; max-height: 80vh; overflow-y: auto; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform, opacity; }
      /* 性能补丁：当设置开启时，强行停止背景的几何动画，腾出 CPU */
      #theater-modal .settings-overlay.active ~ .sacred-geometry div { animation-play-state: paused !important; }
      #theater-modal .settings-overlay.active .settings-panel { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
      /* 色彩弹窗专属美学 */
      .th-palette-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(255,255,255,0.2); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); display: none; align-items: center; justify-content: center; opacity: 0; transition: 0.4s; }
      .th-palette-overlay.active { display: flex; opacity: 1; }
      .th-palette-card { background: #FFF; border: 1px solid var(--border-color); padding: 30px; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); width: 280px; transform: scale(0.9); transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
      .th-palette-overlay.active .th-palette-card { transform: scale(1); }
      .th-palette-header { font-family: var(--th-font-serif); font-size: 10px; letter-spacing: 2px; color: #8E8E93; margin-bottom: 20px; text-align: center; }
      .th-palette-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
      .th-color-swatch { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; transition: 0.3s; border: 2px solid transparent; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
      .th-color-swatch:hover { transform: scale(1.1); border-color: #EEE; }
      .th-color-swatch.active { border-color: #000; transform: scale(1.15); box-shadow: 0 0 15px rgba(0,0,0,0.1); }
      /* 动态颜色应用点 */
      #theater-modal .spoken-text, 
      #theater-modal .input-box input,
      #theater-modal .header-title { color: var(--th-custom-text, var(--gold-text)) !important; }
      #theater-modal .input-box input:focus { border-bottom-color: var(--th-custom-text, var(--gold-text)) !important; }
      #theater-modal .node-dot { background: var(--bg-color); border-color: var(--th-custom-text, var(--gold-text)) !important; }
      #theater-modal .ai .node-dot { background: var(--th-custom-text, var(--gold-text)) !important; }
      #theater-modal .ai .speaker-label { color: var(--th-custom-text, var(--gold-text)) !important; }
      #theater-modal .settings-panel::-webkit-scrollbar { width: 3px; }
      #theater-modal .settings-panel::-webkit-scrollbar-track { background: transparent; }
      #theater-modal .settings-panel::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
      #theater-modal .settings-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid rgba(0,0,0,0.04); padding-bottom: 16px; }
      #theater-modal .settings-title-wrapper { display: flex; flex-direction: column; }
      #theater-modal .settings-title { font-family: var(--font-serif); font-size: 13px; color: var(--gold-text); letter-spacing: 0.2em; text-transform: uppercase; }
      #theater-modal .settings-title-sub { font-size: 9px; color: var(--text-action); letter-spacing: 0.1em; margin-top: 4px; font-weight: 300; }
      #theater-modal .settings-close { font-size: 20px; color: var(--text-action); cursor: pointer; transition: color 0.3s; font-weight: 300; margin-top: -10px; }
      #theater-modal .settings-close:hover { color: var(--gold-text); }
      #theater-modal .btn-memory-sync { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 0; margin-bottom: 24px; border: 1px solid var(--border-color); background: rgba(195, 167, 114, 0.03); cursor: pointer; transition: all 0.4s ease; }
      #theater-modal .btn-memory-sync:hover, #theater-modal .btn-memory-sync:active { background: rgba(195, 167, 114, 0.1); border-color: var(--gold-text); box-shadow: 0 0 15px var(--gold-glow); }
      #theater-modal .btn-memory-sync .main-text { font-family: var(--font-serif); font-size: 11px; color: var(--gold-text); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 2px; transition: all 0.3s; }
      #theater-modal .btn-memory-sync .sub-text { font-size: 8px; color: var(--text-action); letter-spacing: 0.05em; transition: all 0.3s; }
      #theater-modal .setting-item { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; }
      #theater-modal .setting-label { font-size: 10.5px; letter-spacing: 0.1em; color: var(--text-primary); text-transform: uppercase; display: flex; flex-direction: column; }
      #theater-modal .setting-label-sub { font-size: 8px; color: var(--text-action); margin-top: 3px; letter-spacing: 0.05em; text-transform: none; }
      #theater-modal .toggle-switch { width: 36px; height: 2px; background: #E5E5EA; position: relative; cursor: pointer; }
      #theater-modal .toggle-switch::after { content: ''; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; background: var(--text-action); border-radius: 50%; transition: all 0.3s ease; }
      #theater-modal .toggle-switch.on::after { left: 26px; background: var(--gold-text); box-shadow: 0 0 8px var(--gold-glow); }
      #theater-modal .setting-divider { height: 1px; background: rgba(0,0,0,0.04); margin: 30px 0; }
      #theater-modal .preset-container { display: flex; flex-direction: column; gap: 12px; }
      #theater-modal .preset-input-group { display: flex; gap: 10px; }
      #theater-modal .preset-input-group input { flex: 1; background: transparent; border: none; border-bottom: 1px solid var(--border-color); font-size: 11px; padding: 6px 0; outline: none; color: var(--text-primary); border-radius: 0;}
      #theater-modal .preset-input-group input::placeholder { color: #CCC; }
      #theater-modal .btn-add { background: transparent; border: 1px solid var(--border-color); color: var(--gold-text); font-size: 10px; padding: 0 12px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.1em; transition: all 0.3s; }
      #theater-modal .btn-add:hover { background: var(--gold-glow); color: #FFF; }
      #theater-modal .preset-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; margin-bottom: 8px; min-height: 28px; align-content: flex-start; }
      #theater-modal .preset-tag { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border-color); border-radius: 12px; font-size: 10px; color: var(--text-action); cursor: pointer; transition: all 0.3s; }
      #theater-modal .preset-tag:hover { border-color: var(--gold-text); color: var(--text-primary); }
      #theater-modal .style-library-box { display: flex; flex-direction: column; gap: 15px; width: 100%; }
      #theater-modal .style-list-container { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 5px; scrollbar-width: none; }
      #theater-modal .style-list-container::-webkit-scrollbar { display: none; }
      #theater-modal .style-card { background: #FFFFFF; border: 1px solid rgba(0,0,0,0.06); border-radius: 16px; padding: 15px; position: relative; cursor: pointer; transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; justify-content: space-between; align-items: flex-start; text-align: left; }
      #theater-modal .style-card.active { border-color: var(--gold-text); background: rgba(195, 167, 114, 0.03); box-shadow: 0 10px 25px rgba(195, 167, 114, 0.1); }
      #theater-modal .style-card-info { flex: 1; overflow: hidden; padding-right: 10px; pointer-events: none; }
      #theater-modal .style-card-title { font-size: 13px; font-weight: 800; color: #1C1C1E; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
      #theater-modal .style-card.active .style-card-title::before { content: '✦'; color: var(--gold-text); }
      #theater-modal .style-card-desc { font-size: 10px; color: #8E8E93; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 400; }
      #theater-modal .style-card-actions { display: flex; gap: 8px; flex-shrink: 0; position: relative; z-index: 10; }
      #theater-modal .style-action-btn { width: 28px; height: 28px; border-radius: 50%; display: flex; justify-content: center; align-items: center; background: rgba(0,0,0,0.03); color: #A8A39D; transition: 0.2s; cursor: pointer; border: none; font-size: 12px; }
      #theater-modal .style-action-btn:hover { background: #1C1C1E; color: #FFF; }
      #theater-modal .style-action-btn.del:hover { background: #FF3B30; }
      #theater-modal .style-forge-btn { width: 100%; margin-top: 10px; padding: 14px; background: transparent; border: 1.5px dashed #D1D1D6; border-radius: 14px; color: #A8A39D; font-size: 11px; font-weight: 800; cursor: pointer; letter-spacing: 2px; transition: 0.2s; }
      #theater-modal .style-forge-btn:active { transform: scale(0.98); border-color: var(--gold-text); color: var(--gold-text); }
      #theater-modal .style-editor-panel { background: #FFFFFF; border: 1px solid var(--gold-text); border-radius: 20px; padding: 20px; box-shadow: 0 15px 40px rgba(195, 167, 114, 0.15); animation: thSlideIn 0.4s ease; }
      @keyframes thSlideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
      #theater-modal .editor-label { font-size: 9px; font-weight: 800; color: var(--gold-text); letter-spacing: 1px; margin-bottom: 10px; text-transform: uppercase; }
      #theater-modal .editor-input { width: 100%; background: #F9F9F7; border: none; border-radius: 10px; padding: 12px; font-size: 13px; font-weight: 700; margin-bottom: 12px; outline: none; font-family: inherit; }
      #theater-modal .editor-textarea { width: 100%; height: 120px; background: #F9F9F7; border: none; border-radius: 10px; padding: 12px; font-size: 12px; line-height: 1.6; resize: none; outline: none; margin-bottom: 15px; font-family: inherit; }
      #theater-modal .editor-btns { display: flex; gap: 10px; }
      #theater-modal .editor-btn { flex: 1; padding: 14px; border-radius: 12px; font-size: 11px; font-weight: 800; letter-spacing: 1px; cursor: pointer; border: none; transition: 0.2s; }
      #theater-modal .btn-cancel { background: rgba(0,0,0,0.05); color: #8E8E93; }
      #theater-modal .btn-save { background: #1C1C1E; color: #FFF; }
      #theater-modal .prompt-textarea { width: 100%; height: 80px; background: rgba(255,255,255,0.5); border: 1px solid var(--border-color); padding: 12px; font-family: inherit; font-size: inherit; color: inherit; resize: none; outline: none; transition: border 0.3s; line-height: 1.6; border-radius: 2px; }
      #theater-modal .prompt-textarea:focus { border-color: var(--gold-text); box-shadow: inset 0 0 5px rgba(195,167,114,0.1); }
      #theater-modal .prompt-textarea::placeholder { color: #C7C7CC; font-family: var(--font-sans); font-size: 10px; }
      #theater-modal .css-container { display: flex; flex-direction: column; gap: 12px; }
      #theater-modal .css-textarea { width: 100%; height: 60px; background: rgba(0,0,0,0.01); border: 1px solid var(--border-color); padding: 10px; font-family: 'Courier New', Courier, monospace; font-size: 10px; color: #555; resize: none; outline: none; transition: border 0.3s; line-height: 1.5; }
      #theater-modal .css-textarea:focus { border-color: var(--gold-text); background: #FFF; }
      #theater-modal .btn-apply { align-self: flex-end; background: transparent; border: 1px solid var(--gold-text); color: var(--gold-text); font-size: 10px; padding: 6px 16px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.1em; transition: all 0.3s; }
      #theater-modal .btn-apply:hover { background: var(--gold-text); color: #FFF; box-shadow: 0 4px 10px var(--gold-glow); }
      #theater-modal.disable-glow .geo-dot, #theater-modal.disable-glow .node-dot, #theater-modal.disable-glow .ai .avatar-wrapper::before { opacity: 0; }
      #theater-modal.disable-geo .sacred-geometry { opacity: 0; }
      @keyframes elegantFadeUp { from { opacity: 0; transform: translateY(20px); filter: blur(3px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
      /* 心理活动卡片核心 UI */
      #theater-modal .th-mind-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
      #theater-modal .th-mind-overlay.active { opacity: 1; pointer-events: auto; }
      #theater-modal .th-mind-card { width: 100%; max-width: 380px; position: relative; overflow: hidden; background: var(--th-mind-bg); backdrop-filter: blur(var(--th-mind-blur)); -webkit-backdrop-filter: blur(var(--th-mind-blur)); border: 1px solid var(--th-mind-border); border-radius: var(--th-mind-radius); box-shadow: 0 40px 80px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.05); transform: translateY(30px) scale(0.95); opacity: 0; transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1), background 0.5s, border-radius 0.5s; display: flex; flex-direction: column; text-align: left; }
      #theater-modal .th-mind-overlay.active .th-mind-card { transform: translateY(0) scale(1); opacity: 1; }
      #theater-modal .th-mind-card::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, var(--th-mind-border) 20%, var(--th-mind-border) 80%, transparent); z-index: 0; pointer-events: none; }
      #theater-modal .tmc-header { padding: 35px 24px 15px 45px; position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; }
      #theater-modal .tmc-title { font-family: var(--th-font-mono); font-size: 10px; color: var(--th-mind-accent); letter-spacing: 3px; font-weight: 800; text-transform: uppercase; display: flex; flex-direction: column; gap: 4px; }
      #theater-modal .tmc-title span { font-size: 7px; color: var(--th-mind-sub); letter-spacing: 2px; }
      #theater-modal .tmc-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--th-mind-border); display: flex; justify-content: center; align-items: center; cursor: pointer; color: var(--th-mind-sub); font-size: 14px; font-weight: 300; transition: all 0.3s; }
      #theater-modal .tmc-close:hover { color: var(--th-mind-text); border-color: var(--th-mind-text); transform: rotate(90deg); }
      #theater-modal .tmc-body { padding: 15px 30px 40px 45px; position: relative; z-index: 1; }
      #theater-modal .tmc-text { font-family: var(--th-font-serif); font-size: 16px; color: var(--th-mind-text); line-height: 2.2; letter-spacing: 1.5px; text-align: justify; font-style: italic; position: relative; }
      #theater-modal .tmc-text::before { content: '“'; position: absolute; left: -25px; top: -10px; font-family: 'Georgia', serif; font-size: 40px; color: var(--th-mind-border); line-height: 1; }
      #theater-modal .tmc-word { display: inline-block; opacity: 0; filter: blur(4px); transform: translateY(4px); animation: wordBreatheIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
      @keyframes wordBreatheIn { to { opacity: 1; filter: blur(0); transform: translateY(0); } }
      #theater-modal .tmc-footer { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; padding-top: 25px; border-top: 1px dashed var(--th-mind-border); }
      #theater-modal .tmc-meta-row { display: flex; align-items: center; justify-content: space-between; }
      #theater-modal .tmc-meta-label { font-family: var(--th-font-mono); font-size: 9px; color: var(--th-mind-sub); letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
      #theater-modal .tmc-focus-val { font-family: var(--th-font-serif); font-size: 13px; font-weight: 600; color: var(--th-mind-accent); border-bottom: 1px solid var(--th-mind-accent); padding-bottom: 2px; }
      #theater-modal .tmc-gauge { display: flex; gap: 3px; }
      #theater-modal .tmc-gauge-block { width: 6px; height: 10px; background: var(--th-mind-border); transform: skewX(-15deg); transition: background 0.5s; }
      #theater-modal .tmc-gauge-block.filled { background: var(--th-mind-accent); box-shadow: 0 0 8px var(--th-mind-accent); }
      #theater-modal .node-pin { position: absolute; left: 24px; width: 7px; height: 7px; background: var(--th-mind-bg); border: 1.5px solid var(--th-mind-accent); border-radius: 50%; transform: translateX(-50%); z-index: 2; box-shadow: 0 0 10px var(--th-mind-accent); }
      /* ================= 悬浮播放器外壳 ================= */
      .soap-float-player {
      position: absolute; top: 10%; left: 50%; transform: translate3d(-50%, 0, 0) scale(1);
      width: 210px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
      border: 0.5px solid rgba(0, 0, 0, 0.1); border-radius: 14px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02), inset 0 0 0 1px rgba(255, 255, 255, 1);
      display: none; flex-direction: column; overflow: hidden;
      transition: border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
      z-index: 9999; will-change: transform; opacity: 0; pointer-events: none;
      }
      .soap-float-player.show { display: flex; opacity: 1; pointer-events: auto; animation: popInFloat 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
      @keyframes popInFloat { 0% { transform: translate3d(-50%, -20px, 0) scale(0.9); opacity: 0; } 100% { transform: translate3d(-50%, 0, 0) scale(1); opacity: 1; } }
      .soap-float-player.is-expanded { border-radius: 8px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03), inset 0 0 0 1px rgba(255, 255, 255, 1); }
      /* 满天星装饰 */
      .fp-bg-stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
      .fp-star-d { position: absolute; color: #1C1C1E; font-size: 8px; animation: fpTwinkle 3s infinite alternate ease-in-out; opacity: 0.1; }
      @keyframes fpTwinkle { 0% { opacity: 0.05; transform: scale(0.8); } 100% { opacity: 0.25; transform: scale(1.2); } }
      .fp-drag-handle { position: relative; z-index: 1; width: 100%; height: 16px; background: rgba(0, 0, 0, 0.02); border-bottom: 0.5px solid rgba(0, 0, 0, 0.05); display: flex; justify-content: center; align-items: center; gap: 6px; cursor: grab; touch-action: none; font-family: "Courier New", monospace; font-size: 6px; letter-spacing: 3px; color: #A8A39D; text-transform: uppercase; user-select: none; }
      .fp-drag-handle:active { cursor: grabbing; background: rgba(0, 0, 0, 0.05); }
      /* 新增：悬浮窗右上角的收起按钮 */
      .fp-close-btn { position: absolute; right: 8px; top: 0; height: 100%; display: flex; justify-content: center; align-items: center; color: #A8A39D; cursor: pointer; transition: 0.2s; z-index: 10; }
      .fp-close-btn:active { color: #1C1C1E; transform: scale(0.8); }
      .fp-close-btn svg { width: 10px; height: 10px; stroke-width: 2.5; }
      .fp-main { display: flex; align-items: center; padding: 10px 12px 6px; position: relative; background: transparent; cursor: pointer; z-index: 1; }
      .fp-vinyl-wrap { position: relative; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #111; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255,255,255,0.2); display: flex; justify-content: center; align-items: center; animation: spin 8s linear infinite; animation-play-state: paused; }
      .is-playing .fp-vinyl-wrap { animation-play-state: running; }
      .fp-vinyl-wrap::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 45deg, transparent 0deg, rgba(255,255,255,0.3) 45deg, transparent 90deg, transparent 180deg, rgba(255,255,255,0.3) 225deg, transparent 270deg); }
      .fp-vinyl-center { width: 10px; height: 10px; background: #F8F6F0; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 5px; color: #111; z-index: 2; }
      .fp-track-info { flex: 1; margin-left: 10px; display: flex; flex-direction: column; overflow: hidden; }
      .fp-title { font-family: "Didot", serif; font-style: italic; font-size: 13px; font-weight: 600; color: #1C1C1E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
      .fp-artist { font-family: "Courier New", monospace; font-size: 7px; color: #A8A39D; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .fp-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
      .fp-btn { background: transparent; border: 0.5px solid rgba(0, 0, 0, 0.1); width: 24px; height: 24px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; color: #1C1C1E; transition: all 0.3s; padding: 0; outline: none; }
      .fp-btn:hover { background: #FAFAFA; border-color: #1C1C1E; transform: scale(1.05); }
      .fp-btn:active { transform: scale(0.95); }
      .fp-btn svg { width: 8px; height: 8px; fill: currentColor; }
      /* 新增：紧凑的进度条 */
      .fp-progress-wrap { position: relative; z-index: 2; width: 100%; height: 10px; padding: 0 12px 6px; cursor: pointer; display: flex; align-items: center; }
      .fp-progress-bar { flex: 1; height: 2px; background: rgba(0,0,0,0.08); border-radius: 1px; position: relative; }
      .fp-progress-fill { height: 100%; width: 0%; background: #1C1C1E; border-radius: 1px; position: relative; pointer-events: none; transition: width 0.1s linear; }
      .fp-progress-fill::after { content: ''; position: absolute; right: -3px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background: #1C1C1E; border-radius: 50%; box-shadow: 0 0 2px rgba(0,0,0,0.3); opacity: 0; transition: opacity 0.2s; }
      .fp-progress-wrap:hover .fp-progress-fill::after { opacity: 1; }
      .fp-lyrics-panel { position: relative; background: rgba(250, 250, 252, 0.5); border-top: 1px dashed rgba(0, 0, 0, 0.1); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s; z-index: 1; }
      .is-expanded .fp-lyrics-panel { max-height: 150px; opacity: 1; }
      .fp-deco-cross { position: absolute; width: 6px; height: 6px; opacity: 0.3; pointer-events: none; }
      .fp-deco-cross::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 0.5px; background: #111; }
      .fp-deco-cross::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 0.5px; background: #111; }
      .dc-tl { top: 8px; left: 8px; } .dc-tr { top: 8px; right: 8px; } .dc-bl { bottom: 8px; left: 8px; } .dc-br { bottom: 8px; right: 8px; }
      .fp-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: "Didot", serif; font-size: 50px; font-style: italic; color: rgba(0, 0, 0, 0.02); pointer-events: none; white-space: nowrap; }
      .fp-lyrics-content { padding: 16px 15px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 2; }
      .lyric-cn { font-family: -apple-system, sans-serif; font-size: 12px; color: #1C1C1E; font-weight: 600; letter-spacing: 1px; margin-bottom: 4px; }
      .lyric-en { font-family: "Didot", serif; font-size: 10px; font-style: italic; color: #8E8E93; letter-spacing: 0.5px; }
      .fp-eq { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; align-items: flex-end; height: 8px; opacity: 0; transition: 0.3s; }
      .is-playing .fp-eq { opacity: 1; }
      .fp-eq span { width: 2px; background: var(--c-black); border-radius: 1px; animation: eqBounce 0.6s infinite alternate ease-in-out; }
      .fp-eq span:nth-child(1) { animation-delay: 0.1s; } .fp-eq span:nth-child(2) { animation-delay: 0.4s; } .fp-eq span:nth-child(3) { animation-delay: 0.2s; } .fp-eq span:nth-child(4) { animation-delay: 0.5s; } .fp-eq span:nth-child(5) { animation-delay: 0.3s; }
      @keyframes eqBounce { 0% { height: 2px; } 100% { height: 8px; } }
      /* ================= 红色强制线下弹窗 (Fatal Override) ================= */
      #fatal-override-wrap { position: absolute; inset: 0; z-index: 8000; display: none; overflow: hidden; font-family: -apple-system, sans-serif; --c-red: #FF003C; --c-red-dark: #8a0b1f; --c-red-glow: rgba(255, 0, 60, 0.5); --c-text: #F0F0F0; --font-serif: 'Didot', 'Playfair Display', 'Noto Serif SC', serif; --font-mono: 'Courier New', monospace; }
      .fatal-bg-blur { position: absolute; inset: 0; backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); transition: backdrop-filter 0.5s ease; background: rgba(0,0,0,0.3); z-index: 1;}
      .fatal-strobe-overlay { position: absolute; inset: 0; z-index: 10; pointer-events: none; background: var(--c-red); mix-blend-mode: overlay; opacity: 0; transition: opacity 0.3s; }
      .fatal-strobe-overlay.active { animation: fatalStrobe 2s infinite; }
      @keyframes fatalStrobe { 0%, 100% { opacity: 0.1; } 50% { opacity: 0.8; } 55% { opacity: 0.2; } 60% { opacity: 0.9; } }
      .fatal-is-shaking { animation: fatalScreenShake 0.2s infinite; filter: blur(4px) brightness(0.6) grayscale(50%) sepia(1) hue-rotate(-50deg) saturate(3); }
      @keyframes fatalScreenShake { 0%, 100% { transform: translate(0, 0) scale(1.05); } 25% { transform: translate(-4px, 4px) scale(1.05); } 50% { transform: translate(4px, -4px) scale(1.05); } 75% { transform: translate(-4px, -4px) scale(1.05); } }
      .fatal-popup-layer { position: absolute; inset: 0; z-index: 500; pointer-events: none; transition: opacity 0.3s; }
      .fatal-cyber-window { position: absolute; background: rgba(5, 0, 0, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--c-red); box-shadow: 0 10px 30px var(--c-red-glow); color: var(--c-text); font-family: var(--font-mono); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: scale(1.1); pointer-events: auto; }
      .fatal-cyber-window.crash-in { animation: fatalWindowCrash 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
      @keyframes fatalWindowCrash { to { opacity: 1; transform: scale(1); } }
      .fatal-cw-header { background: var(--c-red); color: #000; padding: 4px 8px; font-size: 10px; font-weight: 900; display: flex; justify-content: space-between; align-items: center; letter-spacing: 1px; }
      .fatal-cw-close { cursor: pointer; font-weight: 900; padding: 0 4px; transition: 0.2s; }
      .fatal-cw-close:hover { background: #000; color: var(--c-red); }
      .fatal-cw-close:active { transform: scale(0.8); }
      .fatal-cw-body { padding: 15px; font-size: 11px; line-height: 1.5; text-shadow: 0 0 5px var(--c-red); color: var(--c-red); }
      .fatal-cw-deco { font-size: 8px; opacity: 0.5; margin-top: 8px; border-top: 1px dashed var(--c-red); padding-top: 4px; word-break: break-all; }
      #fatal-win-1 { top: 12%; left: 5%; width: 65%; } #fatal-win-2 { bottom: 25%; right: 5%; width: 70%; z-index: 501; } #fatal-win-3 { top: 35%; left: 15%; width: 80%; z-index: 502; border-width: 2px; }
      #fatal-win-final { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.2); width: 85%; max-width: 350px; background: rgba(0, 0, 0, 0.95); border: 2px solid var(--c-red); z-index: 600; box-shadow: 0 0 50px rgba(255, 0, 60, 0.6), inset 0 0 20px rgba(255, 0, 60, 0.3); text-align: center; padding: 0; }
      #fatal-win-final.crash-in { animation: fatalFinalCrash 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
      @keyframes fatalFinalCrash { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
      .fatal-final-quote { font-family: var(--font-serif); font-size: 22px; font-style: italic; color: #FFF; padding: 35px 20px 25px; line-height: 1.6; letter-spacing: 2px; text-shadow: 0 0 10px var(--c-red); }
      .fatal-final-btn { background: var(--c-red); color: #000; width: 100%; border: none; padding: 15px; font-family: var(--font-mono); font-size: 14px; font-weight: 900; letter-spacing: 4px; cursor: pointer; transition: 0.2s; text-transform: uppercase; }
      .fatal-final-btn:hover { background: #FFF; color: var(--c-red); box-shadow: 0 0 20px #FFF; }
      .fatal-final-btn:active { transform: scale(0.98); }
      .fatal-fake-reject-btn { font-family: var(--font-mono); font-size: 9px; color: rgba(255,0,60,0.4); text-transform: uppercase; letter-spacing: 2px; padding: 10px 0 12px; cursor: pointer; transition: 0.2s; text-decoration: line-through; }
      .fatal-fake-reject-btn:hover { color: var(--c-red); text-shadow: 0 0 8px var(--c-red); text-decoration: none; }
      .fatal-jumpscare-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.5); font-family: var(--font-serif); font-size: 28px; font-weight: 900; font-style: italic; color: #FFF; text-shadow: 0 0 40px var(--c-red), 0 0 15px var(--c-red); z-index: 2000; opacity: 0; pointer-events: none; width: 90vw; text-align: center; white-space: pre-wrap; word-wrap: break-word; line-height: 1.5; letter-spacing: 2px; }
      .fatal-jumpscare-text.active { animation: fatalJumpScareAnim 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
      @keyframes fatalJumpScareAnim { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); filter: blur(10px); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(0.9); filter: blur(0); } 80% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); filter: blur(20px); } }
      .fatal-override-stage { position: absolute; inset: 0; z-index: 1000; display: flex; flex-direction: column; justify-content: center; align-items: center; background: radial-gradient(circle at center, var(--c-red-dark) 0%, #000 80%); opacity: 0; pointer-events: none; transition: opacity 1s ease; overflow: hidden; }
      .fatal-override-stage.active { opacity: 1; pointer-events: auto; }
      .fatal-glitch-terminal { position: absolute; top: max(env(safe-area-inset-top), 20px); left: 35px; right: 35px; height: 120px; overflow: hidden; z-index: 10; pointer-events: none; font-family: var(--font-mono); font-size: 9px; font-weight: 800; color: var(--c-red); line-height: 1.4; text-shadow: 0 0 5px var(--c-red-glow); opacity: 0.7; mask-image: linear-gradient(to bottom, black 40%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%); }
      .fatal-glitch-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fatalGlitchJitter 0.3s infinite; }
      @keyframes fatalGlitchJitter { 0%, 100% { transform: translateX(0); opacity: 0.9; } 20% { transform: translateX(-2px); opacity: 1; } 40% { transform: translateX(2px); opacity: 0.5; } 60% { transform: translateX(-1px); opacity: 0.8; } 80% { transform: translateX(3px); opacity: 0.6; } }
      .fatal-vertical-glitch { position: absolute; top: 15%; bottom: 25%; width: 14px; writing-mode: vertical-rl; text-orientation: mixed; font-family: var(--font-mono); font-size: 8px; font-weight: 800; color: var(--c-red); opacity: 0.5; letter-spacing: 2px; z-index: 10; pointer-events: none; word-break: break-all; mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent); animation: fatalVGlitchPulse 0.1s infinite; text-shadow: 0 0 5px var(--c-red); }
      .fatal-vertical-glitch.left { left: 8px; transform: rotate(180deg); } .fatal-vertical-glitch.right { right: 8px; }
      @keyframes fatalVGlitchPulse { 0%, 100% { opacity: 0.3; transform: translateX(0) rotate(var(--rot, 0deg)); } 50% { opacity: 0.8; transform: translateX(1px) rotate(var(--rot, 0deg)); } }
      .fatal-giant-vertical-glitch { position: absolute; top: -5%; height: 55%; writing-mode: vertical-rl; text-orientation: mixed; font-family: var(--font-mono); font-weight: 900; color: var(--c-red); z-index: 5; pointer-events: none; overflow: hidden; word-break: break-all; line-height: 0.8; letter-spacing: -4px; mask-image: linear-gradient(to bottom, transparent, black 20%, black 60%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 60%, transparent); text-shadow: 0 0 15px var(--c-red); }
      .fatal-giant-glitch-1 { left: 15%; font-size: 42px; opacity: 0.15; animation: fatalVGlitchPulse 0.12s infinite reverse; }
      .fatal-giant-glitch-2 { right: 20%; font-size: 56px; opacity: 0.08; animation: fatalVGlitchPulse 0.18s infinite; }
      .fatal-giant-glitch-3 { left: 40%; font-size: 30px; opacity: 0.12; animation: fatalVGlitchPulse 0.15s infinite; }
      .fatal-sacred-astrolabe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 160vw; height: 160vw; max-width: 900px; max-height: 900px; border: 1px solid rgba(255, 0, 60, 0.2); border-radius: 50%; animation: fatalSpin 40s linear infinite; pointer-events: none; z-index: 1; }
      .fatal-sacred-astrolabe::before { content: ''; position: absolute; inset: 10%; border: 2px dashed rgba(255, 0, 60, 0.3); border-radius: 50%; animation: fatalSpin 20s linear infinite reverse; }
      .fatal-sacred-astrolabe::after { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: linear-gradient(to right, transparent, var(--c-red), transparent); box-shadow: 0 0 20px var(--c-red); }
      .fatal-data-fragment { position: absolute; font-family: var(--font-mono); font-size: 10px; color: var(--c-red); opacity: 0.3; animation: fatalRainDown linear infinite; z-index: 2; font-weight: 800; }
      @keyframes fatalRainDown { 0% { transform: translateY(-50px); opacity: 0; } 10% { opacity: 0.5; } 90% { opacity: 0.5; } 100% { transform: translateY(100vh); opacity: 0; } }
      .fatal-quote-box { position: relative; z-index: 20; text-align: center; width: 90%; margin-top: -80px; }
      .fatal-quote-main { font-family: var(--font-serif); font-size: 24px; font-weight: 600; color: #FFF; line-height: 1.6; letter-spacing: 2px; text-shadow: 0 0 20px var(--c-red); white-space: pre-wrap; word-wrap: break-word; }
      .fatal-quote-sub { font-family: var(--font-mono); font-size: 10px; color: var(--c-red); margin-top: 15px; letter-spacing: 6px; text-transform: uppercase; font-weight: 900; background: #000; display: inline-block; padding: 2px 10px; }
      .fatal-auth-area { position: absolute; bottom: 15%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 30; }
      .fatal-auth-btn { position: relative; width: 90px; height: 90px; display: flex; justify-content: center; align-items: center; cursor: pointer; touch-action: none; border-radius: 50%; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; outline: none; }
      .fatal-auth-magic-ring { position: absolute; inset: -15px; border: 2px solid rgba(255, 0, 60, 0.5); border-radius: 50%; border-left-color: transparent; border-right-color: transparent; animation: fatalSpin 3s linear infinite; pointer-events: none; }
      .fatal-auth-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
      .fatal-ring-bg { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 2; }
      .fatal-ring-progress { fill: none; stroke: var(--c-red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 251; stroke-dashoffset: 251; transition: stroke-dashoffset 0.1s linear; filter: drop-shadow(0 0 10px var(--c-red)); }
      .fatal-auth-core { width: 16px; height: 16px; background: rgba(255,0,60,0.5); border-radius: 50%; transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative; z-index: 2; box-shadow: 0 0 15px var(--c-red); border: 2px solid var(--c-red); }
      .fatal-auth-text { margin-top: 35px; font-family: var(--font-mono); font-size: 10px; color: var(--c-red); letter-spacing: 4px; text-transform: uppercase; transition: 0.2s; font-weight: 900;}
      .fatal-is-holding .fatal-auth-core { transform: scale(2.5); background: #FFF; box-shadow: 0 0 40px #FFF, 0 0 80px var(--c-red); border-color: #FFF; }
      .fatal-is-holding .fatal-ring-progress { stroke: #FFF; filter: drop-shadow(0 0 15px #FFF); }
      .fatal-is-holding .fatal-auth-magic-ring { animation-duration: 0.5s; border-color: #FFF; border-top-color: transparent; border-bottom-color: transparent;}
      .fatal-is-holding .fatal-auth-text { color: #FFF; text-shadow: 0 0 10px #FFF; letter-spacing: 8px; }
      @keyframes fatalSpin { to { transform: rotate(360deg); } }
      .fatal-flash-bang { position: absolute; inset: 0; z-index: 99999; background: #FFF; opacity: 0; pointer-events: none; }
      .fatal-flash-bang.explode { animation: fatalWhiteOut 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
      @keyframes fatalWhiteOut { 0% { opacity: 0; } 10% { opacity: 1; } 100% { opacity: 0; } }
      /* ================= 温柔强制线下弹窗 (Gentle Override) ================= */
      #gentle-override-wrap { position: absolute; inset: 0; z-index: 8000; display: none; overflow: hidden; font-family: -apple-system, sans-serif; --c-gold: #D4C3A3; --c-gold-dark: #A68E61; --c-text: #4A4642; --c-glass: rgba(255, 255, 255, 0.6); --font-serif: 'Didot', 'Playfair Display', 'Noto Serif SC', serif; --font-mono: 'Courier New', monospace; }
      .gentle-bg-blur { position: absolute; inset: 0; backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); transition: backdrop-filter 2s ease; z-index: 1;}
      .gentle-frost-overlay { position: absolute; inset: 0; z-index: 10; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(250,250,252,0.8) 100%); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); transition: backdrop-filter 3s ease, background 3s ease; }
      .gentle-frost-overlay.active { backdrop-filter: blur(25px) saturate(1.2); -webkit-backdrop-filter: blur(25px) saturate(1.2); background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(250,250,252,0.95) 100%); }
      .gentle-shadow-overlay { position: absolute; inset: 0; z-index: 18; pointer-events: none; background: radial-gradient(circle at center, transparent 20%, rgba(0,0,0,0.8) 100%); opacity: 0; transition: opacity 2s cubic-bezier(0.2, 0.8, 0.2, 1); mix-blend-mode: multiply; }
      .gentle-shadow-overlay.level-1 { opacity: 0.6; } .gentle-shadow-overlay.level-2 { opacity: 0.95; }
      .gentle-aurora-container { position: absolute; inset: 0; z-index: 15; overflow: hidden; opacity: 0; transition: opacity 2s ease; pointer-events: none; mix-blend-mode: multiply; }
      .gentle-aurora-container.active { opacity: 0.6; }
      .gentle-aurora-blob { position: absolute; border-radius: 50%; filter: blur(60px); animation: gentleFloatBlob 15s infinite alternate cubic-bezier(0.4, 0, 0.2, 1); }
      .gentle-ab-1 { width: 80vw; height: 80vw; background: #F3E5D8; top: -10%; left: -20%; animation-delay: 0s; } .gentle-ab-2 { width: 90vw; height: 90vw; background: #E8D3C8; bottom: -20%; right: -20%; animation-delay: -5s; } .gentle-ab-3 { width: 70vw; height: 70vw; background: #DCD0E1; top: 40%; left: 30%; animation-delay: -10s; }
      @keyframes gentleFloatBlob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(20px, -30px) scale(1.1); } 100% { transform: translate(-20px, 20px) scale(0.9); } }
      .gentle-popup-layer { position: absolute; inset: 0; z-index: 500; pointer-events: none; }
      .gentle-glass-window { position: absolute; width: 80%; max-width: 320px; background: var(--c-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 20px; padding: 30px 24px; text-align: center; color: var(--c-text); box-shadow: 0 20px 50px rgba(0,0,0,0.05), inset 0 2px 0 rgba(255,255,255,1); transform: translateY(15px) scale(0.98); opacity: 0; pointer-events: auto; transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
      .gentle-glass-window.crash-in { transform: translateY(0) scale(1); opacity: 1; }
      .gentle-gw-title { font-family: var(--font-mono); font-size: 9px; letter-spacing: 4px; margin-bottom: 20px; color: var(--c-gold-dark); text-transform: uppercase; font-weight: 800; }
      .gentle-gw-msg { font-family: var(--font-serif); font-size: 15px; line-height: 1.8; color: var(--c-text); font-style: italic; }
      .gentle-pulse-dot { width: 6px; height: 6px; background: var(--c-gold); border-radius: 50%; margin: 25px auto 0; animation: gentlePulse 2s infinite alternate; box-shadow: 0 0 10px var(--c-gold); }
      @keyframes gentlePulse { 0% { opacity: 0.3; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1.5); } }
      #gentle-win-1 { top: 20%; left: 10%; width: 70%; } #gentle-win-2 { bottom: 30%; right: 10%; width: 75%; z-index: 501; }
      #gentle-win-final { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.05); width: 85%; max-width: 340px; background: rgba(250, 250, 252, 0.85); z-index: 600; padding: 40px 24px 30px; }
      #gentle-win-final.crash-in { transform: translate(-50%, -50%) scale(1); opacity: 1; }
      .gentle-final-quote { font-family: var(--font-serif); font-size: 20px; color: var(--c-text); line-height: 1.8; letter-spacing: 2px; font-weight: 600; margin-bottom: 30px; }
      .gentle-final-btn { background: var(--c-text); color: #FFF; width: 100%; border: none; padding: 14px; border-radius: 12px; font-family: var(--font-mono); font-size: 11px; font-weight: 800; letter-spacing: 3px; cursor: pointer; transition: 0.3s; text-transform: uppercase; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
      .gentle-final-btn:hover { background: var(--c-gold-dark); transform: translateY(-2px); box-shadow: 0 15px 25px rgba(166,142,97,0.2); }
      .gentle-final-btn:active { transform: translateY(0) scale(0.98); }
      .gentle-override-stage { position: absolute; inset: 0; z-index: 1000; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 1.5s ease; overflow: hidden; }
      .gentle-override-stage.active { opacity: 1; pointer-events: auto; }
      .gentle-tremor-shock { animation: gentleSoftShock 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
      @keyframes gentleSoftShock { 0% { transform: scale(1); } 20% { transform: scale(1.02) translate(-2px, 1px); } 40% { transform: scale(1.01) translate(1px, -2px); } 60% { transform: scale(1.005) translate(-1px, 1px); } 100% { transform: scale(1) translate(0); } }
      .gentle-light-mote { position: absolute; width: 4px; height: 4px; background: #FFF; border-radius: 50%; filter: blur(2px); opacity: 0.6; animation: gentleMoteDrift linear infinite; z-index: 2; }
      @keyframes gentleMoteDrift { 0% { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; } 20% { opacity: 0.6; } 80% { opacity: 0.4; } 100% { transform: translateY(100vh) translateX(50px) rotate(360deg); opacity: 0; } }
      .gentle-quote-box { position: relative; z-index: 20; text-align: center; width: 90%; margin-top: -120px; }
      .gentle-quote-main { font-family: var(--font-serif); font-size: 26px; font-weight: 500; color: var(--c-text); line-height: 1.8; letter-spacing: 4px; text-shadow: 0 4px 15px rgba(255,255,255,0.8); transition: opacity 1s, filter 1s, color 1s; }
      .gentle-quote-main.thump { animation: gentleTextThump 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
      @keyframes gentleTextThump { 0% { transform: scale(1.2) translateY(10px); opacity: 0; filter: blur(8px); text-shadow: 0 0 40px var(--c-gold); } 30% { transform: scale(0.98); opacity: 1; filter: blur(0); text-shadow: 0 0 10px var(--c-gold); } 100% { transform: scale(1) translateY(0); opacity: 1; text-shadow: 0 4px 15px rgba(255,255,255,0.8); } }
      .gentle-quote-sub { font-family: var(--font-mono); font-size: 9px; color: var(--c-gold-dark); margin-top: 25px; letter-spacing: 5px; text-transform: uppercase; font-weight: 800; opacity: 0.6; }
      .gentle-auth-area { position: absolute; bottom: 16%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 30; }
      .gentle-auth-btn { position: relative; width: 100px; height: 100px; display: flex; justify-content: center; align-items: center; cursor: pointer; touch-action: none; border-radius: 50%; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; outline: none; }
      .gentle-ripple { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--c-gold); opacity: 0; pointer-events: none; }
      .gentle-ripple-1 { animation: gentleRippleAnim 3s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 0s; } .gentle-ripple-2 { animation: gentleRippleAnim 3s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 1s; } .gentle-ripple-3 { animation: gentleRippleAnim 3s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 2s; }
      @keyframes gentleRippleAnim { 0% { transform: scale(0.5); opacity: 0.8; border-width: 2px; } 100% { transform: scale(1.8); opacity: 0; border-width: 0.5px; } }
      .gentle-auth-core { width: 18px; height: 18px; background: rgba(212, 195, 163, 0.3); border-radius: 50%; transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); position: relative; z-index: 10; border: 1px solid var(--c-gold); backdrop-filter: blur(4px); }
      .gentle-auth-text { margin-top: 35px; font-family: var(--font-mono); font-size: 9px; color: var(--c-gold-dark); letter-spacing: 4px; text-transform: uppercase; transition: 0.4s; font-weight: 800;}
      .gentle-is-holding .gentle-auth-core { transform: scale(3.5); background: rgba(255,255,255,0.8); border-color: #FFF; box-shadow: 0 0 30px rgba(255,255,255,0.8), 0 0 50px rgba(212, 195, 163, 0.6); }
      .gentle-is-holding .gentle-ripple { border-color: #FFF; animation-duration: 1.5s; }
      .gentle-is-holding .gentle-auth-text { color: var(--c-text); letter-spacing: 6px; opacity: 0.8; }
      .gentle-reject-btn { margin-top: 20px; padding: 10px 24px; border-radius: 30px; font-family: var(--font-mono); font-size: 9px; font-weight: 800; color: rgba(74, 70, 66, 0.5); letter-spacing: 3px; text-transform: uppercase; cursor: pointer; border: 0.5px solid rgba(74, 70, 66, 0.2); transition: all 0.3s ease; backdrop-filter: blur(5px); }
      .gentle-reject-btn:hover { background: rgba(74, 70, 66, 0.05); color: var(--c-text); border-color: rgba(74, 70, 66, 0.4); }
      .gentle-reject-btn:active { transform: scale(0.95); }
      .gentle-flash-bang { position: absolute; inset: 0; z-index: 99999; background: #FFF; opacity: 0; pointer-events: none; }
      .gentle-flash-bang.explode { animation: gentleWhiteOutBang 3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
      @keyframes gentleWhiteOutBang { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
      /* 🛡️ 终极抗刘海/状态栏遮挡修正补丁 🛡️ */
      /* 1. 锁屏开机画面：品牌Logo与星座阵法下移 */
      .ls-brand { top: calc(var(--safe-top) + 20px) !important; }
      .ls-const { top: calc(var(--safe-top) + 20px) !important; }
      /* 2. 线下小剧场 (Theater)：顶栏和内容防遮挡 */
      #theater-modal header { padding-top: var(--safe-top) !important; height: auto !important; min-height: 70px !important; }
      #theater-modal .dialogue-wrapper { padding-top: calc(var(--safe-top) + 80px) !important; }
      #theater-modal .settings-overlay { padding-top: var(--safe-top) !important; }
      /* 3. 音乐播放器 (Music)：信息与菜单下压 */
      #app-music .header { top: var(--safe-top) !important; padding-top: 15px !important; }
      #app-music .master-menu-overlay { padding-top: calc(var(--safe-top) + 20px) !important; }
      #app-music .playlist-sidebar { padding-top: calc(var(--safe-top) + 20px) !important; }
      /* 4. 全屏来电系统 (Call Screen) */
      .call-content { padding-top: calc(var(--safe-top) + 20px) !important; }
      .phone-call-ui { padding-top: calc(var(--safe-top) + 20px) !important; }
      /* 5. 玫瑰星河 (Rose Galaxy) */
      .rg-elegant-title { top: var(--safe-top) !important; }
      .rg-close-btn { top: var(--safe-top) !important; }
      /* 6. 高定外卖系统 (Delivery) 内部页面顶部修复 */
      .delivery-modal .modal-header { padding-top: 15px !important; }
      /* 7. 强行接管所有的弹窗组件 (toast / overlays) 的安全高度 */
      .toast-notification { top: calc(var(--safe-top) + 15px) !important; }
      .drag-save-bar { top: var(--safe-top) !important; }
.digital-id-card {
                        width: 100%; max-width: 360px; aspect-ratio: 1.618 / 1; /* 黄金比例/信用卡比例 */
                        border-radius: 28px; position: relative; overflow: hidden;
                        /* 高级磨砂白玻璃质感 */
                        background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.5) 100%);
                        backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
                        border: 1px solid rgba(255,255,255,0.8);
                        box-shadow: 0 20px 50px rgba(0,0,0,0.08), inset 0 2px 0 rgba(255,255,255,0.6);
                        display: flex; align-items: center; padding: 0 28px;
                        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
                        }
                        .digital-id-card:active { transform: scale(0.96); }
                        /* 刻在卡片左上角的极简身份标识 */
                        .digital-id-card::before {
                        content: 'SOAP.OS // IDENTITY'; position: absolute; top: 20px; left: 28px;
                        font-size: 9px; font-weight: 800; letter-spacing: 2px; color: rgba(0,0,0,0.3);
                        }
                        /* 卡片右下角的反光高光晕 */
                        .digital-id-card::after {
                        content: ''; position: absolute; bottom: 0; right: 0;
                        width: 200px; height: 200px; background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 70%);
                        opacity: 0.6; pointer-events: none; border-radius: 50%; transform: translate(30%, 30%);
                        }
                        /* 卡片内的正方形悬浮头像 */
                        .id-avatar-box {
                        width: 76px; height: 76px; border-radius: 22px; flex-shrink: 0;
                        background: rgba(0,0,0,0.03); border: 2px solid #FFF;
                        box-shadow: 0 10px 25px rgba(0,0,0,0.08); overflow: hidden;
                        display: flex; justify-content: center; align-items: center; cursor: pointer;
                        }
                        /* 核心修复：强制让头像图片和默认图标完美填满且不变形 */
                        .id-avatar-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
                        .id-avatar-box svg { width: 60%; height: 60%; color: rgba(0,0,0,0.3); }
                        /* 信息排版区 */
                        .id-info-box {
                        flex: 1; margin-left: 20px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2;
                        }
                        /* 沉浸式无边框名字输入 */
                        .id-name-input {
                        width: 100%; background: transparent; border: none; outline: none;
                        font-size: 26px; font-weight: 800; color: #1C1C1E; letter-spacing: -0.5px;
                        padding: 0; margin-bottom: 4px; font-family: inherit;
                        }
                        .id-name-input::placeholder { color: rgba(0,0,0,0.2); }
                        /* 底部身份子标题 */
                        .id-subtext {
                        font-size: 10.5px; font-weight: 700; color: rgba(0,0,0,0.4); letter-spacing: 1px;
                        }

/* 岛屿外壳 */
                        .me-island-group {
                        background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
                        border-radius: 24px; box-shadow: 0 8px 30px rgba(0,0,0,0.03); border: 0.5px solid rgba(255,255,255,0.6);
                        overflow: hidden;
                        }
                        /* 岛屿的标题 */
                        .me-island-title {
                        font-size: 11px; font-weight: 700; color: var(--c-gray-dark); letter-spacing: 1px;
                        text-transform: uppercase; padding: 0 16px 8px 16px; margin: 0;
                        }
                        /* 岛屿内每一行 */
                        .me-island-row {
                        display: flex; align-items: center; justify-content: space-between;
                        padding: 16px 20px; border-bottom: 0.5px solid rgba(0,0,0,0.04);
                        }
                        .me-island-row:last-child { border-bottom: none; }
                        /* 每一行的文字描述 */
                        .me-row-label { font-size: 15px; font-weight: 600; color: var(--c-black); }
                        /* 取色器右侧的极简输入框 */
                        .me-color-input {
                        flex: 1; border: none; background: transparent; outline: none; text-align: right;
                        font-size: 14px; font-weight: 500; color: var(--c-gray-dark); margin-right: 12px; font-family: inherit;
                        }
                        .me-color-picker {
                        width: 28px; height: 28px; border: none; border-radius: 50%; cursor: pointer;
                        background: transparent; padding: 0; overflow: hidden;
                        }
                        .me-color-picker::-webkit-color-swatch-wrapper { padding: 0; }
                        .me-color-picker::-webkit-color-swatch { border: 1px solid rgba(0,0,0,0.1); border-radius: 50%; }

.action-drawer { width: 100%; display: flex; flex-direction: column; position: relative; z-index: 10; border-bottom: 0.5px solid rgba(0,0,0,0.05); }
                     .drawer-content { height: 0; overflow: hidden; transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s; opacity: 0; pointer-events: none; }
                     .action-drawer.open .drawer-content { height: 110px; opacity: 1; pointer-events: auto; }
                     .drawer-content.dragging { transition: none !important; }
                     .drawer-handle { width: 100%; height: 26px; display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 11; touch-action: none; background: transparent; }
                     .drawer-pill { width: 44px; height: 16px; background: rgba(0,0,0,0.06); border-radius: 10px; display: flex; justify-content: center; align-items: center; color: var(--c-gray-dark); transition: 0.2s; box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);}
                     .drawer-handle:active .drawer-pill { transform: scale(0.9); background: rgba(0,0,0,0.1); }
                     .drawer-pill svg { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); width: 14px; height: 14px; stroke-width: 2.5;}
                     .action-drawer.open .drawer-pill svg { transform: rotate(180deg); }
                     .drawer-cm-grid { display: flex; justify-content: space-around; padding: 10px 15px 0; }

/* 核心 UI 组件 */
            .cs-group-title {
            font-family: "Courier New", monospace; font-size: 10px; font-weight: 800; color: var(--c-gray-dark); letter-spacing: 3px; margin-bottom: 8px; margin-left: 4px;
            display: flex; align-items: center; gap: 12px; text-transform: uppercase; position: relative; z-index: 2;
            }
            .cs-group-title::after {
            content: ''; flex: 1; height: 1px; background: repeating-linear-gradient(to right, rgba(0,0,0,0.06) 0, rgba(0,0,0,0.06) 2px, transparent 2px, transparent 6px);
            }
            .cs-card-group {
            /* 🚀 终极防卡核心：剥除高耗能的 backdrop-filter，改用 0.88 的高不透明度白色，配合阴影，视觉上完美伪装毛玻璃，性能消耗降为0！ */
            background: rgba(255, 255, 255, 0.88); 
            border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.03), inset 0 2px 0 rgba(255,255,255,1);
            border: 0.5px solid rgba(0,0,0,0.05); overflow: hidden; display: flex; flex-direction: column; position: relative; z-index: 2;
            }
            .cs-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; position: relative; }
            .cs-row label { font-size: 14px; font-weight: 600; color: var(--c-black); margin: 0; letter-spacing: 0.5px; text-transform: none; z-index: 2; }
            .cs-divider { height: 0.5px; background: rgba(0,0,0,0.04); margin: 0 16px; }
            .cs-text-btn { font-size: 11px; font-weight: 800; color: #1C1C1E; cursor: pointer; padding: 6px 12px; border-radius: 10px; background: rgba(0,0,0,0.03); transition: all 0.2s; letter-spacing: 1px; text-transform: uppercase; }
            .cs-text-btn:active { transform: scale(0.95); background: rgba(0,0,0,0.08); }
            .cs-input { flex: 1; border: none; background: transparent; outline: none; text-align: right; font-size: 14px; font-weight: 600; color: var(--c-gray-dark); font-family: inherit; width: 100px; z-index: 2; }
            .cs-input::placeholder { color: rgba(0,0,0,0.2); font-weight: 400; }
            .cs-select { border: none; background: transparent; outline: none; font-size: 14px; font-weight: 600; color: var(--c-gray-dark); text-align: right; direction: rtl; appearance: none; padding-right: 15px; 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' fill='none' stroke='%23A8A39D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; z-index: 2; }
            .cs-color-picker { width: 26px; height: 26px; border: none; border-radius: 50%; cursor: pointer; background: transparent; padding: 0; overflow: hidden; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
            .cs-color-picker::-webkit-color-swatch-wrapper { padding: 0; }
            .cs-color-picker::-webkit-color-swatch { border: 1.5px solid rgba(255,255,255,0.8); border-radius: 50%; }
            .cs-textarea { width: 100%; background: rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.06); border-radius: 12px; padding: 12px; font-size: 13px; font-family: inherit; resize: none; outline: none; color: var(--c-black); transition: 0.3s; z-index: 2; position: relative; box-shadow: inset 0 2px 5px rgba(0,0,0,0.01); }
            .cs-textarea:focus { border-color: rgba(0,0,0,0.2); background: #FFF; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
            .cs-avatar-box { width: 54px; height: 54px; border-radius: 14px; background: rgba(0,0,0,0.02); border: 1px solid rgba(255,255,255,0.8); display: flex; justify-content: center; align-items: center; overflow: hidden; cursor: pointer; transition: transform 0.2s; box-shadow: 0 8px 20px rgba(0,0,0,0.05); position: relative; z-index: 2; }
            .cs-avatar-box:active { transform: scale(0.92); }
            .cs-avatar-box img { width: 100%; height: 100%; object-fit: cover; }
            @keyframes avatarShake { 0% { transform: rotate(0deg) scale(1); } 25% { transform: rotate(-10deg) scale(1.1); } 50% { transform: rotate(10deg) scale(1.1); } 75% { transform: rotate(-10deg) scale(1.1); } 100% { transform: rotate(0deg) scale(1); } }
            .avatar-shake { animation: avatarShake 0.4s ease-in-out; }
            /* 齿轮动画 */
            @keyframes gearSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
            .gear-spin { animation: gearSpin 12s linear infinite; transform-origin: center; will-change: transform; }
            /* 环境光效：剔除 filter: blur，改用极低性能消耗的 radial-gradient，配合 transform3d */
            @keyframes csAmbientPulse { 
            0% { transform: scale(1) translate3d(0, 0, 0); opacity: 0.5; } 
            50% { transform: scale(1.15) translate3d(15px, -15px, 0); opacity: 0.8; } 
            100% { transform: scale(1) translate3d(0, 0, 0); opacity: 0.5; } 
            }
            .cs-ambient-light { 
            position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; 
            animation: csAmbientPulse 12s infinite alternate ease-in-out; 
            transform: translateZ(0); will-change: transform, opacity;
            }
            .cs-ambient-1 { 
            width: 350px; height: 350px; top: -60px; left: -80px; 
            background: radial-gradient(circle, rgba(195, 167, 114, 0.25) 0%, transparent 70%); 
            }
            .cs-ambient-2 { 
            width: 400px; height: 400px; bottom: 80px; right: -120px; animation-delay: -6s; 
            background: radial-gradient(circle, rgba(135, 206, 235, 0.2) 0%, transparent 70%); 
            }
            .cs-watermark { 
            position: absolute; top: 25%; left: -5%; font-family: "Didot", serif; font-size: 140px; font-weight: 900; font-style: italic; color: var(--c-black); opacity: 0.02; pointer-events: none; z-index: 0; 
            transform: rotate(-10deg) translateZ(0); letter-spacing: -4px; line-height: 0.8; user-select: none; 
            will-change: transform;
            }
            .cs-crosshair { position: absolute; width: 12px; height: 12px; pointer-events: none; z-index: 5; opacity: 0.25; }
            .cs-crosshair::before { content:''; position:absolute; top:50%; left:0; right:0; height:1px; background:var(--c-black); }
            .cs-crosshair::after { content:''; position:absolute; top:0; bottom:0; left:50%; width:1px; background:var(--c-black); }

@keyframes studioFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(20px, -30px) scale(1.1); } }
               .studio-glass-input { background: rgba(255,255,255,0.5) !important; backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.8) !important; box-shadow: 0 8px 32px rgba(31,38,135,0.05) !important; }

#view-main-moments * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
         #view-main-moments ::-webkit-scrollbar { width: 0; background: transparent; }
         #view-main-moments { 
         background-color: #FFFFFF; color: #262626; display: flex; flex-direction: row; overflow: hidden; 
         font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
         -webkit-font-smoothing: antialiased;
         }
         .m-snowCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 999; transform: translateZ(0); will-change: transform; }
         /* 左侧导航区 */
         .m-sidebar-wrapper { position: relative; width: 72px; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 10px; padding-left: 10px; padding-bottom: 20px; align-items: center; flex-shrink: 0; z-index: 10; overflow-y: auto; overflow-x: hidden; background-color: transparent; }
         .m-sidebar-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 1; background-color: #fafafa; transition: opacity 0.4s ease, background-image 0.4s ease; -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(to right, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%); }
         .m-sidebar-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 60%, rgba(255,255,255,0) 100%); z-index: 2; }
         .m-sidebar { position: relative; z-index: 3; width: 50px; height: auto; padding: 8px 0; background-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05); border-radius: 25px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
         .m-avatar-btn { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; position: relative; display: flex; justify-content: center; align-items: center; transition: opacity 0.2s; flex-shrink: 0; }
         .m-avatar-btn img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; padding: 2px; background-color: transparent; border: 1px solid transparent; box-shadow: 0 0 0 2px transparent, 0 0 0 3px transparent; transition: all 0.3s ease; }
         .m-star-icon-btn { width: 34px; height: 34px; border-radius: 50%; background-color: #f0f0f0; display: flex; justify-content: center; align-items: center; color: #999; padding: 2px; border: 1px solid transparent; box-shadow: 0 0 0 2px transparent, 0 0 0 3px transparent; transition: all 0.3s ease; }
         .m-star-icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
         .m-avatar-btn:hover { opacity: 0.8; }
         .m-avatar-btn.active img, .m-avatar-btn.active .m-star-icon-btn { background-color: transparent; border: 1px solid transparent; box-shadow: 0 0 0 1px transparent, 0 0 0 2px #262626; color: #262626; }
         .m-avatar-btn.active .m-star-icon-btn { background-color: #ffffff; }
         .m-sidebar-divider { width: 20px; height: 1px; background-color: rgba(0, 0, 0, 0.1); margin: 2px 0; border-radius: 1px; flex-shrink:0; }
         .m-star-line { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; z-index: 3; padding-bottom: 20px;}
         .m-star-svg { width: 12px; height: 12px; fill: #dcdcdc; animation: twinkle 4s infinite ease-in-out; }
         .m-star-svg:nth-child(1) { animation-delay: 0s; } .m-star-svg:nth-child(2) { animation-delay: 0.8s; } .m-star-svg:nth-child(3) { animation-delay: 1.6s; }
         /* 右侧内容区 */
         .m-main-content { flex: 1; height: 100%; position: relative; background-color: #FAFAFA; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23e8ecef' fill-opacity='0.8' stroke='%23e8ecef' stroke-width='0.6'%3E%3Ccircle cx='30' cy='30' r='1.5' stroke='none'/%3E%3Ccircle cx='90' cy='80' r='1' stroke='none'/%3E%3Cpath d='M60 56v8m-4-4h8m-5.6-2.8l5.6 5.6m-5.6 0l5.6-5.6' fill='none'/%3E%3Ccircle cx='75' cy='20' r='0.8' stroke='none'/%3E%3Ccircle cx='20' cy='90' r='1.2' stroke='none'/%3E%3Cpath d='M100 36v6m-3-3h6m-4.2-2.1l4.2 4.2m-4.2 0l4.2-4.2' fill='none' stroke-width='0.4'/%3E%3C/g%3E%3C/svg%3E"), repeating-linear-gradient(90deg, rgba(0,0,0,0.012) 0px, rgba(0,0,0,0.012) 1px, transparent 1px, transparent 3px), repeating-linear-gradient(0deg, rgba(255,255,255,0.3) 0px, rgba(255,255,255,0.3) 1px, transparent 1px, transparent 3px), url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"), linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(244,245,247,0.7) 40%, rgba(250,251,252,0.9) 100%); background-size: 260px, 100% 100%, 100% 100%, 150px 150px, 100% 100%; z-index: 20; transform: translateZ(0); }
         .m-page { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; -webkit-overflow-scrolling: touch; padding-bottom: 110px; /* 强制底部垫高，完美防遮挡 */ }
         .m-page.active { opacity: 1; pointer-events: auto; }
         .m-square-header-title { font-size: 22px; font-weight: 300; letter-spacing: 4px; color: #90959c; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.05); position: relative; }
         .m-vertical-decor { position: absolute; right: 20px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: center right; font-size: 10px; letter-spacing: 8px; color: #c0c5cc; font-weight: 400; white-space: nowrap; pointer-events: none; z-index: 10; text-shadow: 1px 1px 0 rgba(255,255,255,0.8); }
         .m-vinyl-widget { position: absolute; top: 50px; right: 15px; display: flex; align-items: center; gap: 12px; z-index: 50; pointer-events: none; }
         .m-vinyl-text { font-size: 10px; color: #90959c; letter-spacing: 2px; font-weight: 400; text-transform: uppercase; text-shadow: 1px 1px 0 rgba(255,255,255,0.8); }
         .m-vinyl-icon { width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(#444 0 45deg, #222 45deg 90deg, #444 90deg 135deg, #222 135deg 180deg, #444 180deg 225deg, #222 225deg 270deg, #444 270deg 315deg, #222 315deg 360deg); border: 1px solid #eee; position: relative; animation: spinVinyl 6s linear infinite; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
         .m-vinyl-icon::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 6px; height: 6px; background: #fff; border-radius: 50%; border: 1px solid #ddd; }
         @keyframes spinVinyl { 100% { transform: rotate(360deg); } }
         /* 个人主页顶部背景与头像 */
         .m-profile-header { width: 100%; background-color: transparent; margin-bottom: 24px; position: relative; }
         .m-cover-container { position: relative; width: 100%; height: 280px; overflow: hidden; cursor: pointer; }
         /* 核心修改：在背景图底部加入向下的渐变毛玻璃，自然融合到底部的白色信息区，绝不影响上方背景和头像 */
         .m-cover-container::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 140px; background: linear-gradient(to bottom, rgba(250,250,250,0) 0%, rgba(250,250,250,0.7) 60%, rgba(250,250,250,1) 100%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 70%); mask-image: linear-gradient(to bottom, transparent 0%, black 70%); pointer-events: none; z-index: 1; }
         .m-profile-cover { width: 100%; height: 100%; object-fit: cover; display: block; animation: breatheCover 20s alternate infinite linear; }
         @keyframes breatheCover { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }
         .m-upload-cover-btn { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%) scale(0.8); border-radius: 50%; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); color: #FFF; z-index: 10; }
         .m-cover-container.show-btn .m-upload-cover-btn { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
         .m-upload-cover-btn input[type="file"] { display: none; }
         .m-profile-info-container { max-width: 600px; margin: 0; padding: 0 40px 30px 20px; position: relative; display: flex; flex-direction: column; }
         .m-profile-avatar-wrapper { position: relative; width: 86px; height: 86px; margin-top: -43px; z-index: 2; cursor: pointer; }
         .m-profile-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; padding: 3px; background-color: #FFFFFF; border: 1px solid #E6E6E6; box-shadow: 0 0 0 3px rgba(255,255,255,0.8), 0 0 0 4px #E6E6E6; transition: all 0.3s ease; }
         .m-api-add-btn { position: absolute; bottom: 2px; right: 2px; width: 22px; height: 22px; background-color: #262626; border-radius: 50%; border: 2px solid #FFFFFF; color: #FFFFFF; display: flex; justify-content: center; align-items: center; z-index: 10; transition: transform 0.1s ease; }
         .m-api-add-btn:active { transform: scale(0.9); }
         .m-api-add-btn svg { width: 12px; height: 12px; stroke-width: 3; }
         .m-api-add-btn.loading svg { animation: spin 1s linear infinite; }
         .m-global-add-btn { position: absolute; right: 20px; bottom: 95px; width: 56px; height: 56px; background-color: #262626; color: #FFFFFF; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 100; }
         .m-global-add-btn:active { transform: scale(0.95); }
         .m-global-add-btn svg { width: 24px; height: 24px; stroke-width: 2; }
         .m-global-add-btn.loading svg { animation: spin 1s linear infinite; }
         .m-profile-name { font-size: 20px; font-weight: 600; color: #262626; margin-top: 16px; letter-spacing: 0.5px; }
         .m-profile-bio { font-size: 14px; color: #7a828a; margin-top: 4px; font-weight: 400; }
         .m-profile-stars { display: flex; gap: 4px; margin-left: 16px; margin-bottom: 15px; }
         .m-profile-star { font-size: 9px; color: #c0c5cc; animation: mProfileTwinkle 2.5s infinite alternate ease-in-out; text-shadow: 0 1px 2px rgba(255,255,255,0.8); }
         .m-profile-star:nth-child(1) { animation-delay: 0s; } .m-profile-star:nth-child(2) { animation-delay: 0.4s; } .m-profile-star:nth-child(3) { animation-delay: 0.8s; } .m-profile-star:nth-child(4) { animation-delay: 1.2s; } .m-profile-star:nth-child(5) { animation-delay: 1.6s; } .m-profile-star:nth-child(6) { animation-delay: 2.0s; }
         @keyframes mProfileTwinkle { 0% { opacity: 0.2; transform: scale(0.8); } 100% { opacity: 0.9; transform: scale(1.1); } }
         /* 动态流内容 */
         .m-feed-container { max-width: 600px; margin: 0; padding: 60px 20px 20px 20px; }
         .m-post { padding-bottom: 35px; margin-bottom: 35px; position: relative; opacity: 0; transform: translateY(20px); will-change: transform, opacity; }
         .m-page.active .m-post { animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
         @keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
         .m-post::after { content: '✧'; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); color: #c8ced4; font-size: 14px; background: transparent; padding: 0 10px; }
         .m-post::before { content: ''; position: absolute; bottom: 7px; left: 0; width: 100%; height: 1px; background: linear-gradient(to right, transparent, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.05) 80%, transparent); }
         .m-post:last-child::after, .m-post:last-child::before { display: none; }
         .m-post-header { display: flex; align-items: center; margin-bottom: 12px; }
         .m-post-header img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; margin-right: 12px; border: 1px solid rgba(0,0,0,0.05); }
         .m-post-info { display: flex; flex-direction: column; }
         .m-post-name { font-size: 14px; font-weight: 600; color: #262626; }
         .m-post-time { font-size: 12px; color: #8E8E8E; margin-top: 2px; font-family: monospace; letter-spacing: 0.5px; }
         .m-post-content { font-size: 15px; line-height: 1.6; color: #333; margin-bottom: 16px; word-wrap: break-word; }
         .m-post-image-wrapper { position: relative; display: inline-block; width: 100%; margin-bottom: 16px; cursor: pointer; }
         .m-post-paperclip { position: absolute; top: -12px; left: 15px; width: 22px; height: 22px; color: #a0a5aa; transform: rotate(-10deg); z-index: 5; filter: drop-shadow(2px 3px 3px rgba(0,0,0,0.08)); pointer-events: none; }
         .m-post-image-inner { position: relative; width: 100%; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.02); transform: translateZ(0); }
         .m-post-image { width: 100%; display: block; transition: transform 0.4s ease, filter 0.4s ease; background-color: #FFFFFF; }
         .m-post-image-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); background: rgba(0, 0, 0, 0.4); color: #fff; padding: 8px 16px; border-radius: 20px; font-size: 12px; letter-spacing: 2px; font-weight: 300; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: all 0.3s ease; pointer-events: none; z-index: 10; }
         .m-post-image-wrapper:hover .m-post-image { transform: scale(1.02); filter: brightness(0.95); }
         .m-post-image-wrapper:hover .m-post-image-hint { opacity: 1; transform: translate(-50%, -50%) scale(1); }
         /* 互动与评论区 */
         .m-interaction-bar { display: flex; gap: 20px; margin-bottom: 10px; }
         .m-action-icon { cursor: pointer; color: #555; display: flex; align-items: center; opacity: 0.7; transition: opacity 0.2s, transform 0.1s; position: relative; }
         .m-action-icon:hover { opacity: 1; color: #111; }
         .m-action-icon:active { transform: scale(0.85); }
         .m-action-icon svg { width: 18px; height: 18px; stroke-width: 1.8; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
         .m-action-icon.liked svg { fill: #ff6b81; stroke: #ff6b81; opacity: 1; animation: heartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
         .like-particle { position: fixed; border-radius: 50%; pointer-events: none; z-index: 10000; }
         .m-comments-section { padding-top: 8px; font-size: 14px; line-height: 1.6; color: #4A4A4A; display: none; animation: slideDown 0.3s ease forwards; transform-origin: top; }
         .m-comments-section.show { display: block; }
         .m-comment-item { margin-bottom: 6px; }
         .m-comment-author { font-weight: 600; color: #262626; cursor: pointer; }
         .m-comment-input-wrapper { margin-top: 8px; display: flex; align-items: center; }
         .m-comment-input { flex: 1; border: none; background: rgba(0,0,0,0.03); border-radius: 16px; padding: 8px 12px; outline: none; font-size: 13px; color: #262626; transition: background 0.3s; }
         .m-comment-input:focus { background: rgba(0,0,0,0.06); }
         .m-comment-submit { font-size: 13px; color: #0095F6; cursor: pointer; margin-left: 12px; font-weight: 600; opacity: 0.8; }
         .m-comment-submit:active { opacity: 1; transform: scale(0.95); }
         /* 发布动态弹窗与书签弹窗 (复用原有 CSS 核心部分，加上 .m- 前缀) */
         .m-compose-modal { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(250, 250, 250, 0.85); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
         .m-compose-modal.show { opacity: 1; pointer-events: auto; }
         .m-compose-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s ease; color: #555; z-index: 2010;}
         .m-compose-close:hover { background: #f5f5f5; transform: rotate(90deg); color: #111; }
         .m-compose-container { width: 100%; max-width: 600px; padding: 40px; transform: translateY(30px); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
         .m-compose-modal.show .m-compose-container { transform: translateY(0); }
         .m-compose-textarea { width: 100%; height: 150px; background: transparent; border: none; outline: none; resize: none; font-size: 24px; font-weight: 300; color: #262626; line-height: 1.5; font-family: inherit; }
         .m-compose-preview { width: 100%; margin-top: 20px; display: none; position: relative; }
         .m-compose-preview-inner { position: relative; width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
         .m-compose-preview-inner img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
         .m-compose-text-photo-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(252, 252, 252, 0.98); border: none; padding: 45px 25px 25px; font-size: 14px; line-height: 1.6; color: #333; resize: none; outline: none; display: none; z-index: 5; }
         .m-compose-preview-badge { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 12px; display: none; z-index: 10; }
         .m-compose-preview-remove { position: absolute; top: -10px; left: -10px; width: 28px; height: 28px; background: #262626; color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; border: 2px solid #fff; z-index: 20; }
         .m-compose-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 20px; }
         .m-compose-tools { display: flex; gap: 20px; position: relative; }
         .m-compose-icon-btn { cursor: pointer; color: #888; display: flex; align-items: center; padding: 5px; }
         .m-attachment-menu { position: absolute; bottom: 40px; left: -5px; background: #fff; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-radius: 12px; padding: 6px; display: none; flex-direction: column; gap: 2px; min-width: 140px; z-index: 100; }
         .m-attachment-menu.show { display: flex; }
         .m-attachment-item { padding: 10px 12px; font-size: 14px; color: #333; cursor: pointer; border-radius: 8px; display: flex; align-items: center; gap: 10px; }
         .m-compose-submit-btn { padding: 12px 32px; background-color: #262626; color: #fff; border-radius: 30px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; }
         /* 书签弹窗 */
         .m-bookmark-modal { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 3000; display: flex; justify-content: center; align-items: flex-start; padding-top: 10%; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
         .m-bookmark-modal.show { opacity: 1; pointer-events: auto; }
         .m-bookmark-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: pointer; }
         .m-bookmark-card { width: 320px; max-width: 90%; background: linear-gradient(135deg, #e4e7ec 0%, #f0f2f5 30%, #d8dce6 50%, #f0f2f5 70%, #e4e7ec 100%), repeating-linear-gradient(0deg, rgba(255,255,255,0.4) 0px, rgba(255,255,255,0.4) 1px, transparent 1px, transparent 2px); box-shadow: inset 1px 1px 2px rgba(255,255,255,0.9), inset -1px -1px 3px rgba(0,0,0,0.1), 0 25px 50px rgba(0,0,0,0.2); border-radius: 6px; position: relative; padding: 40px 24px 30px; transform: translateY(-50px) rotateX(20deg); opacity: 0; transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 2; }
         .m-bookmark-modal.show .m-bookmark-card { transform: translateY(0) rotateX(0deg); opacity: 1; }
         .m-bookmark-hole { width: 12px; height: 12px; border-radius: 50%; background: rgba(0, 0, 0, 0.1); box-shadow: inset 1px 1px 3px rgba(0,0,0,0.4), inset -1px -1px 2px rgba(255,255,255,0.8); position: absolute; top: 16px; left: 50%; transform: translateX(-50%); }
         .m-bookmark-ribbon { position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 6px; height: 120px; background: #ab3a3a; border-radius: 3px; z-index: -1; box-shadow: inset 1px 0 2px rgba(0,0,0,0.2), 2px 0 5px rgba(0,0,0,0.15); }
         .m-bookmark-img-wrapper { position: relative; width: 100%; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); margin-bottom: 20px; }
         .m-bookmark-img { width: 100%; display: block; background-color: #fff; }
         .m-bookmark-img-hint { position: absolute; bottom: 8px; right: 8px; background: rgba(0, 0, 0, 0.5); color: #fff; padding: 4px 8px; border-radius: 12px; font-size: 10px; opacity: 1; transition: opacity 0.2s; }
         .m-bookmark-scene-desc { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.95); display: block; overflow-y: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; text-align: justify; font-size: 13px; line-height: 1.8; color: #4a5059; font-weight: 500; }
         .m-bookmark-scene-desc::-webkit-scrollbar { display: none; }
         .m-bookmark-img-wrapper.show-desc .m-bookmark-scene-desc { opacity: 1; pointer-events: auto; }
         .m-bookmark-img-wrapper.show-desc .m-bookmark-img-hint { opacity: 0; }
         .m-bookmark-content { font-size: 14px; line-height: 1.6; color: #4a5059; text-shadow: 1px 1px 0 rgba(255,255,255,0.8); margin-bottom: 16px; text-align: justify; }
         .m-bookmark-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #8a929a; text-shadow: 1px 1px 0 rgba(255,255,255,0.8); border-top: 1px solid rgba(0,0,0,0.04); padding-top: 12px; font-family: monospace; letter-spacing: 1px; }
         .m-bookmark-meta-name { font-weight: bold; color: #6a727a; }

.gacha-overlay {
         position: fixed; top: 0; left: 0; width: 100%; height: 100%; box-sizing: border-box; 
         background: rgba(220, 217, 208, 0.4); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
         z-index: 6000; display: none; justify-content: center; align-items: center;
         opacity: 0; transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1); padding: 20px;
         }
         .gacha-overlay.active { display: flex; opacity: 1; }
         .gacha-modal-box {
         width: 100%; max-width: 330px; background: rgba(255, 255, 255, 0.65); box-sizing: border-box;
         backdrop-filter: blur(50px); -webkit-backdrop-filter: blur(50px); border-radius: 20px; padding: 40px 24px 30px; 
         border: 0.5px solid rgba(255,255,255,0.8); box-shadow: 0 40px 80px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255,255,255,1);
         transform: translateY(20px) scale(0.98); opacity: 0; transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
         position: relative; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", serif;
         }
         .gacha-overlay.active .gacha-modal-box { transform: translateY(0) scale(1); opacity: 1; }
         .gacha-top-actions { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; z-index: 50; }
         .gacha-icon-btn { width: 32px; height: 32px; display: flex; justify-content: center; align-items: center; color: #A8A39D; cursor: pointer; transition: 0.3s; border-radius: 50%; }
         .gacha-icon-btn:hover { color: #1C1C1E; background: rgba(0,0,0,0.05); }
         .gacha-icon-btn.close-btn:hover { transform: rotate(90deg) scale(1.1); }
         .gacha-icon-btn svg { stroke-width: 1.5; }
         #gacha-view-machine { display: flex; flex-direction: column; align-items: center; transition: all 0.5s; }
         .gacha-header-title { font-family: "Didot", serif; font-size: 14px; font-style: italic; font-weight: 600; color: #2A1C1A; letter-spacing: 2px; margin-bottom: 40px; opacity: 0.8; margin-top: 10px; }
         .wax-stage { position: relative; width: 220px; height: 160px; margin-bottom: 40px; display: flex; justify-content: center; align-items: center; perspective: 800px; }
         .wax-envelope { width: 180px; height: 120px; background: #F8F6F0; border-radius: 2px; position: relative; z-index: 10; box-shadow: 0 20px 40px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04); background-image: linear-gradient(150deg, transparent 49%, rgba(0,0,0,0.02) 50%, transparent 51%), linear-gradient(-150deg, transparent 49%, rgba(0,0,0,0.02) 50%, transparent 51%); animation: envelopeBreathe 5s infinite alternate cubic-bezier(0.37, 0, 0.63, 1); transition: transform 0.4s; transform-style: preserve-3d; }
         @keyframes envelopeBreathe { 0% { transform: translateY(0) rotateX(5deg); } 100% { transform: translateY(-8px) rotateX(-2deg); } }
         .wax-seal-drop { position: absolute; top: 48%; left: 50%; transform: translate(-50%, -50%) translateZ(10px) scale(0); width: 48px; height: 48px; z-index: 20; background: #7E1518; border-radius: 48% 55% 45% 52% / 52% 48% 55% 45%; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 0 4px #5A0E10, 0 4px 10px rgba(0,0,0,0.1); display: flex; justify-content: center; align-items: center; opacity: 0; }
         .wax-seal-logo { width: 65%; height: 65%; opacity: 0; transition: opacity 0.4s ease-out; filter: drop-shadow(0 -0.5px 0px rgba(0,0,0,0.4)) drop-shadow(0 0.5px 0px rgba(255,255,255,0.2)); }
         .brass-stamp { position: absolute; top: -80px; left: 50%; transform: translateX(-50%) translateZ(30px); width: 28px; height: 60px; z-index: 30; background: linear-gradient(to right, #8C7853 0%, #D8CBB3 30%, #A6926A 70%, #594B34 100%); border-radius: 3px 3px 2px 2px; box-shadow: 0 15px 25px rgba(0,0,0,0.15); opacity: 0; pointer-events: none; }
         .brass-stamp::after { content: ''; position: absolute; bottom: -3px; left: -3px; right: -3px; height: 6px; background: linear-gradient(to right, #66553B 0%, #C2B399 50%, #66553B 100%); border-radius: 1px; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
         .is-stamping .brass-stamp { animation: stampPhysics 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
         .is-stamping .wax-envelope { animation: paperImpact 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
         .is-stamping .wax-seal-drop { animation: waxSplat 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
         @keyframes stampPhysics { 0% { transform: translateX(-50%) translateZ(50px) translateY(-20px); opacity: 0; } 15% { transform: translateX(-50%) translateZ(40px) translateY(0); opacity: 1; } 35% { transform: translateX(-50%) translateZ(10px) translateY(88px); opacity: 1; } 65% { transform: translateX(-50%) translateZ(10px) translateY(88px); opacity: 1; } 100% { transform: translateX(-50%) translateZ(50px) translateY(-40px); opacity: 0; } }
         @keyframes paperImpact { 0%, 34% { transform: translateY(0) rotateX(0); } 35% { transform: translateY(12px) rotateX(-8deg); box-shadow: 0 5px 15px rgba(0,0,0,0.04); } 100% { transform: translateY(0) rotateX(0); box-shadow: 0 20px 40px rgba(0,0,0,0.06); } }
         @keyframes waxSplat { 0%, 33% { transform: translate(-50%, -50%) translateZ(10px) scale(0); opacity: 0; border-radius: 50%; } 34% { transform: translate(-50%, -50%) translateZ(1px) scale(0.4); opacity: 1; border-radius: 50%; } 45% { transform: translate(-50%, -50%) translateZ(1px) scale(1.05); opacity: 1; border-radius: 46% 54% 50% 50% / 55% 45% 58% 42%; } 65%, 100% { transform: translate(-50%, -50%) translateZ(1px) scale(1) rotate(5deg); opacity: 1; border-radius: 48% 55% 45% 52% / 52% 48% 55% 45%; } }
         .btn-extract { background: transparent; color: #2A1C1A; width: 100%; padding: 16px; font-family: "Courier New", monospace; font-size: 10px; font-weight: 600; letter-spacing: 4px; border: 0.5px solid #2A1C1A; border-radius: 2px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all 0.4s; position: relative; overflow: hidden; }
         .btn-extract::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #2A1C1A; transform: scaleY(0); transform-origin: bottom; transition: transform 0.4s; z-index: -1; }
         .btn-extract:hover { color: #F8F6F0; border-color: transparent; }
         .btn-extract:hover::before { transform: scaleY(1); }
         .btn-extract:active { transform: scale(0.98); }
         .paper-flash { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #F8F6F0; z-index: 100; opacity: 0; pointer-events: none; }
         .flash-anim { animation: paperFlash 0.8s ease-out forwards; }
         @keyframes paperFlash { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
         #gacha-view-result { display: none; flex-direction: column; opacity: 0; transform: translateY(15px); transition: all 0.5s; width: 100%; margin-top: 10px; }
         .result-content-area { position: relative; padding-left: 18px; border-left: 1.5px solid #2A1C1A; margin-bottom: 40px; margin-left: -5px; padding-right: 25px; }
         .result-label { font-family: "Courier New", monospace; font-size: 8px; color: #A8A39D; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; font-weight: bold; }
         .result-label::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #7E1518; }
         .result-text { font-family: "Songti SC", "Noto Serif SC", "Georgia", serif; font-size: 15px; color: #1C1C1E; line-height: 1.8; font-weight: 500; text-align: justify; letter-spacing: 0.5px; position: relative; }
         .result-text::before { content: '“'; font-family: "Georgia", serif; font-size: 46px; color: rgba(126, 21, 24, 0.12); position: absolute; left: -14px; top: -14px; z-index: -1; line-height: 1; }
         .result-actions { display: flex; gap: 16px; width: 100%; }
         .gacha-res-btn { flex: 1; padding: 14px 0; border-radius: 2px; font-size: 9px; font-weight: 600; font-family: "Courier New", monospace; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; text-align: center; transition: all 0.3s; }
         .gacha-res-btn.cancel { background: transparent; color: #A8A39D; border: 0.5px solid rgba(0,0,0,0.1); }
         .gacha-res-btn.cancel:hover { background: rgba(0,0,0,0.03); color: #1C1C1E; }
         .gacha-res-btn.use { background: #1C1C1E; color: #E8E1D5; border: 0.5px solid #1C1C1E; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
         .gacha-res-btn.use:hover { background: #000; box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
         #gacha-view-repo { display: none; flex-direction: column; opacity: 0; transition: all 0.5s; width: 100%; height: 320px; margin-top: 10px; }
         .repo-title { font-size: 13px; font-weight: 600; color: #2A1C1A; letter-spacing: 1px; margin-bottom: 15px; text-align: center; }
         .repo-list { flex: 1; overflow-y: auto; margin-bottom: 15px; padding-right: 5px; }
         .repo-list::-webkit-scrollbar { width: 4px; }
         .repo-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 4px; }
         .repo-item { background: rgba(0,0,0,0.03); border: 0.5px solid rgba(0,0,0,0.05); padding: 10px 12px; border-radius: 8px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
         .repo-item-text { font-size: 13px; color: #1C1C1E; line-height: 1.5; text-align: justify; word-break: break-all; }
         .repo-item-del { color: #A8A39D; cursor: pointer; padding: 2px; font-size: 14px; line-height: 1; transition: 0.2s; }
         .repo-item-del:hover { color: #7E1518; }
         .repo-empty { text-align: center; font-size: 12px; color: #A8A39D; margin-top: 30px; letter-spacing: 1px; }
         .repo-input-area { display: flex; flex-direction: column; gap: 8px; }
         .repo-input-area textarea { width: 100%; height: 60px; box-sizing: border-box; background: rgba(255,255,255,0.6); border: 0.5px solid rgba(0,0,0,0.1); border-radius: 8px; padding: 10px; font-size: 13px; font-family: inherit; resize: none; outline: none; transition: 0.3s; }
         .repo-input-area textarea:focus { border-color: #2A1C1A; background: #fff; }
         .repo-add-btn { background: #1C1C1E; color: #E8E1D5; border: none; padding: 12px; border-radius: 8px; font-size: 11px; font-weight: 600; letter-spacing: 2px; cursor: pointer; transition: 0.3s; }
               .repo-add-btn:active { transform: scale(0.98); }

/* 弹性艺术更新公告专属样式 */
.update-card {
    width: 330px; background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border-radius: 32px; padding: 35px 24px 30px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12);
    text-align: center; position: relative; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5); animation: cardEnter 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cardEnter { from { opacity: 0; transform: scale(0.85) translateY(50px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.deco-star { position: absolute; color: var(--c-black); opacity: 0.05; pointer-events: none; animation: starRotate 10s linear infinite; }
.ds-1 { top: -10px; left: -10px; font-size: 80px; }
.ds-2 { bottom: 20px; right: -20px; font-size: 60px; opacity: 0.03; }
@keyframes starRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.star-cluster { display: flex; justify-content: center; gap: 8px; margin-bottom: 15px; }
.mini-star { font-size: 14px; color: var(--c-black); animation: twinkle 2s infinite alternate ease-in-out; }
.ms-2 { font-size: 22px; margin-top: -5px; animation-delay: 0.5s; }
.ms-3 { animation-delay: 1s; }
@keyframes twinkle { 0% { opacity: 0.3; transform: scale(0.8); filter: blur(1px); } 100% { opacity: 1; transform: scale(1.1); filter: blur(0); } }
.card-title { font-family: "Didot", serif; font-size: 24px; font-weight: 600; color: var(--c-black); margin-bottom: 20px; letter-spacing: -0.5px; }
.log-toggle { background: rgba(0,0,0,0.04); padding: 4px; border-radius: 100px; display: inline-flex; width: 100%; margin-bottom: 24px; position: relative; }
.log-toggle-btn { flex: 1; padding: 10px 0; font-size: 13px; font-weight: 700; color: #8E8E93; cursor: pointer; z-index: 2; transition: color 0.3s ease; }
.log-toggle-btn.active { color: var(--c-black); }
.toggle-slider { position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px); background: #FFF; border-radius: 100px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); z-index: 1; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.history-active .toggle-slider { transform: translateX(100%); }
.log-scroll { height: 120px; overflow-y: auto; text-align: left; scrollbar-width: none; mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); }
.log-scroll::-webkit-scrollbar { display: none; }
.log-page { animation: fadeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.log-item { margin-bottom: 22px; position: relative; padding-left: 15px; }
.log-item::before { content: '★'; position: absolute; left: 0; top: 4px; font-size: 8px; color: var(--gold-accent); }
.log-ver { font-size: 10px; font-weight: 800; color: var(--gold-accent); letter-spacing: 2px; margin-bottom: 6px; display: block; text-transform: uppercase; }
.log-text { font-size: 14px; line-height: 1.8; color: #3A3A3C; margin: 0; font-weight: 500; }
.footer-btns { margin-top: 25px; display: flex; flex-direction: column; gap: 12px; }
.btn-main { background: var(--c-black); color: #FFF; border: none; padding: 16px; border-radius: 20px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-main:active { transform: scale(0.96); opacity: 0.9; }
.btn-sub { background: transparent; color: #8E8E93; border: none; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; transition: 0.2s; }
.btn-sub:hover { color: var(--c-black); }

/* ================= 表情包中央档案馆 V3 专属样式 ================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,900;1,400&display=swap');

.sm-header {
    padding: var(--safe-top) 24px 15px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 0.5px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 100;
}

.sm-header-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #1C1C1E;
}

.sm-header-sub {
    font-family: "Courier New", monospace;
    font-size: 8px;
    color: #C3A772;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 4px;
    font-weight: 800;
}

.sm-tabs-area {
    display: flex;
    gap: 12px;
    padding: 15px 24px;
    overflow-x: auto;
    scrollbar-width: none;
    background: #F4F3F0;
}

.sm-tabs-area::-webkit-scrollbar { display: none; }

.sm-tab {
    padding: 8px 18px;
    background: rgba(0,0,0,0.04);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: #8E8E93;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.3s;
}

.sm-tab.active {
    background: #1C1C1E;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.sm-grid-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px 180px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-content: start;
    background: #F4F3F0;
}

.sm-sticker-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 8px;
    position: relative;
    border: 0.5px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.sm-img-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    background: #F9F9F9;
    border-radius: 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.sm-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.sm-name-input {
    font-size: 10px;
    font-weight: 800;
    color: #1C1C1E;
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    outline: none;
    padding: 2px 0;
}

.sm-select-row {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 0.5px solid rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sm-select-label {
    font-size: 8px;
    font-weight: 800;
    color: #8E8E93;
    letter-spacing: 0.5px;
}

.sm-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid #E5E5EA;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sm-checkbox.checked {
    background: #1C1C1E;
    border-color: #1C1C1E;
}

.sm-checkbox.checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #fff;
    font-size: 10px;
}

.sm-console {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(30px);
    border-top: 0.5px solid rgba(0,0,0,0.05);
    padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
    z-index: 110;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sm-btn-gold {
    width: 100%; background: #fff; border: 1px solid #C3A772; color: #C3A772;
    padding: 12px; border-radius: 16px; font-size: 11px; font-weight: 800;
    letter-spacing: 2px; text-align: center; cursor: pointer; text-transform: uppercase;
}

.sm-btn-row { display: flex; gap: 10px; }

.sm-btn-black {
    flex: 1; background: #1C1C1E; color: #fff;
    padding: 14px; border-radius: 16px; font-size: 13px; font-weight: 700;
    display: flex; justify-content: center; align-items: center; gap: 8px; cursor: pointer;
}

.sm-btn-white {
    background: #fff; border: 1px solid rgba(0,0,0,0.1); color: #1C1C1E;
    padding: 14px 20px; border-radius: 16px; font-size: 13px; font-weight: 700; cursor: pointer;
}

.sm-modal-tabs { display: flex; background: #f0f0f0; padding: 4px; border-radius: 12px; margin-bottom: 20px; }
.sm-modal-tab { flex: 1; padding: 8px; font-size: 11px; font-weight: 800; text-align: center; cursor: pointer; border-radius: 8px; color: #8E8E93; }
.sm-modal-tab.active { background: #fff; color: #1C1C1E; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.sm-preview-box {
    width: 100%; height: 120px; background: #F4F3F0; border-radius: 16px; margin-bottom: 15px;
    display: flex; justify-content: center; align-items: center; overflow: hidden;
    border: 1px dashed #C3A772; cursor: pointer;
}
.sm-preview-box img { width: 100%; height: 100%; object-fit: contain; }

.sm-input-flat {
    width: 100%; padding: 12px; background: #F4F3F0; border: none; border-radius: 12px;
    font-size: 13px; margin-bottom: 15px; outline: none; font-weight: 600;
}

.sm-contact-list { max-height: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 5px; }
.sm-contact-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px; background: #F4F3F0; border-radius: 14px; cursor: pointer;
}
/* 🚀 核心修复：强制锁死授权列表头像尺寸 */
.sm-avatar-box {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden !important;
    flex-shrink: 0;
    border: 0.5px solid rgba(0,0,0,0.05);
}
.sm-avatar-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.sm-avatar-box svg {
    width: 60% !important;
    height: 60% !important;
}

/* ================= AI 加载气泡动画 ================= */
.soap-loader { display: flex; align-items: center; gap: 5px; height: 20px; padding: 2px 0; }
.soap-loader .ld { width: 5px; height: 5px; border-radius: 50%; background: #1C1C1E; animation: soapBounce 1.4s ease-in-out infinite; }
.soap-loader .ld:nth-child(1) { animation-delay: 0s; }
.soap-loader .ld:nth-child(2) { animation-delay: 0.15s; }
.soap-loader .ld:nth-child(3) { animation-delay: 0.3s; }
@keyframes soapBounce {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.25; }
    50% { transform: translateY(-6px) scale(1.15); opacity: 1; }
}
/* ================= 高定创建联系人弹窗 ================= */
.role-modal-card {
    width: 100%; max-width: 400px; background: #FFFFFF; border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.04);
    overflow: hidden; animation: cardPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex; flex-direction: column; max-height: 90vh;
    margin-top: 40px;
}
@keyframes cardPop { 0% { transform: scale(0.85) translateY(30px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
.role-header {
    position: relative; background: linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 100%);
    padding: 28px 24px 55px; display: flex; flex-direction: column; align-items: center; overflow: hidden;
}
.role-header::before { content: ''; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(195,167,114,0.15) 0%, transparent 70%); pointer-events: none; }
.rh-star { position: absolute; color: rgba(195,167,114,0.2); pointer-events: none; line-height: 1; }
.rh-s1 { top: 15px; left: 20px; font-size: 18px; animation: rhTwinkle 3s infinite alternate; }
.rh-s2 { top: 30px; right: 35px; font-size: 12px; animation: rhTwinkle 2.5s infinite alternate 0.5s; }
.rh-s3 { bottom: 55px; left: 40px; font-size: 10px; animation: rhTwinkle 4s infinite alternate 1s; }
@keyframes rhTwinkle { 0% { opacity: 0.2; transform: scale(0.8); } 100% { opacity: 0.8; transform: scale(1.2); } }
.role-header-label { font-family: "Courier New", monospace; font-size: 8px; font-weight: 800; color: rgba(195,167,114,0.6); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 6px; }
.role-header-title { font-family: "Didot", "Playfair Display", serif; font-size: 22px; font-weight: 600; font-style: italic; color: #FFFFFF; letter-spacing: 1px; }
.role-avatar-zone { position: relative; margin-top: -48px; z-index: 10; display: flex; justify-content: center; margin-bottom: 22px; flex-direction: column; align-items: center; }
.role-avatar-ring { width: 90px; height: 90px; border-radius: 50%; background: #FFFFFF; padding: 3px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); cursor: pointer; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.role-avatar-ring:active { transform: scale(0.92); }
.role-avatar-inner { width: 100%; height: 100%; border-radius: 50%; background: #F4F3F0; display: flex; justify-content: center; align-items: center; overflow: hidden; border: 1px dashed rgba(195,167,114,0.4); }
.role-avatar-inner svg { width: 28px; height: 28px; color: #C3A772; opacity: 0.6; }
.role-avatar-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.role-avatar-hint { background: #1C1C1E; color: #FFF; font-size: 7px; font-weight: 800; letter-spacing: 1.5px; padding: 3px 10px; border-radius: 100px; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,0.15); margin-top: -6px; }
.role-body { padding: 0 24px 24px; overflow-y: auto; flex: 1; }
.role-field { margin-bottom: 14px; }
.role-field-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.role-field-label span { font-size: 10px; font-weight: 800; color: #A8A39D; letter-spacing: 1.5px; text-transform: uppercase; }
.role-field-label .field-hint { font-size: 9px; font-weight: 600; color: #C3A772; letter-spacing: 0; text-transform: none; font-style: italic; }
.role-input { width: 100%; padding: 12px 16px; background: #F9F9F7; border: 1px solid rgba(0,0,0,0.04); border-radius: 14px; outline: none; font-size: 15px; font-weight: 600; color: #1C1C1E; font-family: inherit; transition: all 0.3s; box-shadow: inset 0 2px 4px rgba(0,0,0,0.01); }
.role-input:focus { background: #FFFFFF; border-color: rgba(195,167,114,0.4); box-shadow: 0 0 0 3px rgba(195,167,114,0.08); }
.role-input::placeholder { color: #D1D1D6; font-weight: 400; }
.role-textarea { width: 100%; padding: 12px 16px; background: #F9F9F7; border: 1px solid rgba(0,0,0,0.04); border-radius: 14px; outline: none; font-size: 14px; font-weight: 500; color: #1C1C1E; font-family: inherit; line-height: 1.6; resize: none; min-height: 90px; transition: all 0.3s; box-shadow: inset 0 2px 4px rgba(0,0,0,0.01); }
.role-textarea:focus { background: #FFFFFF; border-color: rgba(195,167,114,0.4); box-shadow: 0 0 0 3px rgba(195,167,114,0.08); }
.role-textarea::placeholder { color: #D1D1D6; font-weight: 400; }
.role-select-wrap { position: relative; }
.role-select { width: 100%; padding: 12px 40px 12px 16px; background: #F9F9F7; border: 1px solid rgba(0,0,0,0.04); border-radius: 14px; outline: none; font-size: 15px; font-weight: 600; color: #1C1C1E; font-family: inherit; appearance: none; cursor: pointer; transition: all 0.3s; }
.role-select:focus { border-color: rgba(195,167,114,0.4); }
.role-select-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #A8A39D; }
.role-footer { padding: 0 24px 20px; display: flex; gap: 12px; }
.role-btn { flex: 1; padding: 14px; border-radius: 14px; font-size: 14px; font-weight: 700; cursor: pointer; text-align: center; border: none; transition: all 0.2s; letter-spacing: 0.5px; font-family: inherit; }
.role-btn:active { transform: scale(0.96); }
.role-btn-cancel { background: rgba(0,0,0,0.04); color: #8E8E93; }
.role-btn-cancel:active { background: rgba(0,0,0,0.08); }
.role-btn-save { background: #1C1C1E; color: #FFFFFF; box-shadow: 0 10px 25px rgba(28,28,30,0.2); }
.role-btn-save:active { opacity: 0.9; }
.role-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; }
.role-divider-line { flex: 1; height: 1px; background: repeating-linear-gradient(to right, rgba(0,0,0,0.05) 0, rgba(0,0,0,0.05) 2px, transparent 2px, transparent 6px); }
.role-divider-star { font-size: 10px; color: #C3A772; opacity: 0.5; }

/* ============================================================
   THEME CREATOR HOOKS (主题创作者专用钩子)
   说明：以下选择器预留给外部导入的 CSS，方便进行深度美化
   ============================================================ */

/* 聊天室总外壳 */
#view-chat {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* 消息行基础间距 */
.msg-row {
    margin-bottom: 5px;
}

/* 气泡容器，方便做整体偏移 */
.bubble-body {
    position: relative;
}

/* 预留给自定义字体的类 */
.custom-font-apply {
    font-family: inherit;
}

/* 强制清除背景的占位符 */
.bubble.bubble-clear {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
