841 lines
17 KiB
CSS
841 lines
17 KiB
CSS
:root {
|
|
--primary-color: #0f62fe;
|
|
--primary-hover: #3b82ff;
|
|
--secondary-color: #3b485f;
|
|
--secondary-hover: #52627d;
|
|
--accent-color: #22d3ee;
|
|
--accent-soft: rgba(34, 211, 238, 0.18);
|
|
--surface-color: rgba(255, 255, 255, 0.8);
|
|
--surface-strong: rgba(255, 255, 255, 0.92);
|
|
--border-color: rgba(109, 128, 162, 0.22);
|
|
--text-color: #10203a;
|
|
--muted-text: #5e6c84;
|
|
--shadow-soft: 0 20px 45px rgba(15, 35, 95, 0.12);
|
|
--shadow-strong: 0 18px 50px rgba(15, 98, 254, 0.18);
|
|
--page-glow-1: rgba(15, 98, 254, 0.2);
|
|
--page-glow-2: rgba(34, 211, 238, 0.18);
|
|
|
|
--dark-bg: #121212;
|
|
--dark-text: #e0e0e0;
|
|
--dark-fieldset-bg: #1e1e1e;
|
|
--dark-border: #333;
|
|
--dark-code-bg: #2d2d2d;
|
|
--dark-log-bg: #2a2a2a;
|
|
--dark-input-bg: #2d2d2d;
|
|
--dark-input-text: #e0e0e0;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
color: var(--text-color);
|
|
background:
|
|
radial-gradient(circle at top left, var(--page-glow-1), transparent 32%),
|
|
radial-gradient(circle at top right, var(--page-glow-2), transparent 28%),
|
|
linear-gradient(135deg, #eef5ff 0%, #f6fbff 45%, #f8f9fd 100%);
|
|
min-height: 100vh;
|
|
position: relative;
|
|
}
|
|
|
|
body::before,
|
|
body::after {
|
|
content: "";
|
|
position: fixed;
|
|
inset: auto;
|
|
width: 42vw;
|
|
height: 42vw;
|
|
border-radius: 50%;
|
|
pointer-events: none;
|
|
filter: blur(60px);
|
|
opacity: 0.45;
|
|
z-index: 0;
|
|
}
|
|
|
|
body::before {
|
|
top: -12vw;
|
|
right: -10vw;
|
|
background: rgba(15, 98, 254, 0.12);
|
|
}
|
|
|
|
body::after {
|
|
bottom: -14vw;
|
|
left: -8vw;
|
|
background: rgba(34, 211, 238, 0.1);
|
|
}
|
|
|
|
button {
|
|
padding: 0.5rem 0.95rem;
|
|
border: 1px solid transparent;
|
|
border-radius: 8px;
|
|
margin-bottom: 5px;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.01em;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
|
|
box-shadow: 0 10px 20px rgba(16, 32, 58, 0.08);
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
button:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.65;
|
|
cursor: not-allowed;
|
|
box-shadow: none;
|
|
}
|
|
|
|
button.primary {
|
|
color: #fff;
|
|
background: linear-gradient(135deg, var(--primary-color), #2388ff);
|
|
box-shadow: 0 12px 24px rgba(15, 98, 254, 0.28);
|
|
}
|
|
|
|
button.primary:hover {
|
|
color: #fff;
|
|
border-color: rgba(255, 255, 255, 0.3);
|
|
background: linear-gradient(135deg, var(--primary-hover), #45c3ff);
|
|
box-shadow: 0 16px 30px rgba(15, 98, 254, 0.34);
|
|
}
|
|
|
|
button.secondary {
|
|
color: var(--text-color);
|
|
background: rgba(255, 255, 255, 0.72);
|
|
border-color: rgba(109, 128, 162, 0.22);
|
|
}
|
|
|
|
button.secondary:hover {
|
|
color: var(--text-color);
|
|
border-color: rgba(59, 72, 95, 0.24);
|
|
background: rgba(255, 255, 255, 0.95);
|
|
}
|
|
|
|
h3 {
|
|
padding: 1.6rem 0 1rem;
|
|
margin: 0 0 1.25rem;
|
|
border-bottom: 1px solid rgba(131, 149, 186, 0.26);
|
|
text-align: center;
|
|
font-size: clamp(1.5rem, 2vw, 2rem);
|
|
font-weight: 800;
|
|
letter-spacing: 0.04em;
|
|
color: #0f1f44;
|
|
text-shadow: 0 10px 25px rgba(15, 98, 254, 0.12);
|
|
}
|
|
|
|
fieldset {
|
|
border: none;
|
|
box-shadow: var(--shadow-soft);
|
|
background: linear-gradient(180deg, var(--surface-strong), var(--surface-color));
|
|
padding: 16px 16px 12px;
|
|
margin-bottom: 18px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border-color);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
fieldset::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0 auto auto 0;
|
|
width: 100%;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.65), transparent);
|
|
opacity: 0.85;
|
|
}
|
|
|
|
fieldset legend {
|
|
font-weight: bold;
|
|
color: #1862d9;
|
|
padding: 0 10px;
|
|
font-size: 0.95rem;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
code {
|
|
padding: .2em .4em;
|
|
margin: 0;
|
|
font-size: 85%;
|
|
background: #ccc;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
input[type=text],
|
|
textarea,
|
|
input[type=date],
|
|
input[type=number],
|
|
select {
|
|
font-size: 1rem;
|
|
font-weight: 400;
|
|
line-height: 1.5;
|
|
color: var(--text-color);
|
|
border: 1px solid rgba(121, 140, 176, 0.26);
|
|
border-radius: 6px;
|
|
padding: .45rem .85rem;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
background: rgba(255, 255, 255, 0.86);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
|
|
transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
|
|
}
|
|
|
|
input[type=file] {
|
|
font-size: 1rem;
|
|
font-weight: 400;
|
|
line-height: 1.5;
|
|
color: var(--text-color);
|
|
max-width: 100%;
|
|
}
|
|
|
|
input::file-selector-button {
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
line-height: 1.5;
|
|
border: 1px solid rgba(121, 140, 176, 0.26);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
padding: 0.45rem 0.95rem;
|
|
margin-right: 10px;
|
|
color: var(--text-color);
|
|
background: rgba(255, 255, 255, 0.9);
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
input::file-selector-button:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 10px 20px rgba(16, 32, 58, 0.08);
|
|
}
|
|
|
|
select {
|
|
padding: .45rem 2.25rem .45rem .85rem;
|
|
}
|
|
|
|
input:focus,
|
|
textarea:focus,
|
|
select:focus {
|
|
border: 1px solid rgba(15, 98, 254, 0.55);
|
|
box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.14);
|
|
outline: 0;
|
|
background: #fff;
|
|
}
|
|
|
|
input[type=text]:disabled,
|
|
textarea:disabled,
|
|
input[type=date]:disabled,
|
|
input[type=number]:disabled,
|
|
select:disabled {
|
|
opacity: 0.65;
|
|
cursor: not-allowed;
|
|
background-color: #e9ecef;
|
|
color: #6c757d;
|
|
}
|
|
|
|
label {
|
|
margin-right: 4px;
|
|
white-space: nowrap;
|
|
color: var(--muted-text);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.main {
|
|
width: 100%;
|
|
max-width: 950px;
|
|
margin: 0 auto;
|
|
padding: 0 1rem 1.5rem;
|
|
background: transparent;
|
|
font-size: 1rem;
|
|
font-weight: 400;
|
|
line-height: 1.5;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.footer {
|
|
display: flex;
|
|
gap: 10px;
|
|
font-size: 0.8rem;
|
|
color: var(--muted-text);
|
|
flex-wrap: wrap;
|
|
margin: 1rem 0 2rem;
|
|
justify-content: center;
|
|
}
|
|
|
|
.footer .links {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.footer .links a {
|
|
color: var(--muted-text);
|
|
text-decoration: none;
|
|
position: relative;
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.footer .links a:first-child {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.footer .links a:not(:last-child)::after {
|
|
content: "•";
|
|
position: absolute;
|
|
right: -4px;
|
|
color: #999;
|
|
}
|
|
|
|
.footer a:hover {
|
|
color: var(--primary-color);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.flex-container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.flex-group {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.flex-group.right {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.debug {
|
|
display: none !important;
|
|
}
|
|
|
|
.log-container {
|
|
width: 100%;
|
|
min-height: 100px;
|
|
max-height: 300px;
|
|
margin: 0;
|
|
padding: 10px 12px;
|
|
background: linear-gradient(180deg, rgba(14, 26, 48, 0.92), rgba(20, 36, 63, 0.96));
|
|
color: #d9ecff;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
|
|
box-sizing: border-box;
|
|
word-break: break-word;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(77, 102, 150, 0.4);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.log-container .log-line {
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.log-container .time,
|
|
.log-container .action {
|
|
display: inline-block;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.log-container .time {
|
|
color: #7bdcff;
|
|
margin-right: 0.5em;
|
|
}
|
|
|
|
.log-container .action {
|
|
color: #95aecd;
|
|
margin-right: 0.5em;
|
|
}
|
|
|
|
.template-panel {
|
|
border: 1px solid rgba(121, 140, 176, 0.22);
|
|
border-radius: 8px;
|
|
background: rgba(255, 255, 255, 0.78);
|
|
padding: 12px;
|
|
margin-bottom: 10px;
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
|
|
}
|
|
|
|
.panel-tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.panel-tab {
|
|
color: var(--muted-text);
|
|
background: rgba(255, 255, 255, 0.7);
|
|
border-color: rgba(121, 140, 176, 0.18);
|
|
}
|
|
|
|
.panel-tab:hover {
|
|
background: rgba(255, 255, 255, 0.96);
|
|
border-color: rgba(121, 140, 176, 0.26);
|
|
}
|
|
|
|
.panel-tab.active {
|
|
color: #fff;
|
|
background: linear-gradient(135deg, var(--primary-color), #1ec8ff);
|
|
border-color: transparent;
|
|
box-shadow: 0 12px 24px rgba(15, 98, 254, 0.2);
|
|
}
|
|
|
|
.panel-tab-content {
|
|
display: none;
|
|
}
|
|
|
|
.panel-tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
.template-header {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
align-items: baseline;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.template-header span {
|
|
color: var(--muted-text);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.template-mode-panel {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.template-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.template-item {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
align-items: center;
|
|
padding: 8px;
|
|
border: 1px solid rgba(121, 140, 176, 0.18);
|
|
border-radius: 6px;
|
|
background: rgba(248, 251, 255, 0.86);
|
|
}
|
|
|
|
.template-item.dragging {
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.template-item.drag-over {
|
|
border-color: rgba(15, 98, 254, 0.5);
|
|
box-shadow: inset 0 0 0 1px rgba(15, 98, 254, 0.18);
|
|
}
|
|
|
|
.countdown-grid-drag-handle {
|
|
width: 34px;
|
|
height: 34px;
|
|
border: 1px dashed rgba(121, 140, 176, 0.4);
|
|
border-radius: 6px;
|
|
background: rgba(255, 255, 255, 0.92);
|
|
color: var(--muted-text);
|
|
cursor: grab;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.countdown-grid-drag-handle:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.template-item input[type="text"] {
|
|
min-width: 120px;
|
|
flex: 1 1 160px;
|
|
}
|
|
|
|
.template-item input[type="date"] {
|
|
min-width: 150px;
|
|
}
|
|
|
|
.template-item input[type="number"] {
|
|
width: 72px;
|
|
}
|
|
|
|
.template-item label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.canvas-container canvas {
|
|
border: 1px solid rgba(37, 61, 104, 0.24);
|
|
max-width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
margin: 0 auto;
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.98));
|
|
border-radius: 0;
|
|
box-shadow:
|
|
0 25px 60px rgba(15, 35, 95, 0.18),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.canvas-container.crop-mode canvas {
|
|
border: 2px dashed var(--primary-color);
|
|
cursor: grab;
|
|
}
|
|
|
|
.status-bar {
|
|
display: none;
|
|
font-size: 85%;
|
|
color: var(--muted-text);
|
|
margin-bottom: 10px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px dotted rgba(121, 140, 176, 0.45);
|
|
}
|
|
|
|
canvas.text-placement-mode {
|
|
border: 2px dashed var(--primary-color) !important;
|
|
cursor: text !important;
|
|
}
|
|
|
|
.canvas-title {
|
|
display: none;
|
|
text-align: center;
|
|
margin-bottom: 5px;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.canvas-container {
|
|
padding: 18px;
|
|
border-radius: 0;
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(242, 248, 255, 0.84));
|
|
border: 1px solid rgba(121, 140, 176, 0.18);
|
|
box-shadow: var(--shadow-soft);
|
|
}
|
|
|
|
.canvas-tools {
|
|
margin-top: 10px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.brush-tools,
|
|
.text-tools,
|
|
.crop-tools {
|
|
display: none;
|
|
}
|
|
|
|
.markdown-text-input-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 240px;
|
|
flex: 1 1 280px;
|
|
}
|
|
|
|
#text-input {
|
|
width: 100%;
|
|
min-height: 110px;
|
|
resize: vertical;
|
|
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
|
|
}
|
|
|
|
.markdown-text-hint {
|
|
color: var(--muted-text);
|
|
font-size: 0.82rem;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.canvas-container.brush-mode .brush-tools,
|
|
.canvas-container.text-mode .brush-tools,
|
|
.canvas-container.eraser-mode .brush-tools,
|
|
.canvas-container.text-mode .text-tools,
|
|
.canvas-container.crop-mode .crop-tools {
|
|
display: flex;
|
|
}
|
|
|
|
.canvas-container.crop-mode .tool-buttons,
|
|
.canvas-container.crop-mode .brush-tools,
|
|
.canvas-container.crop-mode .text-tools {
|
|
display: none;
|
|
}
|
|
|
|
.tool-button {
|
|
width: 36px;
|
|
height: 36px;
|
|
font-size: 1.2rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 5px;
|
|
background: rgba(255, 255, 255, 0.86);
|
|
border: 1px solid rgba(121, 140, 176, 0.22);
|
|
border-radius: 4px;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 8px 18px rgba(16, 32, 58, 0.08);
|
|
}
|
|
|
|
.tool-button:hover {
|
|
background: #fff;
|
|
border-color: rgba(121, 140, 176, 0.3);
|
|
}
|
|
|
|
.tool-button.active {
|
|
background: linear-gradient(135deg, var(--primary-color), #1ec8ff);
|
|
color: white;
|
|
border-color: transparent;
|
|
box-shadow: 0 12px 24px rgba(15, 98, 254, 0.24);
|
|
}
|
|
|
|
.tool-button.hide {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.flex-container {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.panel-tabs {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.panel-tab {
|
|
flex: 1 1 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.flex-container.options .flex-group label {
|
|
min-width: 80px;
|
|
}
|
|
|
|
.flex-group.right {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.canvas-tools.flex-container {
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
.canvas-tools .flex-group {
|
|
justify-content: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.log-container {
|
|
height: 150px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
fieldset {
|
|
padding: 8px;
|
|
}
|
|
|
|
button {
|
|
width: auto;
|
|
}
|
|
|
|
input[type=text],
|
|
textarea,
|
|
input[type=number],
|
|
select {
|
|
max-width: 100%;
|
|
margin-bottom: 5px;
|
|
}
|
|
}
|
|
|
|
body.dark-mode .debug {
|
|
display: flex !important;
|
|
}
|
|
|
|
body.dark-mode,
|
|
body.dark-mode .main {
|
|
background-color: var(--dark-bg);
|
|
color: var(--dark-text);
|
|
}
|
|
|
|
body.dark-mode {
|
|
background:
|
|
radial-gradient(circle at top left, rgba(15, 98, 254, 0.16), transparent 32%),
|
|
radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.14), transparent 30%),
|
|
linear-gradient(135deg, #0b1220 0%, #10192d 50%, #0c1220 100%);
|
|
}
|
|
|
|
body.dark-mode fieldset {
|
|
background-color: var(--dark-fieldset-bg);
|
|
box-shadow: 0 .5rem 0.5rem rgba(0, 0, 0, 0.5);
|
|
border: 1px solid rgba(77, 102, 150, 0.24);
|
|
}
|
|
|
|
body.dark-mode h3 {
|
|
border-bottom: 1px solid var(--dark-border);
|
|
color: var(--dark-text);
|
|
text-shadow: 0 12px 30px rgba(34, 211, 238, 0.12);
|
|
}
|
|
|
|
body.dark-mode code {
|
|
background: var(--dark-code-bg);
|
|
color: #ff9800;
|
|
}
|
|
|
|
body.dark-mode input[type=text],
|
|
body.dark-mode textarea,
|
|
body.dark-mode input[type=date],
|
|
body.dark-mode input[type=number],
|
|
body.dark-mode select {
|
|
background-color: var(--dark-input-bg);
|
|
color: var(--dark-input-text);
|
|
border-color: var(--dark-border);
|
|
}
|
|
|
|
body.dark-mode input[type=text]:disabled,
|
|
body.dark-mode textarea:disabled,
|
|
body.dark-mode input[type=date]:disabled,
|
|
body.dark-mode input[type=number]:disabled,
|
|
body.dark-mode select:disabled {
|
|
background-color: #1a1a1a;
|
|
color: #666;
|
|
border-color: #2a2a2a;
|
|
}
|
|
|
|
body.dark-mode input[type=file] {
|
|
color: var(--dark-input-text);
|
|
background-color: transparent;
|
|
border-color: var(--dark-border);
|
|
}
|
|
|
|
body.dark-mode input[type=file]::file-selector-button {
|
|
background-color: var(--dark-fieldset-bg);
|
|
color: var(--dark-input-text);
|
|
border-color: var(--dark-border);
|
|
}
|
|
|
|
body.dark-mode input[type=file]::file-selector-button:hover {
|
|
background-color: #333;
|
|
border-color: #444;
|
|
}
|
|
|
|
body.dark-mode .log-container {
|
|
background: var(--dark-log-bg);
|
|
border: 1px solid var(--dark-border);
|
|
}
|
|
|
|
body.dark-mode .log-container .time {
|
|
color: #8bc34a;
|
|
}
|
|
|
|
body.dark-mode .log-container .action {
|
|
color: #03a9f4;
|
|
}
|
|
|
|
body.dark-mode fieldset legend {
|
|
color: #64b5f6;
|
|
}
|
|
|
|
body.dark-mode .footer .links a:not(:last-child)::after {
|
|
color: #666;
|
|
}
|
|
|
|
body.dark-mode .footer {
|
|
color: #999;
|
|
}
|
|
|
|
body.dark-mode .footer a {
|
|
color: #999;
|
|
}
|
|
|
|
body.dark-mode .footer a:hover {
|
|
color: #64b5f6;
|
|
}
|
|
|
|
body.dark-mode .tool-button {
|
|
background-color: var(--dark-input-bg);
|
|
border-color: var(--dark-border);
|
|
color: var(--dark-text);
|
|
}
|
|
|
|
body.dark-mode .tool-button:hover {
|
|
background-color: #3a3a3a;
|
|
border-color: #444;
|
|
}
|
|
|
|
body.dark-mode .tool-button.active {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
border-color: var(--primary-hover);
|
|
}
|
|
|
|
body.dark-mode .template-panel,
|
|
body.dark-mode .template-item {
|
|
background-color: var(--dark-fieldset-bg);
|
|
border-color: var(--dark-border);
|
|
}
|
|
|
|
body.dark-mode .canvas-container {
|
|
background: linear-gradient(180deg, rgba(23, 31, 49, 0.92), rgba(17, 24, 39, 0.95));
|
|
border-color: rgba(77, 102, 150, 0.24);
|
|
}
|
|
|
|
body.dark-mode .canvas-container canvas {
|
|
background: #f8fbff;
|
|
}
|
|
|
|
body.dark-mode .panel-tab {
|
|
color: var(--dark-text);
|
|
background-color: #2a2a2a;
|
|
border-color: var(--dark-border);
|
|
}
|
|
|
|
body.dark-mode .panel-tab:hover {
|
|
background-color: #333;
|
|
border-color: #444;
|
|
}
|
|
|
|
body.dark-mode .panel-tab.active {
|
|
background-color: var(--primary-color);
|
|
border-color: var(--primary-hover);
|
|
color: #fff;
|
|
}
|
|
|
|
body.dark-mode .template-header span {
|
|
color: #aaa;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
fieldset,
|
|
.canvas-container {
|
|
animation: floatIn 0.6s ease both;
|
|
}
|
|
|
|
fieldset:nth-of-type(2) {
|
|
animation-delay: 0.06s;
|
|
}
|
|
|
|
fieldset:nth-of-type(3) {
|
|
animation-delay: 0.12s;
|
|
}
|
|
}
|
|
|
|
@keyframes floatIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(16px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|