- 新增布局管理器支持拖拽调整面板宽度 - 新增状态管理器实现布局持久化 - 重构前端页面结构优化四栏式布局 - 新增 Jest 测试框架和完整测试用例 - 完善项目文档(PRD/FD/TDD/TODO/LOG) - 清理 Python 缓存文件并更新 .gitignore Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1294 lines
31 KiB
CSS
1294 lines
31 KiB
CSS
* {
|
||
margin: 0;
|
||
padding: 0;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
body {
|
||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
||
background-color: #ffffff;
|
||
color: #1a1a1a;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
/* 顶部导航栏 */
|
||
.navbar {
|
||
height: 56px;
|
||
background-color: #ffffff;
|
||
border-bottom: 1px solid #e5e5e5;
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 0 24px;
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
z-index: 100;
|
||
}
|
||
|
||
.navbar-brand {
|
||
font-size: 18px;
|
||
font-weight: 600;
|
||
color: #1a1a1a;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.navbar-brand svg {
|
||
width: 24px;
|
||
height: 24px;
|
||
}
|
||
|
||
.navbar-center {
|
||
flex: 1;
|
||
display: flex;
|
||
justify-content: center;
|
||
}
|
||
|
||
.current-account {
|
||
font-size: 14px;
|
||
color: #666;
|
||
background-color: #f5f5f5;
|
||
padding: 6px 16px;
|
||
border-radius: 20px;
|
||
display: none;
|
||
cursor: pointer;
|
||
transition: all 0.2s;
|
||
}
|
||
|
||
.current-account:hover {
|
||
background-color: #e8e8e8;
|
||
}
|
||
|
||
.current-account.show {
|
||
display: block;
|
||
}
|
||
|
||
.current-account strong {
|
||
color: #1a1a1a;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.navbar-actions {
|
||
display: flex;
|
||
gap: 12px;
|
||
}
|
||
|
||
.navbar-btn {
|
||
background: none;
|
||
border: 1px solid #e5e5e5;
|
||
color: #666;
|
||
cursor: pointer;
|
||
font-size: 13px;
|
||
padding: 6px 12px;
|
||
border-radius: 6px;
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.navbar-btn:hover {
|
||
background-color: #f5f5f5;
|
||
border-color: #ccc;
|
||
}
|
||
|
||
/* GitHub Star 按钮 */
|
||
.github-star-btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
background: linear-gradient(180deg, #fafbfc 0%, #eff3f6 90%);
|
||
border: 1px solid rgba(27, 31, 35, 0.15);
|
||
color: #24292e;
|
||
cursor: pointer;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
padding: 5px 12px;
|
||
border-radius: 6px;
|
||
transition: all 0.15s;
|
||
text-decoration: none;
|
||
box-shadow: 0 1px 0 rgba(27, 31, 35, 0.04);
|
||
}
|
||
|
||
.github-star-btn:hover {
|
||
background: linear-gradient(180deg, #f3f4f6 0%, #e9ecef 90%);
|
||
border-color: rgba(27, 31, 35, 0.25);
|
||
box-shadow: 0 1px 0 rgba(27, 31, 35, 0.1);
|
||
}
|
||
|
||
.github-star-btn svg {
|
||
width: 16px;
|
||
height: 16px;
|
||
}
|
||
|
||
/* 主容器 */
|
||
.main-container {
|
||
display: flex;
|
||
margin-top: 56px;
|
||
height: calc(100vh - 56px);
|
||
}
|
||
|
||
/* 分组面板 */
|
||
.group-panel {
|
||
width: var(--group-panel-width, 200px);
|
||
background-color: #fafafa;
|
||
border-right: 1px solid #e5e5e5;
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.panel-header {
|
||
padding: 0 16px;
|
||
height: 52px;
|
||
border-bottom: 1px solid #e5e5e5;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
}
|
||
|
||
.panel-title {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: #1a1a1a;
|
||
}
|
||
|
||
.panel-action-btn {
|
||
background: none;
|
||
border: none;
|
||
color: #666;
|
||
cursor: pointer;
|
||
font-size: 18px;
|
||
padding: 2px 6px;
|
||
border-radius: 4px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.panel-action-btn:hover {
|
||
background-color: #e5e5e5;
|
||
}
|
||
|
||
.group-list {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.group-item {
|
||
padding: 10px 16px;
|
||
cursor: pointer;
|
||
transition: background-color 0.15s;
|
||
border-left: 3px solid transparent;
|
||
}
|
||
|
||
.group-item:hover {
|
||
background-color: #f0f0f0;
|
||
}
|
||
|
||
.group-item.active {
|
||
background-color: #e8e8e8;
|
||
border-left-color: #1a1a1a;
|
||
}
|
||
|
||
.group-row-1 {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.group-color {
|
||
width: 10px;
|
||
height: 10px;
|
||
border-radius: 3px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.group-name {
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
color: #1a1a1a;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
flex: 1;
|
||
}
|
||
|
||
.group-row-2 {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding-left: 20px;
|
||
}
|
||
|
||
.group-count {
|
||
font-size: 12px;
|
||
color: #999;
|
||
background-color: #f0f0f0;
|
||
padding: 2px 8px;
|
||
border-radius: 10px;
|
||
}
|
||
|
||
.group-item.active .group-count {
|
||
background-color: #d8d8d8;
|
||
}
|
||
|
||
.group-actions {
|
||
display: flex;
|
||
gap: 4px;
|
||
opacity: 0;
|
||
transition: opacity 0.15s;
|
||
}
|
||
|
||
.group-item:hover .group-actions {
|
||
opacity: 1;
|
||
}
|
||
|
||
.group-action-btn {
|
||
background: none;
|
||
border: none;
|
||
color: #999;
|
||
cursor: pointer;
|
||
padding: 2px 6px;
|
||
font-size: 12px;
|
||
border-radius: 4px;
|
||
}
|
||
|
||
.group-action-btn:hover {
|
||
background-color: #e0e0e0;
|
||
color: #666;
|
||
}
|
||
|
||
/* 邮箱账号面板 */
|
||
.account-panel {
|
||
width: var(--account-panel-width, 260px);
|
||
background-color: #ffffff;
|
||
border-right: 1px solid #e5e5e5;
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.account-panel-header {
|
||
padding: 0 16px;
|
||
height: 52px;
|
||
border-bottom: 1px solid #e5e5e5;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.account-panel-title {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: #1a1a1a;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.account-panel-title .group-color {
|
||
width: 12px;
|
||
height: 12px;
|
||
}
|
||
|
||
.search-container {
|
||
padding: 8px 16px;
|
||
border-bottom: 1px solid #e5e5e5;
|
||
}
|
||
|
||
.search-input {
|
||
width: 100%;
|
||
padding: 8px 12px;
|
||
border: 1px solid #e5e5e5;
|
||
border-radius: 6px;
|
||
font-size: 13px;
|
||
outline: none;
|
||
transition: border-color 0.2s;
|
||
}
|
||
|
||
.search-input:focus {
|
||
border-color: #1a1a1a;
|
||
}
|
||
|
||
.account-number {
|
||
color: #666;
|
||
font-weight: 500;
|
||
margin-right: 4px;
|
||
}
|
||
|
||
.sort-btn:hover {
|
||
background-color: #f5f5f5 !important;
|
||
border-color: #ccc !important;
|
||
}
|
||
|
||
.sort-btn.active {
|
||
background-color: #1a1a1a !important;
|
||
color: #ffffff !important;
|
||
border-color: #1a1a1a !important;
|
||
}
|
||
|
||
.account-list {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.account-panel-footer {
|
||
padding: 16px;
|
||
border-top: 1px solid #e5e5e5;
|
||
}
|
||
|
||
.add-account-btn {
|
||
width: 100%;
|
||
padding: 10px 16px;
|
||
background-color: #1a1a1a;
|
||
color: #ffffff;
|
||
border: none;
|
||
border-radius: 6px;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
transition: background-color 0.2s;
|
||
}
|
||
|
||
.add-account-btn:hover {
|
||
background-color: #333;
|
||
}
|
||
|
||
.account-item {
|
||
padding: 10px 16px;
|
||
cursor: pointer;
|
||
transition: background-color 0.15s;
|
||
border-left: 3px solid transparent;
|
||
border-bottom: 1px solid #f5f5f5;
|
||
}
|
||
|
||
.account-item:hover {
|
||
background-color: #f5f5f5;
|
||
}
|
||
|
||
.account-item.active {
|
||
background-color: #f0f0f0;
|
||
border-left-color: #1a1a1a;
|
||
}
|
||
|
||
.account-item.inactive {
|
||
opacity: 0.6;
|
||
}
|
||
|
||
.account-item.inactive .account-email {
|
||
text-decoration: line-through;
|
||
color: #999;
|
||
}
|
||
|
||
.account-remark {
|
||
font-size: 12px;
|
||
color: #666;
|
||
padding-left: 0;
|
||
margin-top: 4px;
|
||
white-space: pre-wrap;
|
||
word-break: break-all;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.account-email {
|
||
font-size: 13px;
|
||
color: #1a1a1a;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.copy-verification-btn {
|
||
background: none;
|
||
border: none;
|
||
cursor: pointer;
|
||
font-size: 12px;
|
||
padding: 2px 4px;
|
||
border-radius: 4px;
|
||
opacity: 0.5;
|
||
transition: all 0.15s;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.copy-verification-btn:hover {
|
||
opacity: 1;
|
||
background-color: #f0f0f0;
|
||
}
|
||
|
||
.account-status-tag {
|
||
font-size: 10px;
|
||
padding: 1px 6px;
|
||
border-radius: 3px;
|
||
margin-left: 8px;
|
||
background-color: #f0f0f0;
|
||
color: #999;
|
||
}
|
||
|
||
.tag-badge {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
padding: 2px 8px;
|
||
border-radius: 12px;
|
||
font-size: 11px;
|
||
font-weight: 500;
|
||
margin-right: 4px;
|
||
margin-top: 2px;
|
||
color: white;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.account-tags {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 4px;
|
||
margin-top: 4px;
|
||
}
|
||
|
||
.account-actions {
|
||
display: flex;
|
||
gap: 8px;
|
||
opacity: 0;
|
||
transition: opacity 0.15s;
|
||
}
|
||
|
||
.account-item:hover .account-actions {
|
||
opacity: 1;
|
||
}
|
||
|
||
.account-action-btn {
|
||
background: none;
|
||
border: none;
|
||
color: #666;
|
||
cursor: pointer;
|
||
padding: 2px 0;
|
||
font-size: 11px;
|
||
border-radius: 4px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 2px;
|
||
}
|
||
|
||
.account-action-btn:hover {
|
||
color: #1a1a1a;
|
||
}
|
||
|
||
|
||
.account-action-btn.delete:hover {
|
||
color: #dc3545;
|
||
}
|
||
|
||
.batch-btn.danger {
|
||
background-color: #dc3545;
|
||
color: white;
|
||
border: none;
|
||
cursor: pointer;
|
||
padding: 6px 12px;
|
||
border-radius: 4px;
|
||
font-size: 13px;
|
||
transition: background-color 0.15s;
|
||
}
|
||
|
||
.batch-btn.danger:hover {
|
||
background-color: #c82333;
|
||
}
|
||
|
||
/* 内容区域 */
|
||
.content-area {
|
||
flex: 1;
|
||
display: flex;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* 邮件列表面板 */
|
||
.email-list-panel {
|
||
width: var(--email-list-panel-width, 380px);
|
||
background-color: #ffffff;
|
||
border-right: 1px solid #e5e5e5;
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.email-list-panel.hidden {
|
||
display: none;
|
||
}
|
||
|
||
/* 邮件列表头部 */
|
||
.email-list-header {
|
||
padding: 16px 20px;
|
||
border-bottom: 1px solid #e5e5e5;
|
||
background-color: #ffffff;
|
||
}
|
||
|
||
.email-list-header h2 {
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
color: #1a1a1a;
|
||
}
|
||
|
||
.email-count {
|
||
font-size: 13px;
|
||
color: #999;
|
||
font-weight: 400;
|
||
margin-left: 8px;
|
||
}
|
||
|
||
.refresh-btn {
|
||
background: none;
|
||
border: 1px solid #e5e5e5;
|
||
color: #666;
|
||
cursor: pointer;
|
||
font-size: 13px;
|
||
padding: 6px 12px;
|
||
border-radius: 6px;
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.refresh-btn:hover {
|
||
background-color: #f5f5f5;
|
||
border-color: #ccc;
|
||
}
|
||
|
||
.email-list {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.email-item {
|
||
padding: 16px 20px;
|
||
border-bottom: 1px solid #f0f0f0;
|
||
cursor: pointer;
|
||
transition: background-color 0.15s;
|
||
display: flex;
|
||
align-items: flex-start;
|
||
}
|
||
|
||
.email-checkbox-wrapper {
|
||
padding-right: 12px;
|
||
padding-top: 2px;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.email-checkbox {
|
||
width: 16px;
|
||
height: 16px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.email-item:hover {
|
||
background-color: #fafafa;
|
||
}
|
||
|
||
.email-item.active {
|
||
background-color: #f5f5f5;
|
||
}
|
||
|
||
.email-item.unread .email-subject {
|
||
font-weight: 600;
|
||
}
|
||
|
||
.email-from {
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
color: #1a1a1a;
|
||
margin-bottom: 4px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.email-subject {
|
||
font-size: 14px;
|
||
color: #1a1a1a;
|
||
margin-bottom: 4px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.email-preview {
|
||
font-size: 13px;
|
||
color: #999;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.email-date {
|
||
font-size: 12px;
|
||
color: #999;
|
||
margin-top: 8px;
|
||
}
|
||
|
||
/* 邮件详情面板 */
|
||
.email-detail-panel {
|
||
flex: 1;
|
||
background-color: #ffffff;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-width: 0;
|
||
}
|
||
|
||
.email-detail-toolbar {
|
||
padding: 12px 24px;
|
||
border-bottom: 1px solid #e5e5e5;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
background-color: #fafafa;
|
||
}
|
||
|
||
.back-btn {
|
||
display: none;
|
||
background: none;
|
||
border: 1px solid #e5e5e5;
|
||
color: #666;
|
||
cursor: pointer;
|
||
font-size: 13px;
|
||
padding: 6px 12px;
|
||
border-radius: 6px;
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.back-btn:hover {
|
||
background-color: #f0f0f0;
|
||
}
|
||
|
||
.toggle-list-btn {
|
||
background: none;
|
||
border: 1px solid #e5e5e5;
|
||
color: #666;
|
||
cursor: pointer;
|
||
font-size: 13px;
|
||
padding: 6px 12px;
|
||
border-radius: 6px;
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.toggle-list-btn:hover {
|
||
background-color: #f0f0f0;
|
||
}
|
||
|
||
.email-detail-header {
|
||
padding: 24px 32px;
|
||
border-bottom: 1px solid #e5e5e5;
|
||
}
|
||
|
||
.email-detail-subject {
|
||
font-size: 24px;
|
||
font-weight: 600;
|
||
color: #1a1a1a;
|
||
margin-bottom: 16px;
|
||
line-height: 1.3;
|
||
}
|
||
|
||
.email-detail-meta {
|
||
font-size: 14px;
|
||
color: #666;
|
||
line-height: 1.8;
|
||
}
|
||
|
||
.email-detail-meta-row {
|
||
display: flex;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.email-detail-meta-label {
|
||
color: #999;
|
||
width: 60px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.email-detail-meta-value {
|
||
color: #1a1a1a;
|
||
}
|
||
|
||
.email-detail-body {
|
||
flex: 1;
|
||
padding: 24px 32px;
|
||
overflow-y: auto;
|
||
background-color: #ffffff;
|
||
min-height: 0;
|
||
}
|
||
|
||
.email-detail-body iframe {
|
||
width: 100%;
|
||
min-height: 600px;
|
||
border: none;
|
||
background-color: #ffffff;
|
||
display: block;
|
||
overflow: visible;
|
||
}
|
||
|
||
.email-body-text {
|
||
white-space: pre-wrap;
|
||
font-size: 15px;
|
||
line-height: 1.7;
|
||
color: #333;
|
||
}
|
||
|
||
/* 全屏查看邮件 */
|
||
.fullscreen-email-modal {
|
||
display: none;
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
background-color: rgba(0, 0, 0, 0.95);
|
||
z-index: 2000;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.fullscreen-email-modal.show {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.fullscreen-email-header {
|
||
background-color: #1a1a1a;
|
||
color: #ffffff;
|
||
padding: 16px 24px;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
border-bottom: 1px solid #333;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.fullscreen-email-title {
|
||
font-size: 16px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.fullscreen-close-btn {
|
||
background: none;
|
||
border: none;
|
||
color: #ffffff;
|
||
font-size: 24px;
|
||
cursor: pointer;
|
||
padding: 4px 12px;
|
||
border-radius: 4px;
|
||
transition: background-color 0.2s;
|
||
}
|
||
|
||
.fullscreen-close-btn:hover {
|
||
background-color: rgba(255, 255, 255, 0.1);
|
||
}
|
||
|
||
.fullscreen-email-content {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
background-color: #ffffff;
|
||
padding: 32px;
|
||
}
|
||
|
||
.fullscreen-email-content iframe {
|
||
width: 100%;
|
||
border: none;
|
||
background-color: #ffffff;
|
||
display: block;
|
||
}
|
||
|
||
.fullscreen-email-content .email-body-text {
|
||
max-width: 900px;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.fullscreen-btn {
|
||
background: none;
|
||
border: 1px solid #e5e5e5;
|
||
color: #666;
|
||
cursor: pointer;
|
||
font-size: 13px;
|
||
padding: 6px 12px;
|
||
border-radius: 6px;
|
||
transition: all 0.15s;
|
||
margin-left: auto;
|
||
}
|
||
|
||
.fullscreen-btn:hover {
|
||
background-color: #f0f0f0;
|
||
}
|
||
|
||
/* 空状态 */
|
||
.empty-state {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
height: 100%;
|
||
color: #999;
|
||
padding: 40px;
|
||
}
|
||
|
||
.empty-state-icon {
|
||
font-size: 48px;
|
||
margin-bottom: 16px;
|
||
opacity: 0.5;
|
||
}
|
||
|
||
.empty-state-text {
|
||
font-size: 15px;
|
||
text-align: center;
|
||
}
|
||
|
||
/* 加载状态 */
|
||
.loading {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
height: 100%;
|
||
padding: 40px;
|
||
}
|
||
|
||
.loading-spinner {
|
||
width: 32px;
|
||
height: 32px;
|
||
border: 2px solid #e5e5e5;
|
||
border-top-color: #1a1a1a;
|
||
border-radius: 50%;
|
||
animation: spin 0.8s linear infinite;
|
||
}
|
||
|
||
.loading-small {
|
||
padding: 20px;
|
||
}
|
||
|
||
.loading-small .loading-spinner {
|
||
width: 20px;
|
||
height: 20px;
|
||
}
|
||
|
||
@keyframes spin {
|
||
to {
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
/* 模态框 */
|
||
.modal {
|
||
display: none;
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
background-color: rgba(0, 0, 0, 0.4);
|
||
z-index: 1000;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.modal.show {
|
||
display: flex;
|
||
}
|
||
|
||
.modal-content {
|
||
background-color: #ffffff;
|
||
border-radius: 12px;
|
||
width: 520px;
|
||
max-width: 90%;
|
||
max-height: 90vh;
|
||
overflow-y: auto;
|
||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
|
||
position: relative;
|
||
z-index: 1001;
|
||
}
|
||
|
||
#refreshErrorModal .modal-content {
|
||
width: 640px;
|
||
}
|
||
|
||
.error-card {
|
||
background-color: #fafafa;
|
||
border: 1px solid #e5e5e5;
|
||
border-radius: 8px;
|
||
padding: 16px;
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.error-card-title {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: #dc3545;
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.error-message-box {
|
||
background-color: #ffffff;
|
||
border: 1px solid #e5e5e5;
|
||
padding: 12px;
|
||
border-radius: 6px;
|
||
font-family: 'SF Mono', Monaco, 'Courier New', monospace;
|
||
font-size: 13px;
|
||
color: #333;
|
||
max-height: 150px;
|
||
overflow-y: auto;
|
||
white-space: pre-wrap;
|
||
word-break: break-all;
|
||
}
|
||
|
||
.solution-list {
|
||
list-style-type: none;
|
||
padding-left: 0;
|
||
margin-top: 16px;
|
||
}
|
||
|
||
.solution-list li {
|
||
font-size: 14px;
|
||
color: #333;
|
||
margin-bottom: 10px;
|
||
display: flex;
|
||
align-items: flex-start;
|
||
}
|
||
|
||
.solution-list li::before {
|
||
content: '✓';
|
||
color: #28a745;
|
||
font-weight: 600;
|
||
margin-right: 10px;
|
||
margin-top: 2px;
|
||
}
|
||
|
||
|
||
.modal-header {
|
||
padding: 20px 24px;
|
||
border-bottom: 1px solid #e5e5e5;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
position: sticky;
|
||
top: 0;
|
||
background-color: #ffffff;
|
||
}
|
||
|
||
.modal-header h3 {
|
||
font-size: 18px;
|
||
font-weight: 600;
|
||
color: #1a1a1a;
|
||
}
|
||
|
||
.modal-close {
|
||
background: none;
|
||
border: none;
|
||
font-size: 24px;
|
||
cursor: pointer;
|
||
color: #999;
|
||
padding: 4px;
|
||
line-height: 1;
|
||
border-radius: 4px;
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.modal-close:hover {
|
||
background-color: #f0f0f0;
|
||
color: #666;
|
||
}
|
||
|
||
.modal-body {
|
||
padding: 24px;
|
||
}
|
||
|
||
.form-group {
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.form-label {
|
||
display: block;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
color: #333;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.form-input {
|
||
width: 100%;
|
||
padding: 10px 14px;
|
||
border: 1px solid #e5e5e5;
|
||
border-radius: 6px;
|
||
font-size: 14px;
|
||
transition: border-color 0.15s;
|
||
}
|
||
|
||
.form-input:focus {
|
||
outline: none;
|
||
border-color: #1a1a1a;
|
||
}
|
||
|
||
.form-textarea {
|
||
width: 100%;
|
||
height: 120px;
|
||
padding: 12px 14px;
|
||
border: 1px solid #e5e5e5;
|
||
border-radius: 6px;
|
||
font-size: 13px;
|
||
font-family: 'SF Mono', Monaco, 'Courier New', monospace;
|
||
resize: vertical;
|
||
transition: border-color 0.15s;
|
||
}
|
||
|
||
.form-textarea:focus {
|
||
outline: none;
|
||
border-color: #1a1a1a;
|
||
}
|
||
|
||
.form-select {
|
||
width: 100%;
|
||
padding: 10px 14px;
|
||
border: 1px solid #e5e5e5;
|
||
border-radius: 6px;
|
||
font-size: 14px;
|
||
background-color: #ffffff;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.form-select:focus {
|
||
outline: none;
|
||
border-color: #1a1a1a;
|
||
}
|
||
|
||
.form-hint {
|
||
font-size: 12px;
|
||
color: #999;
|
||
margin-top: 6px;
|
||
}
|
||
|
||
.color-picker-group {
|
||
display: flex;
|
||
gap: 8px;
|
||
flex-wrap: wrap;
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.color-option {
|
||
width: 32px;
|
||
height: 32px;
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
border: 2px solid transparent;
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.color-option:hover {
|
||
transform: scale(1.1);
|
||
}
|
||
|
||
.color-option.selected {
|
||
border-color: #1a1a1a;
|
||
}
|
||
|
||
.custom-color-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
margin-top: 8px;
|
||
}
|
||
|
||
.custom-color-input {
|
||
width: 60px;
|
||
height: 36px;
|
||
padding: 2px;
|
||
border: 1px solid #e5e5e5;
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.custom-color-label {
|
||
font-size: 13px;
|
||
color: #666;
|
||
}
|
||
|
||
.custom-color-hex {
|
||
width: 80px;
|
||
padding: 8px 10px;
|
||
border: 1px solid #e5e5e5;
|
||
border-radius: 6px;
|
||
font-size: 13px;
|
||
font-family: monospace;
|
||
}
|
||
|
||
.modal-footer {
|
||
padding: 16px 24px;
|
||
border-top: 1px solid #e5e5e5;
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
gap: 12px;
|
||
position: sticky;
|
||
bottom: 0;
|
||
background-color: #ffffff;
|
||
}
|
||
|
||
.btn {
|
||
padding: 10px 20px;
|
||
border: none;
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.btn-primary {
|
||
background-color: #1a1a1a;
|
||
color: #ffffff;
|
||
}
|
||
|
||
.btn-primary:hover {
|
||
background-color: #333;
|
||
}
|
||
|
||
.btn-secondary {
|
||
background-color: #f5f5f5;
|
||
color: #1a1a1a;
|
||
border: 1px solid #e5e5e5;
|
||
}
|
||
|
||
.btn-secondary:hover {
|
||
background-color: #e5e5e5;
|
||
}
|
||
|
||
.btn-danger {
|
||
background-color: #dc3545;
|
||
color: #ffffff;
|
||
}
|
||
|
||
.btn-danger:hover {
|
||
background-color: #c82333;
|
||
}
|
||
|
||
.btn-warning {
|
||
background-color: #ffc107;
|
||
color: #1a1a1a;
|
||
}
|
||
|
||
.btn-warning:hover {
|
||
background-color: #e0a800;
|
||
}
|
||
|
||
.btn-sm {
|
||
padding: 4px 12px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
/* 消息提示 */
|
||
.toast {
|
||
position: fixed;
|
||
bottom: 24px;
|
||
right: 24px;
|
||
padding: 14px 24px;
|
||
background-color: #1a1a1a;
|
||
color: #ffffff;
|
||
border-radius: 8px;
|
||
font-size: 14px;
|
||
z-index: 2000;
|
||
opacity: 0;
|
||
transition: all 0.3s;
|
||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
||
min-width: 200px;
|
||
max-width: 400px;
|
||
text-align: left;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.toast.show {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.toast.success {
|
||
background-color: #1a1a1a;
|
||
}
|
||
|
||
.toast.error {
|
||
background-color: #dc3545;
|
||
}
|
||
|
||
/* 方法标签 */
|
||
.method-tag {
|
||
font-size: 11px;
|
||
padding: 3px 8px;
|
||
background-color: #f5f5f5;
|
||
color: #666;
|
||
border-radius: 4px;
|
||
margin-left: 8px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
/* 文件夹切换标签 */
|
||
.folder-tabs {
|
||
display: inline-flex;
|
||
gap: 8px;
|
||
background-color: #f5f5f5;
|
||
padding: 4px;
|
||
border-radius: 8px;
|
||
}
|
||
|
||
.folder-tab {
|
||
padding: 8px 16px;
|
||
border: none;
|
||
background: transparent;
|
||
color: #666;
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
font-size: 13px;
|
||
transition: all 0.2s;
|
||
font-weight: 500;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.folder-tab:hover {
|
||
background-color: #e5e5e5;
|
||
color: #333;
|
||
}
|
||
|
||
.folder-tab.active {
|
||
background-color: #1a1a1a;
|
||
color: white;
|
||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||
}
|
||
|
||
/* 响应式
|
||
说明:可调整布局系统的断点折叠逻辑由 LayoutManager(JS)负责,
|
||
此处移除旧的“固定宽度缩放”规则,避免与用户拖动/持久化状态冲突。 */
|
||
|
||
@media (max-width: 768px) {
|
||
|
||
/*
|
||
* 移动端历史样式(侧栏滑入/滑出):
|
||
* - 旧逻辑依赖 `.show` 类控制 left。
|
||
* - 当前版本的可调整布局系统由 LayoutManager(JS)负责折叠/展开与指示器渲染;
|
||
* 若继续在窄屏下把面板强制 `left:-280px`,会导致折叠指示器也被移出屏幕,
|
||
* 出现“全部折叠后无法再展开”的严重交互问题。
|
||
* - 因此仅在布局系统未启用时保留该历史规则,避免影响可调整布局系统。
|
||
*/
|
||
|
||
html:not(.layout-system-enabled) .group-panel,
|
||
html:not(.layout-system-enabled) .account-panel {
|
||
position: fixed;
|
||
left: -280px;
|
||
top: 56px;
|
||
height: calc(100vh - 56px);
|
||
z-index: 50;
|
||
transition: left 0.3s;
|
||
}
|
||
|
||
html:not(.layout-system-enabled) .group-panel.show,
|
||
html:not(.layout-system-enabled) .account-panel.show {
|
||
left: 0;
|
||
}
|
||
|
||
.email-list-panel {
|
||
width: 100%;
|
||
}
|
||
|
||
.email-list-panel.hidden {
|
||
display: none;
|
||
}
|
||
|
||
.back-btn {
|
||
display: block;
|
||
}
|
||
}
|