.rb-calc-modern {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

/* 表单样式 */
.rb-calc-form {
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 20px;
}

.rb-form-group {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.rb-form-group:last-child {
  border-bottom: none;
}

.rb-form-label {
  width: 120px;
  flex-shrink: 0;
  font-weight: 500;
  color: #333;
  text-align: right;
  padding-right: 16px;
}

.rb-form-control {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rb-select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  background: #ffffff;
  color: #333;
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
  cursor: pointer;
  min-width: 0;
}

.rb-select:focus {
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.rb-select:hover {
  border-color: #c0c4cc;
}

.rb-year { min-width: 100px; }
.rb-month { min-width: 80px; }

.rb-date-unit {
  color: #666;
  white-space: nowrap;
  font-size: 13px;
}

/* 按钮样式 */
.rb-btn-group {
  gap: 12px;
}

.rb-btn {
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  min-width: 80px;
}

.rb-btn-reset {
  background: #f5f7fa;
  color: #333;
  border: 1px solid #dcdfe6;
}

.rb-btn-reset:hover {
  background: #ffffff;
  color: #007cba;
  border-color: #007cba;
}

.rb-btn-query {
  background: #007cba;
  color: white;
}

.rb-btn-query:hover {
  background: #0069a3;
  box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

/* 结果区域 */
.rb-result-area {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  display: none;
  border: 1px solid #e9ecef;
}

.rb-result-row {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  min-height: 24px;
}

.rb-result-row:last-child {
  margin-bottom: 0;
}

.rb-result-label {
  color: #666;
  flex-shrink: 0;
  /*width: 150px;*/
  text-align: right;
  /*padding-right: 12px;*/
}

.rb-result-value {
  color: #e74c3c;
  font-weight: 600;
  font-size: 15px;
}

/* 政策说明 */
.rb-policy-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e9ecef;
  font-size: 13px;
  line-height: 1.7;
  color: #666;
}

.rb-policy-info p {
  margin: 0 0 12px 0;
}

.rb-policy-info p:last-child {
  margin-bottom: 0;
}

.rb-policy-info strong {
  color: #333;
  font-weight: 600;
}

.rb-policy-info ul {
  margin: 8px 0 12px 20px;
  padding: 0;
}

.rb-policy-info li {
  margin: 6px 0;
  color: #555;
}

.rb-policy-info li:before {
  content: "•";
  color: #007cba;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .rb-form-group {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 16px 0;
  }
  
  .rb-form-label {
    width: 100%;
    text-align: left;
    padding-right: 0;
    margin-bottom: 8px;
  }
  
  .rb-form-control {
    flex-wrap: wrap;
  }
  
  .rb-select {
    flex: 1;
    min-width: 0;
  }
  
  .rb-year {
    flex: 2;
  }
  
  .rb-month {
    flex: 1;
  }
  
  .rb-date-unit {
    white-space: nowrap;
  }
  
  .rb-btn-group {
    flex-wrap: nowrap;
  }
  
  .rb-btn {
    flex: 1;
  }
  
  .rb-result-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .rb-result-label {
    width: 100%;
    text-align: left;
    padding-right: 0;
    margin-bottom: 4px;
  }
  
  .rb-result-value {
    width: 100%;
  }
  
  .rb-policy-info {
    padding: 16px;
  }
}