:root {
  --primary: #43bbee;
  --primary-dark: #3a56d4;
  --secondary: #b709b4;
  --dark: #1a1a2e;
  --darker: #0d0d1a;
  --light: #f8f9fa;
  --gray: #b1b2b3;
  --success: #4cc9f0;
  --warning: #f72585;
  --card-bg: rgba(30, 30, 46, 0.7);
  --border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;

}

body {
  background: linear-gradient(135deg, var(--darker), var(--dark));
}

header {
  text-align: center;
  width: 100%;
  padding: 20px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  color: var(--light);
  box-sizing: border-box;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.container {
  display: flex;
  gap: 20px;
  max-width: 1500px;
  min-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  color: var(--light);
  box-sizing: border-box;
}

.container *{
  box-sizing: border-box;
}

.card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  flex: 1;
}

.input-section {
  flex: 1;
}

.result-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--primary);
}

.section-title h2 {
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 25px;
}

.container label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #ddd;
}

.container input,
.container select {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 20, 0.5);
  color: var(--light);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.container input:focus,
.container select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.container button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.container button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-generate {
  width: 100%;
  margin-top: 10px;
  font-size: 1.2rem;
  padding: 16px;
}

.result-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.result-box {
  background: rgba(10, 10, 20, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  flex: 1;
  overflow: auto;
  font-family: monospace;
  font-size: 1.1rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 20px;
}

.result-placeholder {
  color: var(--gray);
  text-align: center;
}

.btn-copy {
  background: var(--secondary);
  margin-top: auto;
}

.btn-copy:hover {
  background: #5f0a9e;
}

.info-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.info-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--success);
}

.info-content {
  padding: 0 5px;
  line-height: 1.7;
}

.encryption-info {
  margin-top: 20px;
}

.encryption-type {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.encryption-type:hover {
  background: rgba(67, 97, 238, 0.15);
}

.encryption-type.active {
  background: rgba(67, 97, 238, 0.25);
  border: 1px solid var(--primary);
}

.encryption-type span:first-child {
  font-size: 1.8rem;
  margin-right: 15px;
  width: 40px;
  text-align: center;
}

.encryption-details {
  flex: 1;
}

.encryption-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.encryption-desc {
  font-size: 0.9rem;
  color: #aaa;
}

footer {
  text-align: center;
  padding: 30px 0 30px;
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: auto;
}

.copied-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: var(--darker);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: none;
}

/* 响应式调整 */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }
}
