export const EXPORT_HTML_STYLES = `:root { color-scheme: light; --bg: #f6f7fb; --card: #ffffff; --text: #1f2a37; --muted: #6b7280; --accent: #4f46e5; --sent: #dbeafe; --received: #ffffff; --border: #e5e7eb; --shadow: 0 12px 30px rgba(15, 23, 42, 0.08); --radius: 16px; } * { box-sizing: border-box; } body { margin: 0; font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); } .page { max-width: 1080px; margin: 0 auto; padding: 8px 20px; height: 100vh; display: flex; flex-direction: column; } .header { background: var(--card); border-radius: 12px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); padding: 12px 20px; flex-shrink: 0; } .title { font-size: 16px; font-weight: 600; margin: 0; display: inline; } .meta { color: var(--muted); font-size: 13px; display: inline; margin-left: 12px; } .meta span { margin-right: 10px; } .controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; } .controls input, .controls button { border-radius: 8px; border: 1px solid var(--border); padding: 6px 10px; font-size: 13px; font-family: inherit; } .controls input[type="search"] { width: 200px; } .controls input[type="datetime-local"] { width: 200px; } .controls button { background: var(--accent); color: #fff; border: none; cursor: pointer; padding: 6px 14px; } .controls button:active { transform: scale(0.98); } .stats { font-size: 13px; color: var(--muted); margin-left: auto; } .message-list { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; } .message { display: flex; flex-direction: column; gap: 8px; } .message.hidden { display: none; } .message-time { font-size: 12px; color: var(--muted); margin-bottom: 6px; } .message-row { display: flex; gap: 12px; align-items: flex-end; } .message.sent .message-row { flex-direction: row-reverse; } .avatar { width: 40px; height: 40px; border-radius: 12px; background: #eef2ff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; color: #475569; font-weight: 600; } .avatar img { width: 100%; height: 100%; object-fit: cover; } .bubble { max-width: min(70%, 720px); background: var(--received); border-radius: 18px; padding: 12px 14px; border: 1px solid var(--border); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06); } .message.sent .bubble { background: var(--sent); border-color: transparent; } .sender-name { font-size: 12px; color: var(--muted); margin-bottom: 6px; } .message-content { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.6; } .message-text { word-break: break-word; } .inline-emoji { width: 22px; height: 22px; vertical-align: text-bottom; margin: 0 2px; } .message-media { border-radius: 14px; max-width: 100%; } .previewable { cursor: zoom-in; } .message-media.image, .message-media.emoji { max-height: 260px; object-fit: contain; background: #f1f5f9; padding: 6px; } .message-media.emoji { max-height: 160px; width: auto; } .message-media.video { max-height: 360px; background: #111827; } .message-media.audio { width: 260px; } .image-preview { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.7); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 999; } .image-preview.active { opacity: 1; pointer-events: auto; } .image-preview img { max-width: min(90vw, 1200px); max-height: 90vh; border-radius: 18px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); background: #0f172a; transition: transform 0.1s ease; cursor: zoom-out; } .highlight { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 18px; transition: outline-color 0.3s; } .empty { text-align: center; color: var(--muted); padding: 40px; } /* Scroll Container */ .scroll-container { flex: 1; min-height: 0; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); margin-top: 8px; margin-bottom: 8px; padding: 12px; -webkit-overflow-scrolling: touch; } .scroll-container::-webkit-scrollbar { width: 6px; } .scroll-container::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; } .load-sentinel { height: 1px; } `;