* {
  margin: 0;
  padding: 0;
}

body {
  background: #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 {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}

header p {
  font-size: 16px;
  color: #7f8c8d;
  margin: 0 auto;
}

.comparison-container {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.text-section {
  flex: 1;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.section-header{
  padding: 10px 15px;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

textarea, .result-container {
  width: 100%;
  height: 560px;
  padding: 15px;
  border: none;
  resize: none;
  font-size: 15px;
  line-height: 1.6;
  outline: none;
  border-top: 1px solid #ddd;
  font-family: 'Consolas', 'Courier New', monospace;
}

.result-section {
  flex: 1;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.result-container {
  overflow-y: auto;
  white-space: pre-wrap;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-success {
  background: #2ecc71;
  color: white;
}

.btn-example{
  background: #cc2eba;
  color: white;
}

.btn-warning {
  background: #f39c12;
  color: white;
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(1px);
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 40px;
  background: rgba(44, 62, 80, 0.95);
  color: white;
  border-radius: 8px;
  font-size: 1.1rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.notice.show {
  opacity: 1;
}

footer {
  text-align: center;
}

.features {
  display: flex;
  justify-content: space-around;
  gap: 25px;
  margin-bottom: 40px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  flex: 1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.feature-description {
  color: #7f8c8d;
  font-size: 1.05rem;
}

.footer-content {
  margin: 0 auto;
}

.footer-content h2 {
  font-size: 1.7rem;
  margin-bottom: 25px;
  color: #2c3e50;
}

.footer-content p {
  margin-top: 20px;
  font-size: 1rem;
  color: #555;
}

.highlight {
  background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 600;
}
