* {
  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: 1.1rem;
}

.main-content {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.input-section,
.result-section {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
}

.container textarea,
.container input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.container textarea {
  min-height: 280px;
  resize: vertical;
  line-height: 1.5;
}

.container textarea:focus,
.container input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.key-group {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.key-group input {
  flex: 1;
}

.key-group button {
  background: #ecf0f1;
  border: none;
  border-radius: 8px;
  padding: 0 15px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.key-group button:hover {
  background: #d5dbdb;
}

.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

button {
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-encrypt {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.btn-decrypt {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
}

.btn-copy {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
}

.btn-clear {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
}

.btn-example {
  background: linear-gradient(135deg, #f39c12, #d35400);
  color: white;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-container {
  min-height: 170px;
  padding: 14px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #eee;
  word-break: break-all;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 25px;
}

.jz-box{
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.jz-box .jz-item{
  flex: 1;
}

.jz-box .jtit{
  font-weight: bold;
  margin-bottom: 5px;
}

.jz-box .jnum{
  padding: 10px 25px;
  border-radius: 8px;
  text-align: justify;
  text-align-last: justify;
  line-height: 1.5;
  font-size: 1rem;
  opacity: 0.85;
}

.info-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.info-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  border-left: 4px solid #3498db;
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card ul {
  padding-left: 20px;
}

.info-card li,.info-card p{
  margin-top: 10px;
}

#notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(44, 62, 80, 0.95);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1rem;
  display: none;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

footer {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9rem;
}
