177 lines
13 KiB
CSS
177 lines
13 KiB
CSS
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; height: 100vh; display: flex; justify-content: center; align-items: center; }
|
|
.app { width: 100%; max-width: 420px; height: 100vh; background: #fff; display: flex; flex-direction: column; box-shadow: 0 0 20px rgba(0,0,0,0.1); position: relative; }
|
|
.hidden { display: none !important; }
|
|
|
|
.header { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); color: #fff; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
|
|
.header-left { display: flex; align-items: center; gap: 8px; cursor: pointer; }
|
|
.header-left h2 { font-size: 18px; font-weight: 500; }
|
|
.icon-btn { background: none; border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 4px; border-radius: 50%; }
|
|
.icon-btn svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
|
|
|
|
|
|
.chat-list { flex: 1; overflow-y: auto; padding-bottom: 8px; }
|
|
.chat-item { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; cursor: pointer; }
|
|
.chat-item:active { background: #f9f9f9; }
|
|
.avatar { width: 44px; height: 44px; border-radius: 50%; background: #e0e0e0; margin-right: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; color: #555; flex-shrink: 0; }
|
|
.chat-info { flex: 1; min-width: 0; }
|
|
.chat-name { font-size: 16px; font-weight: 500; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.last-msg { font-size: 14px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.chat-right { display: flex; flex-direction: column; align-items: flex-end; margin-left: 8px; flex-shrink: 0; min-width: 56px; }
|
|
.chat-time { font-size: 12px; color: #aaa; white-space: nowrap; }
|
|
.room-actions { display: flex; gap: 4px; margin-top: 4px; }
|
|
.edit-room-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; padding: 2px; }
|
|
.edit-room-btn svg { width: 16px; height: 16px; stroke: #888; fill: none; stroke-width: 2; }
|
|
|
|
.summary-card { background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fc 100%); margin: 8px; border-radius: 12px; padding: 14px 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; border: 1px solid #b8d4f8; }
|
|
.summary-card h4 { font-size: 16px; font-weight: 500; }
|
|
.summary-card .summary-preview { font-size: 14px; color: #555; }
|
|
|
|
.chat-window { display: flex; flex-direction: column; height: 100%; }
|
|
.chat-header { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); color: #fff; padding: 0 16px; display: flex; align-items: center; min-height: 48px; }
|
|
.chat-header .back-btn { margin-right: 12px; }
|
|
.chat-header .chat-title { font-size: 17px; font-weight: 500; flex: 1; }
|
|
.messages { flex: 1; overflow-y: auto; padding: 12px; background: #fafafa; }
|
|
.msg { margin-bottom: 12px; display: flex; flex-direction: column; }
|
|
.msg.me { align-items: flex-end; }
|
|
.msg-bubble { max-width: 75%; padding: 10px 14px; border-radius: 20px; font-size: 16px; line-height: 1.5; word-wrap: break-word; overflow-wrap: break-word; cursor: pointer; }
|
|
.msg.me .msg-bubble { background: #d1f0d1; border-bottom-right-radius: 4px; }
|
|
.msg.other .msg-bubble { background: #fff; border: 1px solid #eee; border-bottom-left-radius: 4px; }
|
|
.msg-user { font-size: 12px; color: #888; margin-bottom: 2px; margin-left: 4px; }
|
|
.msg.me .msg-user { text-align: right; margin-right: 4px; }
|
|
.msg-time { font-size: 11px; color: #aaa; margin-top: 2px; }
|
|
.msg-bubble h1, .msg-bubble h2, .msg-bubble h3 { font-size: 16px; margin: 5px 0; }
|
|
.msg-bubble table { width: 100%; border-collapse: collapse; margin: 8px 0; }
|
|
.msg-bubble th, .msg-bubble td { border: 1px solid #ddd; padding: 4px; text-align: left; font-size: 14px; }
|
|
.msg-bubble th { background: #f0f0f0; }
|
|
.msg-bubble pre { background: #f0f0f0; padding: 8px; border-radius: 4px; overflow-x: auto; }
|
|
.msg-bubble code { background: #f0f0f0; padding: 2px 4px; border-radius: 3px; font-size: 14px; }
|
|
|
|
.input-area { padding: 8px 12px; border-top: 1px solid #eee; display: flex; align-items: center; background: #fff; gap: 8px; }
|
|
.input-area textarea { flex: 1; border: 1px solid #ddd; border-radius: 12px; padding: 10px 12px; font-size: 16px; outline: none; resize: none; min-height: 40px; max-height: 120px; overflow-y: hidden; line-height: 1.4; }
|
|
.file-upload-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 4px; }
|
|
.file-upload-btn svg { width: 24px; height: 24px; stroke: #666; fill: none; stroke-width: 2; }
|
|
.send-btn { background: #3b82f6; border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
|
|
.send-btn svg { width: 18px; height: 18px; fill: #fff; }
|
|
|
|
.purchase-panel-body { flex: 1; overflow-y: auto; padding: 12px; }
|
|
.purchase-month-group { margin-bottom: 20px; }
|
|
.purchase-month-group summary { list-style: none; cursor: pointer; }
|
|
.purchase-month-group summary::-webkit-details-marker { display: none; }
|
|
.purchase-month-header { background: #f5f5f5; font-size: 16px; font-weight: 600; padding: 10px 8px; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; }
|
|
.purchase-month-header span:last-child { margin-left: auto; margin-right: 4px; }
|
|
.month-arrow { width: 16px; height: 16px; stroke: #888; fill: none; stroke-width: 2; flex-shrink: 0; margin-left: 6px; transition: transform 0.2s; }
|
|
.purchase-month-group[open] .month-arrow { transform: rotate(180deg); }
|
|
.purchase-month-header span:last-child { margin-left: auto; margin-right: 4px; }
|
|
.purchase-item { padding: 12px 8px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
|
|
.purchase-item:active { background: #f9f9f9; }
|
|
.purchase-item .item-main { display: flex; justify-content: space-between; align-items: baseline; }
|
|
.purchase-item .item-name { font-size: 16px; font-weight: 500; }
|
|
.purchase-item .item-amount { font-size: 16px; font-weight: 600; }
|
|
.purchase-item .item-meta { display: flex; justify-content: space-between; margin-top: 4px; font-size: 13px; color: #888; flex-wrap: wrap; gap: 4px; }
|
|
.status-badge { padding: 1px 6px; border-radius: 8px; font-size: 12px; color: #fff; }
|
|
.status-badge.待付款 { background: #f59e0b; }
|
|
.status-badge.已付款 { background: #3b82f6; }
|
|
.status-badge.已收货 { background: #8b5cf6; }
|
|
.status-badge.已完成 { background: #10b981; }
|
|
|
|
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 100; }
|
|
.modal { background: #fff; width: 90%; max-width: 400px; max-height: 80vh; border-radius: 12px; overflow: auto; padding: 16px; position: relative; }
|
|
.modal .modal-close-btn { position: absolute; top: 10px; right: 12px; background: none; border: none; cursor: pointer; }
|
|
.modal .modal-close-btn svg { width: 20px; height: 20px; stroke: #888; fill: none; stroke-width: 2; }
|
|
.modal h3 { margin-bottom: 12px; font-size: 18px; padding-right: 30px; }
|
|
.modal input { width: 100%; padding: 8px; margin: 8px 0; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; }
|
|
.modal button { margin-right: 8px; padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer; font-size: 16px; }
|
|
.modal .primary-btn { background: #3b82f6; color: #fff; }
|
|
.history-list { list-style: none; font-size: 14px; }
|
|
.history-list li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; display: flex; }
|
|
.history-time { min-width: 80px; color: #888; margin-right: 10px; font-size: 13px; }
|
|
.img-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; margin: 4px; border: 1px solid #eee; }
|
|
.attachments { display: flex; flex-wrap: wrap; margin: 8px 0; }
|
|
.msg-img { max-width: 200px; border-radius: 8px; margin: 4px 0; }
|
|
.msg-placeholder .msg-bubble { opacity: 0.6; }
|
|
|
|
.version { text-align: center; font-size: 12px; color: #aaa; margin-top: 16px; }
|
|
|
|
.fullscreen-overlay {
|
|
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
|
|
background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center;
|
|
z-index: 200; cursor: pointer;
|
|
}
|
|
.fullscreen-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; }
|
|
.fullscreen-overlay .fullscreen-text {
|
|
background: #fff; padding: 20px; border-radius: 8px; max-width: 90%; max-height: 80%;
|
|
overflow: auto; font-size: 16px; line-height: 1.5; color: #333;
|
|
}
|
|
.fullscreen-overlay .fullscreen-text img { max-width: 200px; border-radius: 8px; margin: 4px 0; }
|
|
.fullscreen-overlay .fullscreen-text table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 8px 0;
|
|
}
|
|
.fullscreen-overlay .fullscreen-text th,
|
|
.fullscreen-overlay .fullscreen-text td {border: 1px solid #ddd;padding: 4px;text-align: left;font-size: 14px;}
|
|
.fullscreen-overlay .fullscreen-text th {background: #f0f0f0;}
|
|
|
|
.detail-row { margin-bottom: 8px; }
|
|
|
|
/* 可编辑详情弹窗 */
|
|
.detail-modal { max-height: 90vh; overflow-y: auto; padding: 0; }
|
|
.detail-modal input, .detail-modal select, .detail-modal textarea { margin: 0; }
|
|
.detail-header { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); color: #fff; padding: 8px 12px 8px 16px; display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 1; }
|
|
.detail-header .icon-btn { padding:0; margin-right:0; flex-shrink: 0; margin-left: auto; }
|
|
.detail-header .icon-btn svg { stroke: #fff; }
|
|
.modal .detail-title-input { flex: 1; font-size: 18px; font-weight: 600; color: #fff; background: transparent; border: none; outline: none; padding: 4px 0; min-width: 0; }
|
|
.detail-title-input::placeholder { color: rgba(255,255,255,0.6); }
|
|
.detail-title-input:focus { border: none; outline: none; }
|
|
.edit-form { padding: 12px 16px 16px 16px; }
|
|
.edit-row { display: flex; align-items: center; margin-bottom: 8px; gap: 8px; }
|
|
.edit-row label { min-width: 48px; font-size: 13px; color: #777; text-align: right; flex-shrink: 0; }
|
|
.edit-row input, .edit-row select, .edit-row textarea { flex: 1; padding: 7px 8px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 14px; outline: none; margin: 0; }
|
|
.edit-row input:focus, .edit-row select:focus, .edit-row textarea:focus { border-color: #3b82f6; }
|
|
.edit-row select { appearance: auto; }
|
|
.edit-row textarea { resize: vertical; min-height: 40px; }
|
|
.amount-row { font-weight: 600; }
|
|
.amount-row label { color: #333; }
|
|
.edit-amount { flex: 1; font-size: 17px; color: #e53e3e; font-weight: 700; }
|
|
.edit-group { margin-bottom: 8px; }
|
|
.edit-group-summary { display: flex; align-items: center; gap: 8px; padding: 7px 0; cursor: pointer; border-bottom: 1px solid #f0f0f0; }
|
|
.edit-group-summary label { min-width: 48px; font-size: 13px; color: #777; text-align: right; flex-shrink: 0; }
|
|
.edit-group-summary span { flex: 1; font-size: 14px; color: #333; }
|
|
.group-arrow { width: 14px; height: 14px; stroke: #aaa; fill: none; stroke-width: 2; flex-shrink: 0; }
|
|
.edit-group-detail { padding: 4px 0; }
|
|
.edit-group-detail .edit-row { margin-bottom: 4px; }
|
|
.edit-section { margin-top: 8px; border-top: 1px solid #eee; padding-top: 8px; }
|
|
.edit-section-header { font-size: 13px; font-weight: 600; color: #555; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 2px 0; }
|
|
.edit-section-header svg { width: 16px; height: 16px; stroke: #888; fill: none; stroke-width: 2; }
|
|
.history-summary { list-style: none; display: flex; align-items: center; gap: 6px; }
|
|
.history-summary::-webkit-details-marker { display: none; }
|
|
.history-summary .section-arrow { width: 14px; height: 14px; stroke: #888; fill: none; stroke-width: 2; flex-shrink: 0; transition: transform 0.2s; }
|
|
details[open] .history-summary .section-arrow { transform: rotate(180deg); }
|
|
.attach-gallery { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
|
|
.attach-thumb-wrap { position: relative; display: inline-block; }
|
|
.attach-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; }
|
|
.attach-gallery .attach-del-btn { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,0.5); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
|
|
.attach-del-btn svg { width: 10px; height: 10px; stroke: #fff; fill: none; stroke-width: 2.5; }
|
|
.attach-add-btn { cursor: pointer; display: flex; align-items: center; }
|
|
.attach-add-btn svg { width: 18px; height: 18px; stroke: #3b82f6; fill: none; stroke-width: 2; }
|
|
.edit-buttons { display: flex; margin-top: 12px; }
|
|
.save-btn { flex: 1; background: #3b82f6; color: #fff; border: none; padding: 10px 0; border-radius: 6px; font-size: 15px; cursor: pointer; font-weight: 500; }
|
|
.danger-btn { background: transparent; color: #e53e3e; border: 1px solid #e53e3e; padding: 8px 16px; border-radius: 6px; font-size: 14px; cursor: pointer; flex-shrink: 0; margin-left: 8px; }
|
|
|
|
.white-list-tag {
|
|
font-size: 12px;
|
|
color: #555;
|
|
background: #f0f0f0;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
margin-right: 6px;
|
|
max-width: 80px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|