* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  max-width: 1560px;
  min-width: 1240px;
  width: 100%;
  margin: 20px auto;
  color: #333;
}
.container *{
  box-sizing: border-box;
}

.main{
  width: 100%;
  display: flex;
  gap: 20px;
}

header {
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

header  .subtitle {
  font-size: 1.1rem;
  max-width: 95%;
  margin: 0 auto;
  opacity: 0.9;
}


.content-wrapper {
  display: flex;
  gap: 20px;
}

.input-section,
.info-section {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  padding-bottom: 0;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eaeaea;
}

.input-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1rem;
}

textarea,
input {
  width: 100%;
  padding: 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
  background-color: #fafafa;
}

textarea {
  min-height: 265px;
  resize: vertical;
  line-height: 1.5;
}

textarea:focus,
input:focus {
  outline: none;
  border-color: #2575fc;
  box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

button {
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-encrypt {
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: white;
  flex: 1;
}

.btn-decrypt {
  background: linear-gradient(to right, #00b09b, #96c93d);
  color: white;
  flex: 1;
}

.btn-clear {
  background: #f1f2f6;
  color: #2f3542;
  flex: 1;
}

.btn-copy {
  background: linear-gradient(to right, #ff9a9e, #fad0c4);
  color: white;
  flex: 1;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

button:active {
  transform: translateY(0);
}


.info-content {
  overflow-y: auto;
}

.info-content::-webkit-scrollbar {
  width: 8px;
}

.info-content::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-radius: 4px;
}

.info-content h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #2575fc;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-content p {
  margin-bottom: 15px;
  color: #4a5568;
}

.param-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.param-table th,
.param-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.param-table th {
  background-color: #f1f8ff;
  font-weight: 600;
  color: #2c3e50;
}

.param-table tr:last-child td {
  border-bottom: none;
}

.alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-info {
  background-color: #e3f2fd;
  color: #0d47a1;
  border-left: 4px solid #2196f3;
}

footer {
  text-align: center;
  margin-top: 25px;
  color: #6c757d;
  font-size: 0.95rem;
}

.result-container {
  position: relative;
}

.copy-success {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(46, 204, 113, 0.9);
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.show {
  opacity: 1;
}

/* 通知样式 */
.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
}

.notice.info {
  background-color: #1890ff;
}

.notice.success {
  background-color: #52c41a;
}

.notice.error {
  background-color: #f5222d;
}