* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}


header {
  text-align: center;
  margin-bottom: 25px;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 1rem;
  color: #666;
  max-width: 95%;
  margin: 0 auto;
}


.converter-container {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 25px;
  padding: 20px;
  min-height: 400px;
}

.converter-container .box{
  display: flex;
  gap: 25px;
  margin-bottom: 20px;
}

.converter-container .handle{
  display: flex;
  gap: 20px;
}

.input-section, .output-section {
  flex: 1;
}

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

.section-title span {
  margin-right: 10px;
  font-size: 1.4rem;
}

.input-field {
  width: 100%;
  height: 220px;
  padding: 15px;
  border: 1px solid #eee;
  font-size: 1.1rem;
  line-height: 1.7;
  border-radius: 8px;
  resize: none;
  transition: border-color 0.3s;
}

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

.btn {
  padding: 14px 28px;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.btn span {
  margin-right: 8px;
  font-size: 1.3rem;
}

.btn-convert {
  background: #3498db;
  color: white;
  min-width: 200px;
}

.btn-convert:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.btn-clear {
  background: #e74c3c;
  color: white;
}

.btn-clear:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.btn-copy {
  background: #2ecc71;
  color: white;
}

.btn-copy:hover {
  background: #27ae60;
  transform: translateY(-2px);
}

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

.info-section h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

.info-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.info-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: transform 0.3s ease;
}

.info-card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  font-size: 1.3rem;
  color: #3498db;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.info-card h3 span {
  margin-right: 10px;
  font-size: 1.5rem;
}

.info-card p {
  line-height: 1.7;
  color: #555;
}

.examples {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #eee;
}

.example-item {
  text-align: center;
  padding: 15px;
}

.example-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 5px;
}

.example-label {
  font-size: 1rem;
  color: #7f8c8d;
}

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

.notification {
  position: fixed;
  top: 60px;
  right: 20px;
  padding: 15px 25px;
  background: #fff;
  color: #666;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification.success {
  background-color: #2ecc71; /* 绿色背景 */
  color: white;
}

.notification.error {
  background-color: #e74c3c; /* 红色背景 */
  color: white;
}
