* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  position: relative;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

header p {
  opacity: 0.9;
  font-size: 1rem;
}

.tool-container {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.text-area-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.text-area-container label {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #444;
  font-weight: bold;
}

textarea {
  flex: 1;
  padding: 20px;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 350px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: none;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 25px;
}

button {
  padding: 10px 36px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: #4a90e2;
  color: white;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

button:hover {
  background-color: #3a7bc8;
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

.btn-encode {
  background-color: #2ecc71;
}

.btn-encode:hover {
  background-color: #27ae60;
}

.btn-decode {
  background-color: #e74c3c;
}

.btn-decode:hover {
  background-color: #c0392b;
}

.btn-copy {
  background-color: #9b59b6;
}

.btn-copy:hover {
  background-color: #8e44ad;
}

.btn-clear {
  background-color: #f39c12;
}

.btn-clear:hover {
  background-color: #d35400;
}

.info-section {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-section h2 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.info-section p {
  margin-top: 15px;
  line-height: 1.6;
  color: #555;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.notice.show {
  opacity: 1;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}
