Add files via upload

This commit is contained in:
2025-07-19 17:27:59 +08:00
committed by GitHub
parent 6ed37b7aae
commit cb0b0b223d
5 changed files with 488 additions and 303 deletions

View File

@@ -1,224 +1,245 @@
/* =============================================================== */
/* ======== 【翰林院】敕造 CSS 法典 v3.1 - 奉旨重铸 ======== */
/* ======== Amily 执笔,确保与主殿风格统一 ======== */
/* =============================================================== */
#amily2_hanlinyuan_panel {
background-color: #f0f2f5;
color: #333;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
padding: 20px;
}
#amily2_hanlinyuan_panel .container {
max-width: 800px;
margin: auto;
background: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#amily2_hanlinyuan_panel .header {
/* --- 核心容器与布局 --- */
#hly-modal-container {
width: 100%;
height: 100%;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #eee;
padding-bottom: 15px;
margin-bottom: 20px;
flex-direction: column;
gap: 15px;
padding: 10px 5px;
box-sizing: border-box;
}
#amily2_hanlinyuan_panel .header h2 {
margin: 0;
color: #1d2129;
.hly-scroll {
overflow-y: auto;
padding-right: 10px; /* 为滚动条留出空间 */
}
#amily2_hanlinyuan_panel .header p {
margin: 5px 0 0;
color: #606770;
/* --- 仿主殿的设置组样式 --- */
.hly-settings-group {
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 12px;
padding: 15px;
margin: 0 0 20px 0;
display: flex;
flex-direction: column;
gap: 18px;
background: rgba(0,0,0,0.1);
box-shadow: inset 0 0 15px rgba(0,0,0,0.2);
}
#amily2_hanlinyuan_panel .section {
margin-bottom: 25px;
.hly-settings-group legend {
font-size: 1.2em;
font-weight: bold;
color: #e0e0e0;
padding: 0 10px;
margin-left: 10px;
background: linear-gradient(to right, #c0bde4, #dfdff0);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
text-shadow: 0 0 5px rgba(200, 200, 255, 0.3);
}
#amily2_hanlinyuan_panel .section h3,
#amily2_hanlinyuan_panel .tab-content h4 {
color: #4b4f56;
margin-top: 0;
margin-bottom: 15px;
.hly-settings-group legend > i {
margin-right: 10px;
color: #9e8aff; /* 紫色系强调色 */
}
#amily2_hanlinyuan_panel .form-group {
margin-bottom: 15px;
/* --- 控件统一样式 --- */
.hly-control-block {
display: flex;
flex-direction: column;
gap: 8px;
}
#amily2_hanlinyuan_panel .form-group label {
display: block;
font-weight: 600;
margin-bottom: 5px;
}
#amily2_hanlinyuan_panel .form-group small {
display: block;
color: #606770;
font-size: 0.85em;
margin-top: 5px;
}
#amily2_hanlinyuan_panel .text_pole {
width: calc(100% - 22px);
padding: 10px;
border: 1px solid #dddfe2;
border-radius: 6px;
.hly-control-block label, .hly-control-block .hly-label {
font-weight: bold;
color: #d1d1d1;
font-size: 1em;
}
#amily2_hanlinyuan_panel .text_pole:focus {
border-color: #1877f2;
.hly-control-block .hly-notes {
font-size: 0.85em;
color: #b0b0b0;
opacity: 0.9;
font-style: italic;
padding-left: 5px;
}
/* 帝国御笔 - 输入框/下拉/文本域的统一风格 */
.hly-imperial-brush {
width: 100%;
box-sizing: border-box;
background-color: rgba(0, 0, 0, 0.3);
border: 1px solid #555;
border-radius: 8px;
padding: 10px;
color: #f0f0f0;
transition: all 0.3s ease;
}
.hly-imperial-brush:focus {
background-color: rgba(0, 0, 0, 0.5);
border-color: #7e57c2;
box-shadow: 0 0 10px rgba(126, 87, 194, 0.5);
outline: none;
}
#amily2_hanlinyuan_panel .button-group {
/* 仿主殿的开关 */
.hly-toggle-switch {
position: relative;
display: inline-block;
width: 50px;
height: 26px;
flex-shrink: 0;
}
.hly-toggle-switch input { opacity: 0; width: 0; height: 0; }
.hly-toggle-switch .slider {
position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
background-color: #333; border-radius: 26px; transition: .4s;
border: 1px solid #555;
}
.hly-toggle-switch .slider:before {
position: absolute; content: ""; height: 20px; width: 20px; left: 2px; bottom: 2px;
background-color: white; border-radius: 50%; transition: .4s;
}
.hly-toggle-switch input:checked + .slider {
background: linear-gradient(to right, #7e57c2, #5e35b1);
box-shadow: 0 0 8px rgba(126, 87, 194, 0.7);
}
.hly-toggle-switch input:checked + .slider:before { transform: translateX(24px); }
.hly-checkbox-group {
display: flex;
gap: 10px;
flex-wrap: wrap;
gap: 15px;
align-items: center;
}
#amily2_hanlinyuan_panel .button-group.inline {
flex-direction: row;
justify-content: flex-start;
}
#amily2_hanlinyuan_panel .menu_button {
padding: 10px 15px;
border: 1px solid transparent;
border-radius: 4px;
background-color: #4a4a4a;
color: white;
font-size: 1em;
font-weight: bold;
cursor: pointer;
transition: background-color 0.2s, border-color 0.2s;
text-align: center;
}
#amily2_hanlinyuan_panel .menu_button:hover {
background-color: #5a5a5a;
}
#amily2_hanlinyuan_panel .menu_button.compact {
padding: 5px 10px;
font-size: 0.9em;
}
#amily2_hanlinyuan_panel .menu_button.accent {
background-color: #007bff;
border-color: #007bff;
}
#amily2_hanlinyuan_panel .menu_button.accent:hover {
background-color: #0069d9;
}
#amily2_hanlinyuan_panel .menu_button:hover {
background-color: #166fe5;
}
#amily2_hanlinyuan_panel .menu_button.danger {
background-color: #dc3545;
border-color: #dc3545;
}
#amily2_hanlinyuan_panel .menu_button.danger:hover {
background-color: #c82333;
}
#amily2_hanlinyuan_panel .tab-nav {
.hly-checkbox-group label {
display: flex;
border-bottom: 2px solid #dddfe2;
margin-bottom: 20px;
}
#amily2_hanlinyuan_panel .tab-button {
padding: 10px 20px;
cursor: pointer;
border: none;
background-color: transparent;
font-size: 1.1em;
color: #606770;
border-bottom: 2px solid transparent;
margin-bottom: -2px;
}
#amily2_hanlinyuan_panel .tab-button.active {
color: #1877f2;
border-bottom-color: #1877f2;
}
#amily2_hanlinyuan_panel .tab-content {
display: none;
}
#amily2_hanlinyuan_panel .tab-content.active {
display: block;
}
#amily2_hanlinyuan_panel .status-panel,
#amily2_hanlinyuan_panel .log-panel {
background-color: #f7f7f7;
border: 1px solid #e9e9e9;
border-radius: 6px;
padding: 15px;
margin-top: 15px;
}
#amily2_hanlinyuan_panel .status-panel p {
margin: 0 0 10px;
}
#amily2_hanlinyuan_panel .status-panel p:last-child {
margin-bottom: 0;
}
#amily2_hanlinyuan_panel .log-panel {
min-height: 100px;
max-height: 200px;
overflow-y: auto;
font-family: "Courier New", Courier, monospace;
font-size: 0.9em;
}
#amily2_hanlinyuan_panel #vector-list-container {
margin-top: 20px;
}
#amily2_hanlinyuan_panel #vector-list {
list-style: none;
padding: 0;
max-height: 300px;
overflow-y: auto;
border: 1px solid #dddfe2;
border-radius: 6px;
}
#amily2_hanlinyuan_panel #vector-list li {
padding: 10px;
border-bottom: 1px solid #eee;
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}
#amily2_hanlinyuan_panel #vector-list li:last-child {
border-bottom: none;
}
#amily2_hanlinyuan_panel #vector-list .vector-text {
flex-grow: 1;
margin-right: 10px;
white-space: nowrap;
/* --- 导航栏 --- */
.hly-navigation-deck {
display: flex;
border: 1px solid #555;
border-radius: 8px;
overflow: hidden;
text-overflow: ellipsis;
background-color: #2a2a2e;
}
.hly-nav-item {
flex: 1;
text-align: center;
padding: 10px 12px;
cursor: pointer;
background-color: transparent;
color: #ccc;
transition: all 0.3s ease;
border: none;
border-left: 1px solid #555;
font-size: 1em;
}
.hly-nav-item:first-of-type { border-left: none; }
.hly-nav-item.active, .hly-nav-item:hover {
background: linear-gradient(135deg, #7e57c2, #5e35b1);
color: white;
font-weight: bold;
text-shadow: 0 0 5px rgba(0,0,0,0.5);
box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}
/* --- 标签页 --- */
.hly-tab-pane { display: none; }
.hly-tab-pane.active { display: block; }
/* --- 状态诏书 --- */
.hly-imperial-edict {
background: rgba(0,0,0,0.2);
border: 1px solid rgba(255,255,255,0.15);
border-radius: 10px;
padding: 15px;
display: flex;
flex-direction: column;
gap: 10px;
}
.hly-edict-row { display: flex; justify-content: space-between; align-items: center; }
.hly-edict-item { display: flex; align-items: center; gap: 8px; }
.hly-edict-label { color: #aaa; }
.hly-edict-value { color: #e0e0e0; font-weight: bold; }
.hly-memory-count {
font-size: 1.5em;
color: #ffc107;
text-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}
/* --- 按钮 --- */
.hly-action-button {
padding: 8px 15px;
border-radius: 8px;
border: 1px solid transparent;
cursor: pointer;
font-weight: bold;
transition: all 0.3s ease;
background-color: #444;
color: #eee;
border-color: #666;
}
.hly-action-button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.hly-action-button.accent {
background: linear-gradient(135deg, #7e57c2, #5e35b1);
border-color: #4527a0;
color: white;
}
.hly-action-button.accent:hover { box-shadow: 0 0 12px rgba(126, 87, 194, 0.7); }
.hly-action-button.secondary {
background: linear-gradient(135deg, #6c757d, #495057);
border-color: #343a40;
color: white;
}
.hly-action-button.secondary:hover { box-shadow: 0 0 12px rgba(108, 117, 125, 0.7); }
.hly-action-button.danger {
background: linear-gradient(135deg, #d32f2f, #b71c1c);
border-color: #8f1717;
color: white;
}
.hly-action-button.danger:hover { box-shadow: 0 0 12px rgba(211, 47, 47, 0.7); }
.hly-action-button.success {
background: linear-gradient(135deg, #28a745, #1e7e34);
border-color: #155d27;
color: white;
}
.hly-action-button.success:hover { box-shadow: 0 0 12px rgba(40, 167, 69, 0.7); }
.hly-button-group {
display: flex;
gap: 12px;
flex-wrap: wrap;
}
/* --- 页脚 --- */
.hly-footer {
display: flex;
justify-content: flex-end;
gap: 15px;
padding-top: 15px;
border-top: 1px solid rgba(255,255,255,0.1);
}
/* --- 结果显示 --- */
.hly-results-display {
background: rgba(0,0,0,0.2);
border-radius: 8px;
padding: 10px;
min-height: 50px;
font-size: 0.9em;
color: #ccc;
border: 1px solid #444;
}