* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	min-height: 100vh;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	font-family: "Microsoft YaHei", sans-serif;
	padding: 20px;
	color: #eee;
}

.container {
	max-width: 800px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 20px;
	padding: 40px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
	text-align: center;
	margin-bottom: 10px;
	font-size: 2em;
	background: linear-gradient(90deg, #00d9ff, #00ff88);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.subtitle {
	text-align: center;
	color: #888;
	margin-bottom: 30px;
	font-size: 0.9em;
}

.input-group {
	margin-bottom: 25px;
}

label {
	display: block;
	margin-bottom: 8px;
	color: #00d9ff;
	font-weight: bold;
}

input[type="text"],
textarea {
	width: 100%;
	padding: 15px;
	border: 2px solid rgba(0, 217, 255, 0.3);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.3);
	color: #fff;
	font-size: 16px;
	transition: all 0.3s ease;
}

input[type="text"]:focus,
textarea:focus {
	outline: none;
	border-color: #00d9ff;
	box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

textarea {
	min-height: 150px;
	resize: vertical;
	font-family: inherit;
}

.button-group {
	display: flex;
	gap: 15px;
	margin-bottom: 25px;
}

button {
	flex: 1;
	padding: 15px 30px;
	font-size: 18px;
	font-weight: bold;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.encode-btn {
	background: linear-gradient(135deg, #00d9ff, #0099ff);
	color: #000;
}

.encode-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.decode-btn {
	background: linear-gradient(135deg, #00ff88, #00cc66);
	color: #000;
}

.decode-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

.result-group {
	position: relative;
}

.result-group label {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.copy-btn {
	padding: 8px 16px;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.1);
	color: #00d9ff;
	border: 1px solid rgba(0, 217, 255, 0.3);
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.copy-btn:hover {
	background: rgba(0, 217, 255, 0.2);
}

#result {
	background: rgba(0, 255, 136, 0.05);
	border-color: rgba(0, 255, 136, 0.3);
}

#result:focus {
	border-color: #00ff88;
	box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.tips {
	margin-top: 30px;
	padding: 20px;
	background: rgba(255, 193, 7, 0.1);
	border-radius: 10px;
	border-left: 4px solid #ffc107;
}

.tips h3 {
	color: #ffc107;
	margin-bottom: 10px;
}

.tips p {
	color: #aaa;
	font-size: 14px;
	line-height: 1.8;
}

.loading {
	opacity: 0.5;
	pointer-events: none;
}
