* {
  margin: 0;
  padding: 0;
}

body {
  background: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 5px;
}

header p {
  font-size: 16px;
  color: #7f8c8d;
  margin: 0 auto;
}

.main-content,footer{
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.input-section,
.output-section {
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

textarea {
  width: 100%;
  height: 200px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  transition: all 0.3s ease;
}

textarea:focus {
  outline: none;
  border-color: #4b6cb7;
  box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.2);
}

.controls {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 25px;
}

.format-selector {
  display: flex;
  align-items: center;
  gap: 15px;
}

.format-label {
  font-weight: 600;
  font-size: 1.1rem;
}

.level-selector {
  padding: 10.25px 15px;
  min-width: 250px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background-color: white;
  font-size: 1rem;
  cursor: pointer;
}

.level-selector:focus {
  outline: none;
  border-color: #4b6cb7;
  box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.2);
}

.format-options {
  display: flex;
  gap: 10px;
}

.format-option {
  padding: 10px 20px;
  background: #eef2f7;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.format-option.active {
  background: #4b6cb7;
  color: white;
}

.action-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-compress {
  background: linear-gradient(to right, #4b6cb7, #3a56a0);
  color: white;
}

.btn-decompress {
  background: linear-gradient(to right, #2c7744, #1e5a2f);
  color: white;
}

.btn-copy {
  background: linear-gradient(to right, #8a2387, #e94057, #f27121);
  color: white;
}

.btn-clear {
  background: #e0e0e0;
  color: #555;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #666;
  font-size: 0.9rem;
}

.feature-section {
  width: 100%;

}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: #fff;;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

footer {
  margin-bottom: 0;
}

footer p{
  margin-top: 15px;
  line-height: 1.5;
}

footer .tip{
  font-size: 14px;
  margin-top: 20px;
  opacity: 0.8;
  text-align: center;
}

.notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.notice.show {
  opacity: 1;
  visibility: visible;
}
