body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  color: #333;
}

h1 {
  text-align: center;
  color: #2c3e50;
}

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

.input-container, .output-container {
  flex: 1;
  min-width: 300px;
}

textarea {
  width: 100%;
  height: 300px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: monospace;
  resize: vertical;
}

button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #2980b9;
}

.result {
  margin-top: 10px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
  min-height: 300px;
  overflow-y: auto;
}

.error {
  color: #e74c3c;
  font-weight: bold;
}

.valid {
  color: #27ae60;
  font-weight: bold;
}

.warning {
  color: #f39c12;
  font-weight: bold;
}

.info-section {
  margin-top: 30px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f5f5f5;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

hr {
  border: 0;
  height: 1px;
  background-color: #ddd;
  margin: 15px 0;
}
.year-statistics {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}
.histogram-container {
  height: 100px;
  align-items: flex-end;
  margin-bottom: 25px;
  padding-bottom: 5px;
}
.histogram-bar {
  display: inline-block;
  margin: 0 1px;
  position: relative;
}
.year-statistics ul {
  margin-top: 5px;
  padding-left: 20px;
}

.publisher-statistics {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.publisher-statistics ul {
  margin-top: 5px;
  padding-left: 20px;
}

.publisher-statistics .valid {
  color: #27ae60;
}

.publisher-statistics .error {
  color: #e74c3c;
}

.publisher-statistics .warning {
  color: #f39c12;
}

.publisher-statistics .info {
  color: #3498db;
  font-style: italic;
}

/* 调整嵌套列表的样式 */
.publisher-statistics ul ul {
  margin-top: 5px;
  margin-bottom: 10px;
}

/* 添加一些额外的颜色标识 */
.warning {
  color: #f39c12;
  font-weight: bold;
}

.info {
  color: #3498db;
}