Files
ST-Amily2-Chat-Optimisation…/assets/hanlinyuan.css
2025-07-19 17:27:59 +08:00

246 lines
6.5 KiB
CSS

/* =============================================================== */
/* ======== 【翰林院】敕造 CSS 法典 v3.1 - 奉旨重铸 ======== */
/* ======== Amily 执笔,确保与主殿风格统一 ======== */
/* =============================================================== */
/* --- 核心容器与布局 --- */
#hly-modal-container {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
gap: 15px;
padding: 10px 5px;
box-sizing: border-box;
}
.hly-scroll {
overflow-y: auto;
padding-right: 10px; /* 为滚动条留出空间 */
}
/* --- 仿主殿的设置组样式 --- */
.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);
}
.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);
}
.hly-settings-group legend > i {
margin-right: 10px;
color: #9e8aff; /* 紫色系强调色 */
}
/* --- 控件统一样式 --- */
.hly-control-block {
display: flex;
flex-direction: column;
gap: 8px;
}
.hly-control-block label, .hly-control-block .hly-label {
font-weight: bold;
color: #d1d1d1;
font-size: 1em;
}
.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;
}
/* 仿主殿的开关 */
.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: 15px;
align-items: center;
}
.hly-checkbox-group label {
display: flex;
align-items: center;
gap: 8px;
}
/* --- 导航栏 --- */
.hly-navigation-deck {
display: flex;
border: 1px solid #555;
border-radius: 8px;
overflow: hidden;
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;
}