* {
  margin: 0;
  padding: 0;

}

body {
  background: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}


header h1 {
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 5px;
}


header p {
  font-size: 16px;
  color: #7f8c8d;
  max-width: 95%;
  margin: 0 auto;
}

.tool-section {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.tool-section p,.tool-section li{
  margin-top: 15px;
  font-size: 15px;
  line-height: 1.5;
}

.tool-section li{
  opacity: 0.85;
  margin-top: 10px;
}

.tool-section ul{
  margin-top: 15px;
  padding-left: 25px;
}

.section-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
}


label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

.container textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
  min-height: 210px;
  font-size: 15px;
  line-height: 1.5;
}

#input-text{
  margin-bottom: 20px;
}

.options {
  display: flex;
  gap: 25px;
  margin-bottom: 20px;
}

.option-group {
  display: flex;
  align-items: center;
  flex: 1;
}

.option-group label{
  margin-bottom: 0;
}

.container select {
  flex: 1;
  margin-left: 15px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
}

.buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

button {
  padding: 14px 36px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

button span {
  margin-right: 8px;
}

.btn-primary {
  background-color: #3498db;
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #2ecc71;
  color: white;
}

.btn-secondary:hover {
  background-color: #27ae60;
}

.btn-danger {
  background-color: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background-color: #2c3e50;
  color: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
}

footer {
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-section {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  flex: 1;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-top: 10px;
}

footer .tip{
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.8;
}

.algorithm-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.algorithm-table th,
.algorithm-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.algorithm-table th {
  background-color: #f8f9fa;
}

.algorithm-table tr:nth-child(even) {
  background-color: #f8f9fa;
}
