:root {
	--bg: #0b0f14;
	--card: #11161e;
	--text: #e7edf4;
	--muted: #9fb1c6;
	--accent: #4da3ff;
	--accent2: #7c5cff;
	--border: #1e2430;
	--ok: #2ec27e;
	--warn: #f9c74f;
	--err: #e76f51;
}
* {
	box-sizing: border-box;
}
html,
body {
	height: 100%;
}
body {
	margin: 0;
	background: radial-gradient(1200px 600px at 10% 10%, #0c1220, #0b0f14), linear-gradient(120deg, #0b0f14, #0e131a);
	color: var(--text);
	font: 14px/1.6 -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.container {
	height: 100vh;
	max-width: none;
	width: 100vw;
	margin: 0;
	padding: 0 16px;
	display: flex;
	flex-direction: column;
}

header,
footer {
	padding: 16px;
}
.panel {
	padding: 16px;
	overflow: hidden;
}
.panel > div {
	min-height: 0;
	display: flex;
	flex-direction: column;
}
.panel.right-panel {
	background: #1f0017;
}
.panel .gallery {
	flex: 1;
	overflow: auto;
}
header {
	margin-bottom: 16px;
}
h1 {
	margin: 0 0 4px 0;
	font-size: 24px;
	background: linear-gradient(90deg, var(--accent), var(--accent2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
p {
	margin: 0;
	color: var(--muted);
}
.or-hr {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  flex-direction: row !important;
  align-items: center;
}
.or-hr::before,
.or-hr::after {
	content: '';
  height: 1px;
  flex: 1;
	border-top: 1px solid #313131;
  margin: 0 12px;
}
.panel {
	background: linear-gradient(180deg, #121825, #0f1420);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
/* 简化布局，仅保留按钮配色区分 */
.label {
	display: block;
	margin: 12px 0 6px 0;
	color: #c9d7e6;
}
textarea {
	width: 100%;
	min-height: 140px;
	border: 1px solid var(--border);
	background: #0b1119;
	color: var(--text);
	border-radius: 10px;
	padding: 12px;
	resize: vertical;
	outline: none;
}
input {
	width: 100%;
	border: 1px solid var(--border);
	background: #0b1119;
	color: var(--text);
	border-radius: 10px;
	padding: 10px;
	outline: none;
}
.actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 12px;
  flex-direction: row !important;
}
button {
	appearance: none;
	border: none;
	border-radius: 10px;
	padding: 10px 14px;
	color: #fff;
	background: linear-gradient(90deg, var(--accent2), var(--accent));
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(77, 163, 255, 0.25);
}
button[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}
#status {
	margin-left: auto;
	color: var(--muted);
}
.results {
	margin-top: 18px;
}
.results h2 {
	margin: 0 0 8px 0;
	font-size: 18px;
	color: #cbd6e5;
}
ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
}
.gallery li {
	margin: 0;
}
.card {
	background: linear-gradient(180deg, #121825, #0f1420);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
}
.thumb {
	height: 180px;
	background: linear-gradient(90deg, #0b1119, #0f1420);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid #1b2230;
}
.preview {
	max-width: 100%;
	max-height: 100%;
	display: block;
}
.placeholder {
	color: #8ea4bf;
}
.info {
	margin-top: 8px;
}
.name {
	color: #e7edf4;
	font-weight: 600;
}
.meta {
	color: var(--muted);
	font-size: 12px;
	margin-top: 4px;
}
.ops {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}
.btn {
	color: #fff;
	text-decoration: none;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid #223148;
	cursor: pointer;
}
.btn-enc {
	background: linear-gradient(90deg, var(--accent2), var(--accent));
}
.btn-dec {
	background: linear-gradient(90deg, #33b77a, #2ec27e);
}
.btn-outline {
	background: #172032;
}
.ok {
	color: var(--ok);
}
.err {
	color: var(--err);
}
footer {
	margin-top: 20px;
	color: var(--muted);
}
