* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;

}

.container {
  box-sizing: border-box;
  max-width: 1540px;
  min-width: 1240px;
  width: 100%;
  margin: 20px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  text-align: center;
  position: relative;
  margin-bottom: 25px;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.6;
}

.search-box {
  display: flex;
  max-width: 800px;
  margin: auto;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  padding: 18px 25px;
  border: none;
  font-size: 1.1rem;
  background: #f8f9fa;
  outline: none;
  transition: all 0.3s;
}

.search-box button {
  padding: 0 30px;
  background: #c03;
  color: white;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.search-box button:hover {
  background: #a00;
}

.hint {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.dynasty-table {
  width: 100%;
  border-collapse: collapse;
  margin: auto;
  margin-bottom: 25px;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.dynasty-table th {
  background: #c03;
  color: white;
  padding: 18px 15px;
  text-align: center;
  font-weight: 600;
  font-size: 1.2rem;
}

.dynasty-table td {
  padding: 16px 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
  transition: all 0.2s;
}

.dynasty-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.dynasty-name {
  font-weight: bold;
  color: #c03;
}

.notes {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #c03;
}

.notes h2 {
  color: #c03;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.notes p {
  line-height: 1.8;
  margin-top: 10px;
  font-size: 1.1rem;
}

.notes ul {
  padding-left: 30px;
  margin: 20px 0;
}

.notes li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.sup-note {
  color: #c00;
  font-weight: bold;
  vertical-align: super;
  font-size: 0.8rem;
  margin-left: 3px;
}

.match-highlight {
  background-color: #ffeb3b;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: bold;
}

.footer {
  text-align: center;
  color: #666;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 1rem;
}

.table-header {
  background: linear-gradient(135deg, #8b0000, #c03);
  color: white;
}

.dynasty-table tr:last-child td {
  border-bottom: none;
}

.dynasty-table td[rowspan] {
  background-color: #f0f8ff;
}
