* {
  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;
  max-width: 95%;
  margin: 0 auto;
}

.content {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 25px;
}

.input-section,.output-section {
  flex: 1;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: #2c3e50;
  display: flex;
  align-items: center;
}

.section-title span {
  margin-right: 10px;
  font-size: 1.6rem;
}

.input-textarea,.output-textarea{
  width: 100%;
  height: 360px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 15px;
  transition: border-color 0.3s;
}

.input-textarea:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.options-panel {
  background: #f9fafb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
}

.option-group {
  margin-bottom: 20px;
}

.option-group:last-child {
  margin-bottom: 0;
}

.option-title {
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e50;
  display: flex;
  align-items: center;
}

.option-title span {
  margin-right: 8px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.option-item {
  display: flex;
  align-items: center;
  padding: 10px 24px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e1e5eb;
  cursor: pointer;
  transition: all 0.2s;
}

.option-item:hover {
  border-color: #3498db;
  background: #f0f8ff;
}

.option-item.selected {
  background: #e1f0fa;
  border-color: #3498db;
  color: #2980b9;
  font-weight: 500;
}

.option-item input {
  margin-right: 8px;
  cursor: pointer;
}

.sort-column-input {
  width: 220px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  font-size: 1rem;
}

.buttons {
  display: flex;
  gap: 15px;
}

.btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.btn span {
  margin-right: 8px;
  font-size: 1.2rem;
}

.btn-sort {
  background: linear-gradient(to right, #3498db, #2c80d0);
  color: white;
}

.btn-sort:hover {
  background: linear-gradient(to right, #2980b9, #2573c0);
  transform: translateY(-2px);
}

.btn-copy {
  background: #f1f2f6;
  color: #2c3e50;
}

.btn-copy:hover {
  background: #e2e7f0;
  transform: translateY(-2px);
}

.btn-clear {
  background: #fff4f4;
  color: #e74c3c;
}

.btn-clear:hover {
  background: #ffecec;
  transform: translateY(-2px);
}

.output-textarea {
  background: #f9fafb;
}

.examples {
  background: #f0f7ff;
  border-radius: 10px;
  padding: 15px;
}

.examples h3 {
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
}

.examples h3 span {
  margin-right: 10px;
}

.example-item {
  margin-bottom: 15px;
  padding: 12px;
  background: white;
  border-radius: 6px;
  border-left: 4px solid #3498db;
  cursor: pointer;
  transition: all 0.2s;
}

.example-item:last-child {
  margin-bottom: 0;
}

.example-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: #2980b9;
}

.example-content {
  font-size: 0.95rem;
  color: #555;
  white-space: pre-wrap;
}

footer {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
}

.footer-content {
  margin: 0 auto;
}

.footer-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 25px;
}

.feature {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  text-align: center;
  border: 1px solid #eee;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.copyright {
  opacity: 0.7;
  font-size: 0.95rem;
  text-align: center;
}

.notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
}
