You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

517 lines
7.7 KiB

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Microsoft YaHei', sans-serif;
background-color: white;
color: #2c3e50;
line-height: 1.6;
}
.container {
max-width: 1000px;
margin: 0 auto;
padding: 20px;
}
.screen {
display: none;
}
.screen.active {
display: block;
}
.logo-area {
text-align: center;
margin: 30px 0;
}
.logo-area h1 {
font-size: 24px;
font-weight: bold;
margin-bottom: 5px;
}
.logo-area p {
font-size: 14px;
color: #7f8c8d;
}
.card-container {
display: flex;
justify-content: center;
gap: 30px;
margin: 40px 0;
}
.card {
background-color: #f8f9fa;
border: 1px solid #ddd;
border-radius: 8px;
padding: 25px;
margin-top: 10px;
}
.card-icon {
font-size: 40px;
margin-bottom: 15px;
}
.card h3 {
font-size: 18px;
margin-bottom: 10px;
}
.card p {
font-size: 12px;
color: #7f8c8d;
margin-bottom: 20px;
}
.footer {
text-align: center;
margin-top: 40px;
color: #bdc3c7;
font-size: 12px;
}
.header {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.header h2 {
margin-left: 15px;
}
.input-group {
display: flex;
align-items: center;
margin-bottom: 15px;
}
.input-group label {
width: 100px;
font-weight: bold;
}
.input-group input {
flex: 1;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
margin: 0 10px;
}
.button-group {
display: flex;
gap: 10px;
margin: 20px 0;
}
.status {
margin: 15px 0;
}
.output-container {
background-color: #ffffff;
border: 1px solid #ddd;
border-radius: 4px;
padding: 15px;
max-height: 300px;
overflow-y: auto;
}
.output-container pre {
white-space: pre-wrap;
font-family: Consolas, monospace;
font-size: 12px;
}
.btn {
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
font-family: 'Microsoft YaHei', sans-serif;
}
.btn-primary {
background-color: #3498db;
color: white;
}
.btn-success {
background-color: #2ecc71;
color: white;
}
.btn-danger {
background-color: #e74c3c;
color: white;
}
.btn-secondary {
background-color: #95a5a6;
color: white;
}
.btn-purple {
background-color: #8e44ad;
color: white;
}
.btn-small {
padding: 5px 10px;
font-size: 12px;
}
.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
background-color: white;
margin: 5% auto;
padding: 0;
border-radius: 8px;
width: 80%;
max-width: 600px;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
border-bottom: 1px solid #ddd;
}
.modal-header h3 {
margin: 0;
}
.close {
font-size: 24px;
font-weight: bold;
cursor: pointer;
}
.modal-body {
padding: 20px;
max-height: 400px;
overflow-y: auto;
}
.path-navigation {
display: flex;
align-items: center;
margin-bottom: 15px;
}
.path-navigation span {
margin-left: 15px;
font-family: monospace;
}
.file-list {
border: 1px solid #ddd;
border-radius: 4px;
max-height: 300px;
overflow-y: auto;
}
.file-item {
padding: 10px;
border-bottom: 1px solid #eee;
cursor: pointer;
}
.file-item:hover {
background-color: #f5f5f5;
}
.file-item.selected {
background-color: #e3f2fd;
}
.file-item:last-child {
border-bottom: none;
}
.modal-footer {
padding: 15px 20px;
border-top: 1px solid #ddd;
text-align: right;
}
/* 原有样式保持不变 */
.search-controls {
margin-bottom: 20px;
padding: 15px;
background-color: #f8f9fa;
border-radius: 4px;
}
.search-controls .input-group {
margin-bottom: 10px;
}
.search-results {
margin-top: 20px;
}
.search-results h4 {
margin-bottom: 10px;
color: #2c3e50;
}
.file-item {
padding: 10px;
border-bottom: 1px solid #eee;
cursor: pointer;
}
.file-item:hover {
background-color: #f5f5f5;
}
.file-item.selected {
background-color: #e3f2fd;
}
.file-item .file-path {
font-size: 12px;
color: #7f8c8d;
margin-top: 5px;
}
.file-item:last-child {
border-bottom: none;
}
/* 添加文件信息显示样式 */
.file-info {
margin: 15px 0;
padding: 12px;
background-color: #f8f9fa;
border-radius: 4px;
border: 1px solid #e9ecef;
}
.file-info-item {
margin: 5px 0;
font-size: 13px;
color: #6c757d;
display: flex;
justify-content: space-between;
}
.file-info-item span {
font-weight: 500;
color: #495057;
}
.file-status-valid {
color: #28a745 !important;
}
.file-status-invalid {
color: #dc3545 !important;
}
.file-status-unknown {
color: #6c757d !important;
}
/* 输入框组样式调整 */
.input-group {
display: flex;
align-items: center;
margin-bottom: 12px;
}
.input-group label {
width: 100px;
font-weight: bold;
margin-right: 10px;
flex-shrink: 0;
}
.input-group input {
flex: 1;
padding: 8px 12px;
border: 1px solid #ced4da;
border-radius: 4px;
margin: 0 10px;
font-family: 'Microsoft YaHei', sans-serif;
}
.input-group input:focus {
outline: none;
border-color: #80bdff;
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.input-group .btn-small {
padding: 8px 12px;
font-size: 12px;
white-space: nowrap;
}
/* 按钮样式调整 */
.btn {
padding: 10px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
font-family: 'Microsoft YaHei', sans-serif;
transition: all 0.2s;
}
.btn:hover {
opacity: 0.9;
transform: translateY(-1px);
}
.btn:active {
transform: translateY(0);
}
.btn-small {
padding: 6px 12px;
font-size: 12px;
}
/* 模态框样式调整 */
.modal-content {
max-width: 900px;
max-height: 80vh;
display: flex;
flex-direction: column;
}
.modal-body {
flex: 1;
overflow-y: auto;
max-height: 60vh;
padding: 20px;
}
/* 文件列表样式 */
.file-list {
max-height: 300px;
overflow-y: auto;
border: 1px solid #dee2e6;
border-radius: 4px;
margin-top: 10px;
}
.file-item {
padding: 10px 12px;
border-bottom: 1px solid #e9ecef;
cursor: pointer;
transition: background-color 0.15s;
}
.file-item:hover {
background-color: #f8f9fa;
}
.file-item.selected {
background-color: #e3f2fd;
border-left: 4px solid #2196f3;
}
.file-item:last-child {
border-bottom: none;
}
/* 搜索结果显示 */
.file-name {
font-weight: 600;
color: #2c3e50;
margin-bottom: 4px;
}
.file-details {
display: flex;
justify-content: space-between;
font-size: 12px;
color: #6c757d;
}
.file-path {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-size {
margin-left: 10px;
color: #495057;
font-weight: 500;
}
/* 加载状态 */
.loading {
text-align: center;
padding: 30px;
color: #6c757d;
font-style: italic;
}
.no-results {
text-align: center;
padding: 30px;
color: #6c757d;
font-style: italic;
}
/* 响应式设计 */
@media (max-width: 768px) {
.input-group {
flex-direction: column;
align-items: stretch;
}
.input-group label {
width: auto;
margin-bottom: 5px;
}
.input-group input {
margin: 5px 0;
}
.button-group {
flex-direction: column;
gap: 8px;
}
.button-group .btn {
width: 100%;
}
}