* {
  margin: 0;
  padding: 0;

}

body {
  background-color: #f1f2f3;
}

.container {
  width: 100%;
  max-width: 1600px;
  min-width: 1100px;
  box-sizing: border-box;
  margin: 25px auto;
}

.container *{
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 25px;
}

h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 0.95rem;
  color: #7f8c8d;
  max-width: 95%;
  margin: 0 auto;
  line-height: 1.6;
}


.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 25px;
}

.card-title {
  font-size: 20px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  color: #c03;
  display: flex;
  align-items: center;
}

.card-title span {
  margin-right: 10px;
  font-size: 24px;
}

.input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.input-item {
  flex: 1;
  min-width: 300px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

input,
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input:focus,
select:focus {
  outline: none;
  border-color: #c03;
  box-shadow: 0 0 0 2px rgba(204, 0, 51, 0.1);
}

button {
  background: #c03;
  color: white;
  border: none;
  padding: 14px 30px;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  margin-top: 28px;
  transition: background 0.3s, transform 0.2s;
  font-weight: bold;
  width: 240px;
}

button:hover {
  background: #a00;
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

.result-section {
  display: none;
  margin-top: 10px;
}

.tabred {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 16px;
}

.tabred td {
  padding: 15px 20px;
  border: 1px solid #eee;
}

.tabred tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.tabred tr:first-child td {
  background-color: #f0f7ff;
  font-weight: bold;
}

.tabred td:first-child {
  font-weight: bold;
  width: 120px;
  background-color: #f9f9f9;
}

.tabred span {
  display: inline-block;
  margin-right: 25px;
  min-width: 80px;
  text-align: center;
}

.explanation {
  margin-top: 0;
  margin-bottom: 25px;
  padding: 20px;
  background: #fff9f9;
  border-radius: 8px;
  border-left: 4px solid #c03;
}

.explanation h3 {
  margin-bottom: 15px;
  color: #c03;
}

.explanation p {
  margin-bottom: 15px;
}

.explanation ul {
  padding-left: 25px;
  margin-bottom: 15px;
}

.explanation li {
  margin-bottom: 8px;
}

.footer {
  text-align: center;
  color: #777;
  font-size: 14px;
}

.bazi-display {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.bazi-column {
  text-align: center;
  min-width: 100px;
}

.bazi-label {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #c03;
}

.bazi-value {
  font-size: 16px;
  font-weight: bold;
  padding: 15px 40px;
  background: #f8f8f8;
  border-radius: 8px;
  min-width: 200px;
}
