* {
  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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

header p{
  font-size: 1.1rem;
  opacity: 0.9;
}


.calculator {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.input-section {
  flex: 1;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.calculate-btn {
  background-color: #e74c3c;
  color: white;
}

.calculate-btn:hover {
  background-color: #c0392b;
}

.copy-btn {
  background-color: #3498db;
  color: white;
}

.copy-btn:hover {
  background-color: #2980b9;
}

.clear-btn {
  background-color: #95a5a6;
  color: white;
}

.clear-btn:hover {
  background-color: #7f8c8d;
}

.result-section {
  flex: 1.5;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.result-section h3{
  font-size: 18px;
  margin-bottom: 15px;
}

.result-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  min-height: 100px;
  margin-bottom: 20px;
}

.table-section,
.fun-facts{
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.table-section h2,
.fun-facts h2{
  font-size: 22px;
  margin-bottom: 15px;
}

table.nannv {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

table.nannv th,
table.nannv td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

table.nannv th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.pink {
  color: #e91e63;
  font-weight: bold;
}

.green {
  color: #4caf50;
  font-weight: bold;
}

.bglans {
  background-color: #f5f5f5;
}

.description {
  margin-top: 40px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 6px;
  line-height: 1.6;
}

.disclaimer {
  margin-top: 20px;
  padding: 15px;
  background-color: #fff8e1;
  border-left: 4px solid #ffc107;
  font-size: 14px;
  line-height: 1.75;
}

.fun-facts {
  line-height: 1.6;
  font-size: 15px;
}

.fun-facts h3,
.fun-facts h4 {
  font-size: 18px;
  color: #cd8e6b;
  margin-top: 10px;
}

.fun-facts h4 {
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.fun-facts blockquote {
  margin: 10px 0;
  padding: 10px 20px;
  background-color: #fff;
  border-left: 4px solid #3498db;
  font-style: italic;
}

.fun-facts ul {
  padding-left: 20px;
}

.fun-facts li,.fun-facts  p{
  margin-top: 10px;
}

.fun-facts .important {
  background-color: #fff8e1;
  padding: 15px;
  border-left: 4px solid #ffc107;
  margin: 15px 0;
  font-size: 14px;
}

footer {
  text-align: center;
  color: #777;
  font-size: 14px;
}

/* Notice样式 */
.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.notice.show {
  opacity: 1;
}
