1590 lines
28 KiB
CSS
1590 lines
28 KiB
CSS
:root {
|
|
--gap: 16px;
|
|
/* 金融投资行业配色:低饱和度藏蓝/深灰 + 浅青点缀 */
|
|
--primary: #1e2a3a;
|
|
--primary-light: #2c3e50;
|
|
--accent: #2d8cff;
|
|
--accent-hover: #1a75d9;
|
|
--success: #10b981;
|
|
--warning: #f59e0b;
|
|
--danger: #ef4444;
|
|
--text: #1f2937;
|
|
--text-muted: #6b7280;
|
|
/* 背景:米白或浅灰(长时间看屏幕不累眼) */
|
|
--bg: #fafaf9;
|
|
--surface: #ffffff;
|
|
--border: #e5e7eb;
|
|
--shadow: rgba(0, 0, 0, 0.06);
|
|
--shadow-hover: rgba(0, 0, 0, 0.1);
|
|
/* 圆角:4-6px */
|
|
--radius: 6px;
|
|
--radius-sm: 4px;
|
|
--radius-lg: 8px;
|
|
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 24px;
|
|
background: var(--bg);
|
|
min-height: 100vh;
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
}
|
|
|
|
.card {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 28px;
|
|
margin-bottom: 24px;
|
|
background: var(--surface);
|
|
box-shadow: 0 1px 3px var(--shadow);
|
|
transition: var(--transition);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent, var(--accent), transparent);
|
|
opacity: 0;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.card:hover {
|
|
box-shadow: 0 4px 12px var(--shadow-hover);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.card:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.card h2, .card h3 {
|
|
margin: 0 0 24px 0;
|
|
color: var(--primary);
|
|
font-weight: 600;
|
|
font-size: 1.375rem;
|
|
letter-spacing: -0.3px;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.bar {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
padding: 24px;
|
|
background: var(--surface);
|
|
border-radius: var(--radius);
|
|
margin-bottom: 24px;
|
|
box-shadow: 0 1px 3px var(--shadow);
|
|
border: 1px solid var(--border);
|
|
position: relative;
|
|
}
|
|
|
|
.bar::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 4px;
|
|
height: 100%;
|
|
background: linear-gradient(to bottom, var(--accent), var(--primary));
|
|
border-radius: var(--radius) 0 0 var(--radius);
|
|
}
|
|
|
|
.form {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/* 新的布局系统 */
|
|
.app-layout {
|
|
display: flex;
|
|
gap: 0;
|
|
min-height: calc(100vh - 48px);
|
|
}
|
|
|
|
.sidebar {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.main-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.sidebar {
|
|
background: var(--surface);
|
|
border-right: 1px solid var(--border);
|
|
padding: 0;
|
|
position: sticky;
|
|
top: 0;
|
|
height: 100vh;
|
|
overflow-y: auto;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
width: 280px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar.collapsed {
|
|
width: auto;
|
|
min-width: 60px;
|
|
}
|
|
|
|
.sidebar.collapsed .sidebar-header h3 {
|
|
display: none;
|
|
}
|
|
|
|
.sidebar.collapsed .nav-text {
|
|
display: none;
|
|
}
|
|
|
|
.sidebar.collapsed .toggle-icon {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.sidebar.collapsed .nav-item {
|
|
justify-content: center;
|
|
padding: 12px 16px;
|
|
min-width: 60px;
|
|
}
|
|
|
|
.sidebar.collapsed .nav-icon {
|
|
font-size: 18px;
|
|
width: auto;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 24px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: linear-gradient(135deg, var(--primary), var(--primary-light));
|
|
color: white;
|
|
margin: 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.sidebar-header h3 {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: white;
|
|
flex: 1;
|
|
}
|
|
|
|
.sidebar-toggle {
|
|
background: none;
|
|
border: none;
|
|
color: white;
|
|
cursor: pointer;
|
|
padding: 4px 8px;
|
|
border-radius: var(--radius-sm);
|
|
transition: var(--transition);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.sidebar-toggle:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
opacity: 1;
|
|
}
|
|
|
|
.toggle-icon {
|
|
font-size: 12px;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
padding: 16px 0;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 24px;
|
|
width: 100%;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 3px;
|
|
background: var(--accent);
|
|
transform: scaleX(0);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background: var(--bg);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.nav-item.active {
|
|
background: rgba(45, 140, 255, 0.1);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.nav-item.active::before {
|
|
transform: scaleX(1);
|
|
}
|
|
|
|
.nav-icon {
|
|
font-size: 16px;
|
|
width: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.main-content {
|
|
padding: 0;
|
|
background: var(--bg);
|
|
}
|
|
|
|
.top-bar {
|
|
background: var(--surface);
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid var(--border);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
}
|
|
|
|
.time-controls, .quick-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.view-container {
|
|
padding: 24px;
|
|
}
|
|
|
|
.view {
|
|
display: none;
|
|
}
|
|
|
|
.view.active {
|
|
display: block;
|
|
}
|
|
|
|
/* 概览视图样式 */
|
|
.card-header-sm {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.card-header-sm h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
.btn-icon {
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
padding: 4px 8px;
|
|
border-radius: var(--radius-sm);
|
|
transition: all 0.2s;
|
|
color: var(--text-muted);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn-icon:hover {
|
|
background: var(--bg);
|
|
color: var(--accent);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.overview-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 24px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.overview-card.full-width {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.overview-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.overview-card.full-width {
|
|
grid-column: span 1;
|
|
}
|
|
}
|
|
|
|
.backlog-widget {
|
|
text-align: center;
|
|
padding: 12px;
|
|
}
|
|
|
|
.stat-item.warning .stat-value {
|
|
color: var(--warning);
|
|
}
|
|
|
|
.backlog-desc {
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* 简易柱状图 */
|
|
.chart-container {
|
|
height: 240px;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
padding-top: 20px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chart-col {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 6px;
|
|
height: 100%;
|
|
justify-content: flex-end;
|
|
position: relative;
|
|
}
|
|
|
|
.chart-bar-group {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
background: rgba(0,0,0,0.02);
|
|
border-radius: 4px 4px 0 0;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chart-bar {
|
|
width: 100%;
|
|
background: var(--accent);
|
|
transition: height 0.5s ease;
|
|
min-height: 2px;
|
|
position: relative;
|
|
border-radius: 2px 2px 0 0;
|
|
}
|
|
|
|
.chart-bar.completed {
|
|
background: var(--success);
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: 2;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.chart-bar.total {
|
|
background: var(--primary-light);
|
|
opacity: 0.2;
|
|
z-index: 1;
|
|
}
|
|
|
|
.chart-label {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
transform: rotate(-45deg);
|
|
transform-origin: center;
|
|
white-space: nowrap;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.chart-val {
|
|
font-size: 10px;
|
|
color: var(--text);
|
|
position: absolute;
|
|
top: -16px;
|
|
}
|
|
|
|
/* 热力图 */
|
|
.heatmap-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
.heatmap-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(12px, 1fr));
|
|
gap: 3px;
|
|
margin-top: 8px;
|
|
}
|
|
.heatmap-cell {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 2px;
|
|
background: #ebedf0;
|
|
}
|
|
.heatmap-cell[data-level="1"] { background: #9be9a8; }
|
|
.heatmap-cell[data-level="2"] { background: #40c463; }
|
|
.heatmap-cell[data-level="3"] { background: #30a14e; }
|
|
.heatmap-cell[data-level="4"] { background: #216e39; }
|
|
|
|
.heatmap-legend {
|
|
display: flex;
|
|
gap: 4px;
|
|
align-items: center;
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
justify-content: flex-end;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.overview-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 24px;
|
|
box-shadow: 0 1px 3px var(--shadow);
|
|
}
|
|
|
|
.overview-card h3 {
|
|
margin: 0 0 20px 0;
|
|
color: var(--primary);
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 16px;
|
|
}
|
|
|
|
.stat-item {
|
|
text-align: center;
|
|
padding: 16px;
|
|
background: var(--bg);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.stat-value {
|
|
display: block;
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
line-height: 1;
|
|
}
|
|
|
|
.stat-label {
|
|
display: block;
|
|
font-size: 0.875rem;
|
|
color: var(--text-muted);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.activities {
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.activity-empty {
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
padding: 20px;
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.card-header h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
.grid-2 {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 20px;
|
|
}
|
|
|
|
/* 响应式设计 */
|
|
@media (max-width: 1200px) {
|
|
.app-layout {
|
|
grid-template-columns: 240px 1fr;
|
|
}
|
|
|
|
.overview-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.app-layout {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sidebar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: -280px;
|
|
width: 280px !important; /* 移动端固定宽度 */
|
|
height: 100vh;
|
|
z-index: 1000;
|
|
transition: left 0.3s ease;
|
|
}
|
|
|
|
.sidebar.active {
|
|
left: 0;
|
|
}
|
|
|
|
.sidebar.collapsed {
|
|
width: 200px !important; /* 移动端收起时也保持较宽宽度,便于触摸操作 */
|
|
}
|
|
|
|
.main-content {
|
|
margin-left: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.top-bar {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.time-controls, .quick-actions {
|
|
justify-content: center;
|
|
}
|
|
|
|
.grid-2 {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.container {
|
|
padding: 16px;
|
|
}
|
|
|
|
.stats {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
/* 移动端菜单项优化 */
|
|
.nav-item {
|
|
padding: 16px 24px; /* 增大触摸区域 */
|
|
min-height: 48px;
|
|
}
|
|
|
|
/* 移动端收起按钮优化 */
|
|
.sidebar-toggle {
|
|
padding: 8px 12px; /* 增大触摸区域 */
|
|
min-height: 32px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.view-container {
|
|
padding: 16px;
|
|
}
|
|
|
|
.overview-card {
|
|
padding: 16px;
|
|
}
|
|
|
|
.top-bar {
|
|
padding: 16px;
|
|
}
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="password"],
|
|
input[type="datetime-local"],
|
|
input:not([type]),
|
|
textarea,
|
|
select,
|
|
#report-summary,
|
|
#ev-title,
|
|
#search-q,
|
|
#login-user,
|
|
#login-pass {
|
|
padding: 10px 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 14px;
|
|
color: var(--text);
|
|
background: var(--surface);
|
|
transition: var(--transition);
|
|
font-family: inherit;
|
|
outline: none;
|
|
min-width: 200px;
|
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
#report-title {
|
|
padding: 10px 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
background: var(--surface);
|
|
transition: var(--transition);
|
|
font-family: inherit;
|
|
outline: none;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
input:focus,
|
|
textarea:focus,
|
|
select:focus {
|
|
border-color: var(--accent);
|
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 2px rgba(45, 140, 255, 0.1);
|
|
outline: none;
|
|
}
|
|
|
|
select {
|
|
cursor: pointer;
|
|
background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%232c3e50' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 12px center;
|
|
padding-right: 36px;
|
|
appearance: none;
|
|
}
|
|
|
|
.btn {
|
|
padding: 10px 20px;
|
|
background: var(--accent);
|
|
color: white;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
white-space: nowrap;
|
|
box-shadow: 0 1px 2px rgba(45, 140, 255, 0.15);
|
|
position: relative;
|
|
overflow: hidden;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
.btn::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
|
|
transition: left 0.5s;
|
|
}
|
|
|
|
.btn:hover::before {
|
|
left: 100%;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: var(--accent-hover);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 2px 8px rgba(45, 140, 255, 0.2);
|
|
}
|
|
|
|
.btn:active {
|
|
transform: translateY(0);
|
|
box-shadow: 0 1px 2px rgba(45, 140, 255, 0.1);
|
|
}
|
|
|
|
.editor {
|
|
min-height: 280px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 16px;
|
|
background: var(--surface);
|
|
font-size: 14px;
|
|
line-height: 1.7;
|
|
color: var(--text);
|
|
transition: var(--transition);
|
|
overflow-y: auto;
|
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.editor:focus {
|
|
border-color: var(--accent);
|
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 2px rgba(45, 140, 255, 0.1);
|
|
outline: none;
|
|
}
|
|
|
|
.editor[contenteditable]:empty::before {
|
|
content: attr(placeholder);
|
|
color: var(--text-muted);
|
|
opacity: 0.6;
|
|
font-style: italic;
|
|
}
|
|
|
|
#report-content {
|
|
min-height: 400px;
|
|
}
|
|
|
|
#ev-content {
|
|
min-height: 120px;
|
|
width: 100%;
|
|
}
|
|
|
|
.toolbar {
|
|
margin: 16px 0;
|
|
padding: 8px 12px;
|
|
background: #f8f9fa;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.toolbar-group {
|
|
display: flex;
|
|
gap: 0;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.toolbar-btn {
|
|
position: relative;
|
|
padding: 6px 8px;
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-size: 14px;
|
|
color: var(--text);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 32px;
|
|
height: 28px;
|
|
margin: 0;
|
|
}
|
|
|
|
.toolbar-btn:hover {
|
|
background: #e3f2fd;
|
|
border-color: #90caf9;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.toolbar-btn:active {
|
|
background: #bbdefb;
|
|
transform: translateY(1px);
|
|
}
|
|
|
|
.toolbar-btn.active {
|
|
background: #bbdefb;
|
|
border-color: #64b5f6;
|
|
}
|
|
|
|
.toolbar-icon {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* Word风格的图标样式 */
|
|
.toolbar-btn[data-cmd="bold"] .toolbar-icon {
|
|
font-weight: 700;
|
|
font-family: 'Arial', sans-serif;
|
|
}
|
|
|
|
.toolbar-btn[data-cmd="italic"] .toolbar-icon {
|
|
font-style: italic;
|
|
font-family: 'Arial', sans-serif;
|
|
}
|
|
|
|
.toolbar-btn[data-cmd="underline"] .toolbar-icon {
|
|
text-decoration: underline;
|
|
font-family: 'Arial', sans-serif;
|
|
}
|
|
|
|
.toolbar-btn[data-cmd="h1"] .toolbar-icon,
|
|
.toolbar-btn[data-cmd="h2"] .toolbar-icon {
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
font-family: 'Segoe UI', sans-serif;
|
|
}
|
|
|
|
/* Tooltip样式 */
|
|
.tooltip {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(8px);
|
|
background: #333;
|
|
color: white;
|
|
padding: 4px 8px;
|
|
border-radius: 3px;
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.2s ease;
|
|
z-index: 1000;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.tooltip::before {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
border: 4px solid transparent;
|
|
border-bottom-color: #333;
|
|
}
|
|
|
|
.toolbar-btn:hover .tooltip {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translateX(-50%) translateY(4px);
|
|
}
|
|
|
|
/* 工具栏分隔符 */
|
|
.toolbar-separator {
|
|
width: 1px;
|
|
height: 20px;
|
|
background: var(--border);
|
|
margin: 0 4px;
|
|
}
|
|
|
|
/* 文件输入包装器 */
|
|
.file-input-wrapper {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.file-input-wrapper input[type="file"] {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.header-actions { display:flex; gap:12px }
|
|
|
|
.toolbar .btn {
|
|
padding: 6px 12px;
|
|
font-size: 13px;
|
|
background: transparent;
|
|
color: #374151;
|
|
box-shadow: none;
|
|
border-radius: 5px;
|
|
font-weight: 500;
|
|
min-width: auto;
|
|
transition: all 0.15s ease;
|
|
border: 1px solid transparent;
|
|
position: relative;
|
|
}
|
|
|
|
.toolbar .btn:hover {
|
|
background: #f3f4f6;
|
|
color: #1f2937;
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.toolbar .btn:active {
|
|
background: #e5e7eb;
|
|
transform: scale(0.97);
|
|
}
|
|
|
|
.toolbar .btn::before {
|
|
display: none;
|
|
}
|
|
|
|
/* 工具栏分隔符 */
|
|
.toolbar .btn[data-cmd="h1"]::before,
|
|
.toolbar .btn[data-cmd="ul"]::before,
|
|
.toolbar .btn[data-cmd="code"]::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: -4px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 1px;
|
|
height: 20px;
|
|
background: #e5e7eb;
|
|
display: block;
|
|
}
|
|
|
|
/* 按钮图标优化 */
|
|
.toolbar .btn[data-cmd="bold"] {
|
|
font-weight: 700;
|
|
font-family: Georgia, serif;
|
|
}
|
|
|
|
.toolbar .btn[data-cmd="italic"] {
|
|
font-style: italic;
|
|
font-family: Georgia, serif;
|
|
}
|
|
|
|
.toolbar .btn[data-cmd="underline"] {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.toolbar .btn[data-cmd="h1"],
|
|
.toolbar .btn[data-cmd="h2"] {
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.toolbar .btn[data-cmd="ul"],
|
|
.toolbar .btn[data-cmd="ol"] {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.toolbar .btn[data-cmd="quote"] {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.toolbar .btn[data-cmd="code"] {
|
|
font-family: 'Consolas', 'Monaco', monospace;
|
|
font-size: 12px;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.toolbar .btn[data-cmd="link"] {
|
|
color: #3b82f6;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.toolbar .btn[data-cmd="img"] {
|
|
color: #10b981;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.toolbar .btn[data-cmd="clear"] {
|
|
color: #ef4444;
|
|
margin-left: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
#img-file {
|
|
display: none;
|
|
}
|
|
|
|
.list {
|
|
display: grid;
|
|
gap: 12px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.event {
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
margin-bottom: 16px;
|
|
background: var(--surface);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-left: 4px solid var(--accent);
|
|
}
|
|
|
|
.event:hover {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
|
|
transform: translateY(-2px);
|
|
border-left-width: 6px;
|
|
}
|
|
|
|
.event-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
margin-bottom: 12px;
|
|
gap: 12px;
|
|
}
|
|
|
|
.event-title-wrapper {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.event-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--primary);
|
|
margin: 0 0 8px 0;
|
|
line-height: 1.4;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.event-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.event-meta-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.event-meta-icon {
|
|
font-size: 14px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.event-body {
|
|
color: var(--text);
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
margin-bottom: 16px;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.event-body p {
|
|
margin: 0 0 8px 0;
|
|
}
|
|
|
|
.event-body p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.event-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
margin-top: 16px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.event-actions .btn {
|
|
padding: 6px 12px;
|
|
font-size: 13px;
|
|
border-radius: 6px;
|
|
min-height: 32px;
|
|
}
|
|
|
|
.review-meta {
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.reviews {
|
|
margin-top: 12px;
|
|
border-top: 1px dashed var(--border);
|
|
padding-top: 12px;
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
.review-title { font-weight: 600; color: var(--primary); }
|
|
.review-item { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
|
|
.review-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
|
|
.review-content { font-size: 14px; color: var(--text); line-height: 1.6; }
|
|
|
|
.attachments {
|
|
margin-top: 8px;
|
|
display: grid;
|
|
gap: 6px;
|
|
}
|
|
.att-title { font-weight: 600; color: var(--primary); }
|
|
.att-empty { font-size: 13px; color: var(--text-muted) }
|
|
.att-item a { color: var(--accent) }
|
|
.att-progress { height: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; overflow: hidden }
|
|
.att-progress-bar { height: 100%; width: 0%; background: var(--accent); transition: width 0.2s }
|
|
.att-progress-text { font-size: 12px; color: var(--text-muted) }
|
|
|
|
.status {
|
|
color: var(--danger);
|
|
font-weight: 500;
|
|
padding: 4px 8px;
|
|
background: rgba(231, 76, 60, 0.1);
|
|
border-radius: 4px;
|
|
display: inline-block;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.tag {
|
|
font-weight: 600;
|
|
margin-right: 8px;
|
|
padding: 4px 12px;
|
|
background: var(--accent);
|
|
color: white;
|
|
border-radius: 16px;
|
|
font-size: 12px;
|
|
display: inline-block;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
#auth {
|
|
max-width: 450px;
|
|
margin: 60px auto;
|
|
text-align: center;
|
|
}
|
|
|
|
#auth .form {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 16px;
|
|
}
|
|
|
|
#auth input {
|
|
width: 100%;
|
|
min-width: auto;
|
|
}
|
|
|
|
#auth .btn {
|
|
width: 100%;
|
|
padding: 12px;
|
|
font-size: 16px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
width: 100%;
|
|
font-family: inherit;
|
|
}
|
|
|
|
label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: var(--text);
|
|
user-select: none;
|
|
}
|
|
|
|
input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
accent-color: var(--accent);
|
|
}
|
|
|
|
a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--accent-hover);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* 事件状态颜色 */
|
|
.event[data-status="done"] .tag { background: var(--success); }
|
|
.event[data-status="doing"] .tag { background: var(--accent); }
|
|
.event[data-status="pause"] .tag { background: var(--warning); }
|
|
.event[data-status="close"] .tag { background: var(--danger); }
|
|
.event[data-status="new"] .tag { background: #9b59b6; }
|
|
|
|
/* 搜索结果高亮 */
|
|
#search-results .event {
|
|
cursor: pointer;
|
|
}
|
|
|
|
#search-results .event:hover {
|
|
background: var(--bg);
|
|
}
|
|
|
|
/* 版本对比 */
|
|
#diff-output {
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
padding: 16px;
|
|
background: var(--bg);
|
|
border-radius: var(--radius-sm);
|
|
font-family: 'Consolas', 'Monaco', monospace;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* 模态框系统 */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
display: none;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 1000;
|
|
backdrop-filter: blur(8px);
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
|
|
}
|
|
|
|
.modal-overlay.active {
|
|
display: flex;
|
|
opacity: 1;
|
|
}
|
|
|
|
.modal {
|
|
position: relative;
|
|
background: var(--surface);
|
|
border-radius: 16px;
|
|
padding: 0;
|
|
max-width: 500px;
|
|
width: 90vw;
|
|
max-height: 80vh;
|
|
overflow: hidden;
|
|
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
|
|
animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
display: block;
|
|
}
|
|
|
|
.btn.btn-secondary {
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
border: 1px solid var(--border);
|
|
box-shadow: none;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn.btn-secondary:hover {
|
|
background: var(--bg);
|
|
color: var(--primary);
|
|
border-color: var(--primary-light);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.btn.btn-secondary::before {
|
|
display: none;
|
|
}
|
|
|
|
@keyframes modalSlideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px) scale(0.96);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
}
|
|
|
|
.modal-header {
|
|
padding: 16px 24px;
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
|
|
margin-bottom: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
letter-spacing: -0.3px;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 24px;
|
|
font-size: 14px;
|
|
color: var(--text);
|
|
line-height: 1.6;
|
|
background: var(--surface);
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 16px 24px;
|
|
display: flex;
|
|
gap: 12px;
|
|
justify-content: flex-end;
|
|
background: var(--surface);
|
|
border-top: none;
|
|
}
|
|
|
|
.modal-close {
|
|
position: static;
|
|
background: transparent;
|
|
border: none;
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
transition: var(--transition);
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: rgba(0, 0, 0, 0.05);
|
|
color: var(--text);
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
/* 移动端菜单按钮 */
|
|
.mobile-menu-btn {
|
|
display: none;
|
|
background: var(--accent);
|
|
color: white;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
position: fixed;
|
|
top: 16px;
|
|
left: 16px;
|
|
z-index: 999;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.mobile-menu-btn:hover {
|
|
background: var(--accent-hover);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* 二级按钮样式 */
|
|
.btn-secondary {
|
|
background: var(--text-muted);
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #4b5563;
|
|
}
|
|
|
|
/* 滚动条美化 */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border);
|
|
border-radius: 3px;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-muted);
|
|
}
|
|
|
|
/* 微妙的渐变效果 */
|
|
.gradient-text {
|
|
background: linear-gradient(135deg, var(--accent), var(--primary));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
/* 悬停效果增强 */
|
|
.nav-item, .btn, .card {
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
/* 加载状态 */
|
|
.loading {
|
|
opacity: 0.7;
|
|
pointer-events: none;
|
|
position: relative;
|
|
}
|
|
|
|
.loading::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 20px;
|
|
height: 20px;
|
|
margin: -10px 0 0 -10px;
|
|
border: 2px solid var(--accent);
|
|
border-radius: 50%;
|
|
border-top-color: transparent;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* 空状态样式 */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: var(--text-muted);
|
|
background: var(--surface);
|
|
border-radius: 12px;
|
|
border: 2px dashed var(--border);
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.empty-state-icon {
|
|
font-size: 56px;
|
|
margin-bottom: 16px;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.empty-state-text {
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.empty-state-action {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
/* 事件列表容器 */
|
|
#events.list {
|
|
display: grid;
|
|
gap: 16px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
/* 事件状态特定样式 */
|
|
.event[data-status="done"] {
|
|
border-left-color: var(--success);
|
|
background: linear-gradient(135deg, var(--surface) 0%, rgba(16, 185, 129, 0.03) 100%);
|
|
}
|
|
|
|
.event[data-status="doing"] {
|
|
border-left-color: var(--accent);
|
|
background: linear-gradient(135deg, var(--surface) 0%, rgba(45, 140, 255, 0.03) 100%);
|
|
}
|
|
|
|
.event[data-status="pause"] {
|
|
border-left-color: var(--warning);
|
|
background: linear-gradient(135deg, var(--surface) 0%, rgba(245, 158, 11, 0.03) 100%);
|
|
}
|
|
|
|
.event[data-status="close"] {
|
|
border-left-color: var(--danger);
|
|
background: linear-gradient(135deg, var(--surface) 0%, rgba(239, 68, 68, 0.03) 100%);
|
|
}
|
|
|
|
.event[data-status="new"] {
|
|
border-left-color: #9b59b6;
|
|
background: linear-gradient(135deg, var(--surface) 0%, rgba(155, 89, 182, 0.03) 100%);
|
|
}
|
|
|
|
/* 活动项样式 */
|
|
.activity-item {
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.activity-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.activity-type {
|
|
font-size: 0.75rem;
|
|
color: var(--accent);
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.activity-content {
|
|
font-size: 0.875rem;
|
|
color: var(--text);
|
|
line-height: 1.4;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.activity-time {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* 提醒列表 */
|
|
#reminders .event {
|
|
border-left: 4px solid var(--warning);
|
|
}
|
|
|
|
/* 加载动画 */
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
.loading {
|
|
animation: pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
/* 滚动条美化 */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border);
|
|
border-radius: 4px;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-muted);
|
|
}
|