* {
  margin: 0;
  padding: 0;

}

body {
  background-color: #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 {
  text-align: center;
  margin-bottom: 25px;
}

h1 {
  font-size: 32px;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 18px;
  font-weight: 300;
  max-width: 95%;
  margin: 0 auto;
  line-height: 1.6;
}


/* 转换器区域样式 */
.converter-section {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: transform 0.3s ease;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
}

.section-title span {
  margin-right: 10px;
  font-size: 1.8rem;
}

textarea {
  width: 100%;
  height: 180px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
}

textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 25px 0;
}

.btn {
  padding: 14px 10px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn span {
  margin-right: 8px;
  font-size: 1.2rem;
}

.btn-convert {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.btn-convert:hover {
  background: linear-gradient(135deg, #2980b9, #2573a7);
  box-shadow: 0 4px 15px rgba(41, 128, 185, 0.3);
}

.btn-copy {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
}

.btn-copy:hover {
  background: linear-gradient(135deg, #27ae60, #219653);
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-clear {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
}

.btn-clear:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* 知识区域样式 */
.knowledge-section {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: transform 0.3s ease;
}

.knowledge-item {
  margin-bottom: 25px;
}

.knowledge-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.knowledge-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
}

.knowledge-item h3 span {
  margin-right: 10px;
  font-size: 1.5rem;
}

.knowledge-item p {
  margin-bottom: 10px;
  color: #555;
}

.highlight {
  background-color: #fcf8e3;
  padding: 3px 6px;
  border-radius: 4px;
  color: #8a6d3b;
  font-weight: 500;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #e0e0e0;
  padding: 12px;
  text-align: center;
}

.comparison-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.footer {
  grid-column: 1 / -1;
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-top: 20px;
}
