html, body, main, header, footer {
  padding: 0px;
  margin: 0px;
}

/* 主应用区 */
#app {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
}

#app-title {
  text-align: center;
  font-size: 28px;
  color: #e91e63;
  margin-bottom: 8px;
}

#app-subtitle {
  text-align: center;
  font-size: 15px;
  color: #888;
  margin-bottom: 24px;
}

/* 卡片 */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* 输入区 */
#input-section {
  text-align: center;
}

#lmp-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

#input-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

#lmp-input {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}

#lmp-input:focus {
  border-color: #e91e63;
}

#today-btn {
  padding: 10px 20px;
  border: 2px solid #e91e63;
  border-radius: 8px;
  background: #fff;
  color: #e91e63;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

#today-btn:hover {
  background: #fce4ec;
}

#calc-btn {
  width: 100%;
  max-width: 320px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: #e91e63;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#calc-btn:hover {
  background: #c2185b;
}

/* 结果区 */
#result-section {
  text-align: center;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.result-row:last-of-type {
  border-bottom: none;
}

.result-label {
  font-size: 15px;
  color: #666;
}

.result-value {
  font-size: 20px;
  font-weight: 700;
  color: #e91e63;
}

/* 进度条 */
#progress-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

#progress-bar-wrapper {
  width: 100%;
  height: 12px;
  background: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

#progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f48fb1, #e91e63);
  border-radius: 6px;
  width: 0%;
  transition: width 0.6s ease;
}

#progress-text {
  font-size: 13px;
  color: #999;
}

/* 孕期阶段 */
#stage-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 12px;
}

#stage-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stage-item {
  flex: 1;
  min-width: 90px;
  text-align: center;
  padding: 10px 8px;
  background: #fafafa;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.stage-item.active {
  border-color: #e91e63;
  background: #fce4ec;
}

.stage-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 2px;
}

.stage-item.active .stage-name {
  color: #e91e63;
}

.stage-range {
  display: block;
  font-size: 12px;
  color: #999;
}

.tip-card {
  padding: 14px 16px;
  border-radius: 8px;
  text-align: left;
}

.tip-card h4 {
  font-size: 16px;
  color: #333;
  margin: 0 0 8px 0;
}

.tip-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* 时间线 */
#timeline-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 12px;
}

.timeline-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-left: 3px solid #e91e63;
  padding-left: 14px;
  margin-left: 4px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  background: #e91e63;
  border-radius: 50%;
}

.timeline-item:last-child {
  border-left-color: #ff9800;
}

.timeline-item:last-child::before {
  background: #ff9800;
}

.timeline-trimester {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  min-width: 72px;
}

.timeline-range {
  font-size: 14px;
  color: #888;
  margin-left: 8px;
}

/* 改编按钮 */
#__fork {
  text-align: center;
  padding: 16px 0;
}

#__fork button {
  padding: 10px 28px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

#__fork button:hover {
  border-color: #e91e63;
  color: #e91e63;
}

/* 简介/场景/FAQ */
#features, #scenarios, #FAQ {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px;
}

#features h2, #scenarios h2, #FAQ h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 12px;
}

#features p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}

#scenarios ul {
  padding-left: 20px;
}

#scenarios li {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 6px;
}

#FAQ dl {
  margin: 0;
}

#FAQ dt {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-top: 16px;
  margin-bottom: 6px;
}

#FAQ dd {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-left: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

#FAQ dd:last-of-type {
  border-bottom: none;
}
