* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.container * {
  box-sizing: border-box;
}

/* 头部样式 */
header {
  position: relative;
  margin-bottom: 20px;
  text-align: center;
}

h1 {
  font-size: 32px;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 1.1rem;
  max-width: 95%;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.6;
}

.main-content {
  display: flex;
  gap: 20px;
}

.calculator-section {
  flex: 1;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
}

.info-section {
  flex: 1.5;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
}

.calculator-card {
  flex: 1;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 30px;
}

label {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: #444;
}

.gender-selector {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.gender-option {
  flex: 1;
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background: #f9f9f9;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #eaeaea;
}

.gender-option:hover {
  background: #f1f8ff;
  transform: translateY(-3px);
}

.gender-option.selected {
  background: #e6f4ff;
  border-color: #6ecbf5;
  box-shadow: 0 5px 15px rgba(110, 203, 245, 0.2);
}

.gender-emoji {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.gender-text {
  font-size: 1.3rem;
  font-weight: 600;
}

.input-group {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 5px 20px;
  border: 1px solid #eaeaea;
}

.input-group span {
  font-size: 1.8rem;
  margin-right: 10px;
  opacity: 0.7;
}

input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px;
  font-size: 1.5rem;
  outline: none;
}

.btn-calculate {
  background: linear-gradient(135deg, #6ecbf5 0%, #5b9df9 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 20px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(91, 157, 249, 0.4);
}

.btn-calculate:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(91, 157, 249, 0.6);
}

.btn-calculate:active {
  transform: translateY(0);
}

.result-container {
  margin-top: 30px;
  background: #f1f8ff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  border: 2px dashed #6ecbf5;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.result-container.show {
  opacity: 1;
  height: auto;
}

.result-title {
  font-size: 1.4rem;
  color: #5b9df9;
  margin-bottom: 20px;
}

.result-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: #2c6bed;
  margin: 15px 0;
}

.unit {
  font-size: 1.5rem;
  color: #777;
}

.btn-copy {
  background: #2c6bed;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 15px 25px;
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.btn-copy:hover {
  background: #1a56c7;
  transform: translateY(-2px);
}

.info-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.formula {
  background: #e6f4ff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 1.2rem;
  line-height: 1.8;
}

.formula-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: #2c6bed;
  display: flex;
  align-items: center;
  gap: 10px;
}

.note {
  background: #fff9e6;
  padding: 20px;
  border-radius: 12px;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.note-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: #e6a100;
  display: flex;
  align-items: center;
  gap: 10px;
}


.factors h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.factor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.factor-item {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.factor-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.factor-emoji {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.factor-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: #2c6bed;
}

.notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 1.1rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification.show {
  opacity: 1;
}

footer {
  text-align: center;
  padding: 10px;
  color: #777;
  font-size: 1rem;
}
